/* ============================================================
   TAXI BOOKING SUITE — Shared Styles
   Schemes: .tb-scheme-dark  (black & white)
            .tb-scheme-gold  (white & #FFC750)
   ============================================================ */

/* ── CSS Variables per scheme ─────────────────────────────── */
.tb-scheme-dark {
    --tb-bg:          #ffffff;
    --tb-surface:     #f4f4f4;
    --tb-border:      #222222;
    --tb-border-soft: #cccccc;
    --tb-text:        #111111;
    --tb-text-muted:  #666666;
    --tb-accent:      #111111;
    --tb-accent-text: #ffffff;
    --tb-accent-hover:#333333;
    --tb-highlight:   #f0f0f0;
    --tb-success:     #166534;
    --tb-success-bg:  #f0fdf4;
    --tb-error:       #991b1b;
    --tb-error-bg:    #fef2f2;
    --tb-selected-bg: #f0f0f0;
    --tb-input-focus: #111111;
}

.tb-scheme-gold {
    --tb-bg:          #ffffff;
    --tb-surface:     #fffbf0;
    --tb-border:      #FFC750;
    --tb-border-soft: #ffe4a0;
    --tb-text:        #1a1a1a;
    --tb-text-muted:  #888888;
    --tb-accent:      #FFC750;
    --tb-accent-text: #1a1a1a;
    --tb-accent-hover:#e6b340;
    --tb-highlight:   #fff8e6;
    --tb-success:     #166534;
    --tb-success-bg:  #f0fdf4;
    --tb-error:       #991b1b;
    --tb-error-bg:    #fef2f2;
    --tb-selected-bg: #fff3cc;
    --tb-input-focus: #FFC750;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.taxi-booking-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tb-text);
    background: var(--tb-bg);
    padding: 8px;
    box-sizing: border-box;
}

/* ── Progress Bar ────────────────────────────────────────── */
.taxi-progress {
    display: flex;
    margin-bottom: 28px;
    border: 1.5px solid var(--tb-border);
    border-radius: 40px;
    overflow: hidden;
}
.taxi-progress-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--tb-text-muted);
    background: var(--tb-bg);
    cursor: default;
    transition: all 0.2s;
    border-right: 1.5px solid var(--tb-border);
}
.taxi-progress-step:last-child { border-right: none; }
.taxi-progress-step.active {
    background: var(--tb-accent);
    color: var(--tb-accent-text);
}
.taxi-progress-step.done {
    background: var(--tb-highlight);
    color: var(--tb-text);
}

/* ── Steps ───────────────────────────────────────────────── */
.taxi-step { display: none; }
.taxi-step.active { display: block; }
.taxi-step-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tb-text);
    margin: 0 0 20px;
    letter-spacing: -.3px;
}

/* ── Fields ──────────────────────────────────────────────── */
.taxi-field {
    margin-bottom: 14px;
}
.taxi-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--tb-text-muted);
    margin-bottom: 6px;
}
.taxi-field input,
.taxi-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 8px;
    font-size: 15px;
    color: var(--tb-text);
    background: var(--tb-bg);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.taxi-field input:focus,
.taxi-field select:focus {
    outline: none;
    border-color: var(--tb-input-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tb-input-focus) 15%, transparent);
}

.taxi-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.taxi-required { color: #e53e3e; }

/* ── Route info ──────────────────────────────────────────── */
.taxi-route-info {
    background: var(--tb-highlight);
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.taxi-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    color: var(--tb-text-muted);
}
.taxi-info-row strong { color: var(--tb-text); }

/* ── Buttons ─────────────────────────────────────────────── */
.taxi-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s;
    letter-spacing: .3px;
}
.taxi-btn-primary {
    background: var(--tb-accent);
    color: var(--tb-accent-text);
    border-color: var(--tb-accent);
}
.taxi-btn-primary:hover:not(:disabled) {
    background: var(--tb-accent-hover);
    border-color: var(--tb-accent-hover);
}
.taxi-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.taxi-btn-secondary {
    background: transparent;
    color: var(--tb-text);
    border-color: var(--tb-border-soft);
}
.taxi-btn-secondary:hover { background: var(--tb-highlight); }

.taxi-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* ── Vehicle Cards ───────────────────────────────────────── */
.taxi-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}
.taxi-vehicle-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
}
.taxi-vehicle-card:hover { border-color: var(--tb-border); }
.taxi-vehicle-card.selected {
    border-color: var(--tb-accent);
    background: var(--tb-selected-bg);
}
.taxi-vehicle-card img {
    width: 88px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.taxi-vehicle-icon { font-size: 36px; flex-shrink: 0; }
.taxi-vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.taxi-vehicle-info strong { font-size: 15px; color: var(--tb-text); font-weight: 700; }
.taxi-vehicle-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--tb-text-muted); }
.taxi-vehicle-meta { display: flex; gap: 14px; margin-top: 4px; font-size: 13px; color: var(--tb-text-muted); }
.taxi-vehicle-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; flex-shrink: 0; }
.taxi-vehicle-fare { font-size: 20px; font-weight: 800; color: var(--tb-accent); }
.tb-scheme-dark .taxi-vehicle-fare { color: var(--tb-text); }
.taxi-vehicle-fare-label { font-size: 10px; color: var(--tb-text-muted); margin-top: 1px; text-transform: uppercase; letter-spacing: .4px; }
.taxi-no-vehicles { color: var(--tb-error); font-style: italic; padding: 12px 0; }

/* ── Section Divider ─────────────────────────────────────── */
.taxi-section-divider {
    display: flex;
    align-items: center;
    margin: 22px 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tb-text-muted);
    gap: 10px;
}
.taxi-section-divider::before,
.taxi-section-divider::after { content: ''; flex: 1; height: 1px; background: var(--tb-border-soft); }

/* ── Child Seats ─────────────────────────────────────────── */
.taxi-child-seats { display: flex; flex-direction: column; gap: 10px; }
.taxi-seat-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 10px;
    padding: 12px 16px;
    background: transparent;
}
.taxi-seat-info { display: flex; align-items: center; gap: 12px; }
.taxi-seat-icon { font-size: 22px; }
.taxi-seat-info div { display: flex; flex-direction: column; gap: 1px; }
.taxi-seat-info strong { font-size: 14px; color: var(--tb-text); }
.taxi-seat-info span  { font-size: 12px; color: var(--tb-text-muted); }

.taxi-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 8px;
    overflow: hidden;
}
.taxi-qty-btn {
    width: 34px; height: 34px;
    background: var(--tb-highlight);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--tb-text);
    transition: background 0.15s;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.taxi-qty-btn:hover { background: var(--tb-border-soft); }
.taxi-qty-control input[type="number"] {
    width: 38px; text-align: center;
    border: none;
    border-left: 1.5px solid var(--tb-border-soft);
    border-right: 1.5px solid var(--tb-border-soft);
    border-radius: 0;
    font-size: 14px; font-weight: 700;
    color: var(--tb-text);
    padding: 0; height: 34px;
    box-shadow: none; background: var(--tb-bg);
}

/* ── Return Trip ─────────────────────────────────────────── */
.taxi-toggle-label {
    display: flex; align-items: center; justify-content: space-between;
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 10px; padding: 14px 16px; cursor: pointer; gap: 16px;
    background: transparent;
}
.taxi-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.taxi-toggle-text strong { font-size: 14px; color: var(--tb-text); }
.taxi-toggle-text span   { font-size: 12px; color: var(--tb-text-muted); }

.taxi-toggle-switch { position: relative; flex-shrink: 0; }
.taxi-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.taxi-toggle-slider {
    display: block; width: 46px; height: 25px;
    background: var(--tb-border-soft);
    border-radius: 13px; cursor: pointer; transition: background 0.2s; position: relative;
}
.taxi-toggle-slider::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 19px; height: 19px; background: #fff;
    border-radius: 50%; transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.taxi-toggle-switch input:checked + .taxi-toggle-slider { background: var(--tb-accent); }
.taxi-toggle-switch input:checked + .taxi-toggle-slider::after { transform: translateX(21px); }

.taxi-return-details {
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 10px; padding: 16px; margin-top: 10px;
    background: var(--tb-highlight);
}
.taxi-return-options { display: flex; gap: 10px; margin-bottom: 14px; }
.taxi-return-option-btn {
    flex: 1; padding: 10px; border: 1.5px solid var(--tb-border-soft);
    border-radius: 8px; background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--tb-text-muted);
    transition: all 0.15s; text-align: center;
}
.taxi-return-option-btn.active {
    border-color: var(--tb-accent);
    background: var(--tb-selected-bg);
    color: var(--tb-text);
}
.taxi-return-note { font-size: 13px; color: var(--tb-text-muted); margin-top: 8px; }
.taxi-return-note strong { color: var(--tb-text); }

/* ── Summary ─────────────────────────────────────────────── */
.taxi-summary {
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 10px; padding: 0 20px; margin-bottom: 20px;
    background: transparent;
}
.taxi-summary-section-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--tb-text-muted);
    padding: 14px 0 6px; border-bottom: 1px solid var(--tb-border-soft);
}
.taxi-summary-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 9px 0; border-bottom: 1px solid var(--tb-highlight); font-size: 14px;
    gap: 12px;
}
.taxi-summary-row:last-child { border-bottom: none; }
.taxi-summary-row span { color: var(--tb-text-muted); white-space: nowrap; }
.taxi-summary-row strong { color: var(--tb-text); text-align: right; }
.taxi-summary-total { padding: 14px 0 !important; margin-top: 4px; border-top: 2px solid var(--tb-border-soft) !important; border-bottom: none !important; }
.taxi-summary-total strong { font-size: 22px; color: var(--tb-accent); }
.tb-scheme-dark .taxi-summary-total strong { color: var(--tb-text); }

/* ── Alerts ──────────────────────────────────────────────── */
.taxi-error   { background: var(--tb-error-bg); border: 1.5px solid #fca5a5; color: var(--tb-error); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.taxi-success { background: var(--tb-success-bg); border: 1.5px solid #86efac; color: var(--tb-success); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }

/* ── Extra details reveal ────────────────────────────────── */
.taxi-extra-details { margin-top: 4px; }

/* ── Hourly duration selector ────────────────────────────── */
.taxi-duration-select {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.taxi-duration-btn {
    padding: 9px 18px;
    border: 1.5px solid var(--tb-border-soft);
    border-radius: 8px; background: transparent;
    font-size: 14px; font-weight: 600; cursor: pointer;
    color: var(--tb-text-muted); transition: all 0.15s;
}
.taxi-duration-btn.active {
    border-color: var(--tb-accent);
    background: var(--tb-selected-bg);
    color: var(--tb-text);
}

/* ── Time picker row ─────────────────────────────────────── */
.taxi-time-row { display: flex; gap: 8px; align-items: center; }
.taxi-time-row select { flex: 1; }
.taxi-time-row .taxi-ampm { flex: 0 0 80px; }

/* ── Checkout booking summary box ────────────────────────── */
.taxi-checkout-summary {
    background: #f9f9f9; border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 16px 20px; margin-bottom: 20px;
}
.taxi-checkout-summary h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.taxi-checkout-summary table { width: 100%; font-size: 13px; border-collapse: collapse; }
.taxi-checkout-summary td { padding: 5px 0; vertical-align: top; }
.taxi-checkout-summary td:first-child { color: #666; width: 40%; }
.taxi-checkout-summary td:last-child  { font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    .taxi-fields-row { grid-template-columns: 1fr; }
    .taxi-vehicle-card img { width: 64px; height: 46px; }
    .taxi-step-title { font-size: 17px; }
    .taxi-return-options { flex-direction: column; }
    .taxi-duration-btn { font-size: 13px; padding: 8px 12px; }
}
