/* ============================================================
   FOTG Frontend CSS
   Design: matches the homepage booking card exactly.
   White inputs · gradient dark card · pill CTA · gold accents
   ============================================================ */

:root {
    --fotg-gold:         #d4a017;
    --fotg-gold-lt:      #f4cf76;
    --fotg-gold-dk:      #b08e1e;
    --fotg-gold-dim:     rgba(212,160,23,0.2);
    --fotg-green:        #22C55E;
    --fotg-err:          #e05252;
    --fotg-text:         #FFFFFF;
    --fotg-sub:          #9096a8;
    --fotg-muted:        #6B6B6B;
    --fotg-dark:         #111118;
    --fotg-input-bg:     rgba(255,255,255,0.92);
    --fotg-input-color:  #1a1c2a;
    --fotg-card-bg:      linear-gradient(180deg, rgba(17,28,41,.96), rgba(8,11,15,.96));
    --fotg-card-border:  #5F4F30;
    --fotg-chip-bg:      rgba(255,255,255,0.06);
    --fotg-chip-border:  rgba(255,255,255,0.12);
    --fotg-radius-sm:    8px;
    --fotg-radius:       14px;
    --fotg-radius-pill:  50px;
    --fotg-shadow-card:  0 28px 72px rgba(0,0,0,.65);
    --fotg-shadow-input: 0 0 0 3px rgba(212,160,23,.2);
}

/* ── CONTAINER ── */
.fotg-booking-container {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    padding: 48px 24px 40px;   /* top spacing so form doesn't touch header */
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--fotg-text);
    background: transparent;
    box-sizing: border-box;
    position: relative;
}

/* ── HIDDEN ELEMENTS ── */
.fotg-trust-badges,
.fotg-steps { display: none; }

/* ── LAYOUT: 2-column ── */
.fotg-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .fotg-layout { grid-template-columns: 1fr; }
}

/* ── MAIN CARD — gradient dark card matching homepage ── */
.fotg-card {
    background: var(--fotg-card-bg);
    border: 1px solid var(--fotg-card-border);
    border-radius: 22px;
    padding: 38px 34px 34px;
    box-shadow: var(--fotg-shadow-card);
}
@media (max-width: 560px) {
    .fotg-card { padding: 28px 20px 24px; }
}

/* ── SECTION HEADER ── */
.fotg-section-eyebrow {
    display: none; /* clean card: no eyebrow */
}
.fotg-section-heading {
    font-size: 33px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
}
.fotg-section-sub {
    font-size: 15px;
    color: var(--fotg-sub);
    line-height: 1.55;
    margin: 0 0 28px;
}
@media (max-width: 430px) {
    .fotg-section-heading { font-size: 26px; }
}

/* Legacy card title */
.fotg-card-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fotg-gold);
    margin: 0 0 16px;
    display: block;
}

/* ── FIELD ── */
.fotg-field { margin-bottom: 14px; position: relative; }

.fotg-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--fotg-sub);
    margin-bottom: 5px;
}

/* ── INPUTS — white background matching homepage ── */
.fotg-input,
.fotg-select,
.fotg-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--fotg-radius) !important;
    background: var(--fotg-input-bg);
    color: var(--fotg-input-color);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}
.fotg-input::placeholder,
.fotg-textarea::placeholder { color: var(--fotg-sub); }
.fotg-input:focus,
.fotg-select:focus,
.fotg-textarea:focus {
    border-color: var(--fotg-gold);
    box-shadow: var(--fotg-shadow-input);
    background: rgba(255,255,255,0.97);
}
.fotg-input.fotg-error,
.fotg-select.fotg-error { border-color: var(--fotg-err) !important; box-shadow: 0 0 0 3px rgba(224,82,82,.18) !important; }

.fotg-error-msg { font-size: 11.5px; font-weight: 600; color: var(--fotg-err); margin-top: 5px; display: none; padding-left: 2px; }
.fotg-error-msg.show { display: block; }

/* date input */
.fotg-input[type="date"],
input[type="date"].fotg-input { color: var(--fotg-input-color); color-scheme: light; }
input[type="date"].fotg-input::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; }

/* select chevron */
.fotg-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239096a8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--fotg-input-bg);
    padding-right: 40px;
    cursor: pointer;
}
.fotg-select option { background: #ffffff; color: var(--fotg-input-color); }

/* 2-column row */
.fotg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fotg-row { grid-template-columns: 1fr; } }

/* ── TEXTAREA ── */
.fotg-textarea { resize: vertical; min-height: 72px; }

/* ── AUTOCOMPLETE ── */
.fotg-ac-wrap { position: relative; }
.fotg-from-group, .fotg-to-group { position: relative; z-index: 10; }
.fotg-from-group:focus-within, .fotg-to-group:focus-within { z-index: 100; }
.fotg-input-wrapper { position: relative; }

/* dropdown list — white, matches homepage ac-list */
.fotg-ac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #ffffff;
    border: 1px solid rgba(212,160,23,.2);
    border-radius: var(--fotg-radius);
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.fotg-ac-wrap.open .fotg-ac-dropdown { display: block; }
.fotg-ac-dropdown::-webkit-scrollbar { width: 5px; }
.fotg-ac-dropdown::-webkit-scrollbar-thumb { background: rgba(212,160,23,.25); border-radius: 4px; }

.fotg-ac-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #f2f2f6;
    transition: background .12s;
    color: var(--fotg-input-color);
}
.fotg-ac-item:last-child { border-bottom: none; }
.fotg-ac-item:hover, .fotg-ac-item.active { background: #fef8e8; }
.fotg-ac-name   { font-size: 14px; font-weight: 600; color: var(--fotg-input-color); line-height: 1.3; }
.fotg-ac-detail { font-size: 12px; color: #8a8fa8; margin-top: 2px; line-height: 1.3; }
.fotg-ac-status { padding: 16px 18px; text-align: center; font-size: 13.5px; color: #8a8fa8; line-height: 1.6; }
.fotg-ac-status-error { color: var(--fotg-err, #e05252); font-size: 12px; }

/* OSM suggestions (used by some autocomplete paths) */
.fotg-osm-suggestions {
    position: absolute !important;
    top: 100% !important; left: 0 !important; right: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(212,160,23,.2) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.18) !important;
    z-index: 999999 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin-top: 6px !important;
}
.fotg-osm-suggestion {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f2f2f6 !important;
    gap: 10px !important;
    transition: background .12s !important;
}
.fotg-osm-suggestion:hover { background: #fef8e8 !important; }
.fotg-osm-place-name     { font-size: 14px !important; font-weight: 600 !important; color: #1a1c2a !important; }
.fotg-osm-place-location { font-size: 12px !important; color: #8a8fa8 !important; }

/* ── TRIP TYPE TOGGLE ── */
.fotg-trip-toggle-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--fotg-radius);
    overflow: hidden;
}
.fotg-trip-btn {
    padding: 11px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
    background: rgba(255,255,255,0.06);
    color: var(--fotg-sub);
}
.fotg-trip-btn:focus { outline: none; }
.fotg-trip-btn.active { background: var(--fotg-gold); color: var(--fotg-dark); }

/* ── EXTRAS CHIPS ── */
.fotg-extras-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fotg-extra-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--fotg-chip-bg);
    border: 1px solid var(--fotg-chip-border);
    border-radius: var(--fotg-radius-sm);
    padding: 7px 11px;
    font-size: 11px;
    color: var(--fotg-sub);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.fotg-extra-chip input[type="checkbox"] {
    width: 12px; height: 12px;
    accent-color: var(--fotg-gold);
    cursor: pointer;
}
.fotg-extra-chip:hover { border-color: var(--fotg-gold); color: var(--fotg-text); }
.fotg-extra-chip .chip-price {
    color: var(--fotg-gold);
    font-weight: 700;
    font-size: 10px;
    margin-left: 2px;
}

/* ── CONSENT ── */
.fotg-contact-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fotg-sub);
    text-align: center;
    margin: 18px 0 14px;
    position: relative;
}
.fotg-contact-header::before,
.fotg-contact-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.fotg-contact-header::before { left: 0; }
.fotg-contact-header::after  { right: 0; }

.fotg-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: var(--fotg-sub);
    cursor: pointer;
    line-height: 1.5;
}
.fotg-consent-label input[type="checkbox"] {
    width: 13px; height: 13px;
    margin-top: 2px;
    accent-color: var(--fotg-gold);
    flex-shrink: 0;
}
.fotg-consent-label a { color: var(--fotg-gold); text-decoration: none; }

/* ── BUTTONS ── */
.fotg-btn {
    display: inline-block;
    padding: 14px 24px;
    border: none;
    border-radius: var(--fotg-radius-pill);
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .18s, box-shadow .18s, transform .12s;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-sizing: border-box;
}

/* Primary CTA — gold gradient pill matching homepage */
.fotg-btn-primary,
.fotg-btn-cta-green {
    background: linear-gradient(135deg, #f4cf76, #d9a641);
    color: var(--fotg-dark);
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 24px rgba(212,160,23,.35);
}
.fotg-btn-primary:hover,
.fotg-btn-cta-green:hover {
    opacity: .92;
    box-shadow: 0 8px 32px rgba(212,160,23,.5);
}
.fotg-btn-primary:active,
.fotg-btn-cta-green:active { transform: scale(.98); }

/* Refresh / secondary */
.fotg-btn-refresh,
.fotg-btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--fotg-sub);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--fotg-radius-pill);
}
.fotg-btn-refresh:hover,
.fotg-btn-secondary:hover {
    border-color: var(--fotg-gold);
    color: var(--fotg-text);
}

.fotg-btn:disabled, .fotg-btn.loading { opacity: .55; cursor: not-allowed; pointer-events: none; transform: none; }

/* ── ACTION ROW ── */
.fotg-action-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-top: 6px;
}

.fotg-phone-hint {
    text-align: center;
    font-size: 13.5px;
    color: var(--fotg-sub);
    margin-top: 10px;
    line-height: 1.6;
}
.fotg-phone-hint a { color: var(--fotg-gold); text-decoration: none; }

/* ── RIGHT COLUMN ── */
.fotg-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── PRICE CARD ── */
.fotg-price-card {
    background: var(--fotg-card-bg);
    border: 1px solid var(--fotg-card-border);
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: var(--fotg-shadow-card);
}
.fotg-price-card-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fotg-gold);
    margin-bottom: 2px;
    display: block;
}
.fotg-price-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}
.fotg-price-card-sub {
    font-size: 12px;
    color: var(--fotg-sub);
    margin-bottom: 12px;
    display: block;
}
.fotg-price-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--fotg-green);
    margin-bottom: 10px;
}
.fotg-price-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fotg-green);
    animation: fotg-pulse 1.8s ease-in-out infinite;
}
@keyframes fotg-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

.fotg-price-route-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--fotg-dark);
    background: var(--fotg-gold);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 14px;
}
.fotg-price-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: var(--fotg-sub);
}
.fotg-price-line:last-child { border-bottom: none; }
.fotg-price-total {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: none;
    margin-top: 4px;
}
.fotg-price-total .fotg-price-val { color: var(--fotg-gold); font-size: 22px; }
.fotg-price-placeholder {
    text-align: center;
    padding: 20px 12px;
    color: var(--fotg-sub);
    font-size: 13px;
}
.fotg-price-placeholder strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.6);
}
.fotg-distance-badge {
    text-align: center;
    font-size: 11px;
    color: var(--fotg-sub);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* ── WHAT'S INCLUDED ── */
.fotg-whats-included {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--fotg-radius-sm);
    padding: 12px 14px;
    margin-top: 14px;
}
.fotg-whats-included-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fotg-sub);
    margin-bottom: 8px;
}
.fotg-whats-included ul { list-style: none; padding: 0; margin: 0; }
.fotg-whats-included ul li {
    font-size: 11px;
    color: var(--fotg-sub);
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fotg-whats-included ul li::before {
    content: '✓';
    color: var(--fotg-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── INFO CARDS (round-trip, coverage) ── */
.fotg-info-card {
    background: var(--fotg-card-bg);
    border: 1px solid var(--fotg-card-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--fotg-shadow-card);
}
.fotg-info-card-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fotg-sub);
    margin-bottom: 4px;
    display: block;
}
.fotg-info-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 0 0 12px;
}
.fotg-info-card-list { list-style: none; padding: 0; margin: 0; }
.fotg-info-card-list li {
    font-size: 11px;
    color: var(--fotg-sub);
    padding: 3px 0;
    display: flex;
    gap: 6px;
}
.fotg-info-card-list li::before {
    content: '•';
    color: var(--fotg-gold);
    flex-shrink: 0;
}
.fotg-coverage-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fotg-text);
    margin-bottom: 10px;
}
.fotg-coverage-map {
    width: 100%;
    aspect-ratio: 1 / 0.85;
    border-radius: var(--fotg-radius-sm);
    overflow: hidden;
    background: #1a1e28;
}
.fotg-coverage-map iframe {
    width: 100%; height: 100%;
    border: none; display: block;
    filter: invert(1) hue-rotate(180deg) brightness(0.55) saturate(1.4);
}

/* ── SQUARE PAYMENT ── */
#fotg-square-card-container { min-height: 90px; margin-bottom: 16px; }
.fotg-pay-unavailable {
    border: 1px solid rgba(212,160,23,0.4);
    background: rgba(212,160,23,0.08);
    color: var(--fotg-text, #1a1a1a);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.fotg-secure-notice {
    font-size: 11px;
    color: var(--fotg-sub);
    text-align: center;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── CONFIRMATION ── */
.fotg-confirmation-wrap { max-width: 640px; margin: 40px auto; }
.fotg-confirmation-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #065F46, #059669);
    border-radius: 22px;
    color: #fff;
    margin-bottom: 24px;
}
.fotg-confirmation-hero .check { font-size: 52px; }
.fotg-confirmation-hero h2 { font-size: 26px; font-weight: 800; margin: 12px 0 8px; }
.fotg-confirmation-num {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
}

/* ── PAGE TITLE SUPPRESSION ── */
.page .entry-title,
.page .page-title,
.page h1.entry-title,
.page h1.page-title,
article.page > .entry-header,
article.page > header.entry-header,
body.page .wp-block-post-title { display: none !important; }
