/* ==========================================================================
   Rent-a-Car — public site stylesheet
   Vanilla CSS, mobile-first. Breakpoints: 640px / 900px / 1200px.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
    --brand: #0e3a53;
    --brand-dark: #0a2b3e;
    --brand-light: #155a80;
    --brand-tint: #e7eff4;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-tint: #fef3c7;

    --ink: #16303d;
    --text: #33454e;
    --muted: #64748b;
    --line: #dfe6ec;
    --bg: #f6f8fa;
    --card: #ffffff;

    --success: #15803d;
    --success-bg: #ecfdf3;
    --success-line: #b5e5c8;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --danger-line: #f3c4c4;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(14, 42, 62, 0.08), 0 1px 2px rgba(14, 42, 62, 0.05);
    --shadow-md: 0 8px 24px rgba(14, 42, 62, 0.12);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

img,
svg,
iframe {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 var(--space-3);
    font-weight: 700;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }

p {
    margin: 0 0 var(--space-3);
}

ul, ol, dl, dd, figure {
    margin: 0;
    padding: 0;
}

a {
    color: var(--brand-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand);
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

/* ---------------------------------------------------------------- layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-7) 0;
}

.section-alt {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-slim {
    padding: var(--space-6) 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-5);
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    flex-basis: 100%;
}

.section-head-center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.section-link {
    font-weight: 600;
    white-space: nowrap;
}

.page-head {
    background: linear-gradient(160deg, var(--brand-dark), var(--brand) 70%, var(--brand-light));
    color: #d7e5ee;
    padding: var(--space-6) 0;
}

.page-head h1 {
    color: #fff;
    margin-bottom: var(--space-2);
}

.page-head p {
    margin: 0;
    max-width: 62ch;
}

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-light);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #3c2803;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.btn-lg {
    padding: 13px 28px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---------------------------------------------------------------- badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    background: var(--brand-tint);
    color: var(--brand);
}

.badge-category {
    background: var(--brand);
    color: #fff;
}

.badge-location {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.badge-pending {
    background: var(--accent-tint);
    color: #92400e;
}

/* ---------------------------------------------------------------- alerts */
.flash-container {
    padding-top: var(--space-4);
}

.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    margin-bottom: var(--space-4);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-line);
    color: var(--success);
}

.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger-line);
    color: var(--danger);
}

.alert-list {
    margin: var(--space-2) 0 0;
    padding-left: 20px;
}

.alert-hide {
    opacity: 0;
    transform: translateY(-6px);
}

/* ---------------------------------------------------------------- forms */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label,
.form-group > label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-1);
    font-size: 0.95rem;
}

.form-sublabel {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin: var(--space-2) 0 var(--space-1);
}

.form-hint-inline {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
}

.req {
    color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(21, 90, 128, 0.15);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.is-invalid {
    border-color: var(--danger);
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.field-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin: var(--space-1) 0 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--space-4);
}

.form-row-tight {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-2);
}

.form-row-sep {
    color: var(--muted);
}

.form-section {
    border: none;
    padding: 0;
    margin: 0 0 var(--space-5);
    min-width: 0;
}

.form-section legend {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    padding: 0;
    margin-bottom: var(--space-4);
}

.form-submit {
    margin-top: var(--space-4);
}

.form-smallprint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: var(--space-2) 0 0;
}

.fixed-car {
    font-weight: 600;
    color: var(--ink);
    background: var(--brand-tint);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 0;
}

/* checkbox list (extras) */
.checkbox-list {
    list-style: none;
    display: grid;
    gap: var(--space-2);
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.checkbox-item:hover {
    border-color: var(--brand-light);
}

.checkbox-item:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-tint);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--brand);
}

.checkbox-item-text {
    flex: 1;
    min-width: 0;
}

.checkbox-item-name {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.checkbox-item-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.checkbox-item-price {
    font-weight: 600;
    color: var(--brand);
    white-space: nowrap;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 64px;
    flex-wrap: wrap;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--brand);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.site-logo:hover {
    text-decoration: none;
    color: var(--brand-light);
}

.site-logo-text {
    color: var(--ink);
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: none;
    flex-basis: 100%;
}

.nav-open .site-nav {
    display: block;
    padding-bottom: var(--space-4);
}

.site-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.site-nav-list a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 600;
}

.site-nav-list a:hover {
    background: var(--brand-tint);
    text-decoration: none;
}

.site-nav-list a.active {
    color: var(--brand);
    background: var(--brand-tint);
}

.site-nav-cta {
    margin-top: var(--space-2);
}

.site-nav-cta .btn {
    display: block;
}

/* ---------------------------------------------------------------- hero */
.hero {
    background:
        radial-gradient(1200px 400px at 85% -50%, rgba(245, 158, 11, 0.25), transparent 60%),
        linear-gradient(160deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
    color: #d7e5ee;
    /* No bottom padding: the search widget card overlaps the hero bottom
       by exactly its negative margin (--space-8). */
    padding: var(--space-8) 0 0;
}

.hero-inner {
    max-width: 780px;
    text-align: center;
    margin-bottom: var(--space-6);
}

.hero-title {
    color: #fff;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 0;
}

.search-widget {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-5);
    margin-bottom: calc(-1 * var(--space-8));
    position: relative;
    z-index: 5;
}

.hero + * {
    padding-top: calc(var(--space-8) + var(--space-6));
}

.search-widget-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-1);
}

.search-widget-action {
    display: flex;
    align-items: flex-end;
}

.search-widget-action .btn {
    width: 100%;
}

/* ---------------------------------------------------------------- car cards */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.car-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.car-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.car-card-media {
    display: block;
    position: relative;
    aspect-ratio: 8 / 5;
    background: #e8edf1;
    overflow: hidden;
}

.car-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.car-card:hover .car-card-media img {
    transform: scale(1.04);
}

.car-card-media .badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}

.car-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-4);
}

.car-card-title {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.car-card-title a {
    color: var(--ink);
}

.car-card-title a:hover {
    color: var(--brand-light);
    text-decoration: none;
}

.car-card-year {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
}

.spec-icons {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
    color: var(--muted);
    font-size: 0.85rem;
}

.spec-icons li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spec-icons svg {
    color: var(--brand-light);
    flex-shrink: 0;
}

.car-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: var(--space-4);
}

.car-card-price {
    margin: 0;
    white-space: nowrap;
}

.price-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
}

.car-card-actions {
    display: flex;
    gap: var(--space-2);
}

/* ---------------------------------------------------------------- categories */
.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
}

.category-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-4);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.category-chip:hover {
    text-decoration: none;
    border-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-chip-name {
    font-weight: 700;
    color: var(--ink);
}

.category-chip-count {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------------------------------------------------------------- steps / benefits */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.step h3 {
    margin-bottom: var(--space-2);
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.steps-compact {
    gap: var(--space-4);
}

.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.benefit {
    text-align: center;
    padding: var(--space-4);
}

.benefit-icon {
    color: var(--accent-dark);
    margin-bottom: var(--space-3);
}

.benefit h3 {
    margin-bottom: var(--space-2);
}

.benefit p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------- CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    color: #d7e5ee;
    padding: var(--space-7) 0;
}

.cta-band-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: var(--space-1);
}

.cta-band p {
    margin: 0;
}

/* ---------------------------------------------------------------- fleet page */
.fleet-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-top: var(--space-5);
    padding-bottom: var(--space-7);
}

.filters {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    align-self: start;
}

.filters-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
}

.filters-actions {
    display: grid;
    gap: var(--space-2);
}

.results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.results-count {
    margin: 0;
    color: var(--muted);
}

.results-count strong {
    color: var(--ink);
    font-size: 1.1rem;
}

.sort-form {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.sort-form label {
    font-size: 0.9rem;
    color: var(--muted);
    white-space: nowrap;
}

.sort-form select {
    width: auto;
}

/* ---------------------------------------------------------------- empty state */
.empty-state {
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: var(--space-8) var(--space-5);
    color: var(--muted);
}

.empty-state svg {
    color: var(--brand-light);
    margin-bottom: var(--space-3);
    opacity: 0.6;
}

.empty-state h2 {
    margin-bottom: var(--space-2);
}

.empty-state .btn {
    margin-top: var(--space-3);
}

/* ---------------------------------------------------------------- breadcrumb */
.breadcrumb {
    padding: var(--space-4) 0 var(--space-2);
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin: 0 var(--space-2) 0 var(--space-1);
    color: var(--line);
}

/* ---------------------------------------------------------------- car detail */
.car-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8edf1;
    border: 1px solid var(--line);
    aspect-ratio: 8 / 5;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: none;
    cursor: pointer;
    width: 84px;
    aspect-ratio: 8 / 5;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.75;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    border-color: var(--brand);
    opacity: 1;
}

.car-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.car-detail-title {
    margin-bottom: var(--space-4);
}

.car-detail-year {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.75em;
}

.price-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.price-box-main {
    margin-bottom: var(--space-3);
}

.price-box-main .price-value {
    font-size: 2rem;
}

.price-box-details {
    list-style: none;
    display: grid;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------------------------------------------------------------- spec grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
}

.spec-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
}

.spec-item dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.spec-item dd {
    font-weight: 700;
    color: var(--ink);
}

.car-description {
    max-width: 75ch;
}

.booking-section-intro {
    color: var(--muted);
    max-width: 65ch;
}

/* ---------------------------------------------------------------- booking form */
.booking-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.booking-form-grid .form-section {
    margin-bottom: 0;
}

/* quote widget */
.quote-box {
    background: var(--brand-tint);
    border: 1px solid #c6d9e4;
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    margin-top: var(--space-4);
}

.quote-title {
    font-size: 1rem;
    margin-bottom: var(--space-3);
}

.quote-rows {
    display: grid;
    gap: var(--space-1);
}

.quote-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: 0.95rem;
}

.quote-row dt {
    color: var(--muted);
}

.quote-row dd {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.quote-row-total {
    border-top: 1px solid #c6d9e4;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    font-size: 1.05rem;
}

.quote-row-total dd {
    color: var(--brand);
    font-weight: 800;
}

.quote-warning {
    margin: var(--space-3) 0 0;
    padding: var(--space-2) var(--space-3);
    background: var(--accent-tint);
    border: 1px solid #f2d38c;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 0.9rem;
}

.quote-error {
    margin: var(--space-2) 0 0;
    color: var(--danger);
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- success page */
.success-page {
    max-width: 820px;
}

.success-head {
    text-align: center;
    margin-bottom: var(--space-5);
}

.success-icon {
    display: inline-flex;
    color: var(--success);
    background: var(--success-bg);
    border-radius: 50%;
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}

.success-code-label {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.success-code {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--brand);
    margin-bottom: var(--space-3);
}

.success-note {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--muted);
}

.success-note .badge {
    margin-right: var(--space-2);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.summary-card {
    margin-bottom: var(--space-6);
}

.summary-rows {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.summary-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--space-3);
    align-items: start;
}

.summary-row dt {
    color: var(--muted);
    font-size: 0.9rem;
    padding-top: 2px;
}

.summary-row dd {
    font-weight: 600;
    color: var(--ink);
}

.summary-muted {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.summary-extras {
    list-style: none;
    display: grid;
    gap: 2px;
    font-weight: 400;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-3);
}

.price-table th,
.price-table td {
    text-align: left;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
}

.price-table td {
    text-align: right;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.price-table-total th,
.price-table-total td {
    font-weight: 800;
    color: var(--brand);
    font-size: 1.05rem;
}

.success-next h2 {
    text-align: center;
    margin-bottom: var(--space-4);
}

.success-contact {
    text-align: center;
    color: var(--muted);
    margin: var(--space-5) 0;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.contact-card {
    margin-bottom: var(--space-4);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: var(--space-3);
}

.contact-list-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.contact-list a,
.contact-list span:not(.contact-list-label) {
    font-weight: 600;
    color: var(--ink);
}

.contact-list a:hover {
    color: var(--brand-light);
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-2);
    min-height: 220px;
    background: var(--brand-tint);
    border: 1px dashed #b5cbd8;
    border-radius: var(--radius);
    color: var(--brand);
    padding: var(--space-5);
}

.map-placeholder p {
    margin: 0;
    max-width: 34ch;
    color: var(--brand-dark);
    font-size: 0.92rem;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------- pagination */
.pagination {
    margin-top: var(--space-6);
}

.pagination-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    align-items: center;
}

.page-link {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink);
    font-weight: 600;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.page-link:hover {
    text-decoration: none;
    border-color: var(--brand-light);
    color: var(--brand);
}

.page-link.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.page-ellipsis {
    color: var(--muted);
    padding: 0 var(--space-1);
}

/* ---------------------------------------------------------------- prose */
.prose {
    max-width: 75ch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.prose h2 {
    margin: var(--space-5) 0 var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--line);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: var(--space-4) 0 var(--space-2);
}

.prose p {
    margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
    margin: 0 0 var(--space-4);
    padding-left: 24px;
}

.prose li {
    margin-bottom: var(--space-1);
}

.prose a {
    text-decoration: underline;
}

.prose img {
    border-radius: var(--radius-sm);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-4);
    display: block;
    overflow-x: auto;
}

.prose th,
.prose td {
    border: 1px solid var(--line);
    padding: var(--space-2) var(--space-3);
    text-align: left;
}

/* ---------------------------------------------------------------- error pages */
.error-page {
    text-align: center;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: var(--space-3);
    letter-spacing: 0.04em;
}

.error-page p {
    max-width: 50ch;
    margin: 0 auto var(--space-5);
    color: var(--muted);
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    background: var(--brand-dark);
    color: #a7bfcd;
    margin-top: var(--space-7);
    padding-top: var(--space-7);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-2);
}

.footer-col h3 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: var(--space-2);
}

.footer-links a {
    color: #a7bfcd;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

/* ---------------------------------------------------------------- honeypot safety net */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* ==========================================================================
   Breakpoint: 640px
   ========================================================================== */
@media (min-width: 640px) {
    h1 { font-size: 2.2rem; }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row .form-group {
        min-width: 0;
    }

    .search-widget {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-band-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Breakpoint: 900px
   ========================================================================== */
@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        flex-basis: auto;
    }

    .site-nav-list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-1);
    }

    .site-nav-list a {
        padding: 8px 14px;
    }

    .site-nav-cta {
        margin: 0 0 0 var(--space-3);
    }

    .hero-title {
        font-size: 3rem;
    }

    .search-widget {
        grid-template-columns: 1.4fr 1fr 1fr auto;
        align-items: end;
    }

    .fleet-layout {
        grid-template-columns: 280px 1fr;
        align-items: start;
    }

    .filters {
        position: sticky;
        top: 84px;
    }

    .car-detail {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }

    .booking-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        grid-template-columns: 2fr 3fr;
        align-items: start;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps-compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

/* ==========================================================================
   Breakpoint: 1200px
   ========================================================================== */
@media (min-width: 1200px) {
    .hero {
        padding-top: 96px;
    }

    .gallery-thumb {
        width: 96px;
    }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
