/* Shared student and parent question screens. */
body:has(.question-screen.active) { background: #f1f3ee; }
.phone-wrap:has(.question-screen.active) { border-radius: 10px; box-shadow: 0 0 0 1px #e2e6e1; }
.question-screen { background: #f1f3ee; color: #073e43; }
.question-screen > * { flex-shrink: 0; }
.question-screen .nav { padding: 10px 16px; min-height: 61px; background: #fafcfb; border-bottom: 1px solid #e4e8e2; gap: 10px; flex-wrap: nowrap; }
.question-screen .back-btn, .question-screen .lang-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; width: auto; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #073e43; font-size: 14px; box-shadow: 0 4px 16px #173e3210; }
.question-screen .logo { font-size: 20px; font-weight: 600; color: #073e43; }
.question-screen .lang-btn::after { display: none; }
.question-screen .question-progress { margin: 13px 16px 18px; padding: 14px 18px 16px; border-radius: 24px; background: #fff; box-shadow: 0 12px 32px #173e3205; }
.question-progress-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.question-progress-copy { display: flex; flex-direction: column; gap: 2px; }
.question-progress-eyebrow { color: #78888c; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.question-progress-copy strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
.question-progress-value { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.question-progress-value > span { font-size: 30px; line-height: 1; font-weight: 400; }
.question-progress-value small { color: #78888c; font-size: 12px; }
.question-progress-segments { display: flex; gap: 5px; }
.question-progress-segments > span { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: #dfe6dc; }
.question-progress-segments i { display: block; height: 100%; background: #2d725a; border-radius: inherit; transition: width .2s; }
.question-screen:dir(rtl) .back-btn svg { transform: scaleX(-1); }
.question-screen:dir(rtl) .question-progress-segments i { margin-inline-end: auto; }
.question-screen .question-progress-copy, .question-screen .question-text { text-align: start; }
.question-screen:dir(rtl) .q-label, .question-screen:dir(rtl) .question-text, .question-screen:dir(rtl) .question-progress-eyebrow { letter-spacing: normal; }
.question-progress-segments > span:first-child i { background: #81a573; }
.question-screen .q-label { align-self: flex-start; margin: 0 20px 12px; padding: 5px 12px; border-radius: 11px; background: #dcecd6; color: #07847c; font-size: 12px; line-height: 17px; letter-spacing: .7px; }
.question-screen .q-label-icon { display: none; }
.question-screen .question-text { padding: 0 20px; margin: 0 0 18px; color: #073e43; font-size: 22px; line-height: 1.5; font-weight: 600; letter-spacing: -.7px; }
.question-screen .options-list { padding: 0 16px; gap: 9px; }
.question-screen .option-item { width: 100%; min-height: 58px; padding: 17px 18px; gap: 14px; border: 0; border-radius: 21px; background: #fff; text-align: start; font: inherit; color: #073e43; box-shadow: 0 12px 28px #173e3206; }
.question-screen .option-label { color: inherit; font-size: 15px; }
.question-screen .option-item:hover { background: #e6efdf; }
.question-screen .option-item.selected { background: #153f35; color: #fff; }
.question-screen .radio-circle { width: 22px; height: 22px; border: 1px solid #b7c6c0; }
.question-screen .option-item.selected .radio-circle { background: #b6d89f; border-color: #b6d89f; }
.question-screen .option-item.selected .radio-circle::after { content: ''; width: 8px; height: 5px; border: solid #153f35; border-width: 0 0 2px 2px; border-radius: 0; background: transparent; transform: translateY(-1px) rotate(-45deg); }
.question-screen .freq-icon { display: flex; align-items: flex-end; gap: 3px; margin-inline-start: auto; }
.question-screen .frequency-bar { width: 4px; height: calc(6px + var(--bar) * 4px); border-radius: 2px; background: #dfe6dc; }
.question-screen .frequency-bar.active { background: #81a573; }
.question-screen .selected .frequency-bar { background: #4c7063; }
.question-screen .selected .frequency-bar.active { background: #b6d89f; }
.question-screen .option-item:disabled { cursor: wait; }
.question-screen button:focus-visible { outline: 3px solid #81a573; outline-offset: 3px; }
.question-screen .spacer { flex: 1 0 48px; }
.question-screen .question-hint { text-align: center; color: #819195; font-size: 12px; padding: 20px 16px clamp(24px, 12vh, 112px); margin: 0; }
@media (max-width: 480px) {
    body:has(.question-screen.active) { padding: 0; }
    .phone-wrap:has(.question-screen.active) { width: 100%; height: 100dvh; border-radius: 0; }
    .question-screen .spacer { flex: 0 0 12px; }
    .question-screen .question-hint { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .question-screen *, .question-screen { animation: none !important; transition: none !important; } }

/* Introduction card, shared by both questionnaire entry screens. */
body:has(.welcome-screen.active) { background: #f1f3ee; }
.phone-wrap:has(.welcome-screen.active) { border-radius: 10px; box-shadow: 0 0 0 1px #e2e6e1; }
.welcome-screen { background: #f1f3ee; color: #073e43; overflow-y: hidden; }
.welcome-screen > * { flex-shrink: 0; }
.welcome-screen .nav { min-height: 61px; padding: 10px 16px; background: #fafcfb; border-bottom: 1px solid #e4e8e2; flex-wrap: nowrap; gap: 12px; }
.welcome-screen .logo { color: #073e43; font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.7px; }
.welcome-brand-accent { color: #168277; font-weight: 500; }
.welcome-screen .lang-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #073e43; font-size: 14px; box-shadow: 0 4px 16px #173e3210; }
.welcome-screen .lang-btn::after { display: none; }
.welcome-card { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 17px 16px 0; padding: 24px 22px 12px; border-radius: 36px; background: radial-gradient(ellipse at 83% 35%, #dcedd2 0%, #eaf3e4 35%, transparent 70%), #fff; box-shadow: 0 14px 32px #173e3204; }
.welcome-eyebrow { margin: 0 0 12px; color: #00877f; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.5; text-transform: uppercase; }
.welcome-screen .badges { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.welcome-screen .badge { padding: 6px 12px; border: 0; border-radius: 999px; background: #f1f4ef; color: #07847c; font-size: 12px; line-height: 14px; font-weight: 500; text-transform: uppercase; }
.welcome-screen .badge.filled { background: #dcebd5; color: #073e43; font-weight: 700; }
.welcome-screen .title-xl { max-width: 310px; margin: 0 0 14px; color: #073e43; font-family: 'DM Sans', sans-serif; font-size: 38px; font-weight: 700; line-height: 1.03; letter-spacing: -1.8px; }
.welcome-screen .subtitle { margin: 0 0 14px; color: #073e43; font-size: 16px; line-height: 25px; text-align: start; }
.welcome-illustration { display: block; width: 100%; height: auto; max-height: 40dvh; object-fit: contain; border-radius: 25px; }
.welcome-screen .spacer { display: none; }
.welcome-screen .btn-cta { flex: 0 0 auto; width: calc(100% - 32px); min-height: 58px; margin: 16px 16px max(16px, env(safe-area-inset-bottom)); padding: 16px 24px; border-radius: 999px; background: #153f35; color: #fff; font-size: 16px; line-height: 26px; box-shadow: 0 12px 22px #173e321a; }
.welcome-screen button:focus-visible { outline: 3px solid #81a573; outline-offset: 3px; }
@media (max-width: 480px) {
    body:has(.welcome-screen.active) { padding: 0; }
    .phone-wrap:has(.welcome-screen.active) { width: 100%; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .welcome-screen, .welcome-screen * { animation: none !important; transition: none !important; } }

/* Part introduction (step 2). */
.section-screen .question-progress { margin-bottom: 18px; }
.part-card { margin: 0 16px; padding: 30px 24px 32px; border-radius: 32px; background: radial-gradient(ellipse at 80% 25%, #dfedd4 0%, #edf5e8 35%, transparent 72%), #fff; box-shadow: 0 16px 32px #173e3205; }
.part-number { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 50%; background: #dcebd5; color: #073e43; font-size: 32px; line-height: 1; }
.part-badge { display: table; margin: 0 0 12px; padding: 5px 12px; border-radius: 10px; background: #f1f4ef; color: #07847c; font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; }
.part-title { margin: 0 0 14px; color: #073e43; font-family: 'DM Sans', sans-serif; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -1.2px; }
.part-title > span { color: #81a573; }
.part-description { margin: 0; color: #607e85; font-size: 16px; line-height: 26px; }
.section-screen .btn-cta { width: calc(100% - 32px); min-height: 58px; margin: 20px 16px clamp(24px, 12vh, 112px); padding: 16px 24px; border-radius: 999px; background: #153f35; color: #fff; font-size: 16px; line-height: 26px; box-shadow: 0 12px 22px #173e321a; }

/* Review interlude, shared by student and parent questionnaires. */
.review-screen .question-progress { margin-bottom: 22px; }
.review-screen .question-progress-segments i { background: #2d725a; }
.review-screen .testimonial-section { flex: 0 0 auto; padding: 0 16px; }
.review-screen .section-small-label { margin: 0 4px 12px; color: #78888c; font-size: 11px; line-height: 17px; letter-spacing: 1.2px; }
.review-screen .testimonial-card { margin: 0 0 14px; padding: 24px; border: 0; border-radius: 32px; background: radial-gradient(ellipse at bottom left, #dbece3 0%, transparent 65%), #fff; box-shadow: 0 16px 32px #173e3205; }
.review-screen .testimonial-quote { margin: 0 0 20px; color: #073e43; font-size: 20px; line-height: 31px; font-style: normal; font-weight: 500; text-align: start; letter-spacing: -.3px; }
.review-screen .testimonial-author { gap: 12px; }
.review-screen .avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border: 0; background: #edf3e5; color: #07847c; font-size: 15px; }
.review-screen .author-name { color: #073e43; font-size: 14px; line-height: 20px; }
.review-screen .author-loc { color: #78888c; font-size: 12px; line-height: 16px; }
.review-screen .stars-row { display: inline-flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 10px 18px; border-radius: 999px; background: #fff; }
.review-screen .stars-row .number { color: #073e43; font-size: 16px; line-height: 22px; }
.review-screen .stars { color: #2d725a; font-size: 18px; line-height: 22px; letter-spacing: 1px; }
.review-screen .reviews-count { color: #78888c; font-size: 12px; line-height: 22px; }
.review-screen .btn-cta { width: calc(100% - 32px); min-height: 58px; margin: 20px 16px clamp(24px, 12vh, 112px); padding: 16px 24px; border-radius: 999px; background: #153f35; color: #fff; font-size: 16px; line-height: 26px; box-shadow: 0 12px 22px #173e321a; }
.review-screen .btn-cta:disabled { opacity: .7; cursor: wait; }
