:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #5b6472;
    --primary: #123a64;
    --primary-hover: #0f2f50;
    --accent: #2a9d8f;
    --danger: #c0392b;
    --warn: #d4a017;
    --success: #1e7a46;
    --border: #d8dee9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

.container {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
}

h1, h2, legend {
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

h1 {
    font-size: 1.55rem;
}

h2 {
    font-size: 1.2rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-weight: 700;
}

.lead {
    margin-top: 0;
    color: var(--muted);
}

.button {
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    padding: 0.68rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-hover);
}

ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

label {
    display: block;
    margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    background: #fff;
    font: inherit;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem;
    margin: 0 0 1rem;
}

.question-block {
    border-bottom: 1px solid #eef1f6;
    padding: 0.45rem 0 0.65rem;
}

.question-block:last-child {
    border-bottom: 0;
}

.question-block p {
    margin: 0 0 0.45rem;
}

.small {
    font-size: 0.875rem;
}

.muted {
    color: var(--muted);
}

.score-gauge {
    --gauge-length: 471.24;
    max-width: 430px;
    margin: 0.7rem auto 0.1rem;
    position: relative;
}

.gauge-svg {
    width: 100%;
    height: auto;
    display: block;
}

.gauge-track,
.gauge-progress {
    fill: none;
    stroke-linecap: round;
    stroke-width: 16;
}

.gauge-track {
    stroke: #d9e6fb;
}

.gauge-progress {
    stroke-dasharray: var(--gauge-length);
    stroke-dashoffset: calc(var(--gauge-length) * (1 - var(--gauge-progress)));
    transition: stroke-dashoffset 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.score-gauge.score-red .gauge-progress {
    stroke: #d94841;
}

.score-gauge.score-yellow .gauge-progress {
    stroke: #d4a017;
}

.score-gauge.score-green .gauge-progress {
    stroke: #1e8a52;
}

.gauge-center {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-score {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
    color: #1f2937;
}

.gauge-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: #7a8497;
    font-weight: 600;
}

.score-red {
    color: var(--danger);
}

.score-yellow {
    color: var(--warn);
}

.score-green {
    color: var(--success);
}

.status-neutral {
    color: var(--muted);
    font-weight: 700;
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 0.8rem;
    border: 1px solid #cfdaef;
    background: #000;
}

.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.results-contact {
    margin-top: 0.85rem;
    background: #f2f7ff;
    border: 1px solid #d6e4fb;
    border-radius: 12px;
    padding: 0.8rem;
}

.results-contact p {
    margin: 0 0 0.4rem;
}

.contact-links {
    margin: 0;
    padding-left: 1.1rem;
}

.contact-links li {
    margin: 0.3rem 0;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ead;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.bio-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    float: right;
    margin: 0.15rem 0 0.6rem 0.9rem;
    display: block;
}

.bio-content {
    min-width: 0;
}

.bio-content::after {
    content: "";
    display: block;
    clear: both;
}

.bio-content p:first-child {
    margin-top: 0;
}

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

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .bio-photo {
        width: 112px;
        height: 112px;
    }
}

/* Quiz page makeover: premium ScoreApp-inspired feel */
body.quiz-page {
    background:
        radial-gradient(circle at 8% -20%, #e7efff 0%, transparent 45%),
        radial-gradient(circle at 92% -12%, #e6fbf5 0%, transparent 40%),
        #f4f7fc;
}

.quiz-page .container {
    width: min(100%, 860px);
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.quiz-page .quiz-card {
    border: 1px solid #dce5f3;
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.quiz-page h1 {
    color: #0f2544;
    font-size: 1.7rem;
    margin-bottom: 0.45rem;
}

.quiz-page .lead {
    color: #5b6b82;
    margin-bottom: 1.1rem;
}

.quiz-page .quiz-form {
    display: grid;
    gap: 0.9rem;
    position: relative;
}

.quiz-page .quiz-progress {
    margin-bottom: 0.2rem;
}

.quiz-page .quiz-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #5b6b82;
    margin-bottom: 0.4rem;
}

.quiz-page .quiz-progress-track {
    height: 8px;
    background: #dfebff;
    border-radius: 999px;
    overflow: hidden;
}

.quiz-page #quiz-progress-fill {
    display: block;
    height: 100%;
    width: 6.25%;
    background: linear-gradient(90deg, #2f66c6, #4e8fff);
    border-radius: inherit;
    transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-page .quiz-step {
    display: block;
    opacity: 1;
    transform: none;
}

.quiz-page .quiz-step.step-enter-right {
    animation: quiz-step-crossfade 320ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.quiz-page .quiz-step.step-enter-left {
    animation: quiz-step-crossfade 320ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

@keyframes quiz-step-crossfade {
    from {
        opacity: 0;
        transform: none;
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.quiz-page .question-block {
    background: #f8faff;
    border: 1px solid #dfe7f5;
    border-radius: 16px;
    padding: 0.95rem;
    margin: 0;
    border-bottom: 1px solid #dfe7f5;
}

.quiz-page .question-block p,
.quiz-page .question-block > label:first-child {
    margin-top: 0;
    margin-bottom: 0.55rem;
    color: #162b49;
    font-weight: 700;
}

.quiz-page .question-block label {
    margin-bottom: 0.55rem;
    color: #2b3c54;
}

.quiz-page input[type="text"],
.quiz-page input[type="email"],
.quiz-page textarea {
    border: 1px solid #cdd7e8;
    border-radius: 12px;
    background: #fff;
    padding: 0.72rem 0.78rem;
    margin-bottom: 0.6rem;
}

.quiz-page input[type="text"]:focus,
.quiz-page input[type="email"]:focus,
.quiz-page textarea:focus {
    outline: none;
    border-color: #3f74d6;
    box-shadow: 0 0 0 3px rgba(63, 116, 214, 0.16);
}

.quiz-page input[type="radio"],
.quiz-page input[type="checkbox"] {
    accent-color: #2461c9;
    margin-right: 0.35rem;
}

.quiz-page .small.muted {
    background: #f2f6ff;
    border: 1px solid #d7e3f7;
    border-radius: 12px;
    padding: 0.72rem 0.78rem;
    margin: 0.25rem 0 0;
}

.quiz-page .small.muted a {
    color: #1d4ead;
    font-weight: 600;
}

.quiz-page .button {
    width: 100%;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    padding-right: 2.25rem;
    background: linear-gradient(180deg, #1f4f95 0%, #113d7a 100%);
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    box-shadow: 0 8px 20px rgba(17, 61, 122, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quiz-page .button:hover {
    background: linear-gradient(180deg, #2359a8 0%, #113d7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 61, 122, 0.32);
}

.quiz-page .button::after {
    content: "→";
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    opacity: 0.95;
}

.quiz-page .quiz-nav {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.quiz-page .quiz-nav .button {
    width: 100%;
}

.quiz-page .button-secondary {
    background: #e6edf9;
    color: #234167;
    box-shadow: none;
    padding-right: 1rem;
}

.quiz-page .button-secondary:hover {
    background: #dce6f7;
    transform: none;
    box-shadow: none;
}

.quiz-page .button-secondary::after {
    content: "";
}

.quiz-page .button-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quiz-page .quiz-step-error {
    margin: 0.55rem 0 0;
    padding: 0.58rem 0.7rem;
    border-radius: 10px;
    background: #fff1f1;
    color: #a02626;
    border: 1px solid #f4c7c7;
    font-size: 0.88rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .quiz-page .quiz-card {
        padding: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quiz-page #quiz-progress-fill,
    .quiz-page .quiz-step,
    .quiz-page .button {
        transition: none !important;
        animation: none !important;
    }
}

/* Shared funnel style for landing + results */
body.funnel-page {
    background:
        radial-gradient(circle at 8% -20%, #e7efff 0%, transparent 45%),
        radial-gradient(circle at 92% -12%, #e6fbf5 0%, transparent 40%),
        #f4f7fc;
}

.funnel-page .container {
    width: min(100%, 860px);
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.funnel-page .card {
    border: 1px solid #dce5f3;
    border-radius: 22px;
    padding: 1.2rem;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.funnel-page h1 {
    color: #0f2544;
    font-size: 1.7rem;
}

.funnel-page h2 {
    color: #14345e;
}

.funnel-page .lead {
    color: #5b6b82;
}

.funnel-page .button {
    border-radius: 999px;
    padding: 0.82rem 1.15rem;
    padding-right: 2.25rem;
    background: linear-gradient(180deg, #1f4f95 0%, #113d7a 100%);
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 20px rgba(17, 61, 122, 0.26);
}

.funnel-page .button:hover {
    background: linear-gradient(180deg, #2359a8 0%, #113d7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 61, 122, 0.32);
}

.funnel-page .button::after {
    content: "→";
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    opacity: 0.95;
}

.landing-page .section-hero,
.quiz-page .section-hero {
    background:
        radial-gradient(circle at 18% -45%, rgba(78, 143, 255, 0.2), transparent 58%),
        linear-gradient(145deg, #f8fbff 0%, #eff5ff 55%, #f5f9ff 100%);
    border-color: #d6e4fb;
}

.quiz-page .section-hero > :last-child {
    margin-bottom: 0;
}

.landing-page .section-cta {
    background: linear-gradient(145deg, #0f2e58 0%, #15477f 55%, #1d5691 100%);
    border-color: #0f3d71;
}

.landing-page .section-cta h2,
.landing-page .section-cta p {
    color: #f3f8ff;
}

.landing-page .section-cta p.small a {
    color: #dbe8ff;
}

.landing-page .section-cta p.small a:hover {
    color: #ffffff;
}

.landing-page .section-cta .button {
    background: #ffffff;
    color: #123d7a;
    box-shadow: 0 10px 24px rgba(2, 17, 37, 0.26);
}

.landing-page .section-cta .button:hover {
    background: #eef4ff;
}

.landing-page .section-cta .button::after {
    color: #123d7a;
}

.landing-page .small a,
.results-page a {
    color: #1d4ead;
    font-weight: 600;
}

.results-page .card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.results-page .card:first-child {
    background:
        radial-gradient(circle at 85% 10%, rgba(88, 204, 154, 0.2), transparent 35%),
        linear-gradient(180deg, #f8fdff 0%, #f2f8ff 100%);
}

@media (min-width: 768px) {
    .funnel-page .card {
        padding: 1.55rem;
    }
}

@media (max-width: 600px) {
    .funnel-page .card,
    .quiz-page .quiz-card {
        border-radius: 16px;
        padding: 1rem;
    }

    .funnel-page .button {
        width: 100%;
        text-align: center;
    }

    .quiz-page .question-block {
        padding: 0.8rem;
    }

    .bio-photo {
        width: 78px;
        height: 78px;
        margin-left: 0.65rem;
    }

    .gauge-score {
        font-size: 2rem;
    }

    .gauge-center {
        bottom: 12px;
    }
}
