/* ======================================================
   AUTO ACCIDENT CONSULT — STYLES
   Color Palette:
   --ocean-deep:  #0f2d37  (dark navy teal — headers, body, buttons)
   --ocean-mid:   #1c4e5e  (medium teal — secondary, hover states)
   --ocean-light: #38bdf8  (cyan accent — focus rings, highlights)
   --teal-accent: #2ba6a6  (teal accent for dots and badges)
   --bone:        #f7f5f0  (warm off-white/beige bg)
   --bone-dark:   #e8e4dc  (slightly darker bone for cards)
   --white:       #ffffff
====================================================== */

:root {
    --ocean-deep: #0f2d37;
    --ocean-mid: #1c4e5e;
    --ocean-light: #38bdf8;
    --teal-accent: #1e7e80;
    --bone: #faf8f3;
    --bone-dark: #e8e4dc;
    --bone-darker: #ddd8ce;
    --white: #ffffff;
    --text-muted: #5a6a70;
    --border-light: rgba(15, 45, 55, 0.1);
    --border-medium: rgba(15, 45, 55, 0.15);
    --shadow-sm: 0 1px 3px rgba(15, 45, 55, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 45, 55, 0.08);
    --shadow-lg: 0 8px 30px rgba(15, 45, 55, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ocean-deep);
    background-color: var(--bone);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============ NAVBAR ============ */
.navbar {
    background: #faf8f3;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 45, 55, 0.06);
    box-shadow: none;
    z-index: 1000;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ocean-deep);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    margin-right: 10px;
}

.logo-text {
    color: var(--ocean-deep);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
}

.navbar-brand:hover {
    text-decoration: none;
}

.btn-outline-nav {
    color: var(--ocean-deep);
    border: 1.5px solid rgba(15, 45, 55, 0.15);
    background: #faf8f3;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-outline-nav:hover {
    background: var(--ocean-deep);
    color: var(--white);
    border-color: var(--ocean-deep);
}


/* ============ HERO SECTION ============ */
.hero-section {
    padding: 50px 0 20px;
    background: #faf8f3;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--white);
    border: 1px solid rgba(15, 45, 55, 0.08);
    box-shadow: 0 2px 6px rgba(15, 45, 55, 0.04);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--ocean-deep);
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-accent);
    display: inline-block;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: var(--ocean-deep);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title em {
    font-style: italic;
    color: #2d8a9e;
    text-decoration: none;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 8px;
}


/* ============ QUIZ SECTION ============ */
.quiz-section {
    padding: 10px 0 40px;
    background: #faf8f3;
}

.quiz-card {
    max-width: 700px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.quiz-progress-bar {
    height: 4px;
    background: var(--bone-dark);
    width: 100%;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--teal-accent);
    width: 11.11%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.quiz-card-header {
    padding: 20px 32px 0;
}

.quiz-step-indicator {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ocean-mid);
}

.quiz-body {
    padding: 12px 32px 32px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-info-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.quiz-question {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: var(--ocean-deep);
    margin-bottom: 24px;
    line-height: 1.35;
}

.quiz-question-highlight {
    color: var(--ocean-deep);
}

.quiz-detail-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Choice buttons */
.choice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    min-height: 64px;
    height: auto;
    background: var(--white);
    border: 1.5px solid var(--border-medium);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ocean-deep);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    white-space: normal;
}

.choice-btn:hover {
    border-color: var(--ocean-mid);
    background: rgba(15, 45, 55, 0.04);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.choice-btn.selected {
    border-color: var(--teal-accent);
    background: rgba(30, 126, 128, 0.05);
}

.choice-btn.multi .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
    color: transparent;
}

.choice-btn.multi.selected .check-icon {
    background: var(--teal-accent);
    border-color: var(--teal-accent);
    color: var(--white);
}

/* Quiz Inputs and Form Fields */
.quiz-input,
.quiz-textarea,
input.form-control.quiz-input,
textarea.form-control.quiz-textarea,
input.form-control,
textarea.form-control,
select.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-medium);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ocean-deep);
    transition: var(--transition);
    background: var(--white);
    box-shadow: none;
    appearance: none;
}

.quiz-input,
input.form-control,
select.form-control {
    padding: 12px 16px;
    min-height: 52px;
    border-radius: 12px;
}

.quiz-textarea,
textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.quiz-input:focus,
.quiz-textarea:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: var(--ocean-light);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    outline: none;
}

.quiz-input::placeholder,
.quiz-textarea::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder,
select.form-control::placeholder {
    color: #a0adb3;
}

.quiz-textarea:focus {
    border-color: var(--ocean-light);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    outline: none;
}

.quiz-textarea::placeholder {
    color: #a0adb3;
}

/* Inline field validation message (e.g. accident description word count) */
.quiz-field-error {
    display: none;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
}

.quiz-field-error.visible {
    display: block;
}

/* Continue button */
.btn-continue {
    background: var(--ocean-deep);
    color: var(--bone);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-continue:hover {
    background: var(--ocean-mid);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Submit button */
.btn-submit {
    background: var(--ocean-deep);
    color: var(--bone);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 24px;
    border-radius: 10px;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background: var(--ocean-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Consent checkbox */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(247, 245, 240, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.consent-check .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    margin-left: 0;
    float: none;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    flex-shrink: 0;
}

.consent-check .form-check-input:checked {
    background-color: var(--ocean-deep);
    border-color: var(--ocean-deep);
}

.consent-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    border-color: var(--ocean-light);
}

.consent-check .form-check-label {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    padding-left: 0;
}

/* Form input labels */
.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ocean-deep);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
}

.consent-check .form-check-label a {
    color: var(--ocean-mid);
    text-decoration: underline;
}

/* Back button (top right) */
.btn-back {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border: none;
    background: none;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-back:hover {
    color: var(--ocean-deep);
}

/* Quiz disclaimer */
.quiz-disclaimer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Success icon */
.success-icon-wrap {
    font-size: 60px;
    color: var(--teal-accent);
}


/* ============ HOW IT WORKS ============ */
.how-it-works-section {
    padding: 80px 0;
    background: #0c2340;
    color: var(--bone);
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--teal-accent);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    color: #ffffff;
}

.step-card {
    position: relative;
    padding-top: 10px;
    min-height: 220px;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(247, 245, 240, 0.08);
    line-height: 1;
    margin-bottom: -12px;
    display: block;
}

.step-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--bone);
}

.step-card-text {
    font-size: 15px;
    color: rgba(247, 245, 240, 0.7);
    line-height: 1.6;
}


/* ============ CLAIM FACTORS ============ */
.claim-factors-section {
    padding: 80px 0;
    background: var(--bone);
}

.claim-factors-section .section-title {
    color: var(--ocean-deep);
}

.factor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ocean-deep);
    transition: var(--transition);
}

.factor-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.factor-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: var(--teal-accent);
}

.section-caption {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* ============ CLAIM PROFILES ============ */
.claim-profiles-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bone-dark) 0%, var(--bone) 100%);
}

.claim-profiles-section .section-title {
    color: var(--ocean-deep);
}

.profile-card {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    transition: var(--transition);
    height: 100%;
}

.profile-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.profile-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--ocean-deep);
    margin-bottom: 12px;
}

.profile-card-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}


/* ============ FAQ ============ */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-section .section-title {
    color: var(--ocean-deep);
}

.faq-list {
    max-width: 700px;
}

.faq-item {
    border-top: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question span:first-child {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--ocean-deep);
    padding-right: 20px;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 1.5px solid var(--border-medium);
    border-radius: 50%;
    font-size: 14px;
    color: var(--ocean-deep);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--ocean-deep);
    border-color: var(--ocean-deep);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


/* ============ BOTTOM CTA ============ */
.bottom-cta-section {
    padding: 50px 0;
    background: var(--white);
}

.btn-cta-bottom {
    display: inline-block;
    background: var(--ocean-deep);
    color: var(--bone);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.3px;
}

.btn-cta-bottom:hover {
    background: var(--ocean-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ============ FOOTER ============ */
.site-footer {
    padding: 50px 0 40px;
    background: var(--ocean-deep);
    color: rgba(247, 245, 240, 0.6);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--bone);
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 13px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 24px;
    color: rgba(247, 245, 240, 0.5);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(247, 245, 240, 0.6);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bone);
}

.footer-copy {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(247, 245, 240, 0.4);
    margin-bottom: 0;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .quiz-body {
        padding: 12px 20px 24px;
    }

    .quiz-card-header {
        padding: 16px 20px 0;
    }

    .quiz-step-indicator {
        padding: 0;
    }

    .how-it-works-section,
    .claim-factors-section,
    .claim-profiles-section,
    .faq-section {
        padding: 60px 0;
    }

    .step-number {
        font-size: 48px;
    }

    .btn-back {
        font-size: 12px;
    }

    .footer-links {
        gap: 16px;
    }

    .btn-cta-bottom {
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .navbar .container {
        flex-wrap: nowrap !important;
    }
    
    .logo-text {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        min-width: 28px;
        margin-right: 6px;
    }
    
    .btn-outline-nav {
        padding: 6px 10px;
        font-size: 10px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .badge-pill {
        font-size: 10px;
        padding: 6px 14px;
    }

    .quiz-question {
        font-size: 1.15rem;
    }

    .choice-btn,
    .quiz-textarea,
    textarea.form-control.quiz-textarea,
    textarea.form-control {
        padding: 14px 16px;
        font-size: 14px;
    }

    .quiz-input,
    input.form-control.quiz-input,
    input.form-control,
    select.form-control {
        padding: 10px 14px;
        min-height: 48px;
        font-size: 14px;
    }
}


/* ============ UTILITY ANIMATIONS ============ */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============ DEVELOPER CUSTOM ADDITIONS ============ */
.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.faq-question-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    text-align: left;
}

.faq-question-static span:first-child {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--ocean-deep);
    padding-right: 20px;
}