/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Anti-Minimalist Bento Box
   Dense, Robust, High-Energy Fintech Aesthetic
══════════════════════════════════════════════════════════════ */

:root {
    /* Dark Mode Foundation */
    --color-bg-deep: #0A1929;
    --color-bg-panel: #0D2137;
    --color-bg-panel-elevated: #122A42;
    --color-bg-panel-hover: #153350;
    
    /* Text Hierarchy */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Accent Colors — Electric & Urgent */
    --color-accent-blue: #007AFF;
    --color-accent-blue-glow: rgba(0, 122, 255, 0.4);
    --color-accent-orange: #FF6B2C;
    --color-accent-orange-glow: rgba(255, 107, 44, 0.5);
    --color-accent-green: #34C759;
    
    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --gap: 16px;
    --radius: 20px;
    --radius-sm: 12px;
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-deep);
    color: var(--color-text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__logo {
    height: 20px;
    display: block;
}

.nav__logo img {
    height: 100%;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 32px;
    align-items: right;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--color-text-primary);
}

.nav__cta {
    background: var(--color-accent-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav__cta:hover {
    background: #0066D6;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   BENTO GRID CONTAINER
══════════════════════════════════════════════════════════════ */

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--gap);
    padding: var(--gap);
    max-width: 1400px;
    margin: 0 auto;
}

.panel {
    background: var(--color-bg-panel);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════════
   PANEL 1 — HERO (2x2)
══════════════════════════════════════════════════════════════ */

.panel--hero {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.panel--hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Animated gradient fallback */
.panel--hero__fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #1a3a5c 0%, 
        #0d2845 25%,
        #162d50 50%,
        #0a1929 100%
    );
    background-size: 400% 400%;
    animation: heroShift 15s ease infinite;
    z-index: 0;
}

@keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Snow particles */
.panel--hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent);
    background-size: 200px 200px;
    animation: snowfall 8s linear infinite;
    opacity: 0.6;
}

@keyframes snowfall {
    0% { background-position: 0 0; }
    100% { background-position: 200px 400px; }
}

.panel--hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 25, 41, 0.95) 0%,
        rgba(10, 25, 41, 0.6) 40%,
        rgba(10, 25, 41, 0.3) 100%
    );
    z-index: 3;
}

.panel--hero__content {
    position: relative;
    z-index: 4;
    padding: 40px;
}

.panel--hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 122, 255, 0.2);
    border: 1px solid var(--color-accent-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-blue);
    margin-bottom: 24px;
}

.panel--hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent-green);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.panel--hero__headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.panel--hero__headline span {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel--hero__subheadline {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   PANEL 2 — QUOTE ENGINE (1x2)
══════════════════════════════════════════════════════════════ */

.panel--quote {
    grid-row: span 2;
    background: linear-gradient(180deg, 
        var(--color-accent-blue) 0%, 
        #0056B3 100%
    );
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: none;
}

.panel--quote__header {
    margin-bottom: 24px;
}

.panel--quote__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.panel--quote__subtitle {
    font-size: 0.875rem;
    opacity: 0.85;
}

/* Vehicle Type Toggles */
.quote__toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.quote__toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quote__toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quote__toggle.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.quote__toggle-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.quote__toggle-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Value Slider */
.quote__slider-group {
    margin-bottom: 24px;
}

.quote__slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quote__slider-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.quote__slider-value {
    font-size: 1.125rem;
    font-weight: 800;
}

.quote__slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.quote__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
}

.quote__slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.quote__slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Price Display */
.quote__price-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.quote__price-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 8px;
}

.quote__price {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.quote__price-period {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.8;
}

/* CTA Button */
.quote__cta {
    background: var(--color-accent-orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 20px 32px;
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 32px var(--color-accent-orange-glow);
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.quote__cta:hover {
    background: #FF7D47;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--color-accent-orange-glow);
}

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

/* ══════════════════════════════════════════════════════════════
   PANEL 3 — DIGITAL PINK CARD (1x1)
══════════════════════════════════════════════════════════════ */

.panel--feature {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.panel--feature__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-accent-blue), #00D4FF);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px var(--color-accent-blue-glow);
}

.panel--feature__icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

.panel--feature__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.panel--feature__body {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Phone mockup specific */
.phone-mockup {
    width: 80px;
    height: 160px;
    background: linear-gradient(180deg, #1C1C1E 0%, #2C2C2E 100%);
    border-radius: 18px;
    position: relative;
    margin-bottom: 20px;
    border: 3px solid #3A3A3C;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.phone-mockup__screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(180deg, var(--color-accent-blue) 0%, #00D4FF 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.phone-mockup__card {
    width: 50px;
    height: 32px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup__checkmark {
    color: var(--color-accent-green);
    font-size: 18px;
    font-weight: bold;
}

.phone-mockup__text {
    font-size: 6px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   PANEL 4 — MANITOBA MAP (1x1)
══════════════════════════════════════════════════════════════ */

.manitoba-map {
    width: 80px;
    height: 100px;
    position: relative;
    margin-bottom: 20px;
}

.manitoba-map svg {
    width: 100%;
    height: 100%;
    fill: var(--color-bg-panel-elevated);
    stroke: var(--color-accent-blue);
    stroke-width: 2;
    filter: drop-shadow(0 0 20px var(--color-accent-blue-glow));
}

.manitoba-map__dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-accent-orange);
    border-radius: 50%;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation: mapPulse 2s ease infinite;
    box-shadow: 0 0 12px var(--color-accent-orange-glow);
}

@keyframes mapPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 0.7; }
}

/* ══════════════════════════════════════════════════════════════
   PANEL 5 — STATS PANEL (1x1)
══════════════════════════════════════════════════════════════ */

.panel--stats {
    padding: 28px;
    background: var(--color-bg-panel-elevated);
}

.stats__item {
    margin-bottom: 20px;
}

.stats__item:last-child {
    margin-bottom: 0;
}

.stats__number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.stats__label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   SOCIAL TRUST TICKER
══════════════════════════════════════════════════════════════ */

.ticker-container {
    background: var(--color-bg-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
    overflow: hidden;
    margin: var(--gap);
    margin-top: 0;
    border-radius: var(--radius);
}

.ticker {
    display: flex;
    animation: ticker 40s linear infinite;
    width: max-content;
}

.ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 48px;
    white-space: nowrap;
}

.ticker__dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.ticker__dot--blue {
    background: var(--color-accent-blue);
}

.ticker__dot--orange {
    background: var(--color-accent-orange);
}

.ticker__text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.ticker__text strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */

.footer {
    padding: 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__text {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel--hero {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 400px;
    }

    .panel--quote {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 16px 20px;
    }

    .nav__links {
        display: none;
    }

    .bento {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .panel--hero,
    .panel--quote {
        grid-column: span 1;
    }

    .panel--hero {
        min-height: 360px;
    }

    .panel--hero__content {
        padding: 24px;
    }

    .panel--hero__headline {
        font-size: 2rem;
    }

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

    .ticker-container {
        margin: 12px;
    }
}

/* =============================================================
   GET A QUOTE PAGE STYLES
   - Dark mode only, no light mode option
   - NuRoad brand palette (#0A1929 deep)
   - Montserrat typography
============================================================= */

/* Site Header */
.site-header {
    background: linear-gradient(135deg, #07101f 0%, #0a1729 55%, #07101f 100%);
    background-size: 200% 200%;
    animation: headerGradient 18s ease infinite;
    color: #fff;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: headerShimmer 4s infinite;
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes headerShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.logo {
    width: auto;
    height: 90px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    flex-shrink: 0;
}

.logo img {
    max-height: 100%;
    object-fit: contain;
    width: 120px;
}

@media(min-width: 720px) {
    .logo { height: 100px; }
    .logo img { width: 140px; }
}

.titles {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.titles h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

@media(min-width: 720px) {
    .titles h1 { font-size: 24px; }
}

.subtitle {
    margin: 0;
    opacity: .85;
    font-size: 13px;
    font-weight: 500;
}

@media(max-width: 719.98px) {
    .brand {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .logo { height: 80px; }
    .logo img { width: 100px; }
    .titles h1 { font-size: 18px; }
    .titles { padding-right: 48px; }
}

.header-fine {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin: 12px 0 0 0;
    font-weight: 500;
}

/* Wizard Pill Bar */
.wizard-pill-bar {
    display: flex;
    margin-top: 12px;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.wizard-pill {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.wizard-pill:last-child {
    border-right: none;
}

.wizard-pill[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
}

.wizard-pill:hover:not([aria-disabled="true"]) {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.wizard-pill.completed {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.wizard-pill.completed::after {
    content: '✓';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
}

.wizard-pill.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

@media(max-width: 719.98px) {
    .wizard-pill-bar {
        flex-wrap: wrap;
        border-radius: 12px;
    }
    .wizard-pill {
        flex: 1 1 calc(33.333% - 2px);
        min-width: 80px;
        border-radius: 8px;
        margin: 1px;
        border-right: none;
    }
    .summary {
        display: none;
    }
    body.wizard-last-step .summary {
        display: block;
        padding-bottom: 80px;
    }
}

/* Hamburger Menu */
.hamburger-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
}

.hamburger-btn:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
}

.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }

.hamburger-btn[aria-expanded="true"] .hamburger-icon { background: transparent; }
.hamburger-btn[aria-expanded="true"] .hamburger-icon::before { transform: rotate(45deg); top: 0; }
.hamburger-btn[aria-expanded="true"] .hamburger-icon::after { transform: rotate(-45deg); top: 0; }

/* Settings Menu */
.settings-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-bg-panel);
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.settings-menu:not([hidden]) {
    transform: translateX(0);
}

.menu-content {
    padding: 20px;
    position: relative;
}

.menu-content h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--color-text-primary);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}

.menu-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.menu-item span {
    font-size: 15px;
    color: var(--color-text-primary);
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.menu-actions .btn {
    width: 100%;
}

.menu-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 22px;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}

.menu-close:hover {
    background: rgba(255,255,255,0.08);
}

body {
    background: var(--color-bg-deep);
    color: var(--color-text-primary);
}

.card.section,
.card.section.wizard-step {
    background: var(--color-bg-panel);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card.subtle,
.summary .card {
    background: var(--color-bg-panel-elevated);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

label span,
.section summary,
.section h2,
.section h3,
.summary h3,
.summary .kv span,
.summary .kv strong {
    color: var(--color-text-primary);
}

input,
select,
textarea {
    background: var(--color-bg-panel-elevated);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-tertiary);
}

.help,
.subtitle,
.header-fine,
.summary .kv span {
    color: var(--color-text-secondary);
}

.btn {
    background: #0a1929;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    color: var(--color-text-primary);
    font-weight: 650;
    letter-spacing: 0.2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,122,255,0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:hover {
    border-color: var(--color-accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,122,255,0.25);
}

.btn:hover::before { opacity: 1; }

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #0a1929;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-tertiary);
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-blue), #0056B3);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 28px var(--color-accent-blue-glow);
}

.btn-primary::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 55%);
}

.btn-primary:hover {
    box-shadow: 0 14px 32px var(--color-accent-blue-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #0f2238;
    color: var(--color-accent-blue);
    border-color: rgba(0,122,255,0.5);
    box-shadow: 0 6px 16px rgba(0,122,255,0.18);
}

.btn-secondary:hover {
    background: #12314d;
    box-shadow: 0 10px 24px rgba(0,122,255,0.25);
}

.btn-danger {
    background: rgba(255, 107, 44, 0.12);
    color: var(--color-accent-orange);
    border-color: rgba(255, 107, 44, 0.4);
    box-shadow: 0 8px 20px rgba(255,107,44,0.2);
}

.btn-danger:hover {
    background: rgba(255, 107, 44, 0.16);
}

/* Summary Total - Hero element */
.summary-total-header {
    background: linear-gradient(135deg, var(--color-accent-blue), #0056B3);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: none;
    box-shadow: 0 12px 40px var(--color-accent-blue-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-total-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmerTotal 8s linear infinite;
}

@keyframes shimmerTotal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.summary-total-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    position: relative;
}

.summary-total-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.summary-total-original {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    position: relative;
}

.summary-total-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    position: relative;
}

.summary-savings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.savings-icon {
    font-size: 1rem;
    animation: celebrate 2s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

.savings-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.savings-text strong {
    color: #4ade80;
    font-weight: 800;
}

/* Upsell - make it pop a bit more */
.deductible-upsell {
    background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(10,25,41,0.9));
    border: 1px solid rgba(0,122,255,0.35);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
    position: relative;
    box-shadow: 0 10px 28px rgba(0,122,255,0.18);
}

.deductible-upsell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--color-accent-blue);
    opacity: 0.8;
}

.upsell-content {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding-right: 24px;
}

.upsell-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    white-space: nowrap;
}

.upsell-message {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0;
    flex: 1;
}

.upsell-message strong {
    color: #fff;
    font-weight: 700;
}

.upsell-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 80px;
}

.upsell-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text-tertiary);
    opacity: 0.5;
    padding: 4px;
    line-height: 1;
}

.upsell-close:hover {
    opacity: 1;
}

/* Summary Details - minimized, muted */
.summary-details {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: 12px;
}

.summary-details summary {
    color: var(--color-text-tertiary);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

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

.summary-details summary::after {
    content: '+';
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text-tertiary);
    transition: transform 0.2s;
}

.summary-details[open] summary::after {
    content: '−';
}

.summary-details[open] {
    background: rgba(255, 255, 255, 0.03);
}

.summary-details .stack {
    padding: 0 14px;
    margin-top: 0;
}

.summary-details .summary-totals {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Save indicator - very muted */
.save-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 11px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.save-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-green);
    flex-shrink: 0;
}

.save-indicator .text {
    flex: 1;
}

.save-indicator.saving .dot {
    background: var(--color-accent-blue);
    animation: pulse 1s infinite;
}

.save-indicator.saving .text {
    color: var(--color-accent-blue);
}

.save-indicator.error .dot {
    background: var(--color-accent-orange);
}

.save-indicator.error .text {
    color: var(--color-accent-orange);
}

.discount-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.discount-chip {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discount-chip:last-child {
    border-bottom: none;
}

.discount-chip__label {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.discount-chip strong {
    font-weight: 700;
    color: var(--color-text-primary);
}

.kv.kv--stack {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

/* Confirm box styling */
.confirm-box {
    background: rgba(0,122,255,0.06);
    border: 1px solid rgba(0,122,255,0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 1rem;
}

.confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.confirm-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Deductible cards with good/better/best tiers */
.deductible-cards-wrap {
    border: none;
    padding: 0;
    margin: 0;
}

.deductible-cards-wrap legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.deductible-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ded-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    background: var(--color-bg-panel);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ded-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.ded-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ded-card input[type="radio"]:checked + .ded-badge {
    opacity: 1;
}

.ded-card input[type="radio"]:checked ~ .ded-check {
    opacity: 1;
    transform: scale(1);
}

.ded-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.ded-card[data-tier="good"] .ded-badge {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.05));
    color: #a78bfa;
}

.ded-card[data-tier="better"] .ded-badge {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
    color: #60a5fa;
}

.ded-card[data-tier="best"] .ded-badge {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    color: #4ade80;
}

.ded-amount {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-text-primary);
    line-height: 1;
    margin: 4px 0;
}

.ded-impact {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    opacity: 0.8;
}

.ded-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--color-accent-blue);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

/* Emphasize BEST tier */
.ded-card[data-tier="best"] {
    background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, var(--color-bg-panel) 60%);
    border-color: rgba(34,197,94,0.3);
    box-shadow: 0 6px 18px rgba(34,197,94,0.15);
}

.ded-card[data-tier="best"]:hover {
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 10px 30px rgba(34,197,94,0.25);
}

.ded-card[data-tier="best"] .ded-amount {
    color: #4ade80;
}

@media(max-width: 719.98px) {
    .deductible-cards {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   GETAQUOTE FORM STYLES (migrated from styles.css)
   - Complete form system styles
   - Wizard navigation
   - Summary and actions
   - Mobile responsive
============================================================= */

/* Theme variables for forms */
:root {
    --brand: #0069A7;
    --brand-600: #225182;
    --bg: #0b1220;
    --card: #ffffff;
    --ink: #0b1220;
    --muted: #5b6779;
    --ok: #0f9150;
    --danger: #bf2e2e;
    --border: #e4e8ef;
}

/* Layout system */
.content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
}

.summary {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow: visible;
    z-index: 10;
}

@media(min-width: 980px) {
    .content {
        grid-template-columns: 2fr 1fr;
    }
    .summary {
        max-width: 420px;
    }
}

/* Card system */
.card::before {
    display: none;
}

/* Confirm box styling */
.confirm-box {
    background: rgba(0,122,255,0.06);
    border: 1px solid rgba(0,122,255,0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 1rem;
}

.confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.confirm-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.section h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Forms */
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

input, select, button {
    font: inherit;
}

input, select {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: var(--color-bg-panel-elevated);
    color: var(--color-text-primary);
    outline: none;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: var(--color-text-tertiary);
}

input[type="checkbox"],
input[type="radio"] {
    width: 22px;
    height: 22px;
}

input:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 105, 167, 0.15), 0 0 0 1px var(--brand);
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 3px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 105, 167, 0.3), 0 0 8px rgba(0, 105, 167, 0.2);
}

.grid {
    display: grid;
    gap: 12px;
}

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

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

@media(min-width:720px) {
    .grid.two {
        grid-template-columns: 1fr 1fr;
    }
    .grid.three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Vehicle cards */
.vehicle {
    position: relative;
}

.vehicle-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Summary panels */
.summary h2 {
    margin-top: 0;
}

.summary .kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary .kv.grand {
    font-size: 16px;
    font-weight: 700;
    border-bottom: none;
}

.summary .actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-line {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 6px;
    padding-top: 6px;
}

/* Mobile-specific upsell */
.mobile-upsell {
    display: none;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 72px;
    z-index: 950;
    margin: 0;
    background: linear-gradient(135deg, rgba(0,122,255,0.12), rgba(10,25,41,0.95));
    border: 1px solid rgba(0,122,255,0.4);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0,122,255,0.25);
}

.mobile-upsell .upsell-content {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding-right: 30px;
}

.mobile-upsell .upsell-title {
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-upsell .upsell-message {
    font-size: 11px;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-upsell .upsell-btn {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    min-width: auto;
    margin-left: auto;
}

.mobile-upsell .upsell-close {
    top: 6px;
    right: 6px;
}

@media(max-width:719.98px) {
    .mobile-upsell {
        display: block;
    }
    .deductible-upsell:not(.mobile-upsell) {
        display: none !important;
    }
    
    /* Shrink mobile bar buttons */
    .mobile-bar .btn,
    .mobile-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #signBtnMobile,
    #clearBtnMobile {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media(min-width:720px) {
    .mobile-upsell {
        display: none !important;
    }
}

/* Signature dropdown menu */
.signature-dropdown {
    position: relative;
    display: inline-block;
}

.signature-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-panel-elevated);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 200px;
    margin-top: 4px;
}

.signature-dropdown.open .signature-dropdown-menu {
    display: block;
}

.signature-dropdown.dropup .signature-dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.signature-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-primary);
    transition: background 0.15s;
}

.signature-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.signature-option:first-child {
    border-radius: 10px 10px 0 0;
}

.signature-option:last-child {
    border-radius: 0 0 10px 10px;
}

.upsell-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-text-tertiary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.upsell-close:hover {
    color: var(--color-text-primary);
}

.btn-danger {
    background: rgba(255, 107, 44, 0.1);
    color: var(--color-accent-orange);
    border-color: rgba(255, 107, 44, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 44, 0.15);
}

.warning {
    color: var(--color-accent-orange);
    margin: 8px 0 0;
    font-weight: 600;
}

.fine {
    color: var(--color-text-tertiary);
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.invalid {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--color-accent-orange) !important;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 16px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-accent-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* Company and signature fields */
.company-only {
    display: none;
}

body.company .company-only {
    display: block;
}

.sig-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media(min-width:720px) {
    .sig-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Breakdown details */
details.breakdown {
    margin-top: 8px;
}

summary {
    cursor: pointer;
}

/* Helpers */
.help {
    color: var(--color-text-secondary);
    font-size: 12px;
    margin: 2px 0 0;
}

/* Vehicle total chip */
.veh-total-chip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: auto;
    margin-right: 8px;
}

/* Compact mode */
body.compact .card {
    padding: 10px;
}

body.compact .grid {
    gap: 8px;
}

body.compact label {
    gap: 4px;
    font-size: 13px;
}

body.compact input,
body.compact select {
    padding: 8px 10px;
}

body.compact h2 {
    font-size: 16px;
}

body.compact .summary .kv {
    padding: 6px 0;
}

/* Fieldset reset */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

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

/* Mobile sticky action bar */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .3);
    padding: 8px 12px;
    z-index: 900;
}

.mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-total {
    font-size: 14px;
}

.mobile-actions {
    display: flex;
    gap: 8px;
}

@media(min-width:720px) {
    .mobile-bar {
        display: none;
    }
}

/* Required indicator */
label.required > span::after {
    content: " *";
    color: var(--color-accent-orange);
    margin-left: 4px;
}

/* Date input with calendar trigger */
.date-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.date-input input[type="date"] {
    flex: 1;
}

.date-picker-trigger {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--color-bg-panel-elevated);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--color-text-secondary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.date-picker-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent-blue);
}

/* Hide the native calendar icon when we provide our own trigger */
input[type="date"].hide-native-picker {
    -webkit-appearance: none;
    appearance: none;
    background-image: none;
    -moz-appearance: textfield;
}

input[type="date"].hide-native-picker::-webkit-calendar-picker-indicator {
    display: none;
}

/* Remove extra date input UI artifacts on various browsers */
input[type="date"].hide-native-picker::-ms-expand {
    display: none;
}

input[type="date"].hide-native-picker::-webkit-clear-button {
    display: none;
}

input[type="date"].hide-native-picker::-webkit-inner-spin-button {
    display: none;
}

input[type="date"].hide-native-picker::-webkit-date-and-time-value {
    text-align: left;
}

@supports (-webkit-touch-callout: none) {
    /* iOS Safari date still shows wheel; force text appearance */
    input[type="date"].hide-native-picker {
        font-size: 16px;
    }
}

/* Hide desktop actions on small screens; use mobile bar instead */
@media (max-width: 719.98px) {
    .summary .actions {
        display: none;
    }
    .content {
        padding-bottom: 80px;
    }
    /* space for mobile bar so content not obscured */
}

/* Settings menu close (X) */
.settings-menu .menu-content {
    position: relative;
}

.settings-menu .menu-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 22px;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
}

.settings-menu .menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Error summary */
.error-summary {
    background: rgba(255, 107, 44, 0.1);
    border: 1px solid rgba(255, 107, 44, 0.3);
    color: var(--color-accent-orange);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.error-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* Ensure [hidden] truly hides */
[hidden] {
    display: none !important;
}

/* Custom modal overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--color-bg-panel);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
    animation: slideInModal .2s ease;
}

@keyframes slideInModal {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-success {
    border-left: 4px solid var(--color-accent-green);
}

.modal-error {
    border-left: 4px solid var(--color-accent-orange);
}

.modal-message {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-primary);
}

.modal-box:not(.modal-success):not(.modal-error) .modal-message {
    margin-bottom: 20px;
}

.modal-success .modal-message,
.modal-error .modal-message {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    margin: 0;
    min-width: 80px;
}

.modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-primary);
}

.modal-ok {
    background: var(--color-accent-blue);
    color: #fff;
    border: none;
}

/* Share modal sections */
.share-section {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.share-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-bg-panel);
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-tertiary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-body {
    font-size: 14px;
}

/* Wizard mobile view tweaks */
@media(max-width:719.98px) {
    .wizard-pill-bar {
        flex-wrap: wrap;
        border-radius: 12px;
    }
    .wizard-pill {
        flex: 1 1 calc(33.333% - 2px);
        min-width: 80px;
        border-radius: 8px;
        margin: 1px;
        border-right: none;
    }
    .wizard-pill:last-child {
        border-right: none;
    }
    /* Hide summary on mobile except on last wizard step */
    .summary {
        display: none;
    }
    body.wizard-last-step .summary {
        display: block;
        padding-bottom: 80px;
    }
}

/* =============================================================
   PRINT STYLES
============================================================= */
@media print {
    *{box-sizing:border-box;}
    .summary .actions,#addVehicleBtn,.hamburger-btn,
    .settings-menu,.mobile-bar,.btn,button,.vehicle button,
    .error-summary,.save-indicator,.wizard-pill-bar,.wizard-actions,
    .header-fine,.site-footer .card,.screen-only,.deductible-upsell{display:none !important;}

    .print-only{display:flex !important;}

    @page{
        size:letter;
        margin:0.4in 0.4in 0.3in 0.4in;
    }

    body{
        background:white;
        color:#000;
        margin:0;
        padding:0;
        font-size:8.5px;
        line-height:1.3;
        font-family:Arial,sans-serif;
    }

    .site-header{
        display:flex !important;
        align-items:center;
        justify-content:space-between;
        background:white;
        padding:8px 0;
        border-bottom:2px solid #000;
        margin-bottom:10px;
    }

    .site-header .brand{
        flex-direction:row;
        align-items:center;
        gap:12px;
        width:100%;
    }

    .site-header .logo{
        background:transparent !important;
        border:none !important;
        padding:0;
    }

    .site-header .logo img{
        height:48px;
        width:auto;
    }

    .site-header .titles h1{
        font-size:15px;
        margin:0 0 2px 0;
        color:#000;
        font-weight:700;
    }

    .site-header .titles .subtitle{
        margin:0;
        font-size:9px;
        color:#000;
    }

    .content{
        display:block !important;
        padding:0;
        margin:0;
    }

    .wizard-step,.summary{display:none !important;}
    #printViewTable{display:block !important;}

    .card{
        background:white;
        border:none;
        box-shadow:none;
        padding:0;
        margin:0;
    }

    .summary-table{
        width:100%;
        border-collapse:collapse;
        font-size:7.5px;
        margin:10px 0;
    }

    .summary-table th,
    .summary-table td{
        padding:3px 4px;
        text-align:left;
        border:1px solid #000;
        line-height:1.3;
    }

    .summary-table th{
        background:#e8e8e8;
        font-weight:700;
        color:#000;
        font-size:7.5px;
    }

    .summary-table .grand-total{
        font-weight:700;
        font-size:9px;
        background:#d8d8d8;
        color:#000;
    }

    .info-table{
        width:100%;
        border-collapse:collapse;
        margin:0 0 10px 0;
        font-size:7.5px;
    }

    .info-table th{
        background:#e8e8e8;
        color:#000;
        font-weight:700;
        padding:3px 5px;
        text-align:left;
        border:1px solid #000;
        width:20%;
        font-size:7.5px;
    }

    .info-table td{
        padding:3px 5px;
        border:1px solid #000;
        font-size:7.5px;
    }

    .print-share-section{
        display:flex;
        justify-content:space-between;
        align-items:center;
        margin:12px 0 10px 0;
        padding:8px;
        border:1px solid #000;
        background:#f5f5f5;
    }

    .share-info{
        flex:1;
    }

    .share-info p{
        margin:0 0 4px 0;
        font-size:7.5px;
        color:#000;
    }

    .share-url{
        font-family:monospace;
        font-size:7px;
        word-break:break-all;
        color:#000;
    }

    .qr-container{
        text-align:center;
        margin-left:10px;
    }

    .qr-container img{
        width:100px;
        height:100px;
        border:1px solid #000;
        display:block;
    }

    .qr-label{
        margin:3px 0 0 0;
        font-size:6.5px;
        color:#000;
    }

    .print-footer{
        display:block !important;
        text-align:center;
        font-size:7px;
        margin-top:10px;
        padding:5px 0 0 0;
        border-top:1px solid #000;
        color:#000;
        line-height:1.3;
    }

    .print-footer p{
        margin:0;
    }

    details summary{list-style:none;}
    details summary::marker,
    details summary::-webkit-details-marker{display:none;}
    details{display:block;}

    h1{font-size:16px;}
    h2{font-size:12px;}
    h3{font-size:10px;}
    p{margin:4px 0;}

    input,select,textarea{
        border:none;
        background:transparent;
        font-size:8px;
        padding:0;
    }

    label{
        font-size:8px;
        font-weight:600;
    }

    *{page-break-inside:avoid;}
    .summary,.premium-breakdown,.print-footer{page-break-inside:avoid;}
}