:root {
    color-scheme: dark;
    --bg: #101112;
    --panel: #191b1d;
    --panel-soft: #202326;
    --text: #f7f5ef;
    --muted: #a6a7a5;
    --line: #343638;
    --gold: #f1bd28;
    --gold-dark: #d09a08;
    --danger: #ff8e84;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(241, 189, 40, .09), transparent 38rem),
        var(--bg);
    color: var(--text);
}

button, input, select, textarea { font: inherit; }

.booking-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 38px auto;
    padding: clamp(20px, 5vw, 52px);
    border: 1px solid #383633;
    border-radius: 22px;
    background: rgba(20, 21, 22, .96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.site-header { display: flex; align-items: center; gap: 18px; }
.booking-brand { display: block; flex: 0 0 140px; }
.booking-brand img { display: block; width: 100%; height: auto; }
.header-title { min-width: 0; }
.booking-unavailable {
    margin-top: 36px;
    padding: clamp(22px, 5vw, 40px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}
.booking-unavailable h2 { margin-bottom: 10px; font-size: clamp(1.35rem, 4vw, 1.9rem); }
.booking-unavailable > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.booking-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.eyebrow {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.35rem, 4vw, 1.85rem); }
.contact-link { margin-left: auto; color: var(--text); text-decoration-color: var(--gold); }

.progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 36px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 2px solid var(--line);
    color: var(--muted);
    font-size: .86rem;
}

.progress-step b {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: .78rem;
}

.progress-step.is-active { border-color: var(--gold); color: var(--text); }
.progress-step.is-active b, .progress-step.is-complete b { border-color: var(--gold); background: var(--gold); color: #15120a; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 4vw, 2rem); }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.booking-step { display: none; }
.booking-step.is-visible { display: block; animation: reveal .2s ease-out; }
@keyframes reveal { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; color: #e8e6df; font-size: .9rem; font-weight: 650; }
.field-wide { grid-column: 1 / -1; }
.field em { color: var(--muted); font-size: .8rem; font-style: normal; font-weight: 400; }

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #494b4c;
    border-radius: 9px;
    outline: 0;
    background: #151718;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}

.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(241, 189, 40, .12); }
.field input::placeholder, .field textarea::placeholder { color: #777b7c; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); }

.map-panel {
    height: 280px;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(241, 189, 40, .05), transparent),
        #1c1f20;
}

.map-panel:empty::after {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--muted);
    content: "The route map will appear when Maps is configured.";
    font-size: .9rem;
}

.route-estimate { min-height: 1.3em; margin: 13px 0 0; color: var(--gold); font-weight: 700; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.step-actions-end { justify-content: flex-end; }
.button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 750;
    transition: transform .15s, background .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { background: var(--gold); color: #17140b; }
.button-primary:hover { background: #ffd55a; }
.button-outline { width: 100%; border-color: #5a5133; background: transparent; color: var(--gold); }
.button-outline:hover, .vehicle-card.is-selected .button-outline { border-color: var(--gold); background: rgba(241, 189, 40, .1); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--text); }

.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.vehicle-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.vehicle-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.vehicle-art {
    position: relative;
    display: flex;
    min-height: 108px;
    align-items: end;
    justify-content: space-between;
    padding: 14px;
    overflow: hidden;
    background: #202326;
}
.vehicle-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .68), transparent 76%);
    content: "";
}
.vehicle-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vehicle-class, .vehicle-capacity { position: relative; z-index: 1; }
.vehicle-class { color: var(--gold); font-size: 3rem; font-weight: 900; line-height: 1; }
.vehicle-capacity { color: #fff; font-size: .78rem; }
.vehicle-copy { padding: 17px; }
.vehicle-copy h3 { min-height: 2.6em; margin-bottom: 8px; font-size: 1rem; line-height: 1.35; }
.vehicle-spec { color: var(--muted); font-size: .82rem; }
.vehicle-copy ul { min-height: 5.1em; margin: 12px 0; padding-left: 19px; color: #cccac3; font-size: .82rem; line-height: 1.55; }
.vehicle-price { margin-bottom: 13px; color: var(--gold); font-size: 1.25rem; font-weight: 850; }
.trip-fields { margin-top: 24px; }

.legacy-vehicle-list { display: grid; gap: 14px; }
.legacy-vehicle {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.5fr) minmax(190px, .9fr);
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    transition: border-color .15s, box-shadow .15s;
}
.legacy-vehicle.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.legacy-vehicle-image { min-height: 130px; overflow: hidden; border-radius: 9px; background: #202326; }
.legacy-vehicle-image img { display: block; width: 100%; height: 130px; object-fit: cover; }
.legacy-vehicle-copy h3 { margin-bottom: 8px; font-size: 1.05rem; }
.legacy-vehicle-copy ul { margin: 0; padding-left: 19px; color: #cccac3; font-size: .82rem; line-height: 1.55; }
.legacy-capacity { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.legacy-vehicle-price { padding-left: 16px; border-left: 1px solid var(--line); }
.legacy-vehicle-price .eyebrow { margin-bottom: 7px; }
.legacy-price-value { min-height: 1.5em; margin: 0 0 13px; color: var(--gold); font-size: 1.25rem; font-weight: 850; }
.legacy-vehicle-price .button { width: 100%; }

.summary-card { margin: 26px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.summary-top { display: flex; justify-content: space-between; gap: 16px; }
.summary-top strong { display: block; }
.summary-fare-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .76rem; text-align: right; }
.summary-total { color: var(--gold); font-size: 1.6rem; }
.summary-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-card dl div { min-width: 0; }
.summary-card dt { margin-bottom: 5px; color: var(--muted); font-size: .76rem; }
.summary-card dd { margin: 0; overflow-wrap: anywhere; font-size: .88rem; font-weight: 650; }

.payment-choice, .deposit-choice { margin: 23px 0; padding: 0; border: 0; }
.payment-choice legend, .deposit-choice legend { margin-bottom: 12px; font-size: 1rem; font-weight: 750; }
.payment-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 9px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--gold); background: rgba(241, 189, 40, .06); }
.payment-option input, .deposit-choice input { accent-color: var(--gold); }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.deposit-choice:not([hidden]) { display: block; }
.deposit-choice > label { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.deposit-choice > label:has(input:checked) { border-color: var(--gold); }
.deposit-due { margin: 9px 0 0; color: var(--gold); font-weight: 750; }
.bank-transfer-details { margin-top: 16px; padding: 16px; border: 1px solid #6c5923; border-radius: 10px; background: rgba(241, 189, 40, .06); }
.bank-transfer-details[hidden] { display: none; }
.bank-transfer-details h3 { margin: 0 0 12px; font-size: 1rem; }
.bank-transfer-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.bank-transfer-details dt { margin-bottom: 4px; color: var(--muted); font-size: .76rem; }
.bank-transfer-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.bank-transfer-details p { margin: 14px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.fine-print { margin: 14px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.notice { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #6c5923; border-radius: 10px; background: rgba(241, 189, 40, .09); line-height: 1.5; }
.notice.is-error { border-color: #8a3c36; background: rgba(180, 60, 50, .12); color: #ffd3ce; }
.notice[hidden] { display: none; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer a { color: var(--text); }

@media (max-width: 680px) {
    .booking-shell { width: min(100% - 20px, 1040px); margin: 10px auto; padding: 22px 16px; border-radius: 15px; }
    .contact-link { max-width: 110px; font-size: .78rem; text-align: right; }
    .site-header { flex-wrap: wrap; }
    .booking-brand { flex-basis: 100px; }
    .header-title { flex: 1; }
    .progress { gap: 7px; margin: 27px 0; }
    .progress-step { gap: 6px; font-size: .66rem; }
    .progress-step b { flex: 0 0 25px; width: 25px; height: 25px; }
    .field-grid, .vehicle-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .vehicle-copy h3, .vehicle-copy ul { min-height: 0; }
    .legacy-vehicle { grid-template-columns: 1fr; gap: 13px; }
    .legacy-vehicle-image, .legacy-vehicle-image img { height: 170px; }
    .legacy-vehicle-price { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .summary-card dl { grid-template-columns: 1fr 1fr; }
    .summary-card dl div:first-child { grid-column: 1 / -1; }
    .bank-transfer-details dl { grid-template-columns: 1fr; }
    .step-actions .button { padding: 0 14px; font-size: .85rem; }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
