/* English proficiency quiz (/quiz/) — matches the site's purple (#7a15c7) and navy (#1b2031). */
.aq { --aq-purple: #7a15c7; --aq-purple-soft: #f4ecfb; --aq-navy: #1b2031; --aq-text: #282f49; --aq-muted: #7e7e8a; --aq-line: #dcd7e6; --aq-bad: #b42318;
  max-width: 720px; margin: 2.5rem auto 4rem; padding: 0 4px; color: var(--aq-text); font-family: "IBM Plex Sans", sans-serif; scroll-margin-top: 90px; }
.aq [hidden] { display: none !important; }

.aq-screen { text-align: center; padding: 2rem 0; }
.aq-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.aq-sub { color: var(--aq-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.aq-facts { list-style: none; padding: 0; margin: 0 auto 2rem; display: table; text-align: left; }
.aq-facts li { margin: .45rem 0; }
.aq-facts i { color: var(--aq-purple); margin-right: .5rem; }
.aq-btn { padding: .6rem 1.6rem; font-weight: 600; border-radius: 6px; }
.aq .btn-primary { background: var(--aq-purple); border-color: var(--aq-purple); }
.aq .btn-primary:hover, .aq .btn-primary:focus { background: #5e1099; border-color: #5e1099; }
.aq-back { background: #fff; border: 1px solid var(--aq-line); color: var(--aq-text); }
.aq-back:hover { border-color: var(--aq-purple); color: var(--aq-purple); }

/* progress */
.aq-steps { display: flex; list-style: none; padding: 0; margin: 0 0 2.2rem; counter-reset: s; }
.aq-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; font-size: .82rem; color: var(--aq-muted); text-align: center; }
.aq-steps li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--aq-line); z-index: 0; }
.aq-steps li:first-child::before { display: none; }
.aq-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--aq-line); background: #fff; z-index: 1; margin-bottom: .35rem; display: grid; place-items: center; }
.aq-steps li.is-current { color: var(--aq-purple); font-weight: 600; }
.aq-steps li.is-current .aq-dot { border-color: var(--aq-purple); box-shadow: inset 0 0 0 4px #fff; background: var(--aq-purple); }
.aq-steps li.is-done { color: var(--aq-purple); }
.aq-steps li.is-done::before, .aq-steps li.is-current::before { background: var(--aq-purple); }
.aq-steps li.is-done .aq-dot { background: var(--aq-purple); border-color: var(--aq-purple); }
.aq-steps li.is-done .aq-dot::after { content: "✓"; color: #fff; font-size: 13px; line-height: 1; }
@media (max-width: 520px) { .aq-step-name { display: none; } .aq-steps li.is-current .aq-step-name { display: block; } }

/* questions */
.aq-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.aq-instruction { font-family: "IBM Plex Sans", sans-serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 1.4rem; float: none; width: 100%; }
.aq-q { margin: 0 0 1.8rem; padding: .2rem 0 .2rem; border-left: 3px solid transparent; transition: border-color .2s; }
.aq-q.is-missing { border-left-color: var(--aq-bad); padding-left: .9rem; }
.aq-prompt { font-size: 1.15rem; font-weight: 500; margin-bottom: .8rem; }
.aq-num { display: inline-block; min-width: 1.9rem; color: var(--aq-purple); font-weight: 700; }
.aq-options { display: grid; gap: .5rem; padding-left: 1.9rem; }
.aq-option { display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border: 1px solid var(--aq-line); border-radius: 8px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; max-width: 460px; margin: 0; }
.aq-option:hover { border-color: #b893dc; }
.aq-option input { accent-color: var(--aq-purple); width: 1.05rem; height: 1.05rem; flex: none; margin: 0; }
.aq-option.is-checked, .aq-option:has(input:checked) { border-color: var(--aq-purple); background: var(--aq-purple-soft); box-shadow: 0 0 0 1px var(--aq-purple); }
.aq-option:focus-within { outline: 2px solid #b893dc; outline-offset: 2px; }
.aq-nav { display: flex; gap: .7rem; margin-top: 1rem; }
.aq-error { color: var(--aq-bad); font-weight: 500; margin: 1rem 0 0; }

/* details step */
.aq-field { display: block; font-weight: 600; margin: 0 0 1rem; }
.aq-field input { display: block; width: 100%; margin-top: .35rem; padding: .6rem .8rem; border: 1px solid var(--aq-line); border-radius: 6px; font-weight: 400; }
.aq-field input:focus { outline: none; border-color: var(--aq-purple); box-shadow: 0 0 0 3px var(--aq-purple-soft); }
.aq-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: .4rem 0 1.2rem; cursor: pointer; }
.aq-check input { accent-color: var(--aq-purple); margin-top: .25rem; }
.aq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 1rem; }

/* result */
.aq-check-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--aq-purple-soft); color: var(--aq-purple); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 1rem; }
.aq-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--aq-muted); margin: 0; }
.aq-level { font-size: 3.4rem; font-weight: 700; color: var(--aq-purple); line-height: 1.1; margin: .2rem 0 .4rem; }
.aq-score { font-size: 1.2rem; }
.aq-score b { background: var(--aq-purple); color: #fff; padding: .1rem .5rem; border-radius: 4px; }
.aq-level-text { max-width: 520px; margin: .8rem auto 1.4rem; }
.aq-sections { margin: 0 auto 1.4rem; border-collapse: collapse; min-width: min(420px, 100%); text-align: left; }
.aq-sections td { padding: .35rem .5rem; border-bottom: 1px solid #eee; }
.aq-bar-cell { width: 45%; }
.aq-bar { display: block; height: 8px; background: #ece8f2; border-radius: 4px; overflow: hidden; }
.aq-bar span { display: block; height: 100%; background: var(--aq-purple); }
.aq-n { text-align: right; font-weight: 600; white-space: nowrap; }
.aq-email-note { color: var(--aq-muted); max-width: 520px; margin: 0 auto 1.6rem; }
