/* AutismEdu - Screening Page Styles */

/* === Hero === */
.screening-hero {
    background: linear-gradient(135deg, rgba(21, 75, 95, 0.92) 0%, rgba(93, 173, 226, 0.65) 100%);
    padding: 64px 0 56px;
    text-align: center;
    color: white;
}

.screening-hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.screening-hero p {
    font-size: 17px;
    font-weight: 400;
    max-width: 620px;
    margin: 0 auto 24px;
    opacity: 0.92;
    line-height: 1.65;
}

.screening-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.screening-meta span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.88;
    letter-spacing: 0.2px;
}

/* === Section Wrapper === */
.screening-section {
    background: #F8F7F6;
    padding: 56px 0 80px;
    min-height: 60vh;
}

.screening-container {
    max-width: 760px;
    margin: 0 auto;
}

/* === Steps === */
.screening-step {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(21, 75, 95, 0.08);
    padding: 48px 48px 40px;
}

/* === Step 1: Age Selection === */
#step-age h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #154B5F;
    margin-bottom: 10px;
    text-align: center;
}

#step-age > p {
    font-size: 15px;
    color: #5a7a8a;
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 36px;
    border: 2.5px solid #e0eaf0;
    border-radius: 16px;
    background: #f8fbfc;
    cursor: pointer;
    transition: all 0.22s ease;
    min-width: 160px;
    font-family: 'Nunito', sans-serif;
}

.age-btn:hover {
    border-color: #154B5F;
    background: #edf4f7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(21, 75, 95, 0.12);
}

.age-btn .age-range {
    font-family: 'Fredoka', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #154B5F;
    line-height: 1;
}

.age-btn .age-label {
    font-size: 14px;
    font-weight: 700;
    color: #154B5F;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.age-btn .age-desc {
    font-size: 13px;
    color: #7a9aaa;
    font-weight: 500;
}

/* === Step 2: Questions === */
.progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.progress-text {
    font-size: 14px;
    font-weight: 700;
    color: #154B5F;
    white-space: nowrap;
    min-width: 52px;
}

.progress-bar-track {
    flex: 1;
    height: 8px;
    background: #e6eef3;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #154B5F, #5DADE2);
    border-radius: 99px;
    transition: width 0.35s ease;
    width: 0%;
}

/* === Question Card === */
.question-item {
    border: 1.5px solid #e8f0f4;
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
    background: #fcfeff;
}

.question-item.answered {
    border-color: #b8dce8;
    background: #f6fbfd;
}

.question-text {
    font-size: 15px;
    font-weight: 600;
    color: #154B5F;
    margin-bottom: 16px;
    line-height: 1.55;
}

.question-num {
    font-size: 12px;
    font-weight: 700;
    color: #8aaabb;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.answer-options {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.answer-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1.5px solid #154B5F;
    border-radius: 99px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #154B5F;
    background: white;
    transition: all 0.18s ease;
    user-select: none;
    flex: 1;
    min-width: 130px;
}

.answer-option:hover {
    background: #edf4f7;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option.selected {
    background: #154B5F;
    color: white;
}

/* === Actions === */
.screening-actions {
    margin-top: 36px;
    text-align: center;
}

.btn-results {
    background: #154B5F;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    letter-spacing: 0.3px;
}

.btn-results:hover:not(:disabled) {
    background: #0e3749;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 75, 95, 0.2);
}

.btn-results:disabled {
    background: #b8cdd6;
    cursor: not-allowed;
}

.results-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #8aacbc;
    font-weight: 500;
}

.results-auth-note {
    margin-top: 10px;
    font-size: 12px;
    color: #e53935;
    font-weight: 500;
    font-style: italic;
}

/* === Step 3: Result Card === */
.result-card {
    text-align: center;
}

.result-score-box {
    display: inline-block;
    background: #f0f8fb;
    border: 2px solid #c8e4ee;
    border-radius: 20px;
    padding: 32px 56px;
    margin-bottom: 28px;
}

.result-score-box.risk-low {
    background: #f0faf4;
    border-color: #a8ddb8;
}

.result-score-box.risk-medium {
    background: #fffbf0;
    border-color: #f0d080;
}

.result-score-box.risk-high {
    background: #fff5f5;
    border-color: #f0a8a8;
}

.result-label {
    font-size: 13px;
    font-weight: 700;
    color: #7a9aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.result-percent {
    font-family: 'Fredoka', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #154B5F;
    line-height: 1;
    margin-bottom: 10px;
}

.result-score-box.risk-low .result-percent   { color: #2a8a4a; }
.result-score-box.risk-medium .result-percent { color: #b07800; }
.result-score-box.risk-high .result-percent   { color: #c03030; }

.result-category {
    font-size: 18px;
    font-weight: 700;
    color: #154B5F;
}

.result-score-box.risk-low .result-category   { color: #2a8a4a; }
.result-score-box.risk-medium .result-category { color: #b07800; }
.result-score-box.risk-high .result-category   { color: #c03030; }

.result-info-text {
    max-width: 560px;
    margin: 0 auto 20px;
    font-size: 15px;
    color: #2c5f72;
    line-height: 1.7;
    text-align: left;
}

.result-warning {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 14px;
    color: #8a4000;
    background: #fff8f0;
    border-left: 4px solid #f0a860;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    text-align: left;
    line-height: 1.65;
}

.result-warning strong {
    text-decoration: underline;
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn-cta {
    display: inline-block;
    background: #154B5F;
    color: white;
    text-decoration: none;
    padding: 13px 36px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.22s ease;
    letter-spacing: 0.3px;
}

.btn-cta:hover {
    background: #0e3749;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 75, 95, 0.2);
}

.btn-retake {
    background: transparent;
    color: #154B5F;
    border: 2px solid #154B5F;
    padding: 11px 28px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-retake:hover {
    background: #154B5F;
    color: white;
}

/* === SEO Info Section === */
.screening-info-section {
    background: white;
    padding: 72px 0;
}

.screening-info-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #154B5F;
    text-align: center;
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: #f4f9fb;
    border-radius: 16px;
    padding: 28px 28px 24px;
    border: 1px solid #daeaf2;
}

.info-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #154B5F;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: #3a6878;
    line-height: 1.65;
}

/* === Footer (shared, minor override) === */
.footer {
    background: #154B5F;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .screening-hero h1 {
        font-size: 30px;
    }

    .screening-hero p {
        font-size: 15px;
    }

    .screening-meta {
        gap: 20px;
    }

    .screening-step {
        padding: 32px 24px 28px;
    }

    .age-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .age-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 18px 24px;
        gap: 16px;
        min-width: unset;
    }

    .age-btn .age-range {
        font-size: 28px;
    }

    .answer-options {
        flex-direction: column;
    }

    .answer-option {
        justify-content: center;
        flex: unset;
    }

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

    .result-score-box {
        padding: 24px 32px;
    }

    .result-percent {
        font-size: 44px;
    }
}

@media (max-width: 480px) {
    .screening-hero {
        padding: 48px 0 40px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-bar-track {
        width: 100%;
    }

    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta, .btn-retake {
        text-align: center;
    }
}
