/* ============================================================
   booking-wizard.css — /booking step-by-step request wizard
   2026-10-21. Phone-first: one question per screen, big tap
   targets, nothing fixed to the bottom (the iOS keyboard and the
   Instagram in-app browser bars stay clear of every control).
   ============================================================ */

/* The site nav is sticky elsewhere; here it scrolls away so it can never
   sit over a focused field while the iOS keyboard is open. */
.page-booking .nav { position: relative; }
/* Same for the promo banner (sticky under the nav site-wide): here it would
   float over the form fields, so it stays in the page flow. */
.page-booking #promo-banner { position: relative; top: auto; }
@media (max-width: 899px) {
    .page-booking .nav-inner { height: 64px; }
    .page-booking .nav-logo img { max-height: 40px; width: auto; }
}

/* iOS zooms into any field under 16px, which shoves the layout around. */
.bw input, .bw select, .bw textarea { font-size: 16px !important; }

.bw {
    background: var(--bg);
    padding: var(--space-3) 0 var(--space-12);
    min-height: 70vh;
}
.bw-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ---- Header: back · title · step count + progress bar ---- */
.bw-top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
}
.bw-back {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 10px 12px 10px 0;
    min-height: 44px;
    font: 600 1rem var(--font);
    color: var(--dark);
    cursor: pointer;
}
.bw-back:hover { color: var(--orange); }
.bw-title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.01em;
}
/* With Back showing, the step label carries the context; the title would wrap. */
@media (max-width: 639px) { .bw-back:not([hidden]) + .bw-title { visibility: hidden; } }
.bw-count {
    font-size: 0.8125rem;
    color: var(--muted);
    white-space: nowrap;
}
.bw-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: var(--space-2) 0 var(--space-6);
}
.bw-progress span {
    height: 6px;
    border-radius: 3px;
    background: #e4e4e4;
    transition: background 0.2s;
}
.bw-progress span.on { background: var(--orange); }
.bw-progress.is-off { visibility: hidden; }

/* ---- Step body ---- */
.bw-step[hidden] { display: none !important; }
.bw-q {
    font-size: 1.625rem;
    line-height: 1.2;
    margin: 0 0 var(--space-2);
    color: var(--dark);
    outline: none;
}
.bw-sub {
    color: var(--mid);
    margin: 0 0 var(--space-6);
    line-height: 1.5;
}
.bw-hint {
    font-size: 0.875rem;
    color: var(--muted);
    margin: var(--space-4) 0 0;
    line-height: 1.5;
}
.bw-label {
    font-weight: 600;
    margin: 0 0 var(--space-2);
    color: var(--dark);
}

/* ---- Big answer cards ---- */
.bw-choices { display: grid; gap: var(--space-3); }
.bw-choice {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    min-height: 64px;
    font-family: var(--font);
    color: var(--dark);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, background 0.15s;
}
.bw-choice:hover { border-color: var(--orange); }
.bw-choice:active { background: var(--orange-light); }
.bw-choice.is-selected { border-color: var(--orange); background: var(--orange-light); }
.bw-choice-title { display: block; font-size: 1.125rem; font-weight: 700; }
.bw-choice-sub { display: block; font-size: 0.9375rem; color: var(--mid); margin-top: 3px; line-height: 1.4; }
.bw-choice-alt { background: #f4f4f4; }
.bw-choice:focus-visible, .bw-seg button:focus-visible, .bw-slot:focus-visible, .bw-row:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ---- Sim count segmented control ---- */
.bw-sims { margin-top: var(--space-6); }
.bw-seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}
.bw-seg button {
    min-height: 52px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    font: 700 1.25rem var(--font);
    color: var(--dark);
    cursor: pointer;
}
.bw-seg button.is-selected { border-color: var(--orange); background: var(--orange); color: var(--white); }

/* ---- Calendar ---- */
.bw-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.8125rem;
    color: var(--mid);
    margin: 0 0 var(--space-3);
}
.bw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bw-legend .cal-dot { width: 10px; height: 10px; }
.bw-calendar { background: var(--white); border-radius: 12px; padding: 8px 6px; border: 1px solid var(--border); }
.bw-calendar.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 8px; }
.bw-calendar.fc .fc-button { min-width: 44px; min-height: 40px; font-size: 1.25rem; line-height: 1; padding: 4px 10px; }
.bw-calendar.fc .fc-toolbar-title { font-size: 1.0625rem; }
.bw-calendar.fc-theme-standard td, .bw-calendar.fc-theme-standard th, .bw-calendar.fc-theme-standard .fc-scrollgrid { border-color: #eee; }
.bw-calendar.fc .fc-daygrid-day-frame { min-height: 46px; display: flex; align-items: center; justify-content: center; }
.bw-calendar.fc .fc-daygrid-day-top { justify-content: center; }
.bw-calendar.fc .fc-daygrid-day-number { font-size: 0.9375rem; font-weight: 600; color: var(--dark); padding: 0; text-decoration: none; }
.bw-calendar.fc .fc-daygrid-day-frame { min-height: 46px !important; height: 46px; }
.bw-calendar.fc .fc-daygrid-body-natural .fc-daygrid-day-events { margin: 0; min-height: 0; }
.bw-calendar.fc .fc-daygrid-day-events, .bw-calendar.fc .fc-daygrid-day-bottom { display: none; }
.bw-calendar.fc .fc-col-header-cell-cushion { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-decoration: none; }
.bw-calendar.fc .fc-day-other .fc-daygrid-day-number { opacity: 0.35; }
.bw-calendar.fc .fc-day-today { background: transparent !important; }
.bw-calendar.fc .fc-day-disabled { background: #fafafa; }
/* Weeks that are entirely in the past (all cells disabled): drop them so the
   month fits on one phone screen (no-op where :has() is unsupported). */
.bw-calendar.fc .fc-daygrid-body tr:not(:has(td:not(.fc-day-disabled))) { display: none; }
.bw-calendar .cal-status-red .fc-daygrid-day-number,
.bw-calendar .cal-status-unavailable .fc-daygrid-day-number { color: #aaa; text-decoration: line-through; }
.bw-date-fallback { margin-top: var(--space-3); }

/* ---- Inline messages ---- */
.bw-msg {
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4);
    border-radius: 10px;
    background: #fff7e6;
    border-left: 3px solid #fbbf24;
    color: #7a4b00;
    font-size: 0.9375rem;
    line-height: 1.45;
}
.bw-msg-top { margin: 0 0 var(--space-3); }
.bw-msg-warn { background: #fff1ec; border-left-color: var(--orange); color: #7a2e00; }
.bw-linkbtn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 0;
    background: none;
    border: 0;
    font: 700 0.9375rem var(--font);
    color: var(--orange-dark);
    cursor: pointer;
}
.bw-alert {
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
    border-radius: 10px;
    background: #fdecea;
    color: #8a1c12;
    font-size: 0.9375rem;
}
.bw-alert-ok { background: #e8f5e9; color: #1b5e20; }

/* ---- Start-time grid ---- */
.bw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}
.bw-slot {
    position: relative;
    min-height: 52px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    font: 700 1rem var(--font);
    color: var(--dark);
    cursor: pointer;
}
.bw-slot:hover { border-color: var(--orange); }
.bw-slot.is-late { border-color: #fbbf24; background: #fffaf0; }
.bw-slot.is-late::after { content: '\2605'; position: absolute; top: 3px; right: 7px; font-size: 10px; color: #d97706; }
.bw-slot.is-selected { border-color: var(--orange); background: var(--orange); color: var(--white); }

/* ---- Duration tiles (2 columns so 2–10 hrs fit one phone screen) ---- */
.bw-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}
.bw-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    min-height: 76px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    font-family: var(--font);
    color: var(--dark);
    text-align: left;
    cursor: pointer;
}
.bw-row:hover { border-color: var(--orange); }
.bw-row.is-selected { border-color: var(--orange); background: var(--orange-light); }
.bw-row-text { display: block; }
.bw-row-main { display: block; font-weight: 700; font-size: 1.0625rem; }
.bw-row-sub { display: block; font-size: 0.8125rem; color: var(--mid); font-weight: 400; }
.bw-row-price { font-weight: 700; font-size: 0.9375rem; white-space: nowrap; color: var(--dark); min-height: 1.2em; }
.bw-row-price small { font-weight: 400; color: var(--muted); }

/* ---- Details ---- */
.bw-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 var(--space-6);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.bw-summary p { margin: 0; }
.bw-summary .bw-sum-est {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}
.bw-summary .bw-sum-note { font-size: 0.8125rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.bw-field { margin-bottom: var(--space-4); position: relative; }
.bw-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.bw-field .form-control { min-height: 48px; scroll-margin-top: 16px; }
.bw-suggest {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    overflow: hidden;
}
.bw-suggest[hidden] { display: none; }
.bw-suggest .geo-suggestion {
    padding: 12px 14px;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.bw-suggest .geo-suggestion:last-child { border-bottom: 0; }
.bw-suggest .geo-suggestion:hover { background: var(--orange-light); }
.bw-more {
    margin: 0 0 var(--space-4);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    padding: 0 14px;
}
.bw-more summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 600;
    color: var(--mid);
    min-height: 44px;
}
.bw-more[open] summary { margin-bottom: 4px; }
.bw-fine {
    font-size: 0.875rem;
    color: var(--mid);
    line-height: 1.5;
    margin: var(--space-2) 0 var(--space-4);
}
.bw-cta { width: 100%; min-height: 54px; margin-top: var(--space-4); }
.bw-cta[hidden] { display: none; }

/* ---- Done ---- */
.bw-done { text-align: left; }
.bw-done-icon { font-size: 2.5rem; margin-bottom: var(--space-2); }
.bw-ref { margin: 0 0 var(--space-4); }
.bw-ref strong { letter-spacing: 0.1em; }
.bw-next { margin: 0 0 var(--space-4); padding-left: 1.2em; color: var(--mid); line-height: 1.55; list-style: disc; }
.bw-next li { margin-bottom: 6px; }

.bw-help {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
    margin: var(--space-8) 0 0;
}

@media (min-width: 640px) {
    .bw { padding-top: var(--space-8); }
    .bw-q { font-size: 1.875rem; }
    .bw-grid { grid-template-columns: repeat(4, 1fr); }
}
