:root {
    --ink: #0f172a;
    --paper: #f8fafc;
    --white: #ffffff;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-soft: #dbeafe;
    --danger: #b42318;
    --radius: 16px;
    --container: min(1120px, calc(100% - 32px));
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body::before {
    position: fixed;
    z-index: -1;
    inset: 64px 0 auto;
    height: 250px;
    background: radial-gradient(circle at 78% 30%, rgba(59,130,246,.2), transparent 33%), linear-gradient(135deg, #0f172a, #1e293b);
    content: "";
}
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: var(--container); margin-inline: auto; }
.flow-header {
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: var(--ink);
    color: white;
}
.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -.06em;
}
.brand span { color: var(--accent); }
.brand small {
    margin-left: 8px;
    color: #94a3b8;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.back-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 720;
}
.back-link:hover { color: white; }
.language-switch {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
}
.language-switch a {
    min-width: 32px;
    padding: 5px 7px;
    border-radius: 999px;
    color: #94a3b8;
    text-align: center;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 800;
}
.language-switch a.active { background: var(--accent); color: white; }

.booking-main { padding: 32px 0 48px; }
.booking-layout {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: 0 18px 48px rgba(15,23,42,.13);
}
.vehicle-panel {
    padding: 24px;
    border-right: 1px solid var(--line);
    background: #f8fafc;
}
.vehicle-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.5;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 72%, white 0, #eef2f7 62%, #e2e8f0 100%);
}
.vehicle-media::after {
    position: absolute;
    right: 20%;
    bottom: 9%;
    left: 20%;
    height: 7%;
    border-radius: 50%;
    background: rgba(15,23,42,.18);
    filter: blur(12px);
    content: "";
}
.vehicle-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}
body.original-images .vehicle-media::after { opacity: 0; }
body.original-images .vehicle-media img { padding: 0; object-fit: cover; }
.vehicle-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}
.vehicle-heading h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}
.vehicle-specs { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.minimum-price { flex: 0 0 auto; text-align: right; }
.minimum-price div { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.minimum-price div span { color: var(--muted); font-size: .74rem; font-weight: 720; }
.minimum-price strong { font-size: 1.65rem; letter-spacing: -.055em; }
.minimum-price > span { display: block; margin-top: -3px; color: var(--muted); font-size: .68rem; }
.rates-title { margin: 18px 0 0; font-size: .87rem; }
.image-switch {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
}
.image-switch button {
    min-height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 760;
    cursor: pointer;
}
.image-switch button.active { background: var(--ink); color: white; }
.image-switch-overlay {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    border-color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 22px rgba(15,23,42,.14);
    backdrop-filter: blur(10px);
}
.rates { margin-top: 9px; border-top: 1px solid var(--line); }
.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
}
.rate-row strong { color: var(--ink); }
.booking-panel { padding: 28px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: .72rem;
    font-weight: 820;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 2px; background: currentColor; content: ""; }
.booking-panel h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}
.form-intro { margin: 10px 0 20px; color: var(--muted); font-size: .92rem; }
.error-banner {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background: #fef3f2;
    color: var(--danger);
    font-size: .84rem;
    font-weight: 680;
}
.booking-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .78rem; font-weight: 740; }
.field > span small { margin-left: 4px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.field input,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    font: inherit;
    outline: 0;
}
.field textarea {
    min-height: 82px;
    padding-block: 10px;
    line-height: 1.45;
    resize: vertical;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }
.rental-period {
    min-width: 0;
    margin: 1px 0 0;
    padding: 10px 12px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f8fafc;
}
.rental-period legend {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 7px;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 780;
}
.rental-period legend span { font-size: .95rem; }
.date-fields {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.date-fields::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    color: var(--accent-dark);
    font-size: .78rem;
    font-weight: 850;
    transform: translate(-50%, -50%);
    content: "→";
}
.date-card {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.date-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.date-card > span { color: var(--muted); font-size: .67rem; font-weight: 740; }
.date-card input {
    width: 100%;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 720;
    outline: 0;
}
.date-card input:focus { box-shadow: none; }
.date-card input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .62; }

.flatpickr-calendar {
    width: 318px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    box-shadow: 0 18px 48px rgba(15,23,42,.18);
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none; }
.flatpickr-months {
    align-items: center;
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
}
.flatpickr-months .flatpickr-month {
    height: 42px;
    color: var(--ink);
}
.flatpickr-current-month {
    height: 42px;
    padding-top: 10px;
    font-size: .95rem;
    font-weight: 780;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--ink);
    font-weight: 780;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none;
    background: transparent;
}
.flatpickr-current-month .numInputWrapper { width: 68px; }
.flatpickr-current-month .numInputWrapper span { border-color: var(--line); }
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 8px;
    color: var(--accent-dark);
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: currentColor; }
.flatpickr-weekdays { height: 34px; margin-top: 5px; }
span.flatpickr-weekday {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 780;
}
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}
.flatpickr-day {
    max-width: none;
    height: 38px;
    border-radius: 9px;
    color: var(--ink);
    line-height: 38px;
    font-weight: 650;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
    border-color: var(--accent-soft);
    background: #eff6ff;
    color: var(--accent-dark);
}
.flatpickr-day.today {
    border-color: var(--accent);
    color: var(--accent-dark);
    font-weight: 850;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: none;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    border-color: transparent;
    background: transparent;
    color: #cbd5e1;
}
.estimate {
    min-height: 83px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
}
.estimate-label { margin: 0 0 5px; color: #1e3a8a; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.estimate-placeholder { margin: 0; color: var(--muted); font-size: .84rem; }
.estimate-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.estimate-values div { min-width: 0; }
.estimate-values span { display: block; color: var(--muted); font-size: .66rem; }
.estimate-values strong { display: block; font-size: .95rem; }
.submit-button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 22px rgba(37,99,235,.2);
    font-weight: 780;
    cursor: pointer;
}
.submit-button:hover { background: var(--accent-dark); }
.submit-button:disabled { cursor: wait; opacity: .72; }
.form-note { margin: -2px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.not-found {
    max-width: 620px;
    margin: 60px auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    text-align: center;
    box-shadow: 0 18px 48px rgba(15,23,42,.12);
}
.not-found h1 { margin: 0 0 10px; font-size: 2rem; letter-spacing: -.04em; }
.not-found p { margin: 0 0 20px; color: var(--muted); }
.primary-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 760;
}

.thanks-main { display: grid; place-items: center; min-height: calc(100vh - 64px); padding: 32px 16px; }
.thanks-card {
    width: min(650px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: 0 18px 48px rgba(15,23,42,.14);
    text-align: center;
}
.success-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 1.5rem;
    font-weight: 900;
}
.thanks-card h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -.055em;
    line-height: 1.04;
}
.thanks-card .eyebrow { justify-content: center; }
.thanks-lead { max-width: 520px; margin: 13px auto 0; color: var(--muted); }
.confirmation-note {
    margin: 18px 0;
    padding: 11px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .83rem;
    font-weight: 700;
}
.thanks-prompt { margin: 0 0 10px; font-size: .86rem; font-weight: 760; }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.contact-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    font-size: .83rem;
    font-weight: 750;
}
.contact-button.primary { grid-column: 1 / -1; border-color: var(--accent); background: var(--accent); color: white; }
.thanks-home { display: inline-block; margin-top: 18px; color: var(--muted); font-size: .8rem; font-weight: 700; text-underline-offset: 4px; }

.flow-footer { padding: 0 0 24px; color: var(--muted); text-align: center; font-size: .74rem; }

@media (max-width: 820px) {
    .booking-layout { grid-template-columns: 1fr; }
    .vehicle-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .vehicle-media { aspect-ratio: 1.8; }
}

@media (max-width: 560px) {
    :root { --container: min(100% - 20px, 1120px); --radius: 14px; }
    body::before { height: 190px; }
    .header-inner { min-height: 60px; }
    .brand small, .header-actions .back-link { display: none; }
    .booking-main { padding: 16px 0 30px; }
    .booking-layout { border-radius: 15px; }
    .vehicle-panel, .booking-panel { padding: 18px; }
    .vehicle-media { aspect-ratio: 1.5; }
    .vehicle-heading { gap: 10px; margin-top: 14px; }
    .minimum-price strong { font-size: 1.4rem; }
    .date-fields { grid-template-columns: 1fr; }
    .date-fields::after { content: "↓"; }
    .flatpickr-calendar { width: calc(100vw - 24px); max-width: 340px; }
    .estimate-values { grid-template-columns: 1fr; gap: 5px; }
    .estimate-values div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
    .thanks-card { padding: 24px 18px; border-radius: 16px; }
    .contact-buttons { grid-template-columns: 1fr; }
    .contact-button.primary { grid-column: auto; }
}
