/* ==========================================================================
   Crescent Star Insurance (CSI) - Design System & UI Theme
   Matches the Dark Corporate Automobile Insurance Aesthetic
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #19181b;
    --bg-darker: #121114;
    --bg-card: #222126;
    --bg-card-hover: #29282f;
    --bg-elevated: #2d2b33;
    
    /* CSI Signature Lime Green */
    --lime-primary: #95c11f;
    --lime-hover: #a6d623;
    --lime-active: #84ad1a;
    --lime-glow: rgba(149, 193, 31, 0.28);
    --lime-subtle: rgba(149, 193, 31, 0.12);
    --lime-text: #a1d42a;

    /* Text Colors */
    --text-pure: #ffffff;
    --text-primary: #f2f1f5;
    --text-secondary: #c5c3cb;
    --text-muted: #8e8b97;
    --text-dark: #12190c;

    /* Borders */
    --border-color: #312f37;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-lime: rgba(149, 193, 31, 0.4);

    /* Footer Colors (from reference image) */
    --footer-green: #3e5d26;
    --footer-green-dark: #324c1e;
    --footer-green-light: #527933;
    --footer-bottom: #141315;
    --footer-text: #e6edd9;
    --footer-text-muted: #b9caa8;

    /* Status Colors */
    --status-ok: #2ebb66;
    --status-warn: #e59d24;
    --status-danger: #e24a4a;
    --status-info: #3ba4e6;

    /* Typography */
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Layout */
    --container-max: 1180px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Typography Headings */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--text-pure);
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--lime-text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--lime-hover);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* ==========================================================================
   Navigation Bar (Tailored for portal, sleek dark design, NOT copying the navbar)
   ========================================================================== */
.site-header {
    background: rgba(20, 19, 22, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 64px;
    width: auto;
    display: block;
    background: transparent;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0.2rem;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-pure);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lime-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-more {
    position: relative;
}

.nav-more > summary {
    list-style: none;
}

.nav-more > summary::-webkit-details-marker {
    display: none;
}

.nav-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-more-toggle:hover,
.nav-more[open] > .nav-more-toggle {
    color: var(--text-pure);
    border-color: var(--lime-primary);
}

.nav-more-dots {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.nav-more-dots i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.nav-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 11rem;
    padding: 0.4rem;
    background: var(--bg-card, #1c1b1f);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    z-index: 120;
}

.nav-more-item {
    display: block;
    padding: 0.65rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
}

.nav-more-item:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    background: var(--lime-primary);
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: 0 2px 8px var(--lime-glow);
    transition: var(--transition);
}

.btn:hover {
    background: var(--lime-hover);
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(149, 193, 31, 0.45);
    transform: translateY(-1px);
}

.btn:active {
    background: var(--lime-active);
    transform: translateY(0);
}

.btn-pill {
    border-radius: var(--radius-full);
    padding: 0.7rem 1.6rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lime-primary);
    color: var(--lime-text);
    box-shadow: none;
}

/* Unopened (Submitted) applications — light green Review CTA */
.btn-review-new,
a.btn-review-new {
    background: rgba(149, 193, 31, 0.18);
    color: var(--lime-text);
    border: 1px solid rgba(149, 193, 31, 0.45);
    box-shadow: none;
}

.btn-review-new:hover,
a.btn-review-new:hover {
    background: rgba(149, 193, 31, 0.28);
    color: var(--lime-text);
    border-color: var(--lime-primary);
    box-shadow: none;
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.nav-actions .nav-link-logout,
.nav-link-logout {
    color: #ff5252;
    font-weight: 600;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.4rem 0.2rem;
    text-decoration: none;
}

.nav-actions .nav-link-logout:hover,
.nav-link-logout:hover {
    color: #ff8a80;
    background: transparent;
}

.nav-actions .nav-link-logout::after,
.nav-link-logout::after {
    display: none;
}

/* Desktop: logout lives in the right-side nav-actions */
.nav .nav-link-logout-mobile {
    display: none;
}

.preferred-dates-list {
    margin-bottom: 0.85rem;
}

.preferred-date-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: stretch;
}

.preferred-date-row label {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    min-width: 0;
}

.preferred-date-row input[type="date"],
.preferred-date-row .preferred-visit-date {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.preferred-date-row .preferred-date-remove {
    justify-self: start;
    width: auto;
}

.preferred-date-add {
    margin-top: 0.15rem;
}

.login-forgot-link {
    margin: -0.35rem 0 0;
    font-size: 0.9rem;
}

.login-forgot-link a {
    color: var(--lime-text);
    text-decoration: none;
    font-weight: 600;
}

.login-forgot-link a:hover {
    text-decoration: underline;
}

@media (min-width: 641px) {
    .preferred-date-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .preferred-date-row .preferred-date-remove {
        justify-self: end;
        margin-bottom: 0.05rem;
    }
}

.schedule-date-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem 1rem;
    margin: 0 0 0.25rem;
    background: #1f1e23;
}

.schedule-date-fieldset legend {
    padding: 0 0.35rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--lime-text);
}

.schedule-preferred-options {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.form-stack .schedule-date-option,
.schedule-date-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #18171c;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.35;
}

.form-stack .schedule-date-option:has(input:checked),
.schedule-date-option:has(input:checked) {
    border-color: var(--border-lime);
    background: rgba(149, 193, 31, 0.08);
    color: var(--text-pure);
}

.form-stack .schedule-date-option input[type="radio"],
.schedule-date-option input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--lime-primary);
}

.schedule-date-option span {
    flex: 1;
    min-width: 0;
}

.form-stack .schedule-custom-date,
.schedule-custom-date {
    display: grid;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.form-stack .schedule-custom-date[hidden],
.schedule-custom-date[hidden] {
    display: none !important;
}

.btn-lg {
    padding: 0.85rem 1.9rem;
    font-size: 1.05rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--lime-text);
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Hero Section (with protective umbrella backdrop)
   ========================================================================== */
.hero-banner {
    position: relative;
    padding: 4.5rem 0 4rem;
    background-color: #151417;
    background-image: 
        linear-gradient(90deg, rgba(21, 20, 23, 0.96) 0%, rgba(21, 20, 23, 0.88) 50%, rgba(21, 20, 23, 0.55) 100%),
        url('/static/images/hero_protection.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 -40px 60px #19181b;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime-text);
    margin-bottom: 1.25rem;
    row-gap: 0.25rem;
}

.breadcrumb span {
    color: var(--text-muted);
}

.hero-banner h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-pure);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-banner .hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

/* Hero Quick Tracker Bar */
.hero-tracker-card {
    background: rgba(34, 33, 38, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    max-width: 600px;
}

.hero-tracker-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-pure);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tracker-form {
    display: flex;
    gap: 0.5rem;
}

.hero-tracker-form input {
    flex: 1;
    background: #141316;
    border: 1px solid var(--border-color);
    color: var(--text-pure);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.hero-tracker-form input:focus {
    outline: none;
    border-color: var(--lime-primary);
    box-shadow: 0 0 0 2px var(--lime-subtle);
}

.tracker-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.tracker-helper a {
    color: var(--lime-text);
    font-weight: 600;
}

/* ==========================================================================
   Car Aasan Section (from reference image)
   ========================================================================== */
.car-aasan-section {
    padding: 3.5rem 0 2rem;
}

.car-aasan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.car-aasan-title-group h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-pure);
    margin-bottom: 0.25rem;
}

.car-aasan-subtitle {
    color: var(--lime-text);
    font-size: 1.15rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.car-aasan-subtitle:hover {
    color: var(--lime-hover);
    transform: translateX(3px);
}

.middle-nowhere-block {
    margin-bottom: 2.5rem;
}

.middle-nowhere-block h3 {
    font-size: 1.5rem;
    color: var(--text-pure);
    margin-bottom: 1rem;
}

.middle-nowhere-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.middle-nowhere-block strong {
    color: var(--text-pure);
    font-weight: 600;
}

/* Salient Features List */
.salient-features-block {
    margin-bottom: 3rem;
}

.salient-features-block h3,
.coverage-block h3 {
    font-size: 1.45rem;
    color: var(--text-pure);
    margin-bottom: 1.25rem;
}

.feature-bullet-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem 2rem;
}

.feature-bullet-list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 1.02rem;
    color: var(--text-secondary);
}

.feature-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime-primary);
    box-shadow: 0 0 6px var(--lime-glow);
}

/* ==========================================================================
   Value Added Services (VAS) Table
   ========================================================================== */
.vas-section {
    margin-bottom: 3.5rem;
}

.vas-section h3 {
    font-size: 1.55rem;
    color: var(--text-pure);
    margin-bottom: 1.25rem;
}

.dark-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #1c1b1f;
}

.vas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.vas-table th {
    background: #25242a;
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.vas-table td {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.vas-table tbody tr:last-child td {
    border-bottom: none;
}

.vas-table tbody tr:hover td {
    background: rgba(149, 193, 31, 0.04);
    color: var(--text-pure);
}

.vas-table td.cell-num {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.vas-table td.cell-type {
    font-weight: 600;
    color: var(--text-pure);
}

.vas-table td.cell-vas {
    color: var(--lime-text);
}

.vas-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Coverage & Promo Section (from reference image)
   ========================================================================== */
.coverage-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.coverage-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.coverage-bullet-list {
    list-style: none;
    margin-bottom: 2rem;
}

.coverage-bullet-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.coverage-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime-primary);
}

/* Promo Card Presentation */
.promo-banner-card {
    background: #1e1d22;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.promo-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.promo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.promo-banner-card:hover .promo-image {
    transform: scale(1.02);
}

.promo-action-bar {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #232227;
    border-top: 1px solid var(--border-color);
}

.promo-action-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
}

.promo-action-text strong {
    color: var(--text-pure);
    display: block;
}

/* ==========================================================================
   Active Plans Grid (Live Database Plans)
   ========================================================================== */
.plans-section {
    padding: 2.5rem 0 3.5rem;
    border-top: 1px solid var(--border-color);
}

.section-head {
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: 2rem;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
}

.section-head p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    border-color: var(--lime-primary);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.plan-card-top {
    margin-bottom: 1.5rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--lime-subtle);
    color: var(--lime-text);
    border: 1px solid var(--border-lime);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.plan-card h3 {
    font-size: 1.4rem;
    color: var(--text-pure);
    margin-bottom: 0.75rem;
}

.plan-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.plan-price-block {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-val {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lime-text);
}

/* How It Works Journey Cards */
.journey-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.journey-step {
    background: #201f24;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
}

.journey-step-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--lime-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.journey-step h4 {
    font-size: 1.1rem;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
}

.journey-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   THE FOOTER (Exact 1:1 match with the image provided)
   ========================================================================== */
.site-footer {
    width: 100%;
    margin-top: auto;
}

/* Tier 1: Forest Green Section */
.footer-green-wrapper {
    background-color: var(--footer-green);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    position: relative;
}

/* Optional subtle background pattern matching corporate backdrop */
.footer-green-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.footer-top-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Column 1: Company Info */
.footer-col-brand .footer-logo {
    height: 52px;
    width: auto;
    display: block;
    margin-bottom: 1.25rem;
}

.footer-col-brand p.company-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--footer-text);
    margin-bottom: 1.25rem;
}

.footer-credential-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-credential-row svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: var(--lime-primary);
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    transition: var(--transition);
}

.footer-social-icon:hover {
    color: var(--lime-text);
    transform: translateY(-2px);
}

/* Columns 2, 3, 4: Headings */
.footer-col-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #ffffff;
    opacity: 0.9;
}

/* Nav Links Lists (Columns 2 & 3) */
.footer-nav-list {
    list-style: none;
}

.footer-nav-list li {
    margin-bottom: 0.55rem;
}

.footer-nav-list a {
    color: #ffffff;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-list a .chevron {
    color: var(--lime-text);
    font-weight: bold;
}

.footer-nav-list a:hover {
    color: var(--lime-text);
    transform: translateX(4px);
}

/* Column 4: Head Office Contact */
.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: #ffffff;
    line-height: 1.5;
}

.footer-contact-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--lime-text);
    margin-top: 0.2rem;
}

.footer-contact-list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: var(--lime-text);
}

/* Compliance Strip (Middle Green Section) */
.footer-compliance-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 1.5rem 0 2rem;
}

.footer-compliance-strip {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.footer-compliance-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.footer-partner-logo {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.footer-compliance-text {
    font-size: 0.88rem;
    color: #f1f8eb;
    margin: 0;
}

.footer-complaint-row {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.footer-highlight-link {
    color: #ffeb3b;
    font-weight: 700;
    text-decoration: underline;
    transition: var(--transition);
}

.footer-highlight-link:hover {
    color: #fff;
}

.footer-updated-date {
    font-size: 0.82rem;
    color: #d1e2c4;
    margin: 0;
}

/* Tier 2: Bottom Charcoal Bar */
.footer-bottom-bar {
    background-color: var(--footer-bottom);
    color: var(--text-muted);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.86rem;
    flex-wrap: wrap;
}

.footer-bottom-left {
    color: #9a98a0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: #9a98a0;
    text-decoration: none;
    font-size: 0.86rem;
}

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

/* ==========================================================================
   Internal Pages (Forms, Detail, Timeline, Tables, Staff)
   ========================================================================== */
.section {
    padding: 3rem 0;
}

.section.narrow {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    width: 100%;
    box-sizing: border-box;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime-text);
    margin-bottom: 0.5rem;
}

.lede {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    overflow-wrap: anywhere;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 1.5rem 0;
}

.panel-pay {
    border-color: var(--border-lime);
    background: linear-gradient(180deg, rgba(149, 193, 31, 0.08) 0%, var(--bg-card) 100%);
}

.panel h2 {
    font-size: 1.35rem;
    color: var(--text-pure);
    margin-bottom: 1rem;
}

/* Forms */
.form-stack {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.form-stack fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background: #1f1e23;
}

.form-stack legend {
    padding: 0 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--lime-text);
}

.form-stack label {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Proposer step — stable aligned grids (errors don't shift neighbors) */
.form-stack.proposer-form-stack > label.proposer-field,
.form-stack.proposer-form-stack .proposer-fields-grid > label.proposer-field,
.form-stack.proposer-form-stack .proposer-contact-grid > label.proposer-field {
    display: grid;
    grid-template-rows: 1.5rem auto minmax(1.25rem, auto);
    gap: 0.4rem;
    align-content: start;
    margin-bottom: 0;
    min-width: 0;
}

.proposer-fields-grid,
.proposer-contact-grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.proposer-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proposer-contact-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}

.proposer-field .field-label-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 1.5rem;
    line-height: 1.35;
}

.proposer-field .field-error,
.form-stack .field-error {
    display: block;
    min-height: 1.2rem;
    margin: 0;
    color: var(--status-danger);
    font-size: 0.8rem;
    line-height: 1.2rem;
    visibility: hidden;
}

.proposer-field .field-error.is-visible,
.form-stack .field-error.is-visible,
.field-error.is-visible {
    visibility: visible;
}

@media (max-width: 768px) {
    .proposer-fields-grid,
    .proposer-contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-stack input,
.form-stack select,
.form-stack textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: #151417;
    color: var(--text-pure);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
    outline: none;
    border-color: var(--lime-primary);
    box-shadow: 0 0 0 2px var(--lime-subtle);
}

/* Flash Messages */
.flash-list {
    list-style: none;
    margin: 1.5rem 0;
}

.flash {
    padding: 0.9rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #232228;
    border-left: 4px solid var(--lime-primary);
    color: var(--text-pure);
}

.flash-error {
    border-left-color: var(--status-danger);
    background: rgba(226, 74, 74, 0.12);
}

.flash-success {
    border-left-color: var(--status-ok);
    background: rgba(46, 187, 102, 0.12);
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
    background: #2b2a30;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-pill.compact {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
}

/* Submitted keeps the default gray pill above; every later status is distinct */
.status-under_review {
    background: rgba(59, 164, 230, 0.16);
    color: #7ec8f5;
    border-color: rgba(59, 164, 230, 0.45);
}

.status-inspection_scheduled {
    background: rgba(45, 212, 191, 0.14);
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.42);
}

.status-inspection_completed {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.45);
}

.status-payment_available {
    background: rgba(229, 157, 36, 0.15);
    color: #ffb648;
    border-color: rgba(229, 157, 36, 0.4);
}

.status-paid {
    background: var(--lime-subtle);
    color: var(--lime-text);
    border-color: var(--border-lime);
}

.status-policy_issued {
    background: rgba(46, 187, 102, 0.16);
    color: #6ee7a0;
    border-color: rgba(46, 187, 102, 0.45);
}

.status-rejected,
.status-spam {
    background: rgba(226, 74, 74, 0.15);
    color: #ff6e6e;
    border-color: rgba(226, 74, 74, 0.4);
}

/* Timeline (vertical — customer views) */
.timeline {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.timeline li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
}

.timeline-done {
    color: var(--text-pure);
}

.timeline-done .dot {
    background: var(--lime-primary);
    box-shadow: 0 0 8px var(--lime-glow);
}

.timeline-current {
    color: var(--lime-text);
    font-weight: 700;
}

.timeline-current .dot {
    background: var(--lime-primary);
    box-shadow: 0 0 0 4px var(--lime-subtle);
}

.timeline-skipped {
    opacity: 0.4;
}

/* Horizontal lifecycle loading bar (admin review) — mirrored in application_detail */
.admin-review-section .admin-review-container {
    max-width: min(96vw, 1480px);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.admin-review-panel {
    padding: 1.25rem 1.1rem 1.35rem;
}

.admin-review-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: start;
    margin: 1rem 0 0;
}

.admin-review-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.admin-review-col .compact-panel {
    margin: 0;
}

.admin-review-col .compact-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.admin-schedule-panel {
    position: sticky;
    top: 1rem;
}

@media (max-width: 980px) {
    .admin-review-split {
        grid-template-columns: 1fr;
    }

    .admin-schedule-panel {
        position: static;
    }
}

.lifecycle-heading {
    margin: 0 0 1.15rem;
    font-size: 1.35rem;
    color: var(--text-pure);
}

.lifecycle-progress {
    --lifecycle-progress: 0%;
    --marker-size: 2rem;
    --step-count: 8;
    width: 100%;
}

.lifecycle-rail {
    position: relative;
    width: 100%;
}

.lifecycle-rail-track {
    position: absolute;
    left: calc(100% / (var(--step-count) * 2));
    right: calc(100% / (var(--step-count) * 2));
    top: calc(var(--marker-size) / 2);
    height: 8px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    z-index: 0;
}

.lifecycle-rail-fill {
    height: 100%;
    width: var(--lifecycle-progress);
    max-width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lime-active), var(--lime-primary));
    box-shadow: 0 0 12px var(--lime-glow);
    transition: width 0.7s ease;
}

.lifecycle-progress-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.lifecycle-progress-steps li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.3;
}

.lifecycle-marker {
    width: var(--marker-size);
    height: var(--marker-size);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a292f;
    border: 3px solid rgba(255, 255, 255, 0.22);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    box-sizing: border-box;
}

.lifecycle-step-label {
    display: block;
    width: 100%;
    max-width: 7.5rem;
    font-size: 0.88rem;
    line-height: 1.25;
    /* Never split a word across lines (e.g. "Subm-itted") */
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
}

.lifecycle-label-short {
    display: none;
}

.lifecycle-label-full {
    display: inline;
}

.lifecycle-progress-steps li.is-done,
.lifecycle-progress-steps li.is-current {
    color: var(--text-pure);
}

.lifecycle-progress-steps li.is-done .lifecycle-marker,
.lifecycle-progress-steps li.is-current .lifecycle-marker {
    background: var(--lime-primary);
    border-color: var(--lime-primary);
    color: #141414;
    box-shadow: 0 0 10px var(--lime-glow);
}

.lifecycle-progress-steps li.is-current {
    color: var(--lime-text);
    font-weight: 700;
}

.lifecycle-progress-steps li.is-current .lifecycle-marker {
    box-shadow: 0 0 0 4px var(--lime-subtle), 0 0 12px var(--lime-glow);
}

.lifecycle-progress-steps li.is-skipped {
    opacity: 0.45;
}

@media (max-width: 900px) {
    .lifecycle-progress {
        --marker-size: 1.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        overscroll-behavior-x: contain;
    }

    .lifecycle-rail {
        width: max-content;
        min-width: 100%;
    }

    .lifecycle-progress-steps {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
        gap: 0.65rem;
        padding: 0 0.15rem 0.15rem;
        overflow: visible;
    }

    .lifecycle-progress-steps li {
        flex: 0 0 4.75rem;
        min-width: 4.75rem;
        max-width: 4.75rem;
    }

    .lifecycle-rail-track {
        left: 2.35rem;
        right: 2.35rem;
    }

    .lifecycle-step-label {
        max-width: none;
        width: 100%;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0;
    }

    .lifecycle-label-full {
        display: none;
    }

    .lifecycle-label-short {
        display: inline;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }
}

/* Detail Grids & Meta */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.meta {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
}

.meta dt {
    color: var(--text-muted);
}

.meta dd {
    color: var(--text-pure);
    word-break: break-word;
}

.mono {
    font-family: var(--font-mono);
}

/* Stats */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat span {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 0.2rem;
}

/* Tables (Staff Dashboard) */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    background: #1e1d22;
    color: var(--text-muted);
    font-weight: 700;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Result Screen */
.result {
    max-width: 620px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.result h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.badge-ok {
    background: var(--lime-subtle);
    color: var(--lime-text);
    border: 1px solid var(--border-lime);
}

.badge-warn {
    background: rgba(229, 157, 36, 0.15);
    color: #ffb648;
}

.status-ok {
    color: var(--lime-text);
    font-weight: 600;
    margin-top: 1.5rem;
}

.status-warn {
    color: #ffb648;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 980px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .coverage-promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-banner {
        padding: 3rem 0;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-tracker-form {
        flex-direction: column;
    }

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

/* ==========================================================================
   Multi-Step Application Wizard & Vehicle Selection Cards
   ========================================================================== */
.wizard-container {
    max-width: 1060px;
    margin: 0 auto;
}

.wizard-steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.wizard-steps-header::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 4rem;
    right: 4rem;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-step-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: default;
}

.wizard-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #222127;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    transition: var(--transition);
}

.wizard-step-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.wizard-step-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.wizard-step-indicator.active .wizard-step-circle {
    border-color: var(--lime-primary);
    background: var(--lime-primary);
    color: #12180e;
    box-shadow: 0 0 16px var(--lime-glow);
}

.wizard-step-indicator.active .wizard-step-label {
    color: var(--text-pure);
}

.wizard-step-indicator.completed .wizard-step-circle {
    border-color: var(--lime-primary);
    background: #1b2612;
    color: var(--lime-text);
}

.wizard-step-indicator.completed .wizard-step-label {
    color: var(--lime-text);
}

/* 3 Side-by-Side Vehicle Selection Cards */
.vehicle-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
}

.vehicle-card {
    position: relative;
    background: #201f25;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vehicle-card:hover {
    border-color: var(--lime-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.vehicle-card.selected {
    border-color: var(--lime-primary);
    background: #24232c;
    box-shadow: 0 0 0 2px var(--lime-primary), 0 12px 32px rgba(149, 193, 31, 0.25);
    transform: translateY(-3px);
}

.vehicle-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #121114;
}

.vehicle-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-card-img {
    transform: scale(1.05);
}

.vehicle-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(18, 17, 20, 0.88);
    backdrop-filter: blur(8px);
    color: var(--lime-text);
    border: 1px solid var(--border-lime);
}

.vehicle-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.vehicle-card-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.vehicle-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.vehicle-card-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.vehicle-card-features li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.vehicle-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--lime-primary);
    font-weight: bold;
}

.vehicle-select-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: #18171b;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.vehicle-select-btn:hover {
    background: var(--lime-primary);
    color: #12180e;
    border-color: var(--lime-primary);
    box-shadow: 0 2px 10px var(--lime-glow);
}

.vehicle-card.selected .vehicle-select-btn {
    border-color: var(--border-lime);
    color: var(--lime-text);
}

/* Step Switching Transitions */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInStep 0.3s ease-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-active-banner {
    background: rgba(149, 193, 31, 0.08);
    border: 1px solid var(--border-lime);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.step-active-banner-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-active-banner-info strong {
    color: var(--lime-text);
}

.wizard-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for vehicle type grid */
@media (max-width: 900px) {
    .vehicle-type-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .wizard-steps-header::before {
        left: 2rem;
        right: 2rem;
    }
}

/* ==========================================================================
   Accessories Table & Particulars of Vehicle Styles
   ========================================================================== */
.vehicle-particulars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.25rem;
    align-items: start;
}

.vehicle-particulars-grid > label,
.vehicle-particulars-grid > .variant-field-block {
    margin-bottom: 0;
    min-width: 0;
}

.variant-field-block {
    display: grid;
    gap: 0.65rem;
}

.variant-field-block > label {
    margin-bottom: 0;
}

.field-custom-wrap {
    margin-top: 0;
    padding: 0.75rem 0.85rem;
    border: 1px dashed rgba(149, 193, 31, 0.35);
    border-radius: var(--radius-sm, 8px);
    background: rgba(149, 193, 31, 0.06);
}

.field-custom-wrap[hidden] {
    display: none !important;
}

.field-custom-wrap.is-open,
.field-custom-wrap:not([hidden]) {
    display: block;
}

.field-custom-wrap label {
    margin-bottom: 0;
    display: grid;
    gap: 0.4rem;
}

.variant-field-block.is-other {
    grid-column: span 1;
}

@media (min-width: 1100px) {
    .vehicle-particulars-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .variant-field-block.is-other {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .vehicle-particulars-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-value-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.6fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 700px) {
    .vehicle-value-grid {
        grid-template-columns: 1fr;
    }
}

.accessories-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #1c1b20;
    margin: 1.25rem 0;
}

.accessories-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.accessories-extra-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0.75rem 0 0;
}

.accessories-extra-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.extra-acc-remove {
    margin-top: 0.4rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
}

.extra-acc-custom-wrap input {
    width: 100%;
}

.accessories-table th {
    background: #24232a;
    color: var(--text-pure);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.accessories-table th.th-left {
    text-align: left;
}

.accessories-table td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    vertical-align: middle;
}

.accessories-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.accessories-table input,
.accessories-table select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #141317;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-pure);
    font-size: 0.88rem;
}

.accessories-table input:focus,
.accessories-table select:focus {
    border-color: var(--lime-primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--lime-subtle);
}

.accessories-table input:disabled,
.accessories-table select:disabled {
    background: #111013;
    color: #4f4d54;
    border-color: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
    opacity: 0.6;
}

.radio-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.65rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.radio-pill-label:hover {
    border-color: var(--lime-primary);
    color: #ffffff;
}

.radio-none-pill {
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
    color: var(--text-muted);
}

.radio-pill-label input[type="radio"] {
    accent-color: var(--lime-primary);
    cursor: pointer;
    margin: 0;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.accessories-fitment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.field-hint {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0.25rem 0 0.55rem;
}

/* Field help (?) icon + popup */
.field-label-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.field-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-lime, rgba(149, 193, 31, 0.45));
    background: rgba(149, 193, 31, 0.12);
    color: var(--lime-text, #c6e06a);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

.field-help-btn:hover,
.field-help-btn:focus-visible {
    background: rgba(149, 193, 31, 0.22);
    border-color: var(--lime-primary, #95c11f);
    outline: none;
    box-shadow: 0 0 0 2px var(--lime-subtle, rgba(149, 193, 31, 0.25));
}

.field-help-btn svg {
    width: 0.75rem;
    height: 0.75rem;
    pointer-events: none;
}

.field-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(2px);
}

.field-help-overlay[hidden] {
    display: none !important;
}

.field-help-dialog {
    width: min(100%, 420px);
    max-height: min(80vh, 520px);
    overflow: auto;
    background: #1f1e24;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-md, 10px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    padding: 1.25rem 1.35rem 1.4rem;
    position: relative;
}

.field-help-dialog h3 {
    margin: 0 2rem 0.75rem 0;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
}

.field-help-dialog p {
    margin: 0;
    color: var(--text-secondary, #c4c2c8);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-line;
}

.field-help-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 6px;
    background: #141317;
    color: var(--text-pure, #fff);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.field-help-close:hover {
    border-color: var(--lime-primary, #95c11f);
    color: var(--lime-text, #c6e06a);
}

/* Quick Preset Chips for Sum Insured Value */
.preset-chips-wrap {
    margin-top: 0.5rem;
}

.preset-chip {
    background: #1e1d23;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover {
    background: #25242c;
    border-color: var(--lime-primary);
    color: var(--lime-text);
}

/* Track application lookup */
.track-page-section .track-page-container {
    max-width: min(96vw, 1100px);
    padding-left: 1rem;
    padding-right: 1rem;
}

.track-page-breadcrumb {
    margin-bottom: 1rem;
}

.track-page-head {
    text-align: left;
    margin-bottom: 0.25rem;
}

.track-page-head h1 {
    margin-bottom: 0.4rem;
}

.track-page-head p {
    margin: 0;
    max-width: 40rem;
}

.track-lookup-block {
    max-width: 36rem;
    margin: 1.5rem 0 0;
    text-align: left;
}

.track-lookup-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: var(--text-pure);
}

.track-lookup-form {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.25rem 1.35rem;
}

.track-lookup-form label {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.track-lookup-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: #151417;
    color: var(--text-pure);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.track-lookup-form input:focus {
    outline: none;
    border-color: var(--lime-primary);
    box-shadow: 0 0 0 2px var(--lime-subtle);
}

.track-lookup-form .btn {
    width: 100%;
    justify-content: center;
}

.track-login-hint {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.track-apps-block {
    margin: 2rem 0 0;
}

.track-apps-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    text-align: left;
}

/* Tracked application detail */
.track-app-section .track-app-container {
    max-width: min(96vw, 1280px);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.track-app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.track-app-notice {
    background: rgba(149, 193, 31, 0.08);
    border: 1px solid var(--border-lime);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.track-app-panel {
    padding: 1.25rem 1.1rem 1.35rem;
}

.application-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.application-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.application-card:hover {
    border-color: var(--lime-primary);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.application-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.application-card-ref {
    font-size: 1.25rem;
    color: var(--text-pure);
    margin: 0;
}

.application-card-vehicle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.application-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.35rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
}

.application-card-meta dt {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.application-card-meta dd {
    margin: 0;
    color: var(--text-pure);
    font-size: 0.9rem;
    word-break: break-word;
}

.application-card-cta {
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--lime-text);
    font-weight: 600;
    font-size: 0.92rem;
}

.application-empty {
    text-align: center;
    padding: 2rem 1.5rem;
}

.application-empty p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .application-card-meta {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Global responsive dashboards (admin / visitor / customer)
   ========================================================================== */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-pure);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

body.nav-open .nav-toggle-bars {
    background: transparent;
}

body.nav-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

.nav-link-cta-mobile {
    display: none;
}

.table-wrap {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.data-table {
    min-width: 640px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.filter-row label {
    max-width: 100%;
}

.filter-row select {
    max-width: min(100%, 20rem);
}

.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-review-section .admin-review-container,
    .visitor-portal-section .visitor-portal-container,
    .track-app-section .track-app-container,
    .track-page-section .track-page-container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .stat-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .section {
        padding: 2.25rem 0;
    }
}

@media (max-width: 900px) {
    .header-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        z-index: 130;
    }

    .brand-wrap {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .brand-logo-img {
        height: 52px;
    }

    .nav-actions {
        display: none;
    }

    .nav .nav-link-logout-mobile {
        display: block;
        margin-top: 0.5rem;
        padding: 0.85rem 0.75rem;
        border-radius: 6px;
        color: #ff8a80;
        font-weight: 700;
        background: rgba(198, 40, 40, 0.12);
        border: 1px solid rgba(229, 57, 53, 0.35);
    }

    .nav .nav-link-logout-mobile:hover {
        color: #fff;
        background: rgba(198, 40, 40, 0.22);
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: min(18.5rem, 86vw);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 4.5rem 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        background: var(--bg-card);
        border-left: 1px solid var(--border-color);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
        z-index: 125;
        overflow-y: auto;
    }

    body.nav-open .nav {
        display: flex;
    }

    .nav-link {
        padding: 0.85rem 0.75rem;
        border-radius: 6px;
        font-size: 1rem;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link-cta-mobile {
        display: block;
        margin-top: 0.75rem;
        text-align: center;
        background: var(--lime-primary);
        color: var(--text-dark) !important;
        font-weight: 700;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 110;
    }

    .nav-backdrop[hidden] {
        display: none !important;
    }

    .admin-review-split,
    .visitor-detail-split {
        grid-template-columns: 1fr;
    }

    .admin-schedule-panel {
        position: static;
    }

    .lifecycle-progress-steps {
        overflow-x: auto;
        padding-bottom: 0.35rem;
    }

    .status-quick-bar {
        width: 100%;
        max-width: 100%;
    }

    .status-quick-label {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .status-quick-select {
        flex: 1 1 12rem;
        min-width: 0;
        width: 100%;
    }

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

    .inspection-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .inspection-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1.75rem 0;
    }

    .panel {
        padding: 1.15rem 1rem;
        margin: 1rem 0;
    }

    .panel h2,
    .visitor-panel h2,
    .admin-review-panel h2,
    .compact-panel h2,
    .track-app-panel h2 {
        font-size: 1.2rem;
    }

    .track-app-notice {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .track-lookup-block {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(1.55rem, 6vw, 2.1rem);
        line-height: 1.2;
        word-break: break-word;
    }

    .stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin: 1rem 0;
    }

    .stat {
        padding: 0.9rem 0.85rem;
        font-size: 0.82rem;
    }

    .stat span {
        font-size: 1.45rem;
    }

    .data-table {
        min-width: 560px;
        font-size: 0.88rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.7rem 0.75rem;
    }

    .form-stack label,
    .form-stack input,
    .form-stack select,
    .form-stack textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cta-row,
    .dashboard-toolbar-actions {
        width: 100%;
    }

    .cta-row .btn,
    .dashboard-toolbar-actions .btn {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }

    .flash-list {
        margin: 0.75rem 0;
    }

    .result {
        margin: 1.5rem auto;
        padding: 1.5rem 1.1rem;
    }

    .accessories-table-wrap,
    .table-wrap {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .brand-logo-img {
        height: 46px;
    }

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

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .schedule-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .inspection-photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .status-pill {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
}

@media (max-width: 375px) {
    .inspection-photo-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        width: min(17rem, 92vw);
    }
}

/* ==========================================================================
   Admin — Visitor registrations
   ========================================================================== */
.visitors-breadcrumb {
    margin-bottom: 1rem;
}

.visitors-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.visitors-breadcrumb a:hover {
    color: var(--lime-text);
}

.visitors-toolbar h1 {
    margin-top: 0.25rem;
}

.visitors-lede {
    color: var(--text-secondary);
    margin: 0.35rem 0 0;
    max-width: 40rem;
}

.visitors-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.25rem 0 1.35rem;
}

.visitors-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.visitors-filter-chip span {
    display: inline-flex;
    min-width: 1.4rem;
    justify-content: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.visitors-filter-chip:hover {
    border-color: var(--border-lime);
    color: var(--text-pure);
}

.visitors-filter-chip.is-active {
    border-color: var(--border-lime);
    background: var(--lime-subtle);
    color: var(--lime-text);
}

.visitors-filter-chip.is-active span {
    background: rgba(149, 193, 31, 0.2);
    color: var(--lime-text);
}

.visitors-table-wrap {
    margin-bottom: 1rem;
}

.visitors-table {
    min-width: 720px;
}

.visitors-name-link {
    color: var(--lime-text);
    font-weight: 600;
    text-decoration: none;
}

.visitors-name-link:hover {
    text-decoration: underline;
}

.visitors-meta {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

.visitors-address {
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visitors-empty {
    color: var(--text-muted);
}

.visitors-date {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.visitors-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.visitors-actions form {
    display: inline;
    margin: 0;
}

.visitors-empty-state {
    text-align: center;
    padding: 2.25rem 1.25rem !important;
    color: var(--text-muted);
}

.visitors-empty-state a {
    color: var(--lime-text);
    font-weight: 600;
}

.visitor-dialog {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0;
    background: var(--bg-card, #1c1b1f);
    color: inherit;
    width: min(440px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: min(90vh, 720px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.visitor-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.visitor-dialog .panel {
    box-shadow: none;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.visitor-dialog #visitor-creds-text,
.visitor-creds-text {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    color: var(--lime-text);
}

@media (max-width: 720px) {
    .visitors-table {
        min-width: 0;
        width: 100%;
    }

    .visitors-table thead {
        display: none;
    }

    .visitors-table,
    .visitors-table tbody,
    .visitors-table tr,
    .visitors-table td {
        display: block;
        width: 100%;
    }

    .visitors-table tr {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .visitors-table td {
        border-bottom: none;
        padding: 0.35rem 0;
    }

    .visitors-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--text-muted);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 0.15rem;
    }

    .visitors-address {
        max-width: none;
        white-space: normal;
    }
}

/* ==========================================================================
   Mobile polish — apply wizard, forms, tables, auth, footer
   ========================================================================== */
.apply-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.apply-plan-title {
    margin-top: 0.35rem;
    font-size: clamp(1.55rem, 5vw, 2.2rem);
}

.apply-plan-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 0;
}

.apply-plan-price {
    text-align: right;
}

.apply-plan-price-val {
    font-size: clamp(1.35rem, 4vw, 1.7rem);
}

.filter-row-dashboard {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-select-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-weight: 600;
    max-width: 100%;
}

.filter-select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    max-width: 100%;
}

.table-empty-cell {
    text-align: center;
    padding: 2rem !important;
}

.auth-narrow-container {
    max-width: 480px;
    width: 100%;
}

.demo-creds-box {
    background: rgba(149, 193, 31, 0.1);
    border: 1px solid var(--border-lime);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.demo-creds-sep {
    margin: 0 0.25rem;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.panel input,
.panel select,
.panel textarea {
    width: 100%;
    box-sizing: border-box;
}

.form-stack input[type="radio"],
.form-stack input[type="checkbox"],
.panel input[type="radio"],
.panel input[type="checkbox"],
.accessories-table input[type="radio"],
.accessories-table input[type="checkbox"] {
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.main-content {
    width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .wizard-steps-header {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0;
        margin-bottom: 1.75rem;
        overflow: visible;
    }

    .wizard-steps-header::before {
        display: none;
    }

    .wizard-step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .wizard-step-label {
        font-size: 0.72rem;
        line-height: 1.25;
        max-width: 100%;
        word-break: break-word;
    }

    .wizard-step-sub {
        display: none;
    }

    .apply-plan-price {
        text-align: left;
        width: 100%;
    }

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

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

    .footer-bottom-left {
        overflow-wrap: anywhere;
        line-height: 1.5;
    }
}

@media (max-width: 720px) {
    /* Stack all inline CSS grids on the apply form */
    .apply-page div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .apply-page .panel,
    .apply-page [style*="padding: 2rem"],
    .apply-page [style*="padding:2rem"] {
        padding: 1.15rem 1rem !important;
    }

    .apply-page [style*="font-size: 2.2rem"],
    .apply-page [style*="font-size:2.2rem"] {
        font-size: clamp(1.45rem, 6vw, 1.9rem) !important;
    }

    .apply-page [style*="max-width: 680px"],
    .apply-page [style*="max-width:680px"],
    .apply-page [style*="max-width: 560px"] {
        max-width: 100% !important;
    }

    /* Card-style responsive tables */
    .data-table.responsive-cards {
        min-width: 0;
        width: 100%;
    }

    .data-table.responsive-cards thead {
        display: none;
    }

    .data-table.responsive-cards,
    .data-table.responsive-cards tbody,
    .data-table.responsive-cards tr,
    .data-table.responsive-cards td {
        display: block;
        width: 100%;
    }

    .data-table.responsive-cards tr {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        background: transparent;
    }

    .data-table.responsive-cards tr:hover td {
        background: transparent;
    }

    .data-table.responsive-cards td {
        border-bottom: none;
        padding: 0.4rem 0;
    }

    .data-table.responsive-cards td::before {
        content: attr(data-label);
        display: block;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 0.15rem;
    }

    .data-table.responsive-cards td.table-empty-cell::before,
    .data-table.responsive-cards td[colspan]::before {
        display: none;
    }

    .data-table.responsive-cards .btn {
        width: 100%;
        justify-content: center;
    }

    .accessories-table-wrap {
        overflow: visible;
        border: none;
        background: transparent;
    }

    .accessories-table {
        min-width: 0 !important;
        width: 100%;
        border: none;
        display: block;
    }

    .accessories-table thead {
        display: none;
    }

    .accessories-table tbody {
        display: block;
        width: 100%;
    }

    .accessories-table tr {
        display: block;
        width: 100%;
        background: #1c1b20;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        margin-bottom: 0.85rem;
        padding: 0.85rem 0.9rem;
        box-sizing: border-box;
    }

    .accessories-table th,
    .accessories-table td {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0.55rem 0;
        border: none;
        text-align: left !important;
        font-size: 0.9rem;
        box-sizing: border-box;
    }

    .accessories-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 0.35rem;
    }

    .accessories-table td[data-label="Accessory"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 0.35rem;
        padding-bottom: 0.7rem;
        font-size: 1rem;
    }

    .accessories-table .radio-pill-label,
    .accessories-table .accessories-fitment-options {
        width: 100%;
    }

    .accessories-table .radio-pill-label {
        justify-content: flex-start;
        white-space: normal;
    }

    .accessories-table td[data-label="Factory Fitted"] .radio-pill-label,
    .accessories-table td[data-label="Other / Aftermarket"] .radio-pill-label,
    .accessories-table td[data-label="Other / Aftermarket"] > div {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
    }

    .accessories-table td[data-label="Other / Aftermarket"] > div {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start !important;
        align-items: stretch;
        gap: 0.45rem;
        width: 100%;
    }

    .accessories-table td[data-label="Other / Aftermarket"] .radio-pill-label {
        flex: 1 1 auto;
        min-width: 5.5rem;
    }

    .accessories-extra-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .accessories-extra-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .plan-price-block {
        flex-direction: column;
        align-items: stretch;
    }

    .plan-price-block .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-banner {
        padding: 2.5rem 0 2rem;
        background-position: center top;
    }

    .hero-banner h1 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .hero-banner .hero-desc {
        font-size: 1rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .flash-list {
        margin-top: 0.75rem;
    }

    .flash {
        overflow-wrap: anywhere;
    }

    .meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-grid,
    .admin-review-split,
    .visitor-detail-split {
        grid-template-columns: 1fr !important;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    .track-app-header {
        flex-direction: column;
        align-items: stretch;
    }

    .track-app-header .btn {
        width: 100%;
        justify-content: center;
    }

    .visitors-filter-bar {
        gap: 0.45rem;
    }

    .visitors-filter-chip {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }

    .visitor-dialog {
        width: calc(100vw - 1.25rem);
        max-height: min(92dvh, 720px);
    }

    .panel-pay .btn,
    .panel .btn-lg {
        width: 100%;
        justify-content: center;
    }

    code, .mono {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .wizard-steps-header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.5rem;
    }

    .wizard-step-indicator {
        padding: 0.35rem 0.15rem;
    }

    .breadcrumb {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .section {
        padding: 1.35rem 0;
    }

    .dashboard-toolbar h1 {
        font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    }

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

    .feature-bullet-list,
    .coverage-promo-grid,
    .car-aasan-header {
        grid-template-columns: 1fr !important;
    }

    .footer-compliance-strip {
        text-align: left;
    }

    .footer-compliance-logos {
        justify-content: flex-start;
    }

    .footer-partner-logo {
        max-height: 36px;
    }

    .site-footer .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .apply-page .reference-id-display-card #submitted-reference-id,
    .apply-page #submitted-reference-id {
        font-size: 1.35rem !important;
        letter-spacing: 0.03em !important;
    }
}


