.booking-page {
    --booking-ink: #211834;
    --booking-muted: #625872;
    --booking-purple: #5b37ad;
    --booking-line: #e8e1f1;
    --booking-shadow: 0 3px 12px #30204c08;
    background: radial-gradient(ellipse at 50% 0, #ede6fa 0, transparent 480px), #f8f6fb;
    padding-bottom: 0;
}

.booking-flow :is(.booking-shell, .journey-shell) {
    width: min(100%, 1160px);
    margin-inline: auto;
    padding: 16px max(14px, env(safe-area-inset-right)) 32px max(14px, env(safe-area-inset-left));
}

.booking-flow-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.booking-flow-heading h1 {
    margin: 0;
    color: var(--booking-ink);
    font-size: clamp(1.65rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.booking-flow-heading h1:lang(bn) { letter-spacing: 0; }
.booking-flow-heading h1:focus { outline: 0; }
.booking-flow-heading .booking-back { width: fit-content; }
.booking-flow .booking-progress { border-radius: 14px; padding: 5px; }
.booking-flow .booking-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booking-flow .booking-step { padding-inline: 4px; font-size: clamp(.69rem, 2.5vw, .86rem); }

.booking-flow .booking-parking {
    min-height: 116px;
    margin: 0;
    align-items: center;
    border-radius: 20px;
    background: #302049;
    box-shadow: 0 8px 22px #29184726;
}

.booking-flow .booking-parking > img { object-position: 75% 52%; }
.booking-flow .booking-parking::after {
    background: linear-gradient(90deg, #231632 0%, #231632e8 36%, #23163260 100%);
}
.booking-flow .booking-parking-label { padding: 0; border: 0; background: transparent; }
.booking-flow .booking-parking-content p { line-height: 1.35; }
.booking-flow .booking-parking-change { background: #302049cc; }
.booking-flow .booking-parking-error { grid-column: 1; }
.booking-flow .booking-card { border-radius: 18px; }
.booking-flow .booking-heading { margin-bottom: 12px; }
.booking-flow .booking-heading-icon { width: 34px; height: 34px; }
.booking-flow .booking-vehicle-tile { min-height: 58px; }
.booking-flow .booking-vehicle-tile > svg { width: 20px; height: 20px; }
.booking-flow .booking-quick, .booking-flow .booking-vehicle > .booking-field { margin-top: 12px; }
.booking-flow .booking-schedule-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
}
.booking-flow .booking-schedule-heading > .booking-label { color: var(--booking-muted); font-size: .78rem; }
.booking-flow .booking-input { min-height: 46px; }
.booking-flow .booking-summary-top {
    background: #f1ebfa;
    border-radius: 17px 17px 0 0;
}
.booking-flow .booking-summary-top .booking-heading-icon { background: #ded0f6; color: #462589; }
.booking-flow .booking-shell .booking-submit, .booking-flow .journey-primary {
    background: linear-gradient(110deg, #50309a, #7046c1);
    box-shadow: 0 5px 14px #5836a333;
    min-height: 49px;
}
.booking-flow .booking-shell .booking-submit:disabled { background: #eee8f6; box-shadow: none; }
.booking-flow .journey-primary:disabled { box-shadow: none; }
.booking-flow .journey-primary:not(:disabled):hover,
.booking-flow .booking-shell .booking-submit:not(:disabled):hover { background: #4e2b98; }

.booking-flow .journey-grid { gap: 14px; }
.booking-flow .journey-panel {
    border-color: var(--booking-line);
    border-radius: 18px;
    padding: clamp(15px, 3vw, 26px);
    box-shadow: var(--booking-shadow);
}
.booking-flow .journey-location { align-items: center; }
.booking-flow .journey-location h2 { font-size: clamp(1.04rem, 3vw, 1.38rem); }
.booking-flow .journey-facts { background: #f6f3fa; padding: 12px; }
.booking-flow .journey-charges { padding: 0 4px; }
.booking-flow .journey-fare-details { display: none; }
.booking-flow .journey-fare-details summary {
    min-height: 44px;
    padding-block: 10px;
    color: #432775;
    font-weight: 750;
    cursor: pointer;
}
.booking-flow .journey-fare-details strong { float: right; }
.booking-flow .journey-total { border-color: var(--booking-line); }
.booking-flow .journey-total dd { font-size: 1.28rem; }
.booking-flow .journey-clock {
    min-height: 44px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f1ebfa;
}
.booking-flow .journey-clock strong { font-size: 1rem; }
.booking-flow .journey-option { min-height: 46px; border-radius: 11px; margin-bottom: 7px; }
.booking-flow .journey-option span { flex: 1; }
.booking-flow .journey-option input { width: 18px; height: 18px; flex: none; }
.booking-flow .journey-payment .journey-muted { margin-block: 10px 12px; }
.booking-flow .journey-pass { max-width: 980px; }
.booking-flow .journey-ticket { display: grid; gap: 18px; }
.booking-flow .journey-ticket-code {
    align-content: center;
    order: -1;
    margin: 0;
    padding: 10px;
    border: 1px dashed #cebee2;
    border-radius: 15px;
}
.booking-flow #qrcode { padding: 10px; border-radius: 9px; background: #fff; }
.booking-flow #qrcode :is(img, canvas) { max-width: 100%; height: auto; vertical-align: middle; }
.booking-flow .journey-ticket-code strong { display: block; color: #332153; font-size: 1.06rem; letter-spacing: .045em; }
.booking-flow .journey-pass-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.booking-flow .journey-pass-actions > form {
    display: contents;
}
.booking-flow .journey-pass-actions .journey-link {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #e4dcf0;
    border-radius: 10px;
    background: #faf8fd;
    color: #4b3578;
    font-size: .84rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.booking-flow .journey-pass-actions .journey-link svg {
    width: 16px;
    height: 16px;
}
.booking-flow .journey-pass-actions .journey-link:hover,
.booking-flow .journey-pass-actions .journey-link:focus-visible {
    background: #f1ebfa;
    border-color: #cbbbe6;
    color: #392366;
}
.booking-flow .journey-pass-actions .journey-danger {
    border-color: #f1cfd6;
    background: #fff7f8;
    color: #a12c43;
}
.booking-flow .journey-pass-actions .journey-danger:hover,
.booking-flow .journey-pass-actions .journey-danger:focus-visible {
    background: #ffecef;
    border-color: #e4aeb9;
    color: #881f34;
}

.booking-flow-feedback {
    width: min(calc(100% - 28px), 1112px);
    margin: 14px auto 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    border: 1px solid #e8a6b2;
    border-radius: 12px;
    background: #fff2f4;
    color: #82233a;
}
.booking-flow-feedback p { flex: 1 1 240px; margin: 0; }
.booking-flow [hidden] { display: none !important; }
.booking-flow-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    background: #29203954;
}
.booking-flow-overlay [role="status"] {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 28px);
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px #21183442;
    font-weight: 700;
}
.booking-flow-overlay span {
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid #ddd0f3;
    border-top-color: var(--booking-purple);
    border-radius: 50%;
    animation: booking-flow-spin .7s linear infinite;
}
@keyframes booking-flow-spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
    .booking-flow :is(.booking-shell, .journey-shell) { padding: 24px 24px 44px; }
    .booking-flow-heading { grid-template-columns: minmax(0, 1fr) minmax(320px, 37%); }
    .booking-flow-heading .booking-back { grid-column: 1 / -1; min-height: 32px; }
    .booking-flow .journey-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
    .booking-flow .has-pass .journey-ticket { grid-template-columns: minmax(0, 1fr) minmax(200px, 34%); }
    .booking-flow .journey-ticket-code { order: 0; }
}

@media (min-width: 1160px) {
    .booking-flow-heading { grid-template-columns: minmax(0, 1fr) 420px; }
    .booking-flow .booking-step { white-space: nowrap; }
}

@media (min-width: 900px) {
    .booking-flow .booking-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 34%); gap: 12px 20px; }
    .booking-flow .booking-summary { top: 16px; }
    .booking-flow .booking-card:not(.booking-summary) { padding: 14px 18px; }
    .booking-flow .booking-vehicle { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 0 14px; }
    .booking-flow .booking-vehicle :is(h2, .booking-saved) { grid-column: 1 / -1; }
    .booking-flow .booking-vehicle > .booking-field { grid-column: 2; grid-row: 2; margin: 0; }
}

@media (max-width: 899.98px) {
    .booking-flow:has([data-booking-stage="create"]) .booking-shell {
        padding-bottom: calc(var(--booking-dock) + 24px + env(safe-area-inset-bottom));
    }
    .booking-flow .booking-action {
        background: #fffffffa;
        box-shadow: 0 -6px 24px #2615481c;
    }
}

@media (max-width: 699.98px) {
    .booking-flow .journey-fare-details { display: block; }
    .booking-flow .journey-fare-expanded { display: none; }
    .booking-flow .journey-review { padding-bottom: 4px; }
    .booking-flow .journey-review .journey-location { margin-bottom: 10px; }
    .booking-flow .journey-review .journey-facts { margin-bottom: 0; padding: 9px; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .booking-flow-overlay span { animation: none; }
}

/* Reservation form */
.booking-flow .booking-shell-compact {
    --booking-dock: 78px;
    width: min(100%, 980px);
    padding-top: 12px;
}

.booking-shell-compact .booking-flow-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 10px;
}

.booking-shell-compact .booking-flow-heading h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.booking-shell-compact .booking-flow-heading .booking-back {
    flex: none;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border: 1px solid var(--booking-line);
    border-radius: 10px;
    background: #fff;
}

.booking-flow .booking-shell-compact .booking-grid { gap: 10px 16px; }
.booking-flow .booking-shell-compact .booking-parking {
    min-height: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(110deg, #2b1c46, #49346c);
    box-shadow: none;
}

.booking-shell-compact .booking-parking::after { content: none; }
.booking-shell-compact .booking-parking-label { margin-bottom: 3px; }
.booking-shell-compact .booking-parking-content strong { font-size: 1rem; }
.booking-shell-compact .booking-parking-content p { font-size: .78rem; }
.booking-shell-compact .booking-parking-change { padding-inline: 8px; }

.booking-flow .booking-shell-compact .booking-card {
    border-radius: 13px;
}
.booking-flow .booking-shell-compact .booking-card:not(.booking-summary) {
    padding: 12px;
}
.booking-flow .booking-shell-compact .booking-heading {
    font-size: 1rem;
    margin-bottom: 8px;
}

.booking-shell-compact .booking-label { font-size: .81rem; margin-bottom: 4px; }
.booking-shell-compact .booking-rate { font-size: .76rem; }
.booking-flow .booking-shell-compact .booking-vehicle-tile {
    min-height: 44px;
    flex-direction: row;
    gap: 4px;
    border-radius: 8px;
    padding: 5px 2px;
}
.booking-flow .booking-shell-compact .booking-vehicle-tile > svg { display: none; }
.booking-shell-compact .booking-selection-mark { display: none !important; }
.booking-shell-compact .booking-field-grid { gap: 8px; }
.booking-flow .booking-shell-compact .booking-input {
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 8px;
}
.booking-shell-compact .booking-save-toggle { margin-top: 3px; }
.booking-shell-compact .booking-quick { margin-top: 6px; }
.booking-shell-compact .booking-quick-options { gap: 5px; }
.booking-shell-compact .booking-duration { border-radius: 8px; }

.booking-fare-details > summary,
.booking-saved > summary {
    min-height: 44px;
    align-content: center;
    color: var(--booking-purple);
    cursor: pointer;
}
.booking-shell .booking-fare-details > summary { margin: 0; padding-inline: 12px; }
.booking-fare-details > summary::after,
.booking-saved > summary::after {
    content: "";
    display: inline-block;
    width: .42em;
    height: .42em;
    margin-inline-start: .55em;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    vertical-align: .2em;
    transform: rotate(45deg);
}
.booking-fare-details[open] > summary::after,
.booking-saved[open] > summary::after { transform: rotate(225deg); }
.booking-shell-compact .booking-saved { margin-top: 4px; }
.booking-shell-compact .booking-saved:not([open]) > summary { margin: 0; }

.booking-flow .booking-shell-compact .booking-summary-top {
    padding: 12px 12px 4px;
    background: transparent;
}
.booking-shell-compact .booking-availability { padding: 7px 9px; border-radius: 8px; }
.booking-shell-compact .booking-availability strong { font-size: .84rem; }
.booking-shell-compact .booking-breakdown { padding: 0 12px 8px; }
.booking-shell-compact .booking-hold { margin-inline: 12px; padding-block: 7px 10px; }
.booking-flow .booking-shell-compact .booking-submit { min-height: 46px; border-radius: 9px; }

@media (min-width: 900px) {
    .booking-flow .booking-shell-compact { padding-top: 22px; }
    .booking-flow .booking-shell-compact .booking-grid {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 32%);
        grid-template-rows: repeat(4, auto);
        align-content: start;
    }
    .booking-shell-compact .booking-action { padding: 8px 12px 12px; }
}

@media (max-width: 899px) {
    .booking-flow .booking-shell-compact .booking-action {
        padding-block: 6px calc(6px + env(safe-area-inset-bottom));
    }
    .booking-shell-compact .booking-action-status { margin-bottom: 4px; }
    .booking-shell-compact .booking-action-status[data-state="available"] {
        display: none;
    }
}

@media (min-width: 375px) and (max-width: 539px) {
    .booking-shell-compact .booking-driver .booking-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

