/* Drive Test Online — Professional SaaS Theme */

:root {
    --primary: #1F6B3A;
    --primary-dark: #164F2B;
    --secondary: #2E8B57;
    --accent: #3FA66A;
    --navy: #111111;
    --background: #F4F5F4;
    --surface: #FFFFFF;
    --border: #E2E5E2;
    --text: #121212;
    --muted: #6B7280;
    --success: #1F6B3A;
    --warning: #F59E0B;
    --danger: #DC2626;

    --ort-white: var(--surface);
    --ort-bg: var(--background);
    --ort-bg-alt: #ECEEEC;
    --ort-blue: var(--primary);
    --ort-blue-dark: var(--primary-dark);
    --ort-blue-light: var(--secondary);
    --ort-blue-pale: #E8F2EC;
    --ort-gold: var(--accent);
    --ort-text-muted: var(--muted);
    --ort-navy: var(--navy);
    --ort-radius: 0.875rem;
    --ort-radius-lg: 1.25rem;
    --ort-shadow: 0 8px 30px rgba(17, 17, 17, 0.08);
    --ort-shadow-lg: 0 18px 50px rgba(17, 17, 17, 0.12);

    --bs-primary: #1F6B3A;
    --bs-primary-rgb: 31, 107, 58;
    --bs-success: #1F6B3A;
    --bs-success-rgb: 31, 107, 58;
    --bs-warning: #F59E0B;
    --bs-danger: #DC2626;
    --bs-info: #2E8B57;
    --bs-link-color: #1F6B3A;
    --bs-link-hover-color: #164F2B;
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #121212;
    --bs-border-color: #E2E5E2;
    --bs-focus-ring-color: rgba(31, 107, 58, 0.25);
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--text);
    font-family: var(--bs-font-sans-serif);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: color 0.15s ease;
}

:focus-visible {
    outline: 3px solid rgba(31, 107, 58, 0.35);
    outline-offset: 2px;
}

/* Typography */
h1, .h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h2, .h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 1.125rem; color: var(--muted); }

.ort-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.ort-section-title {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.ort-section-lead {
    color: var(--muted);
    font-size: 1.125rem;
    max-width: 40rem;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    border-radius: 0.65rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-lg {
    padding: 0.85rem 1.6rem;
    border-radius: 0.75rem;
}

.btn-primary,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.85);
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(31, 107, 58, 0.22);
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-1px);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: #0c2748;
    border-color: #0c2748;
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--navy);
}

/* Top bar */
.ort-topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    padding: 0.55rem 0;
}

.ort-topbar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.ort-topbar a:hover {
    color: var(--accent);
}

/* Navbar */
.ort-navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0.65rem 0;
}

.ort-navbar.is-scrolled {
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
    border-bottom-color: var(--border);
}

.ort-navbar .navbar-brand {
    color: var(--navy) !important;
    padding: 0;
}

.ort-logo {
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.ort-logo-header {
    height: 52px;
    max-width: 260px;
}

.ort-logo-footer {
    height: 64px;
    max-width: 280px;
    background: #fff;
    border-radius: 0.65rem;
    padding: 0.45rem 0.7rem;
}

.ort-navbar .navbar-toggler {
    border-color: rgba(31, 107, 58, 0.2);
    padding: 0.45rem 0.65rem;
}

.ort-navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    position: relative;
}

.ort-navbar .nav-link:hover,
.ort-navbar .nav-link:focus {
    color: var(--primary) !important;
    background: var(--ort-blue-pale);
}

.ort-navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.ort-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.ort-navbar .btn-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
}

.ort-navbar .btn-outline-primary,
.ort-navbar .btn-primary {
    font-size: 0.9rem;
}

/* Page banner */
.ort-page-banner {
    background: linear-gradient(120deg, var(--navy) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: #fff;
    padding: 2.25rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.ort-page-banner::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -160px;
    background: radial-gradient(circle, rgba(63, 166, 106, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.ort-page-banner h1,
.ort-page-banner h2 {
    color: #fff;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.ort-page-banner p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0.5rem 0 0;
}

/* Hero — split modern composition */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(63, 166, 106, 0.18), transparent 28%),
        linear-gradient(160deg, #F4F8FD 0%, #EAF2FB 45%, #FFFFFF 100%);
    padding: 4.5rem 0 3.5rem;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.hero-copy .lead {
    color: var(--muted);
    margin-bottom: 1.75rem;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-visual {
    position: relative;
}

.hero-visual-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--ort-shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--navy);
}

.hero-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-visual-glow {
    position: absolute;
    inset: auto -10% -18% auto;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(63, 166, 106, 0.45), transparent 70%);
    z-index: -1;
    filter: blur(10px);
}

.hero-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 72px;
    background: var(--surface);
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* Sections */
.section-alt { background: var(--background); }
.section-white { background: var(--surface); }

.ort-content-section {
    padding: 5rem 0;
}

.ort-content-section h2 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 1rem;
}

.ort-content-section h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.ort-content-section p,
.ort-content-section li {
    line-height: 1.8;
    color: #334155;
}

/* Trust / benefit cards */
.ort-trust-strip {
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.ort-benefit-card,
.ort-step-card,
.ort-service-card,
.ort-why-card,
.ort-location-card,
.ort-blog-card,
.ort-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ort-radius);
    box-shadow: var(--ort-shadow);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ort-benefit-card,
.ort-step-card,
.ort-service-card,
.ort-why-card,
.ort-location-card,
.ort-blog-card {
    padding: 1.75rem;
}

.ort-benefit-card:hover,
.ort-step-card:hover,
.ort-service-card:hover,
.ort-blog-card:hover,
.ort-location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ort-shadow-lg);
    border-color: #C5DCCE;
}

.ort-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ort-blue-pale);
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.ort-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(31, 107, 58, 0.25);
}

.ort-service-card .test-icon,
.test-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.ort-service-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.75rem 0 1rem;
}

.ort-service-media {
    border-radius: 0.85rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--background);
}

.ort-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ort-feature-band {
    border: 1px solid var(--border);
    border-radius: var(--ort-radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--ort-shadow);
}

.ort-feature-band-media {
    min-height: 280px;
    background: #111;
}

.ort-feature-band-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.ort-feature-band-copy {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .ort-feature-band-copy {
        padding: 1.75rem 1.25rem 2rem;
    }
}

.ort-info-card {
    border-left: 4px solid var(--primary);
    padding: 1.5rem 1.75rem;
}

.ort-info-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--navy);
}

.ort-source-note {
    font-size: 0.875rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* FAQ accordion */
.ort-faq .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--ort-radius) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--surface);
}

.ort-faq .accordion-button {
    font-weight: 600;
    color: var(--navy);
    background: var(--surface);
    box-shadow: none;
}

.ort-faq .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--ort-blue-pale);
}

.ort-faq .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 107, 58, 0.15);
}

.ort-faq .accordion-body {
    color: #334155;
}

/* Blog cards */
.ort-blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ort-blog-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    overflow: hidden;
}

.ort-blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ort-blog-body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.ort-blog-feature-image img {
    max-height: 420px;
    object-fit: cover;
}

/* Cards */
.card {
    border-color: var(--border);
    border-radius: var(--ort-radius);
}

.card-header {
    background: var(--background);
    border-bottom-color: var(--border);
    color: var(--navy);
    font-weight: 600;
}

.test-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid var(--border) !important;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ort-shadow-lg) !important;
    border-color: #C5DCCE !important;
}

/* Test selection cards */
.test-select-card {
    border: 2px solid var(--border);
    border-radius: var(--ort-radius);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
    overflow: hidden;
}

.test-select-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--ort-shadow);
}

.test-select-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 107, 58, 0.16);
    background: linear-gradient(180deg, #F4F8FD 0%, #ffffff 45%);
}

.test-select-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.test-select-code {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.test-select-fees {
    background: var(--background);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.test-select-fees .total-row {
    border-top: 2px solid var(--primary);
    font-weight: 700;
    color: var(--navy);
}

.test-select-check {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all 0.2s;
}

.test-select-card.selected .test-select-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.test-price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.test-type-details h6 {
    color: var(--navy);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 1rem 0 0.45rem;
}

.test-type-details h6:first-child { margin-top: 0; }
.test-type-details ul,
.test-type-details ol { margin-bottom: 0.65rem; padding-left: 1.15rem; }
.test-type-details li { margin-bottom: 0.35rem; }
.test-type-details p { margin-bottom: 0.45rem; color: #4b5563; }

/* Booking flow */
.booking-flow-steps { gap: 0.25rem; }

.booking-flow-step {
    flex: 1 1 0;
    min-width: 4.5rem;
}

.booking-flow-marker {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--muted);
    transition: all 0.2s ease;
}

.booking-flow-step.is-complete .booking-flow-marker,
.booking-flow-step.is-current .booking-flow-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 107, 58, 0.25);
}

.booking-flow-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.booking-flow-step.is-current .booking-flow-label {
    color: var(--navy);
}

.booking-flow-connector {
    height: 2px;
    background: var(--border);
    margin-top: 1.2rem;
    min-width: 1rem;
}

.booking-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--ort-radius-lg);
    box-shadow: var(--ort-shadow);
    overflow: hidden;
}

.booking-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.booking-map {
    height: 420px;
    min-height: 280px;
    background: #e8eef5;
}

.location-city-list {
    max-height: 360px;
    overflow-y: auto;
}

.location-city-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 0.9rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.15s ease;
}

.location-city-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #c5d5ea;
    border-radius: 0.25rem;
    margin-right: 0.55rem;
    color: transparent;
    font-size: 0.75rem;
    vertical-align: middle;
}

.location-city-item.selected .location-city-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.location-city-item:hover,
.location-city-item.selected {
    background: var(--ort-blue-pale);
}

.location-city-item.selected {
    border-left: 4px solid var(--primary);
}

.location-city-name {
    font-weight: 600;
    color: var(--navy);
}

.location-city-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}

.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.booking-cal-day {
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    background: #fff;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.15s ease;
}

.booking-cal-day.is-available:hover {
    border-color: var(--secondary);
    background: var(--ort-blue-pale);
}

.booking-cal-day.is-selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.booking-cal-day.is-disabled {
    background: #f3f5f8;
    color: #adb5bd;
    cursor: not-allowed;
}

.legend-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.legend-available { background: var(--ort-blue-pale); border: 1px solid var(--secondary); }
.legend-unavailable { background: #f3f5f8; border: 1px solid #dee2e6; }
.legend-selected { background: var(--primary); }

.booking-time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.booking-time-slot {
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.65rem 0.5rem;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.15s ease;
}

.booking-time-slot:hover,
.booking-time-slot.is-selected {
    border-color: var(--primary);
    background: var(--ort-blue-pale);
}

.booking-time-slot.is-selected {
    background: var(--primary);
    color: #fff;
}

/* Checkout */
.checkout-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

.checkout-panel,
.confirmation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--ort-radius-lg);
    box-shadow: var(--ort-shadow);
    padding: 1.5rem;
}

.checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    background: var(--ort-blue-pale);
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
}

.checkout-trust i {
    color: var(--primary);
}

.checkout-summary-grid {
    display: grid;
    gap: 1rem;
}

.checkout-summary-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.checkout-summary-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.checkout-summary-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.confirmation-hero {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.confirmation-hero .check-circle {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Alerts */
.alert-info {
    background: var(--ort-blue-pale);
    border-color: #C5DCCE;
    color: var(--navy);
}

.alert-success {
    background: #ECFDF3;
    border-color: #A7F3D0;
    color: #065F46;
}

.alert-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.alert-danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 0.65rem;
    border-color: var(--border);
    padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(31, 107, 58, 0.15);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

/* Footer */
.ort-footer {
    background: linear-gradient(180deg, var(--navy) 0%, #04101f 100%);
    color: rgba(255, 255, 255, 0.88);
    padding-top: 4rem !important;
}

.ort-footer h5,
.ort-footer .footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.ort-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.15s;
}

.ort-footer a:hover {
    color: #fff;
}

.ort-footer hr {
    border-color: rgba(255, 255, 255, 0.12);
}

.ort-footer .footer-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 22rem;
}

.ort-footer .footer-contact a {
    color: var(--accent);
    font-weight: 600;
}

.ort-footer p,
.ort-footer .small {
    color: rgba(255, 255, 255, 0.75) !important;
}

main h1,
main h2 {
    color: var(--navy);
}

.ort-page-banner h1,
.ort-page-banner h2 {
    color: #fff !important;
}

.badge.bg-primary,
.bg-primary:not(.btn):not(.bg-primary-subtle) {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.badge.bg-success,
.bg-success:not(.btn):not(.bg-success-subtle) {
    background-color: var(--success) !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: #111 !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
    color: #fff !important;
}

.badge.bg-info,
.bg-info:not(.btn) {
    background-color: var(--secondary) !important;
    color: #fff !important;
}

.table thead th {
    background: var(--background);
    color: var(--navy);
    border-bottom-width: 2px;
}

.legal-content h2 { color: var(--navy); }
.legal-content h3 { color: var(--primary); }

.text-ort-blue { color: var(--primary) !important; }
.bg-ort-pale { background: var(--background) !important; }
.cursor-pointer { cursor: pointer; }

body.ort-admin-body { background: var(--background); }

.admin-sidebar {
    background: linear-gradient(180deg, var(--navy) 0%, var(--primary-dark) 100%) !important;
    color: #fff;
    min-height: 100vh;
    width: 260px;
    flex-shrink: 0;
}

.admin-sidebar .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 0.5rem;
    margin: 0.15rem 0.5rem;
    padding: 0.55rem 0.85rem !important;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:focus {
    background: rgba(63, 166, 106, 0.18) !important;
    color: #fff !important;
}

.stat-card { border-left-color: var(--primary) !important; }
.stat-card.success { border-left-color: var(--success) !important; }

.book-road-test-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    border-radius: var(--ort-radius-lg);
    color: #fff;
    box-shadow: 0 16px 40px rgba(31, 107, 58, 0.22);
}

.book-road-test-cta h2,
.book-road-test-cta p,
.book-road-test-cta li,
.book-road-test-cta .lead,
.book-road-test-cta .small {
    color: #fff;
}

.book-road-test-cta .btn-light {
    font-weight: 700;
    color: var(--navy);
}

/* Motion */
@keyframes ort-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ort-animate {
    animation: ort-fade-up 0.55s ease both;
}

.ort-animate-delay-1 { animation-delay: 0.08s; }
.ort-animate-delay-2 { animation-delay: 0.16s; }
.ort-animate-delay-3 { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .ort-animate,
    .ort-benefit-card,
    .ort-service-card,
    .btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* White text on solid brand surfaces */
.ort-topbar,
.ort-footer,
.test-select-code,
.test-icon,
.booking-flow-step.is-complete .booking-flow-marker,
.booking-flow-step.is-current .booking-flow-marker,
.booking-cal-day.is-selected,
.test-select-card.selected .test-select-check,
.ort-step-number,
.btn-primary,
.btn-success,
.btn-navy {
    color: #fff;
}

.error-404-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ort-navbar .d-flex.gap-2 {
        flex-wrap: wrap;
        padding: 0.75rem 0 1rem;
    }

    .ort-navbar .nav-link.active::after {
        display: none;
    }

    .hero-section {
        padding: 2.75rem 0 2rem;
    }

    .hero-visual {
        margin-top: 1.5rem;
    }

    .booking-flow-steps {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767.98px) {
    .ort-topbar {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
        line-height: 1.35;
    }

    .ort-logo-header {
        height: 40px;
        max-width: 170px;
    }

    .ort-logo-footer {
        height: 48px;
        max-width: 200px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .ort-content-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .booking-map { height: 260px; }

    .booking-flow-step { min-width: 3.75rem; }
    .booking-flow-label { font-size: 0.62rem; }

    .card-footer.d-flex {
        flex-direction: column-reverse;
        gap: 0.65rem;
        align-items: stretch !important;
    }

    .card-footer .btn { width: 100%; }

    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }

    body.ort-admin-body .d-flex {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-sm,
    .container-md {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .ort-logo-header {
        height: 34px;
        max-width: 140px;
    }
}
