/* ============================================================
   IELTS Pre/Post-Test — layout add-on (link AFTER styles.css)
   ============================================================ */

/* ---------- stepper ---------- */
#stepper {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: var(--sp-5) 0 var(--sp-6);
}
.step {
  background: var(--paper); color: var(--ink-500);
  border: 1px solid var(--ink-200); border-radius: 999px;
  padding: var(--sp-1) var(--sp-4); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.step:hover { border-color: var(--blue-500); color: var(--navy-800); }
.step.is-current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.step.is-done { color: var(--accent-green); border-color: var(--accent-green-soft); }

/* ---------- step containers ---------- */
[data-step] { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step-nav {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-8); padding-top: var(--sp-4); border-top: 1px solid var(--ink-200);
}

/* ---------- questions ---------- */
.q {
  background: var(--paper); border: 1px solid var(--ink-200);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0;
}
.q__head { display: flex; gap: var(--sp-3); align-items: baseline; margin-bottom: var(--sp-2); }
.q__num {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--blue-50); color: var(--navy-800); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.q__prompt { font-weight: 500; }
.q__hint { color: var(--ink-500); font-size: 0.85rem; }
.q__options { display: flex; flex-direction: column; gap: var(--sp-1); padding-left: 2.5rem; }
.q__opt { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; }
.q__text, .q__select {
  margin-left: 2.5rem; font-family: inherit; font-size: 1rem;
  padding: var(--sp-2) var(--sp-3); border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm); min-width: 220px; max-width: 100%;
}

/* ---------- listening ---------- */
.lsec { margin-bottom: var(--sp-8); }
.lsec__player {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
}
.lsec__status { font-size: 0.88rem; color: var(--ink-500); }
.lsec__instr { color: var(--ink-700); font-style: italic; }

/* ---------- reading two-column on wide screens ---------- */
.rpass { margin-bottom: var(--sp-10); }
@media (min-width: 900px) {
  .rpass { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
  .rpass__text {
    position: sticky; top: var(--sp-4); max-height: calc(100vh - 2rem);
    overflow: auto; padding-right: var(--sp-4); border-right: 1px solid var(--ink-200);
  }
}

/* ---------- report ---------- */
.bandcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-4); margin: var(--sp-5) 0 var(--sp-6); }
.bandcard {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: var(--sp-4); text-align: center; box-shadow: var(--shadow);
}
.bandcard--pending { background: var(--ink-100); color: var(--ink-500); box-shadow: none; border: 1px dashed var(--ink-300); }
.bandcard__skill { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.bandcard__band { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; line-height: 1.1; margin: var(--sp-1) 0; }
.bandcard--pending .bandcard__band { font-size: 2rem; }
.bandcard__sub { font-size: 0.8rem; opacity: 0.8; }
.diag li { margin-bottom: var(--sp-3); }
#submission-bundle {
  width: 100%; min-height: 200px; font-family: var(--font-mono); font-size: 0.85rem;
  padding: var(--sp-3); border: 1px solid var(--ink-300); border-radius: var(--radius-sm);
  background: var(--paper); white-space: pre; overflow: auto;
}

/* ---------- timed gate (start timer reveals content) ---------- */
.gate {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius); padding: var(--sp-6) var(--sp-5);
  margin: var(--sp-4) 0; text-align: center;
}
.gate p { color: var(--ink-700); max-width: 52ch; margin: 0 auto var(--sp-4); }

/* ---------- examiner audio (speaking parts 1 & 3) ---------- */
.examiner { margin: var(--sp-3) 0; }
.examiner__backup { margin: var(--sp-2) 0 var(--sp-4); font-size: 0.9rem; }
.examiner__backup summary { cursor: pointer; color: var(--blue-600); }
.examiner__backup[open] summary { margin-bottom: var(--sp-2); }

/* ============================================================
   Level Check — landing + lead-capture gate (Phase A)
   Mobile-first; reuses tokens/components from styles.css.
   ============================================================ */
#lc-gate { animation: fade .25s ease; }
.hero__cta { margin-top: var(--sp-5); margin-bottom: 0; }

.lc-gate__body { padding-top: var(--sp-6); }
.lc-points { margin-bottom: var(--sp-6); }
.lc-points h2 { margin-top: 0; }
.lc-points li { color: var(--ink-700); }

/* lead form card */
.lc-form {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-top: 4px solid var(--blue-500);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.lc-form__title { margin-top: 0; }
.lc-form__lead { color: var(--ink-700); margin-bottom: var(--sp-5); }

.lc-field { margin-bottom: var(--sp-4); }
.lc-field label {
  display: block; font-weight: 600; font-size: 0.92rem;
  color: var(--navy-800); margin-bottom: var(--sp-2);
}
.lc-req { color: var(--accent-red); }
.lc-opt { color: var(--ink-500); font-weight: 400; }

.lc-form input,
.lc-form select {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: var(--sp-3); border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-900);
}
.lc-form input:focus,
.lc-form select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(106, 63, 160, 0.20);
}

.lc-form__submit {
  width: 100%; justify-content: center; margin-top: var(--sp-2);
  font-size: 1.05rem; padding: var(--sp-3) var(--sp-5);
}

.lc-privacy {
  margin: var(--sp-4) 0 0; font-size: 0.82rem;
  color: var(--ink-500); line-height: 1.5;
}

@media (min-width: 620px) {
  .lc-form { padding: var(--sp-6); }
}

/* ============================================================
   Level Check — instant result screen (Phase D)
   ============================================================ */
.lc-result__hero {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: stretch;
  margin: var(--sp-5) 0 var(--sp-3);
}
.lc-result__cefr, .lc-result__range {
  flex: 1 1 140px; border-radius: var(--radius-lg); padding: var(--sp-4);
  text-align: center; box-shadow: var(--shadow);
}
.lc-result__cefr { background: var(--navy-900); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.lc-result__cefr-code { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.lc-result__cefr-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; margin-top: var(--sp-1); }
.lc-result__range { background: var(--blue-50); border: 1px solid var(--blue-100); display: flex; flex-direction: column; justify-content: center; }
.lc-result__range-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.lc-result__range-cap { font-size: 0.8rem; color: var(--ink-500); margin-top: var(--sp-1); }
.lc-result__blurb { color: var(--ink-700); margin-bottom: var(--sp-5); }

.lc-gap {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-500); border-radius: var(--radius);
  padding: var(--sp-4); margin: var(--sp-5) 0;
}
.lc-gap--met { background: #ecfdf3; border-color: var(--accent-green-soft); border-left-color: var(--accent-green); }
.lc-gap p { margin: var(--sp-1) 0 0; }
.lc-gap__note { font-size: 0.85rem; color: var(--ink-500); }

.lc-class {
  background: var(--paper); border: 1px solid var(--ink-200);
  border-radius: var(--radius); padding: var(--sp-4); margin: var(--sp-5) 0;
}
.lc-class__name { margin: var(--sp-1) 0; color: var(--navy-800); }

.lc-cta {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: var(--sp-5); margin: var(--sp-6) 0; box-shadow: var(--shadow);
}
.lc-cta__title { margin-top: 0; color: #fff; }
.lc-cta p { color: rgba(255,255,255,0.85); }
.lc-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-2); }
.lc-cta__pay { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 0; }

.lc-result__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.lc-result__sent { font-size: 0.82rem; color: var(--ink-500); margin-top: var(--sp-3); }

/* footer fine print (always-visible disclaimer) */
.site-footer__fine { font-size: 0.78rem; color: var(--ink-500); margin-top: var(--sp-2); max-width: 70ch; }
