/* ============ RESET & TOKENS ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0d2a4a;
    --navy-dark: #081c33;
    --teal: #2f9087; /* matched to DMA logo mark */
    --teal-dark: #26766f;
    --gold: #f5a623;
    --bg: #f5f8fb;
    --card: #ffffff;
    --text: #1c2b3a;
    --text-soft: #5a6b7d;
    --border: #dde6ee;
    --green: #1e9e5a;
    --red: #d64545;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(13, 42, 74, 0.1);
    --shadow-lg: 0 12px 40px rgba(13, 42, 74, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}
.hidden {
    display: none !important;
}

/* ============ HEADER ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}
.logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-weight: 700;
    color: #4a505a;
}
.logo-sub {
    font-size: 0.62em;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #7a828c;
}
.header-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-soft);
}
.stars {
    color: var(--gold);
    letter-spacing: 1px;
}
.stars-compact {
    display: none;
    color: var(--gold);
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding-top: 48px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
}
.hero-badge {
    display: inline-block;
    background: rgba(245, 166, 35, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 166, 35, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.18;
    margin-bottom: 14px;
    font-weight: 800;
}
.hero .accent {
    color: var(--gold);
}
.hero-sub {
    font-size: 1.1rem;
    color: #c8d6e5;
    margin-bottom: 24px;
    max-width: 540px;
}
.hero-sub strong {
    color: #fff;
}
.crs-note {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9db1c5;
    max-width: 540px;
    margin: -12px 0 24px;
}
.crs-note a {
    color: #c8d6e5;
}

/* Value stack */
.value-stack {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 24px;
    max-width: 540px;
}
.value-stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.value-tag {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.value-tag s {
    opacity: 0.65;
    margin-right: 4px;
}
.value-stack ul {
    list-style: none;
}
.terms-link {
    display: inline-block;
    font-size: 0.78rem;
    color: #9db1c5;
    margin-top: 10px;
}
.value-stack li {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    color: #dbe6f1;
    font-size: 0.98rem;
}
.tick {
    color: var(--teal);
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    text-align: center;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 8px 24px rgba(47, 144, 135, 0.4);
}
.btn-primary:hover {
    background: var(--teal-dark);
}
.btn-xl {
    font-size: 1.2rem;
    padding: 18px 36px;
    width: 100%;
    max-width: 540px;
}
.btn-sub {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 4px;
}
.micro-reassure {
    font-size: 0.83rem;
    color: #9db1c5;
    margin-top: 12px;
}

/* Hero Q1 (embedded first question, sits between CRS note and value stack) */
.hero-q1 {
    max-width: 540px;
    margin-bottom: 24px;
}
.hero-q1-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}
.hero-q1 .options {
    gap: 8px;
}
.hero-q1 .option-btn {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border-color: transparent;
}
.hero-q1 .option-btn:hover {
    border-color: var(--teal);
    background: #f2fbf9;
}

/* Hero proof cards */
.hero-proof {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.proof-card {
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
}
.proof-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.proof-avatar::after {
    content: attr(data-initials);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
.proof-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.proof-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.proof-heading {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.proof-list {
    list-style: none;
}
.proof-list li {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}
.proof-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
}

/* Trust strip */
.trust-strip {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.trust-item {
    font-size: 0.88rem;
    color: #b7c7d8;
}
.trust-item strong {
    color: #fff;
    margin-right: 6px;
}

/* ============ QUIZ ============ */
.quiz-section {
    padding: 48px 0 64px;
    min-height: 70vh;
}

/* Closing CTA band (hidden once the quiz starts) */
.closing-cta {
    background: var(--card);
    text-align: center;
    padding: 56px 20px 64px;
    border-top: 1px solid var(--border);
}
.closing-cta h2 {
    font-size: 1.45rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.closing-cta p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 22px;
}
.closing-cta p a {
    color: var(--text-soft);
}
.closing-cta .btn-xl {
    max-width: 420px;
}
.quiz-container {
    max-width: 640px;
}

.progress-wrap {
    margin-bottom: 20px;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.progress-bar {
    height: 10px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 14%;
    background: linear-gradient(90deg, var(--teal), var(--green));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.quiz-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px 32px;
    animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--navy);
}
.quiz-card .step-sub {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 22px;
}
.quiz-card .step-reassure {
    font-size: 0.83rem;
    color: var(--text-soft);
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 16px;
}
.good-news {
    display: inline-block;
    background: rgba(30, 158, 90, 0.12);
    color: var(--green);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* Option buttons */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 1.02rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition:
        border-color 0.12s ease,
        background 0.12s ease,
        transform 0.08s ease;
}
.option-btn:hover {
    border-color: var(--teal);
    background: #f2fbf9;
}
.option-btn:active {
    transform: scale(0.99);
}
.option-emoji {
    font-size: 1.3rem;
}

/* Slot picker */
.slot-days {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.slot-day {
    flex: 1;
    border: 2px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition:
        border-color 0.12s,
        background 0.12s;
}
.slot-day.selected {
    border-color: var(--teal);
    background: #f2fbf9;
}
.slot-day .dow {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    display: block;
}
.slot-day .dom {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
}
.slot-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.slot-time {
    border: 2px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition:
        border-color 0.12s,
        background 0.12s;
}
.slot-time:hover {
    border-color: var(--teal);
    background: #f2fbf9;
}
.slot-note {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-top: 12px;
}
.caller-card--booking {
    margin: 0 0 18px;
}

/* Micro-commitment + confirmation */
.slot-confirm-big {
    background: rgba(30, 158, 90, 0.08);
    border: 2px solid rgba(30, 158, 90, 0.35);
    color: var(--navy);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 14px 0;
}
.btn-ghost {
    display: block;
    width: 100%;
    background: none;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-soft);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px;
    margin-top: 10px;
    cursor: pointer;
    transition: border-color 0.12s ease;
}
.btn-ghost:hover {
    border-color: var(--text-soft);
}
.btn-outline {
    display: block;
    width: 100%;
    background: #fff;
    border: 2px solid var(--teal);
    border-radius: var(--radius);
    color: var(--teal-dark);
    font-family: inherit;
    font-weight: 800;
    font-size: 1.02rem;
    padding: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.12s ease;
}
.btn-outline:hover {
    background: #f2fbf9;
}
.save-number {
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.45);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.92rem;
    color: var(--text);
}
.save-number-big {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.03em;
    margin: 6px 0;
}

/* Form inputs */
.field {
    margin-bottom: 16px;
}
.field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--navy);
}
.field label .optional {
    font-weight: 500;
    color: var(--text-soft);
}
.field input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.12s ease;
}
.field input:focus {
    outline: none;
    border-color: var(--teal);
}
.field input.invalid {
    border-color: var(--red);
}
.field-error {
    color: var(--red);
    font-size: 0.82rem;
    margin-top: 4px;
    display: none;
}
.field-error.show {
    display: block;
}

.phone-wrap {
    display: flex;
    align-items: stretch;
}
.phone-prefix {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0 12px;
    font-weight: 700;
    color: var(--text-soft);
    white-space: nowrap;
}
.phone-wrap input {
    border-radius: 0 10px 10px 0;
}

.btn-continue {
    width: 100%;
    background: var(--teal);
    color: #fff;
    font-size: 1.08rem;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 6px 18px rgba(47, 144, 135, 0.35);
}
.btn-continue:hover {
    background: var(--teal-dark);
}
.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-link {
    display: inline-block;
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-soft);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 18px;
    text-decoration: underline;
}

/* Analyzing interstitial */
.analyzing {
    text-align: center;
    padding: 24px 0;
}
.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid var(--border);
    border-top-color: var(--teal);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.9s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.analyzing-steps {
    list-style: none;
    max-width: 340px;
    margin: 18px auto 0;
    text-align: left;
}
.analyzing-steps li {
    padding: 7px 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.analyzing-steps li.done {
    opacity: 1;
    color: var(--green);
    font-weight: 600;
}

/* Thank you / result */
.result-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}
.result-center {
    text-align: center;
}
.next-steps {
    list-style: none;
    margin: 20px 0;
    counter-reset: step;
}
.next-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.next-steps li:last-child {
    border-bottom: none;
}
.step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.next-steps strong {
    display: block;
    color: var(--navy);
}
.next-steps span.desc {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.caller-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    text-align: left;
}
.caller-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.caller-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
}
.caller-card strong {
    color: var(--navy);
}

.confirm-banner {
    background: rgba(30, 158, 90, 0.1);
    border: 1px solid rgba(30, 158, 90, 0.35);
    color: var(--green);
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Error / retry */
.error-box {
    background: rgba(214, 69, 69, 0.08);
    border: 1px solid rgba(214, 69, 69, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}
.error-box p {
    color: var(--red);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.quiz-footnote {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 16px;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--navy-dark);
    color: #8fa5ba;
    padding: 36px 0;
    font-size: 0.82rem;
    text-align: center;
}
.site-footer p {
    margin-bottom: 6px;
}
.site-footer a {
    color: #b7c7d8;
}
.footer-disclaimer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #6d8299;
}
.footer-disclaimer p {
    margin-bottom: 10px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    /* Proof cards stack on mobile — deliberately NOT a horizontal slider
       (hidden cards don't get swiped, esp. by 40–65+ users; only 2 cards
       so the height cost is trivial and they sit below the CTA anyway) */
    .trust-strip-inner {
        justify-content: center;
        text-align: center;
    }
}
@media (max-width: 520px) {
    .quiz-card {
        padding: 26px 18px;
    }
    .slot-times {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Compact rating: one star + "4.9 on Google" — never bare stars
       (unlabelled stars read as fake) */
    .stars {
        display: none;
    }
    .stars-compact {
        display: inline;
    }
    .hero {
        padding-top: 32px;
    }
}
