/* ===== Assessment Page Styles ===== */
/* Inherits all CSS variables from the main style.css :root */

/* ===== Assessment Hero ===== */
.assessment-hero {
    position: relative;
    padding: 140px 24px 80px;
    background: var(--navy);
    text-align: center;
    overflow: hidden;
}

.assessment-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(192, 132, 252, 0.08) 0%, transparent 50%);
}

.assessment-hero .container {
    position: relative;
    z-index: 1;
}

.assessment-hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.assessment-hero .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray-400);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.assessment-hero .trust-signals {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
}

.assessment-hero .trust-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
}

.assessment-hero .trust-signal svg {
    width: 18px;
    height: 18px;
    color: var(--blue-light);
}

/* ===== Quiz Container ===== */
.assessment-quiz {
    padding: 60px 24px 120px;
    background: var(--gray-50);
    min-height: 60vh;
}

/* ===== Progress Bar ===== */
.quiz-progress {
    margin-bottom: 48px;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-progress-sections {
    display: flex;
    justify-content: space-between;
}

.quiz-progress-section {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    transition: color 0.3s;
}

.quiz-progress-section.active {
    color: var(--blue);
}

.quiz-progress-section.completed {
    color: var(--green);
    cursor: pointer;
}

/* ===== Quiz Sections ===== */
.quiz-section {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-section.active {
    display: block;
}

.quiz-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.quiz-section.exit-left {
    opacity: 0;
    transform: translateX(-30px);
}

.quiz-section-header {
    margin-bottom: 40px;
}

.quiz-section-header .section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 100px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.quiz-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.quiz-section-header p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Questions ===== */
.quiz-question {
    margin-bottom: 32px;
}

.quiz-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.5;
}

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

.quiz-option {
    cursor: pointer;
    display: block;
}

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

.quiz-option-card {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s;
    align-items: flex-start;
}

.quiz-option-card:hover {
    border-color: var(--blue-light);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.quiz-option input:checked + .quiz-option-card {
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.04);
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.12);
}

.quiz-option-letter {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.quiz-option input:checked + .quiz-option-card .quiz-option-letter {
    background: var(--blue);
    color: var(--white);
}

.quiz-option-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
    padding-top: 4px;
}

/* ===== Quiz Navigation ===== */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.quiz-nav .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Lead Capture ===== */
.leadcap-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leadcap-form input {
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--font);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.leadcap-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.leadcap-form input::placeholder {
    color: var(--gray-400);
}

.leadcap-privacy {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 8px;
}

/* ===== Results ===== */
.quiz-results {
    display: none;
    padding: 60px 0;
}

.quiz-results.active {
    display: block;
}

.results-score-card {
    background: var(--navy);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    margin-bottom: 40px;
}

.results-score-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.results-score-number.band-run { color: var(--green); }
.results-score-number.band-walk { color: var(--yellow); }
.results-score-number.band-crawl { color: var(--red); }

.results-score-label {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.results-band-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.results-band-desc {
    font-size: 16px;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section Breakdown */
.results-breakdown {
    margin-bottom: 40px;
}

.results-breakdown h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.breakdown-item {
    margin-bottom: 16px;
}

.breakdown-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.breakdown-label-name {
    color: var(--navy);
}

.breakdown-label-score {
    color: var(--gray-500);
}

.breakdown-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--blue);
    width: 0%;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.breakdown-bar-fill.low { background: var(--red); }
.breakdown-bar-fill.mid { background: var(--yellow); }
.breakdown-bar-fill.high { background: var(--green); }

/* Recommendations */
.results-recommendations {
    margin-bottom: 40px;
}

.results-recommendations h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

.rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rec-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}

.rec-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.rec-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.rec-card .book-ref {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}

/* Share CTA */
.results-share {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
}

.results-share h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.results-share p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.share-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-actions .btn {
    font-size: 14px;
    padding: 10px 20px;
}

.copied-toast {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .assessment-hero .trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .quiz-progress-sections {
        display: none;
    }

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

@media (max-width: 640px) {
    .assessment-quiz {
        padding: 40px 16px 80px;
    }

    .results-score-card {
        padding: 32px 24px;
    }

    .results-score-number {
        font-size: 56px;
    }

    .quiz-nav {
        flex-direction: column;
        gap: 12px;
    }

    .quiz-nav .btn {
        width: 100%;
        justify-content: center;
    }
}
