/* Drive Test Ontario — Hostinger-inspired Purple Theme */

:root {
    --ort-white: #ffffff;
    --ort-bg: #f8f6ff;
    --ort-bg-alt: #f0ebff;

    --ort-blue: #673de6;
    --ort-blue-dark: #2f1c6a;
    --ort-blue-light: #8c69ff;
    --ort-blue-pale: #f0ebff;
    --ort-gold: #fc5185;
    --ort-text-muted: #6b7280;

    --bs-primary: #673de6;
    --bs-primary-rgb: 103, 61, 230;
    --bs-success: #673de6;
    --bs-success-rgb: 103, 61, 230;
    --bs-link-color: #673de6;
    --bs-link-hover-color: #2f1c6a;
    --bs-body-bg: #ffffff;
    --bs-body-color: #1f2937;
    --bs-border-color: #e4ddff;
    --bs-focus-ring-color: rgba(103, 61, 230, 0.25);
}

body {
    background-color: var(--ort-white);
    color: var(--bs-body-color);
}

/* Top announcement bar */
.ort-topbar {
    background: linear-gradient(90deg, var(--ort-blue-dark) 0%, var(--ort-blue) 55%, var(--ort-blue-light) 100%);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.ort-topbar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.ort-topbar a:hover {
    color: #ffe3ec;
}

/* Navbar — light Hostinger-style bar */
.ort-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 16px rgba(47, 28, 106, 0.08);
}

.ort-navbar .navbar-brand {
    color: var(--ort-blue-dark) !important;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.ort-logo {
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.ort-logo-header {
    height: 56px;
    max-width: 280px;
}

.ort-logo-footer {
    height: 72px;
    max-width: 320px;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ort-navbar .navbar-toggler {
    border-color: rgba(47, 28, 106, 0.25);
}

.ort-navbar .navbar-toggler-icon {
    filter: none;
}

.ort-navbar .nav-link {
    color: var(--ort-blue-dark) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
}

.ort-navbar .nav-link:hover,
.ort-navbar .nav-link:focus {
    color: var(--ort-blue) !important;
    background: var(--ort-blue-pale);
}

.ort-navbar .btn-link.text-ort-blue {
    color: var(--ort-blue) !important;
}

.ort-navbar .btn-outline-primary {
    color: var(--ort-blue);
    border-color: var(--ort-blue);
}

.ort-navbar .btn-outline-primary:hover {
    background: var(--ort-blue);
    color: #fff;
    border-color: var(--ort-blue);
}

.ort-navbar .btn-primary {
    background: var(--ort-blue);
    border-color: var(--ort-blue);
    color: #fff;
}

.ort-navbar .btn-primary:hover {
    background: var(--ort-blue-dark);
    border-color: var(--ort-blue-dark);
    color: #fff;
}

.ort-navbar .dropdown-menu {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 8px 24px rgba(47, 28, 106, 0.12);
}

.ort-navbar .dropdown-item:hover {
    background: var(--ort-blue-pale);
    color: var(--ort-blue-dark);
}

/* Buttons — all primary actions use blue */
.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(--ort-blue);
    --bs-btn-border-color: var(--ort-blue);
    --bs-btn-hover-bg: var(--ort-blue-dark);
    --bs-btn-hover-border-color: var(--ort-blue-dark);
    --bs-btn-active-bg: var(--ort-blue-dark);
    --bs-btn-active-border-color: var(--ort-blue-dark);
    font-weight: 600;
}

.btn-outline-primary {
    --bs-btn-color: var(--ort-blue);
    --bs-btn-border-color: var(--ort-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ort-blue);
    --bs-btn-hover-border-color: var(--ort-blue);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ort-blue-dark);
    --bs-btn-active-border-color: var(--ort-blue-dark);
}

.btn-outline-success {
    --bs-btn-color: var(--ort-blue);
    --bs-btn-border-color: var(--ort-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ort-blue);
    --bs-btn-hover-border-color: var(--ort-blue);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ort-blue-dark);
    --bs-btn-active-border-color: var(--ort-blue-dark);
}

/* Page banner (wizard / inner pages) */
.ort-page-banner {
    background: linear-gradient(90deg, var(--ort-blue-dark) 0%, var(--ort-blue) 100%);
    color: #fff;
    padding: 1.75rem 0;
    margin-bottom: 2rem;
}

.ort-page-banner h1,
.ort-page-banner h2 {
    color: #fff;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.ort-page-banner p,
.ort-page-banner .opacity-75,
.ort-page-banner .opacity-90 {
    color: #fff;
    margin: 0;
}

.ort-page-banner p {
    font-size: 1rem;
    font-weight: 400;
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-section.hero-with-image {
    background: url('/images/hero-road-test.jpg') center center / cover no-repeat;
}

.hero-section.hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(47, 28, 106, 0.9) 0%,
        rgba(103, 61, 230, 0.78) 45%,
        rgba(140, 105, 255, 0.55) 100%
    );
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section .lead,
.hero-section .badge.bg-primary,
.hero-section .opacity-75,
.hero-section .opacity-90 {
    color: #fff !important;
}

.hero-section .hero-tagline {
    color: #fff !important;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.hero-section .hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.hero-section .hero-card i {
    color: var(--ort-gold);
}

/* Below-hero image band */
.hero-below-image {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ort-blue-dark);
}

.hero-below-image-media {
    position: absolute;
    inset: 0;
}

.hero-below-image-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-below-image-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 0;
    color: #fff;
}

.hero-below-image-content h2,
.hero-below-image-content p,
.hero-below-image-content .lead {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .hero-below-image {
        min-height: 320px;
    }

    .hero-below-image-content {
        padding: 3rem 0;
    }
}

/* Sections */
.section-alt { background: var(--ort-bg); }
.section-white { background: var(--ort-white); }

.ort-content-section {
    padding: 4rem 0;
}

.ort-content-section h2 {
    color: var(--ort-blue-dark);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--ort-blue);
    display: inline-block;
}

.ort-content-section h3 {
    color: var(--ort-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.ort-content-section p,
.ort-content-section li {
    line-height: 1.8;
    color: #374151;
}

.ort-info-card {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid var(--ort-blue);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(103, 61, 230, 0.06);
}

.ort-info-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.ort-source-note {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
}

/* Cards */
.card {
    border-color: var(--bs-border-color);
    border-radius: 0.75rem;
}

.card-header {
    background: var(--ort-bg);
    border-bottom-color: var(--bs-border-color);
    color: var(--ort-blue-dark);
    font-weight: 600;
}

.test-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid var(--bs-border-color) !important;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(103, 61, 230, 0.12) !important;
    border-color: var(--ort-blue-light) !important;
}

.test-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--ort-blue) 0%, var(--ort-blue-light) 100%);
    color: #fff;
}

/* Test selection cards (booking wizard) */
.test-select-card {
    border: 2px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
    overflow: hidden;
}

.test-select-card:hover {
    border-color: var(--ort-blue-light);
    box-shadow: 0 8px 24px rgba(103, 61, 230, 0.1);
}

.test-select-card.selected {
    border-color: var(--ort-blue);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.18);
    background: linear-gradient(180deg, #f8f6ff 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(--ort-blue-dark) 0%, var(--ort-blue) 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.test-select-fees {
    background: var(--ort-bg);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.test-select-fees .total-row {
    border-top: 2px solid var(--ort-blue);
    font-weight: 700;
    color: var(--ort-blue-dark);
}

.test-select-check {
    width: 28px;
    height: 28px;
    border: 2px solid var(--bs-border-color);
    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(--ort-blue);
    border-color: var(--ort-blue);
    color: #fff;
}

.test-price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ort-blue);
    line-height: 1.1;
}

.test-type-details h6 {
    color: var(--ort-blue-dark);
    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;
}

/* Wizard progress */
.wizard-progress .step-circle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.wizard-progress .border-top {
    border-color: var(--bs-border-color) !important;
}

/* Alerts */
.alert-info {
    background: var(--ort-blue-pale);
    border-color: #d4c6ff;
    color: var(--ort-blue-dark);
}

.alert-success {
    background: var(--ort-blue-pale);
    border-color: #d4c6ff;
    color: var(--ort-blue-dark);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--ort-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(103, 61, 230, 0.15);
}

.form-check-input:checked {
    background-color: var(--ort-blue);
    border-color: var(--ort-blue);
}

/* Footer */
.ort-footer {
    background: linear-gradient(180deg, var(--ort-blue-dark) 0%, #1a1040 100%);
    color: rgba(255, 255, 255, 0.88);
}

.ort-footer h5 {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid var(--ort-gold);
    display: inline-block;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
}

.ort-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.ort-footer a:hover {
    color: #fff;
}

.ort-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

main h1,
main h2 {
    color: var(--ort-blue-dark);
}

/* Keep white text on blue page sections (override main heading rule) */
.ort-page-banner h1,
.ort-page-banner h2,
.hero-section h1,
.hero-section h2,
.hero-section .display-5,
.book-road-test-cta h2 {
    color: #fff !important;
}

.badge.bg-primary,
.bg-primary:not(.btn):not(.bg-primary-subtle) {
    background-color: var(--ort-blue) !important;
    color: #fff !important;
}

.badge.bg-success,
.bg-success:not(.btn):not(.bg-success-subtle) {
    background-color: var(--ort-blue-light) !important;
    color: #fff !important;
}

.badge.bg-info,
.bg-info:not(.btn) {
    background-color: var(--ort-blue-light) !important;
    color: #fff !important;
}

.table thead th {
    background: var(--ort-bg);
    color: var(--ort-blue-dark);
    border-bottom-width: 2px;
}

.legal-content h2 { color: var(--ort-blue-dark); }
.legal-content h3 { color: var(--ort-blue); }

.text-ort-blue { color: var(--ort-blue) !important; }
.bg-ort-pale { background: var(--ort-bg) !important; }
.cursor-pointer { cursor: pointer; }

body.ort-admin-body { background: var(--ort-bg); }

.admin-sidebar {
    background: linear-gradient(180deg, var(--ort-blue-dark) 0%, var(--ort-blue) 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.375rem;
    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: var(--ort-blue-light) !important;
    color: #fff !important;
}

.admin-sidebar button.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.admin-sidebar button.nav-link:hover {
    color: #fff !important;
}

.stat-card { border-left-color: var(--ort-blue) !important; }
.stat-card.success { border-left-color: var(--ort-blue-light) !important; }

/* 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(--bs-border-color);
    background: #fff;
    color: var(--ort-text-muted);
    transition: all 0.2s ease;
}

.booking-flow-step.is-complete .booking-flow-marker,
.booking-flow-step.is-current .booking-flow-marker {
    background: var(--ort-blue);
    border-color: var(--ort-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.25);
}

.booking-flow-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ort-text-muted);
}

.booking-flow-step.is-current .booking-flow-label {
    color: var(--ort-blue-dark);
}

.booking-flow-connector {
    height: 2px;
    background: var(--bs-border-color);
    margin-top: 1.2rem;
    min-width: 1rem;
}

.booking-panel {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(103, 61, 230, 0.06);
    overflow: hidden;
}

.booking-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--ort-bg);
}

.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(--bs-border-color);
    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(--ort-blue);
    border-color: var(--ort-blue);
    color: #fff;
}

.location-city-item:hover,
.location-city-item.selected {
    background: var(--ort-blue-pale);
}

.location-city-item.selected {
    border-left: 4px solid var(--ort-blue);
}

.location-city-name {
    font-weight: 600;
    color: var(--ort-blue-dark);
}

.location-city-meta {
    font-size: 0.8rem;
    color: var(--ort-text-muted);
}

.booking-notice {
    line-height: 1.6;
}

.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(--ort-text-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(--ort-blue-dark);
    transition: all 0.15s ease;
}

.booking-cal-day.is-available:hover {
    border-color: var(--ort-blue-light);
    background: var(--ort-blue-pale);
}

.booking-cal-day.is-selected {
    background: var(--ort-blue);
    color: #fff;
    border-color: var(--ort-blue);
}

.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(--ort-blue-light); }
.legend-unavailable { background: #f3f5f8; border: 1px solid #dee2e6; }
.legend-selected { background: var(--ort-blue); }

.booking-time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.booking-time-slot {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.65rem 0.5rem;
    font-weight: 600;
    color: var(--ort-blue-dark);
    transition: all 0.15s ease;
}

.booking-time-slot:hover,
.booking-time-slot.is-selected {
    border-color: var(--ort-blue);
    background: var(--ort-blue-pale);
}

.booking-time-slot.is-selected {
    background: var(--ort-blue);
    color: #fff;
}

/* ─── Global: white text on any solid blue surface ─── */
.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,
.btn-primary,
.btn-success,
.btn-primary:hover,
.btn-success:hover {
    color: #fff;
}

.ort-footer p,
.ort-footer .small,
.ort-footer .text-light-emphasis {
    color: rgba(255, 255, 255, 0.88) !important;
}

.checkout-summary-grid {
    display: grid;
    gap: 1rem;
}

.checkout-summary-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.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(--ort-text-muted);
    margin-bottom: 0.2rem;
}

.book-road-test-cta {
    background: linear-gradient(135deg, var(--ort-blue-dark) 0%, var(--ort-blue) 55%, var(--ort-blue-light) 100%);
    border-radius: 1.25rem;
    color: #fff;
    box-shadow: 0 16px 40px rgba(103, 61, 230, 0.2);
}

.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,
.book-road-test-cta .opacity-75,
.book-road-test-cta .opacity-90 {
    color: #fff;
}

.book-road-test-cta .btn-light {
    font-weight: 700;
    padding: 0.85rem 2rem;
    color: var(--ort-blue-dark);
}

@media (max-width: 991.98px) {
    .ort-navbar .d-flex.gap-2 {
        flex-wrap: wrap;
        padding: 0.75rem 0 1rem;
    }

    .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.4rem 0.5rem;
        line-height: 1.35;
    }

    .ort-logo-header {
        height: 40px;
        max-width: 170px;
    }

    .ort-logo-footer {
        height: 52px;
        max-width: 200px;
    }

    .hero-section {
        min-height: 0;
    }

    .hero-section .container {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-section .display-5,
    .hero-section h1 {
        font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
        line-height: 1.2;
    }

    .hero-section .hero-tagline,
    .hero-section .display-6 {
        font-size: clamp(1.15rem, 5.5vw, 1.6rem) !important;
        margin-bottom: 1rem !important;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn-lg {
        display: block;
        width: 100%;
        margin: 0 0 0.65rem !important;
    }

    .book-road-test-cta {
        border-radius: 1rem;
        padding: 1.25rem !important;
    }

    .book-road-test-cta .display-6 {
        font-size: 1.45rem !important;
    }

    .book-road-test-cta .btn-lg {
        width: 100%;
    }

    .ort-content-section {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .ort-content-section h2,
    main h1,
    main h2 {
        font-size: 1.45rem;
    }

    .ort-info-card {
        padding: 1.1rem;
    }

    .test-card {
        margin-bottom: 0;
    }

    .booking-map {
        height: 260px;
    }

    .booking-time-slots {
        grid-template-columns: 1fr 1fr;
    }

    .booking-flow-step {
        min-width: 3.75rem;
    }

    .booking-flow-label {
        font-size: 0.62rem;
    }

    .booking-panel-header,
    .booking-panel-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .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;
    }

    .admin-content {
        padding: 1rem;
    }

    .table-responsive {
        margin-bottom: 1rem;
    }

    .ort-footer .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-sm,
    .container-md {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
}

/* 404 error page */
.error-404-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--ort-blue);
    letter-spacing: 0.04em;
}
