/* Quiz steps, lead form, loading screen, GPA input */
/* QUIZ */
.section { display: none; }
.section.active { display: flex; }
.quiz-section { min-height: 100vh; background: var(--cream); padding: 60px 20px; align-items: center; justify-content: center; flex-direction: column; }
.quiz-container { width: 100%; max-width: 620px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 40px; }
.quiz-progress-bar { height: 3px; flex: 1; background: #E0D8CC; border-radius: 10px; transition: background 0.3s; }
.quiz-progress-bar.done { background: var(--green); }
.quiz-progress-bar.active { background: var(--gold); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: slideUp 0.4s ease; }
.quiz-q { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: var(--dark); letter-spacing: -1px; line-height: 1.2; margin-bottom: 8px; }
.quiz-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-option { background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 18px 20px; cursor: pointer; transition: all 0.2s; text-align: left; }
.quiz-option:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.quiz-option.selected { border-color: var(--green); background: rgba(0,146,70,0.04); }
.quiz-option-emoji { font-size: 24px; margin-bottom: 8px; display: block; }
.quiz-option-title { font-weight: 700; font-size: 15px; }
.quiz-option-desc { color: var(--muted); font-size: 12px; margin-top: 3px; }
.lang-opt { padding: 22px; }
.lang-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.flag { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.12); }
.flag svg { width: 100%; height: 100%; display: block; }
.lang-code { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.lang-opt .quiz-option-title { font-size: 17px; letter-spacing: -0.3px; }
.lang-opt .quiz-option-desc { font-size: 13px; margin-top: 4px; }
.quiz-next { margin-top: 24px; width: 100%; background: var(--dark); color: #fff; border: none; padding: 18px; font-size: 16px; font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; border-radius: 12px; cursor: pointer; transition: all 0.2s; opacity: 0.4; pointer-events: none; }
.quiz-next.enabled { opacity: 1; pointer-events: all; }
.quiz-next.enabled:hover { background: #1a1a1a; transform: translateY(-1px); }

/* LEAD FORM */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select { width: 100%; font: inherit; font-size: 16px; padding: 16px 18px; border: 2px solid var(--border); border-radius: 12px; background: #fff; color: var(--dark); }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.form-error { color: var(--red); font-size: 14px; margin-top: 12px; display: none; }

/* LOADING */
.loading-section { min-height: 100vh; background: var(--dark); align-items: center; justify-content: center; flex-direction: column; gap: 24px; padding: 20px; }
.loading-text { color: #fff; font-size: 22px; font-weight: 700; text-align: center; }
.loading-steps { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: rgba(255,255,255,0.4); text-align: center; line-height: 2; }
.loading-steps span { color: var(--green); }
.loader { width: 48px; height: 48px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scale-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.scale-chip { font: inherit; color: var(--dark); font-size: 14px; font-weight: 700; padding: 10px 16px; min-height: 44px; border-radius: 100px; border: 2px solid var(--border); background: #fff; cursor: pointer; }
.scale-chip.active { border-color: var(--green); background: rgba(0,146,70,0.06); color: var(--green); }
.gpa-row { display: flex; align-items: center; gap: 12px; }
.gpa-row input { flex: 1; font: inherit; color: var(--dark); font-size: 28px; font-weight: 800; padding: 16px 18px; border: 2px solid var(--border); border-radius: 14px; background: #fff; min-width: 0; }
.gpa-row input:focus { outline: none; border-color: var(--green); }
.gpa-hint { font-size: 18px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.gpa-skip { margin-top: 12px; font: inherit; font-size: 14px; color: var(--muted); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 8px 0; min-height: 44px; }
.gpa-skip.active { color: var(--green); font-weight: 700; }

/* Back button: sits in the empty gap under the progress bar, so nothing below moves */
.quiz-container { position: relative; }
.quiz-back { position: absolute; top: 8px; left: -10px; display: inline-flex; align-items: center; gap: 2px; padding: 7px 12px 7px 6px; font: inherit; font-size: 13px; font-weight: 700; line-height: 20px; color: var(--muted); background: none; border: none; border-radius: 10px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.quiz-back svg { width: 18px; height: 18px; }
.quiz-back:hover { color: var(--green); background: rgba(0,146,70,0.06); }
.quiz-back:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* Consent ticks on the contact step */
.consent { margin: 4px 0 2px; display: grid; gap: 10px; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.45; color: #333; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.consent-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-box { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border: 2px solid #CFC6B8; border-radius: 7px; background: #fff; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.consent-box::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent-row input:checked + .consent-box { background: var(--green); border-color: var(--green); }
.consent-row input:checked + .consent-box::after { opacity: 1; }
.consent-row:has(input:checked) { border-color: rgba(0,146,70,0.45); background: rgba(0,146,70,0.04); }
.consent-row input:focus-visible + .consent-box { outline: 2px solid var(--green); outline-offset: 2px; }
.consent-row a { color: var(--green); font-weight: 700; }
.consent-row i { font-style: normal; color: var(--muted); }
.consent-row.need { border-color: var(--red); background: rgba(206,43,55,0.05); }
