/*
 * Readiness Quiz styles. Scoped under .rq-root so they never leak into the
 * global stylesheet. Tokens mirror the career-quiz / accounting-quiz design
 * (Sen / Montserrat, navy + mint). The faculty accent is injected inline as
 * --rq-accent by the Blade shell so GCSE and A-Level inherit their own colour.
 *
 * House rules: no em dashes, no unicode ellipsis, three plain dots only.
 */

.rq-root {
  --rq-navy: #001052;
  --rq-navy-3: #0c2469;
  --rq-mint: #01FCC2;
  --rq-ink: #001052;
  --rq-accent: #1763C6; /* overridden inline per faculty */
  --rq-page: #ffffff;
  --rq-soft: #f4f7fc;
  --rq-line: #e3e9f2;
  --rq-muted: #4a5568;
  font-family: 'Sen', system-ui, -apple-system, sans-serif;
  color: #202020;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
.rq-root *, .rq-root *::before, .rq-root *::after { box-sizing: border-box; }
.rq-root h1, .rq-root h2, .rq-root h3 { font-family: 'Montserrat', sans-serif; color: var(--rq-ink); letter-spacing: -.01em; margin: 0; }
.rq-root p { margin: 0; }

.rq-narrow { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ---------- Fade in ---------- */
.rq-fade { animation: rqFade .32s ease both; }
@keyframes rqFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Eyebrow ---------- */
.rq-eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rq-navy);
  background: rgba(1,252,194,.18); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.rq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 0; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.rq-btn-primary { background: var(--rq-navy); color: #fff; box-shadow: 0 6px 18px rgba(0,16,82,.22); }
.rq-btn-primary:hover { background: var(--rq-navy-3); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,16,82,.30); }
.rq-btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.rq-btn-ghost { background: transparent; color: var(--rq-muted); padding: 12px 18px; }
.rq-btn-ghost:hover { color: var(--rq-navy); }
.rq-btn-lg { font-size: 17px; padding: 18px 40px; }
.rq-btn-block { width: 100%; }
.rq-btn svg { flex: 0 0 auto; }

/* ---------- Progress bar (5 segments) ---------- */
.rq-progress { display: flex; gap: 8px; margin: 4px 0 28px; }
.rq-seg { flex: 1; height: 6px; border-radius: 999px; background: var(--rq-line); transition: background-color .25s ease; }
.rq-seg.is-active { background: var(--rq-accent); }
.rq-seg.is-done { background: var(--rq-navy); }

/* ---------- Trust bar ---------- */
.rq-trust { text-align: center; font-size: 13px; font-weight: 600; color: var(--rq-muted); margin-top: 22px; letter-spacing: .01em; }
.rq-trust-intro { margin-top: 26px; }

/* ---------- Intro ---------- */
.rq-intro { text-align: center; padding: 40px 0 20px; }
.rq-intro-h { font-weight: 800; font-size: 38px; line-height: 1.1; letter-spacing: -.03em; margin: 4px 0 18px; }
.rq-intro-body { font-size: 18px; line-height: 1.6; color: var(--rq-muted); margin: 0 auto 14px; max-width: 560px; }
.rq-intro-note { font-size: 14px; font-weight: 600; color: var(--rq-navy); margin-bottom: 26px; }

/* ---------- Question ---------- */
.rq-q { padding: 24px 0; }
.rq-q-prompt { font-weight: 800; font-size: 26px; line-height: 1.2; margin-bottom: 22px; }
.rq-opts { display: flex; flex-direction: column; gap: 12px; }
.rq-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left;
  width: 100%; padding: 18px 20px; border: 2px solid var(--rq-line); border-radius: 16px;
  background: #fff; cursor: pointer; font-family: 'Sen', sans-serif; font-size: 16px; font-weight: 500; color: var(--rq-ink);
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.rq-opt:hover { border-color: var(--rq-accent); background: var(--rq-soft); }
.rq-opt.is-selected { border-color: var(--rq-navy); background: rgba(1,252,194,.10); }
.rq-opt-label { flex: 1; line-height: 1.4; }
.rq-opt-tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--rq-line); color: transparent; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease; }
.rq-opt.is-selected .rq-opt-tick { background: var(--rq-navy); color: var(--rq-mint); }
.rq-q-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; gap: 12px; }
.rq-helper { font-size: 14px; color: var(--rq-muted); margin-top: 12px; }

/* ---------- Subject picker + autocomplete ---------- */
/*
 * The suggestion list is IN NORMAL FLOW (not absolutely positioned), so an open
 * dropdown pushes the helper text and the Back / Continue button row down
 * instead of floating over them. This keeps the buttons visible and is clearer
 * on mobile. See fix 1 in the round-2 handback.
 */
.rq-subject { position: relative; }
.rq-subject-input {
  width: 100%; padding: 16px 18px; border: 2px solid var(--rq-line); border-radius: 14px;
  font-family: 'Sen', sans-serif; font-size: 17px; color: var(--rq-ink); background: #fff;
}
.rq-subject-input:focus { outline: none; border-color: var(--rq-accent); }
.rq-suggest {
  list-style: none; margin: 6px 0 0; padding: 6px; position: static; z-index: 20;
  background: #fff; border: 1px solid var(--rq-line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,16,82,.14);
  max-height: 264px; overflow-y: auto;
}
.rq-suggest[hidden] { display: none; }
.rq-suggest-item { padding: 12px 14px; border-radius: 10px; cursor: pointer; font-size: 15px; color: var(--rq-ink); }
.rq-suggest-item:hover { background: var(--rq-soft); }
/*
 * When the dropdown is open the subject picker carries .rq-subject-open. The
 * suggestion list sits in normal flow below the input, so the helper text and
 * button row are pushed down and stay fully visible (no overlap). The helper
 * text is optionally dimmed while choosing to keep focus on the suggestions.
 */
.rq-subject-open + .rq-helper { opacity: .55; }

/* ---------- Teaser + gate ---------- */
.rq-teaser { padding: 24px 0; }
.rq-teaser-card { background: var(--rq-soft); border: 1px solid var(--rq-line); border-radius: 22px; padding: 30px 26px; text-align: center; }
.rq-teaser-body { font-size: 16px; line-height: 1.6; color: var(--rq-muted); margin: 4px auto 22px; max-width: 520px; }
.rq-blur-wrap { position: relative; display: inline-block; margin: 0 auto 24px; }
.rq-blur-score { filter: blur(9px); font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--rq-navy); }
.rq-blur-num { font-size: 64px; }
.rq-blur-den { font-size: 28px; color: var(--rq-muted); }
.rq-blur-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rq-lock { background: var(--rq-navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.rq-lead-block { text-align: left; background: #fff; border-radius: 18px; padding: 24px; border: 1px solid var(--rq-line); }
.rq-lead-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.rq-lead-bullets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.rq-lead-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--rq-ink); line-height: 1.4; }
.rq-vpill { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--rq-navy); color: var(--rq-mint); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

.rq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#rqLeadForm > div, #rqLeadForm > label { margin-bottom: 14px; }
#rqLeadForm label { display: block; font-size: 13px; font-weight: 700; color: var(--rq-ink); margin-bottom: 6px; }
#rqLeadForm input[type="text"], #rqLeadForm input[type="email"], #rqLeadForm input[type="tel"], #rqLeadForm input[type="date"] {
  width: 100%; padding: 13px 15px; border: 2px solid var(--rq-line); border-radius: 12px; font-family: 'Sen', sans-serif; font-size: 16px; color: var(--rq-ink); background: #fff;
}
#rqLeadForm input:focus { outline: none; border-color: var(--rq-accent); }
.rq-consent { display: flex !important; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500 !important; color: var(--rq-muted); }
.rq-consent input { margin-top: 2px; }
.rq-phone-warn { font-size: 13px; color: #b26a00; margin: -6px 0 12px; }
.rq-lead-legal { font-size: 12.5px; line-height: 1.5; color: var(--rq-muted); margin: 4px 0 14px !important; }
.rq-lead-legal a { color: var(--rq-accent); text-decoration: underline; }
.rq-err { color: #c0392b; font-size: 14px; font-weight: 600; margin-bottom: 10px; }

/* ---------- Result ---------- */
.rq-result { padding: 24px 0; }
.rq-hero-card { text-align: center; padding: 20px 0 10px; }
.rq-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.rq-ring svg { display: block; transform: rotate(-90deg); }
.rq-ring-fg { transition: stroke-dashoffset .05s linear; }
.rq-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; }
.rq-ring-num { font-weight: 800; font-size: 48px; line-height: 1; color: var(--rq-navy); }
.rq-ring-den { font-size: 15px; font-weight: 700; color: var(--rq-muted); }
.rq-hero-h { font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 6px auto 0; max-width: 540px; }

.rq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.rq-tile { background: #fff; border: 1px solid var(--rq-line); border-radius: 16px; padding: 18px 20px; }
.rq-tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rq-tile-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: var(--rq-ink); }
.rq-tile-score { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--rq-accent); }
.rq-tile-copy { font-size: 14px; line-height: 1.5; color: var(--rq-muted); }

.rq-cta-card { background: var(--rq-navy); color: #fff; border-radius: 22px; padding: 30px 26px; text-align: center; }
.rq-root .rq-cta-h { color: #fff; font-weight: 800; font-size: 24px; margin-bottom: 8px; }
.rq-cta-sub { color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 20px; }
.rq-cta-card .rq-btn-primary { background: var(--rq-mint); color: var(--rq-navy); box-shadow: 0 6px 18px rgba(1,252,194,.28); }
.rq-cta-card .rq-btn-primary:hover { background: #19ffce; }

/*
 * Secondary action (download the PDF report). Deliberately quieter than the
 * primary "Book my call" button so booking stays the main call to action.
 * On the navy CTA card it reads as an outlined, transparent button; used on a
 * light background it falls back to a subtle bordered style.
 */
.rq-btn-secondary { background: transparent; color: var(--rq-navy); border: 2px solid var(--rq-line); box-shadow: none; }
.rq-btn-secondary:hover { border-color: var(--rq-navy); color: var(--rq-navy-3); transform: translateY(-1px); }
.rq-cta-card .rq-btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.rq-cta-card .rq-btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/*
 * "Not ready to book?" copy line that sits under the CTA buttons and explains
 * the PDF download option. Muted so it does not compete with the buttons.
 */
.rq-cta-alt { font-size: 13px; line-height: 1.5; margin: 16px auto 0; max-width: 460px; }
.rq-cta-card .rq-cta-alt { color: rgba(255,255,255,.72); }

.rq-support { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.rq-support li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--rq-ink); line-height: 1.45; }

/* ---------- Sticky mobile CTA ---------- */
.rq-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--rq-line); box-shadow: 0 -6px 20px rgba(0,16,82,.10); }
.rq-sticky-cta .rq-btn-primary { background: var(--rq-navy); color: #fff; }

/* ---------- Toast ----------
 * The toast is appended to document.body which is OUTSIDE the .rq-root
 * scope, so var(--rq-navy) / var(--rq-mint) do NOT resolve. Use literal
 * hex values and !important on colour / background so the site-wide
 * default_2020 stylesheet cannot bleed through and leave us with the
 * dreaded white-on-white confirmation box.
 */
.rq-toast { position: fixed !important; left: 50% !important; bottom: 24px !important; transform: translateX(-50%) !important; z-index: 9999 !important; max-width: 92vw !important; min-width: 260px !important; background: #001052 !important; color: #ffffff !important; padding: 14px 20px !important; border-radius: 12px !important; box-shadow: 0 10px 30px rgba(0,0,0,.28) !important; font-family: 'Sen', system-ui, -apple-system, sans-serif !important; font-weight: 600 !important; font-size: 14px !important; line-height: 1.35 !important; display: flex !important; align-items: center !important; gap: 10px !important; opacity: 1 !important; visibility: visible !important; }
.rq-toast * { color: #ffffff !important; }
.rq-toast span:first-child { color: #01FCC2 !important; display: inline-flex !important; }
.rq-toast span:first-child svg { width: 20px !important; height: 20px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .rq-narrow { padding: 0 14px; }
  .rq-intro { padding: 24px 0 12px; }
  .rq-intro-h { font-size: 28px; }
  .rq-intro-body { font-size: 16px; }
  .rq-q { padding: 18px 0; }
  .rq-q-prompt { font-size: 21px; margin-bottom: 18px; }
  .rq-opts { gap: 10px; }
  .rq-opt { padding: 14px 16px; font-size: 15px; }
  .rq-opt-tick { width: 22px; height: 22px; }
  .rq-tiles { grid-template-columns: 1fr; gap: 12px; margin: 22px 0; }
  .rq-tile { padding: 16px 18px; }
  .rq-field-row { grid-template-columns: 1fr; gap: 10px; }
  #rqLeadForm > div, #rqLeadForm > label { margin-bottom: 12px; }
  #rqLeadForm input[type="text"], #rqLeadForm input[type="email"], #rqLeadForm input[type="tel"], #rqLeadForm input[type="date"] { padding: 12px 14px; font-size: 15px; }
  .rq-teaser { padding: 18px 0; }
  .rq-teaser-card { padding: 22px 18px; border-radius: 18px; }
  .rq-teaser-body { font-size: 15px; margin-bottom: 18px; }
  .rq-lead-block { padding: 20px 18px; border-radius: 16px; }
  .rq-lead-title { font-size: 17px; margin-bottom: 10px; }
  .rq-lead-bullets { margin-bottom: 16px; gap: 8px; }
  .rq-lead-bullets li { font-size: 13.5px; }
  .rq-result { padding: 18px 0; }
  .rq-hero-card { padding: 12px 0 8px; }
  .rq-hero-h { font-size: 22px; }
  .rq-cta-card { padding: 24px 20px; border-radius: 18px; }
  .rq-root .rq-cta-h { font-size: 21px; }
  .rq-cta-sub { font-size: 14px; margin-bottom: 16px; }
  .rq-btn { padding: 13px 24px; font-size: 15px; }
  .rq-btn-lg { font-size: 16px; padding: 15px 30px; }
  .rq-sticky-cta { display: block; }
}
@media (min-width: 641px) {
  .rq-sticky-cta { display: none !important; }
}
