:root {
    --navy: #0a2a5e;
    --navy-2: #14376e;
    --navy-dark: #061d45;
    --lime: #a8e831;
    --lime-hover: #7cd636;
    --white: #ffffff;
    --gray-bg: #f5f7fa;
    --panel: #f8fafc;
    --text-dark: #2a2f3a;
    --text-muted: #687386;
    --border: #dbe3ef;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 14px 35px rgba(8, 25, 58, 0.16);
    --radius-lg: 20px;
    --radius-md: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--navy-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(6, 29, 69, 0.96) 0%, rgba(10, 42, 94, 0.92) 48%, rgba(10, 42, 94, 0.78) 100%),
        radial-gradient(circle at 14% 26%, rgba(168, 232, 49, 0.16), transparent 28%),
        linear-gradient(135deg, #0b326d 0%, #061d45 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
        linear-gradient(145deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.08) 49%, transparent 50%);
    background-size: 92px 92px, 100% 100%;
    opacity: 0.55;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    right: -10vw;
    bottom: -18vh;
    width: 58vw;
    height: 58vw;
    border-radius: 999px;
    background: rgba(168, 232, 49, 0.08);
    filter: blur(8px);
}

.site-header,
.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--navy-dark);
    background: var(--lime);
    box-shadow: 0 10px 30px rgba(168, 232, 49, 0.24);
}

.brand-name {
    font-size: 28px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white) !important;
}

.phone-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--lime);
    box-shadow: 0 0 0 7px rgba(168, 232, 49, 0.14);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.75fr);
    gap: 64px;
    align-items: center;
    padding: 36px 0 70px;
}

.hero-copy {
    color: var(--white);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 9px 14px;
    border: 1px solid rgba(168, 232, 49, 0.36);
    border-radius: 999px;
    color: var(--lime);
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 800;
}

.trust-badge::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--lime);
}

h1 {
    max-width: 740px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.hero-lead {
    max-width: 650px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 19px;
    line-height: 1.7;
}

.expert-note {
    max-width: 585px;
    margin-top: 30px;
    padding-left: 18px;
    border-left: 4px solid var(--lime);
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.call-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border: 2px solid var(--lime);
    border-radius: var(--radius-md);
    color: var(--lime);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.call-card:hover {
    transform: translateY(-2px);
    color: var(--navy-dark);
    background: var(--lime);
    box-shadow: 0 16px 38px rgba(168, 232, 49, 0.2);
}

.call-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--lime);
    color: var(--navy-dark);
    font-size: 11px;
    font-weight: 900;
}

.call-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.call-card:hover .call-label {
    color: rgba(6, 29, 69, 0.75);
}

.call-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.15;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.social-row a {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-row a:hover {
    transform: translateY(-2px);
    background: rgba(168, 232, 49, 0.18);
}

.quote-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.quote-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #d9dee8;
}

.quote-tab {
    min-height: 68px;
    border: 0;
    color: #586170;
    background: transparent;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.quote-tab.active {
    color: var(--navy-dark);
    background: var(--white);
}

.quote-tab:disabled {
    cursor: not-allowed;
}

.quote-card-body {
    padding: 30px;
}

.quote-card h2 {
    color: var(--navy-dark);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.quote-subtitle {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-section {
    margin-top: 24px;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--navy-dark);
    font-size: 17px;
    font-weight: 800;
}

.section-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: var(--navy-dark);
    background: var(--lime);
    font-size: 12px;
    font-weight: 900;
}

.input-group {
    position: relative;
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy-dark);
    font-size: 13px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    background: var(--white);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select {
    appearance: auto;
}

input::placeholder {
    color: #98a3b8;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--navy-2);
    box-shadow: 0 0 0 4px rgba(20, 55, 110, 0.12);
}

input.error,
select.error {
    border-color: var(--danger);
    background: #fffafa;
}

.form-grid.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vehicle-card {
    margin-bottom: 14px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
}

.vehicle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--navy-dark);
    font-weight: 900;
}

.remove-vehicle-btn {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
    cursor: pointer;
}

.remove-vehicle-btn:hover {
    background: rgba(231, 76, 60, 0.18);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-row input {
    width: 20px;
    min-height: 20px;
    height: 20px;
    padding: 0;
    accent-color: var(--lime-hover);
}

.add-vehicle-btn {
    width: 100%;
    min-height: 48px;
    margin: 2px 0 16px;
    border: 1px dashed var(--navy-2);
    border-radius: var(--radius-md);
    color: var(--navy-2);
    background: rgba(20, 55, 110, 0.05);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.add-vehicle-btn:hover {
    transform: translateY(-1px);
    background: rgba(20, 55, 110, 0.09);
}

.submit-btn {
    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--navy-dark);
    background: var(--lime);
    box-shadow: 0 16px 36px rgba(168, 232, 49, 0.28);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--lime-hover);
    box-shadow: 0 20px 44px rgba(168, 232, 49, 0.34);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-list li {
    padding: 11px 13px;
    border-bottom: 1px solid #edf2f7;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
}

.autocomplete-list li:last-child {
    border-bottom: 0;
}

.autocomplete-list li:hover,
.autocomplete-list li.selected {
    color: var(--navy-dark);
    background: rgba(168, 232, 49, 0.2);
}

.autocomplete-no-results {
    color: var(--text-muted) !important;
    cursor: default !important;
}

.error-summary {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(231, 76, 60, 0.38);
    border-radius: var(--radius-md);
    color: #b9291a;
    background: #fff3f1;
    font-size: 14px;
    line-height: 1.5;
}

.result-section {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(39, 174, 96, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, #f5fff0 0%, #ffffff 100%);
    animation: slideUp 0.28s ease;
}

.result-kicker {
    color: var(--navy-2);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#result-price {
    margin-top: 6px;
    color: var(--navy-dark);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.05em;
}

#result-price-per-mile {
    margin-top: 6px;
    color: var(--text-muted);
    font-weight: 700;
}

.confidence-block {
    margin-top: 18px;
}

.confidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--navy-dark);
    font-size: 14px;
    font-weight: 800;
}

.progress-bar {
    height: 9px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce5ef;
}

.progress-fill {
    width: 0;
    height: 100%;
    transition: width 0.5s ease;
}

.fill-low { background: var(--danger); }
.fill-med { background: var(--warning); }
.fill-high { background: var(--success); }
.text-low { color: var(--danger); }
.text-med { color: var(--warning); }
.text-high { color: var(--success); }

.confidence-text,
.disclaimer,
.result-message {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.disclaimer {
    color: #6a5520;
    font-weight: 700;
}

.result-message {
    color: var(--success);
    font-weight: 800;
}

.result-message.warning-message {
    color: var(--warning);
}

.hidden {
    display: none !important;
}

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

@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 16px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead,
    .expert-note {
        margin-left: auto;
        margin-right: auto;
    }

    .expert-note {
        text-align: left;
    }

    .hero-actions,
    .social-row {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .site-header,
    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        align-items: flex-start;
        gap: 18px;
        padding: 22px 0;
    }

    .top-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        font-size: 13px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .hero-lead {
        font-size: 17px;
    }

    .call-card {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    .call-card strong {
        font-size: 24px;
    }

    .quote-card-body {
        padding: 22px;
    }

    .form-grid.two-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quote-tabs {
        grid-template-columns: 1fr;
    }

    .quote-tab:not(.active) {
        display: none;
    }

    .submit-btn {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 420px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .top-links {
        align-items: flex-start;
    }

    .hero-content {
        padding-bottom: 36px;
    }
}
