/* Quick Quiz — module stylesheet.
 *
 * Self-contained and mobile-first. Every selector is prefixed `qq-`, and
 * this file is loaded ONLY by quick-quiz/index.html, so it cannot affect
 * the existing landing page. The landing page's style.css is likewise not
 * loaded here — the two never meet.
 *
 * Palette is taken from the landing page so the module feels like part of
 * the same product without importing its CSS.
 */

:root {
  --qq-primary: #6c63ff;
  --qq-primary-dark: #574fd6;
  --qq-primary-soft: #f0efff;
  --qq-ink: #1e2166;
  --qq-body: #4a4d70;
  --qq-muted: #8a8da8;
  --qq-line: #e6e8f2;
  --qq-surface: #ffffff;
  --qq-bg: #f2f2fb;


  --qq-green: #17b26a;
  --qq-green-soft: #e8faf1;
  --qq-red: #e5484d;
  --qq-red-soft: #fdecec;
  --qq-amber: #f79009;
  --qq-amber-soft: #fff5e6;
  --qq-radius: 16px;
  --qq-radius-sm: 12px;
  --qq-shadow: 0 4px 20px rgba(22, 24, 58, .07);
}

* {
  box-sizing: border-box;
}

/* The `hidden` attribute is how the JS shows/hides the loading spinner,
 * the subject/difficulty chips and the Next/Submit buttons. The browser's
 * default `[hidden]{display:none}` has the LOWEST specificity, so any of
 * our own rules that set an explicit `display` (.qq-center, .qq-btn,
 * .qq-chip all do) silently beat it and the element stays visible.
 * This reset must therefore win outright. */
[hidden] {
  display: none !important;
}


 html {
     scroll-behavior: smooth;
     scrollbar-color: var(--qq-primary) var(--qq-bg);
     scrollbar-width: thin;
 }

 ::-webkit-scrollbar {
     width: 10px;
 }

 ::-webkit-scrollbar-track {
     background: var(--qq-bg);
 }

 ::-webkit-scrollbar-thumb {
     background: var(--qq-primary);
     border: 2px solid var(--qq-bg);
     border-radius: 999px;
 }

 ::-webkit-scrollbar-thumb:hover {
     background: var(--qq-primary-dark);
 }

 @media (prefers-reduced-motion: reduce) {
     html {
         scroll-behavior: auto;
     }
 }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--qq-bg);

  color: var(--qq-ink);
  font-family: "Nunito Sans", "Roboto Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image: url('../images/bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 100% 100%;
  background-attachment: fixed;
}

/* ─── Top bar ─────────────────────────────────────────────────────────── */

.qq-topbar {
  position: sticky;
  max-width: 1800px;
  margin: 0 auto;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* padding: 12px 16px; */
  /* background: var(--qq-surface); */
  /* border-bottom: 1px solid var(--qq-line); */
  /* padding-top: calc(12px + env(safe-area-inset-top)); */

  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}

.hero_logo {
  max-width: 200px;
}

.hero_logo img {
  width: 100%;
  height: auto;
}

.qq-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--qq-ink);
  text-decoration: none;
}

.qq-brand img {
  display: block;
  border-radius: 6px;
}

.qq-exit {
  /* border: 1px solid var(--qq-line); */
  /* background: transparent; */
  /* color: var(--qq-body); */
  /* font: inherit; */
  /* font-size: 14px; */
  /* font-weight: 600; */
  /* padding: 7px 14px; */
  /* border-radius: 999px;/ */
  /* cursor: pointer; */
  /* min-height: 36px; */

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid #d9d7f7;
  background: #fff;
  color: #5b4fe8;
  font-weight: 700;
  font-size: 14.5px;
  font-family: 'Nunito Sans', sans-serif;
  cursor: pointer;
}

.qq-exit svg {
  width: 16px;
  height: 16px;
}

.qq-exit:hover {
  background: var(--qq-bg);
  color: var(--qq-ink);
}

/* ─── Layout ──────────────────────────────────────────────────────────── */

.qq-main {


  position: relative;
  z-index: 2;
  min-height: calc(90vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.qq-view {
  display: none;
  width: 100%;
  max-width: 720px;
}

.qq-view.is-active {
  display: block;
}

.qq-view[data-view="classes"].is-active,
.qq-view[data-view="review"].is-active,
/* The result view carries the 16:9 certificate. At 520px the preview is only
 * ~292px tall and its type falls under 8px; 720px keeps it readable without
 * the user having to download it first. */
.qq-view[data-view="result"].is-active,
.qq-view[data-view="quiz"].is-active {
  max-width: 720px;
}

.qq-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 60px -20px rgba(60, 55, 150, 0.45);
  padding: 40px 48px 38px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.qq-card-wide {
  max-width: 720px;
}

.qq-card-center {
  text-align: center;
}

.qq-title {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--qq-ink);
  text-align: center;
  /* letter-spacing: -.01em; */
}

.qq-sub {
  margin: 0 0 20px;
  /* color: var(--qq-body); */
  font-size: 16px;
  line-height: 1.6;
  color: #4b4e86;
  text-align: center;
}

.qq-greeting {
  margin: 0 auto 8px;
  color: var(--qq-primary);
  background: #eceafd;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  letter-spacing: .05em;
  padding: 5px 16px;
  border-radius: 999px;
  width: fit-content;
}

.qq-fineprint {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--qq-muted);
}

.qq-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
}

.qq-loading-text {
  margin: 0;
  color: var(--qq-muted);
  font-size: 14px;
}

/* ─── Spinner ─────────────────────────────────────────────────────────── */

.qq-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--qq-line);
  border-top-color: var(--qq-primary);
  border-radius: 50%;
  animation: qq-spin .8s linear infinite;
}

.qq-spinner.is-light {
  border-color: rgba(255, 255, 255, .3);
  border-top-color: #fff;
}

@keyframes qq-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qq-spinner {
    animation-duration: 2s;
  }
}

/* ─── Forms ───────────────────────────────────────────────────────────── */

.qq-label {
  display: block;
  margin: 14px 0 8px;
  color: var(--qq-ink);
  font-weight: 800;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mt-4 {
  margin-top: 20px !important;
}

.qq-label svg {
  width: 18px;
  height: 18px;
  color: #5b4fe8;
  flex-shrink: 0;
}

.qq-input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  /* >=16px stops iOS zooming the page on focus */
  color: var(--qq-ink);
  background: #fbfbff;
  border: 1.5px solid var(--qq-line);
  border-radius: var(--qq-radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.qq-input:focus {
  border-color: var(--qq-primary);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, .14);
}

.qq-phone-wrap {
  display: flex;
  align-items: stretch;
}

.qq-phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 700;
  color: var(--qq-body);
  background: var(--qq-bg);
  border: 1.5px solid var(--qq-line);
  border-right: 0;
  border-radius: var(--qq-radius-sm) 0 0 var(--qq-radius-sm);
}

.qq-phone-input {
  border-radius: 0 var(--qq-radius-sm) var(--qq-radius-sm) 0;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.qq-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  /* comfortable touch target */
  margin-top: 25px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--qq-radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.qq-btn svg {
  width: 18px;
  height: 18px;
}


.qq-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.qq-btn-primary {
  background: var(--qq-primary);
  color: #fff;
}

.qq-btn-primary:hover:not(:disabled) {
  background: var(--qq-primary-dark);
}

.qq-btn-ghost {
  background: transparent;
  color: var(--qq-body);
  border-color: var(--qq-line);
}

.qq-btn-ghost:hover:not(:disabled) {
  background: var(--qq-bg);
  color: var(--qq-ink);
}

.qq-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qq-spin .7s linear infinite;
}

.qq-btn.is-loading .qq-btn-spinner {
  display: block;
}

.qq-link {
  background: none;
  border: 0;
  padding: 6px 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--qq-primary);
  cursor: pointer;
  text-decoration: none;
}

.qq-link:disabled {
  color: var(--qq-muted);
  cursor: default;
}

.qq-link-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.qq-link-block svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* Trails the label instead of sitting beside the leading icon, so the button
 * reads "<icon> Review Answers ->" rather than centring two glyphs together. */
.qq-btn-arrow {
  margin-left: 2px;
}

/* ─── Messages / states ───────────────────────────────────────────────── */

.qq-msg {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--qq-radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.qq-msg.is-visible {
  display: block;
}

.qq-msg.is-error {
  background: var(--qq-red-soft);
  color: var(--qq-red);
}

.qq-msg.is-success {
  background: var(--qq-green-soft);
  color: var(--qq-green);
}

.qq-state {
  text-align: center;
  padding: 28px 8px;
}

.qq-state-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 16px;
}

.qq-state-text {
  margin: 0 0 12px;
  color: var(--qq-body);
  font-size: 14px;
}

.qq-state.is-error .qq-state-text {
  color: var(--qq-red);
}

.qq-empty {
  color: var(--qq-muted);
  text-align: center;
  padding: 24px 0;
}

/* ─── OTP ─────────────────────────────────────────────────────────────── */

.qq-otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0 12px;
}

.qq-otp-box {
  width: 100%;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--qq-ink);
  background: var(--qq-surface);
  border: 1.5px solid var(--qq-line);
  border-radius: var(--qq-radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}

.qq-otp-box::-webkit-outer-spin-button,
.qq-otp-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qq-otp-box:focus {
  border-color: var(--qq-primary);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, .14);
}

.qq-otp-box.is-filled {
  border-color: var(--qq-primary);
  background: var(--qq-primary-soft);
}

.qq-countdown {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--qq-body);
}

.qq-countdown.is-expired {
  color: var(--qq-red);
}

.qq-otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

/* ─── Class picker ────────────────────────────────────────────────────── */

.qq-class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}

/* Each card carries its own accent as --qq-card-tint / --qq-card-soft, set
 * inline by classes.js from a palette cycled by position. The fallbacks
 * below mean a card still looks right if it is ever rendered without them. */
.qq-class-card {
  /* `position` anchors the tick when it leaves the flow on narrow screens;
   * `min-width` overrides the automatic minimum size a grid item gets, which
   * otherwise pins each track to the card's min-content width and overflows
   * the grid on a phone. */
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  color: var(--qq-ink);
  background: var(--qq-surface);
  border: 1.5px solid var(--qq-line);
  border-radius: var(--qq-radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}

.qq-class-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: var(--qq-card-tint, var(--qq-primary));
  background: var(--qq-card-soft, var(--qq-primary-soft));
  transition: color .15s, background .15s;
}

.qq-class-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Class names are short ("6th"), but the API is free to return a longer
 * one — clip it rather than let it push the tick out of the card. */
.qq-class-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Present on every card, revealed only when selected, so the reveal is a
 * fade rather than a reflow of the whole grid. */
.qq-class-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--qq-primary);
  background: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s, transform .15s;
}

.qq-class-check svg {
  display: block;
  width: 14px;
  height: 14px;
}

.qq-class-card:hover:not(:disabled) {
  border-color: var(--qq-card-tint, var(--qq-primary));
  box-shadow: var(--qq-shadow);
}

.qq-class-card:active:not(:disabled) {
  transform: scale(.98);
}

.qq-class-card:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* A selected card is brand indigo whatever its own accent is: one
 * consistent "this is chosen" signal instead of seven different ones. */
.qq-class-card.is-selected,
.qq-class-card.is-selected:hover:not(:disabled) {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7d6cf7 0%, #5a4fe0 100%);
  box-shadow: 0 8px 22px rgba(108, 99, 255, .32);
}

.qq-class-card.is-selected .qq-class-icon {
  color: #fff;
  background: rgba(255, 255, 255, .22);
}

.qq-class-card.is-selected .qq-class-check {
  opacity: 1;
  transform: scale(1);
}

.qq-whatsapp-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f0f4fe;
  width: 90px;
  height: 90px;
  padding: 20px;
 
}

.qq-card-flex {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
}

.qq-card-flex .qq-title {
    text-align: start !important;
}
.qq-card-flex .qq-sub {
    text-align: start !important;
    margin: 0 !important;
}

/* Two columns leave roughly 130px per card on a 390px phone. The tile and
 * the gaps shrink, and the tick leaves the flow for the corner, so the class
 * name keeps the room it needs instead of being ellipsised away. */
@media (max-width: 519.98px) {
  .qq-class-card {
    gap: 10px;
    padding: 12px;
    font-size: 15.5px;
  }

  .qq-class-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .qq-class-icon svg {
    width: 21px;
    height: 21px;
  }

  .qq-class-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
  }

  .qq-class-check svg {
    width: 12px;
    height: 12px;
  }
}

@media (min-width: 820px) {
  .qq-class-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 510.98px) {
  .qq-class-grid {
    grid-template-columns: repeat(1, 1fr);
  }


}



/* ─── Quiz ────────────────────────────────────────────────────────────── */

/* One white card holds the whole quiz: sticky header, question panel, nav.
 * --qq-shell-pad is shared with the header negative margin below, so the two
 * stay in step when the padding changes at the mobile breakpoint. */
.qq-quiz-shell {
  --qq-shell-pad: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--qq-shell-pad);
  background: var(--qq-surface);
  border-radius: 28px;
  box-shadow: 0 20px 60px -20px rgba(60, 55, 150, 0.45);
}

.qq-quiz-head {
  /* position: sticky;
  top: 61px; */
  z-index: 10;
  margin: calc(var(--qq-shell-pad) * -1) calc(var(--qq-shell-pad) * -1) 0;
  padding: var(--qq-shell-pad) var(--qq-shell-pad) 14px;
  background: var(--qq-surface);
  border-radius: 28px 28px 0 0;
}

.qq-quiz-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.qq-quiz-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.qq-quiz-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--qq-primary);
  background: var(--qq-primary-soft);
}

.qq-quiz-mark svg {
  width: 24px;
  height: 24px;
}

.qq-quiz-id-text {
  min-width: 0;
}

.qq-quiz-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--qq-muted);
}

.qq-quiz-class {
  margin: 1px 0 0;
  font-size: 19px;
  font-weight: 800;
}

.qq-timer-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 14px;
  background: var(--qq-primary-soft);
}

.qq-timer-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--qq-primary);
}

.qq-timer-label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--qq-muted);
}

.qq-timer {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--qq-ink);
}

.qq-timer.is-warn {
  color: var(--qq-amber);
}

.qq-timer.is-danger {
  color: var(--qq-red);
}

.qq-progress {
  height: 8px;
  background: var(--qq-line);
  border-radius: 999px;
  overflow: hidden;
}

.qq-progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--qq-primary) 0%, #8b7cff 100%);
  border-radius: 999px;
  transition: width .25s ease;
}

.qq-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--qq-muted);
}

/* The inset panel the question lives on. Options sit on it as white rows,
 * which is what separates them from the card behind. */
.qq-question {
  background: rgb(242 242 251 / 72%);
  border: 1px solid var(--qq-line);
  border-radius: var(--qq-radius);
  padding: 18px 16px;
}

.qq-question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.qq-qnum {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--qq-primary);
}

.qq-chip {
  display: inline-block;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--qq-surface);
  color: var(--qq-body);
  border: 1px solid var(--qq-line);
  text-transform: capitalize;
}

.qq-chip-easy {
  background: var(--qq-green-soft);
  color: var(--qq-green);
  border-color: transparent;
}

.qq-chip-medium {
  background: var(--qq-amber-soft);
  color: var(--qq-amber);
  border-color: transparent;
}

.qq-chip-hard {
  background: var(--qq-red-soft);
  color: var(--qq-red);
  border-color: transparent;
}

.qq-question-text {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.qq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qq-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--qq-ink);
  background: var(--qq-surface);
  border: 1.5px solid var(--qq-line);
  border-radius: var(--qq-radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.qq-option:hover {
  border-color: var(--qq-primary);
}

.qq-option.is-selected {
  border-color: var(--qq-primary);
  background: var(--qq-primary-soft);
  box-shadow: 0 4px 14px -4px rgba(108, 99, 255, .4);
}

.qq-option-letter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--qq-bg);
  font-size: 13px;
  font-weight: 800;
  color: var(--qq-body);
}

.qq-option.is-selected .qq-option-letter {
  background: var(--qq-primary);
  color: #fff;
}

.qq-option-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Always present, revealed only on the selected option, so choosing an answer
 * fades the tick in instead of reflowing the row. */
.qq-option-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--qq-primary);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s, transform .15s;
}

.qq-option-check svg {
  display: block;
  width: 13px;
  height: 13px;
}

.qq-option.is-selected .qq-option-check {
  opacity: 1;
  transform: scale(1);
}

.qq-answer-hint {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--qq-muted);
  text-align: center;
}

/* The quiz variant leads with a lightbulb, so it reads as a row rather than a
 * centred line. The class picker reuses .qq-answer-hint without this. */
.qq-hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

/* White, not --qq-primary-soft: the hint sits on the lavender question panel,
 * where the soft tint is almost the same colour and the disc vanishes. */
.qq-hint-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--qq-primary);
  background: var(--qq-surface);
  border: 1px solid var(--qq-line);
}

.qq-hint-icon svg {
  width: 17px;
  height: 17px;
}

.qq-quiz-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qq-quiz-nav .qq-btn {
  margin-top: 0;
}

/* The button that carries the user forward — quiz Next, quiz Submit, and the
 * Submit in both modals. It is a gradient while every other primary button in
 * the module stays flat, so the way onward is always the same shape. Next and
 * Submit never share a row: Submit replaces Next on the last question. */
.qq-btn.qq-btn-go {
  background: linear-gradient(90deg, var(--qq-primary) 0%, #8b6cf5 100%);
  color: #fff;
}

.qq-btn.qq-btn-go:hover:not(:disabled) {
  background: linear-gradient(90deg, var(--qq-primary-dark) 0%, #7a5bea 100%);
}

/* Two buttons in the row: Previous, and whichever forward button applies —
 * Next, or Submit Quiz on the last question. Once there is room, Previous is
 * sized to its label and the forward button takes what is left; below that
 * they stack, which the full width of .qq-btn already gives. */
@media (min-width: 560px) {
  .qq-quiz-nav .qq-btn {
    flex: 1 1 0;
    width: auto;
  }

  .qq-quiz-nav .qq-nav-prev {
    flex: 0 0 auto;
    min-width: 145px;
  }
}

@media (max-width: 720px) {
  .qq-quiz-shell {
    --qq-shell-pad: 16px;
    border-radius: 22px;
  }

  .qq-quiz-head {
    border-radius: 22px 22px 0 0;
  }

  .qq-quiz-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .qq-quiz-mark svg {
    width: 21px;
    height: 21px;
  }

  .qq-quiz-class {
    font-size: 16px;
  }
  .qq-quiz-id {
    gap: 9px;
}

  .qq-timer-wrap {
    padding: 7px 12px;
    gap: 8px;
  }

  .qq-timer {
    font-size: 18px;
  }

  .qq-question-text {
    font-size: 16px;
  }
  .qq-option {
    gap: 10px;
    padding: 12px;
    font-size: 14px;
}
}


/* ─── Result ──────────────────────────────────────────────────────────── */

.qq-result-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--qq-primary-soft);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--qq-primary);
}

.qq-result-kicker svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.qq-view[data-view="result"] .qq-title {
  text-align: center;
}

.qq-result-sub {
  max-width: 460px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--qq-body);
}

/* The confetti is positioned against this box, so the ring stays centred and
 * the decoration cannot push the layout around. */
.qq-score-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 6px;
}

.qq-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  max-width: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* The gradient ring is a padded circle with a white face inset into it, which
 * gives a full 360° gradient arc that `border-color` alone cannot. Band colours
 * arrive as --qq-ring-a / --qq-ring-b from the .is-* class. */
.qq-score-ring {
  position: relative;
  width: 190px;
  height: 190px;
  padding: 9px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--qq-ring-a, var(--qq-primary)) 0%, var(--qq-ring-b, var(--qq-primary-dark)) 100%);
  box-shadow: 0 14px 34px -12px var(--qq-ring-glow, rgba(108, 99, 255, .55));
}

.qq-score-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--qq-surface);
}

.qq-score-crown {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  color: #f5b323;
}

.qq-score-caption {
  font-size: 13px;
  font-weight: 800;
  color: var(--qq-ink);
}

.qq-score {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.qq-score-pct {
  font-size: 14px;
  font-weight: 800;
  color: var(--qq-muted);
}

.qq-score-ring.is-good {
  --qq-ring-a: #34e39b;
  --qq-ring-b: #2bb3e0;
  --qq-ring-glow: rgba(52, 227, 155, .45);
}

.qq-score-ring.is-mid {
  --qq-ring-a: #ffc043;
  --qq-ring-b: #f79009;
  --qq-ring-glow: rgba(247, 144, 9, .4);
}

.qq-score-ring.is-low {
  --qq-ring-a: #ff9ea2;
  --qq-ring-b: #e5484d;
  --qq-ring-glow: rgba(229, 72, 77, .35);
}

.qq-score-ring.is-good .qq-score {
  color: var(--qq-green);
}

.qq-score-ring.is-mid .qq-score {
  color: var(--qq-amber);
}

.qq-score-ring.is-low .qq-score {
  color: var(--qq-red);
}

.qq-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 12px;
}

.qq-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: var(--qq-bg);
  border-radius: var(--qq-radius);
}

/* Each stat owns one accent, used by both the icon disc and the number. */
.qq-stat-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--qq-stat-tint, var(--qq-primary));
}

.qq-stat-icon svg {
  width: 20px;
  height: 20px;
}

.qq-stat-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qq-stat-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--qq-stat-tint, var(--qq-primary));
}

.qq-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--qq-body);
}

.qq-stat.is-correct {
  --qq-stat-tint: var(--qq-green);
}

.qq-stat.is-incorrect {
  --qq-stat-tint: var(--qq-red);
}

.qq-stat.is-skipped {
  --qq-stat-tint: var(--qq-primary);
}

.qq-time-taken {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--qq-bg);
  border-radius: var(--qq-radius);
  margin-bottom: 4px;
}

.qq-time-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--qq-ink);
}

.qq-time-label svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--qq-primary);
}

.qq-time-value {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}




 @media (max-width: 780px) {
  .qq-stat {
    gap: 6px;
    padding: 12px 6px;
  }

  .qq-stat-icon {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 530px) {
  .qq-stat {
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px;
    text-align: center;
  }

  .qq-stat-icon {
    width: 34px;
    height: 34px;
  }

  .qq-stat-icon svg {
    width: 17px;
    height: 17px;
  }

  .qq-stat-text {
    align-items: center;
  }

  .qq-stat-value {
    font-size: 20px;
  }

  .qq-stat-label {
    font-size: 12px;
  }

  .qq-score-ring {
    width: 164px;
    height: 164px;
  }

  .qq-score {
    font-size: 29px;
  }
}


/* ─── Certificate ─────────────────────────────────────────────────────── */

.qq-cert-wrap {
  margin: 18px 0 14px;
  border: 1px solid var(--qq-line);
  border-radius: var(--qq-radius-sm);
  overflow: hidden;
  background: var(--qq-wash, var(--qq-bg));
}

/* The canvas is 1920x1440, so `width:100%` + `height:auto` reproduces 4:3
 * exactly from the intrinsic size on every screen — phone, tablet, laptop.
 * `aspect-ratio` is a belt-and-braces guard for the brief moment before the
 * intrinsic size is known, so the card never jumps as it loads. */
.qq-cert-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.qq-cert-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 6px;
}

.qq-cert-actions .qq-btn {
  margin-top: 0;
}

@media (min-width: 480px) {
  .qq-cert-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.qq-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.qq-btn-whatsapp:hover:not(:disabled) {
  background: #1da851;
}

.qq-cert-note {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--qq-muted);
  text-align: center;
}

.qq-cert-note.is-error {
  color: var(--qq-red);
}

/* ─── Review ──────────────────────────────────────────────────────────── */

/* Visible to screen readers only. The question number lives in a 32px disc
 * where the word "Question" would not fit, so it is carried here instead. */
.qq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.qq-review-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.qq-review-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.qq-review-back svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.qq-review-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--qq-bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--qq-muted);
  white-space: nowrap;
}

.qq-review-summary strong {
  font-size: 15px;
  font-weight: 900;
  color: var(--qq-ink);
}

.qq-review-intro {
  text-align: center;
  margin: 2px 0 22px;
}

.qq-review-mark {
  display: block;
  width: 160px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 2px;
}

.qq-review-intro .qq-sub {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.qq-review-rule {
  display: block;
  width: 46px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--qq-primary);
  opacity: .45;
}

.qq-review-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 16px;
}

/* Each card carries one status accent as --qq-rv-tint / --qq-rv-soft, set by
 * the .is-* class below. The number disc, the verdict pill, the left edge and
 * the wash all read from that pair, so a status is described once. */
.qq-review-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 16px 20px;
  background:
    linear-gradient(115deg, var(--qq-rv-soft, transparent) 0%, transparent 48%),
    var(--qq-surface);
  border: 1px solid var(--qq-line);
  border-radius: var(--qq-radius);
  box-shadow: 0 8px 24px -16px rgba(30, 33, 102, .45);
}

.qq-review-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--qq-rv-tint, var(--qq-line));
}

.qq-review-card.is-correct {
  --qq-rv-tint: var(--qq-green);
  --qq-rv-soft: var(--qq-green-soft);
}

.qq-review-card.is-incorrect {
  --qq-rv-tint: var(--qq-red);
  --qq-rv-soft: var(--qq-red-soft);
}

/* Skipped is indigo, not red: it matches how the result screen already codes
 * "Skipped", and a question left blank is not a wrong answer. */
.qq-review-card.is-unanswered {
  --qq-rv-tint: var(--qq-primary);
  --qq-rv-soft: var(--qq-primary-soft);
}

.qq-review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.qq-review-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--qq-rv-tint, var(--qq-muted));
}

.qq-verdict {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--qq-rv-soft, var(--qq-bg));
  color: var(--qq-rv-tint, var(--qq-muted));
}

.qq-verdict-icon {
  display: inline-flex;
}

.qq-verdict-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.qq-review-q {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.qq-review-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Wraps rather than squeezing: the "Correct answer" tag is nowrap, so on a
 * narrow screen it would otherwise crush a long option into one word per
 * line. Giving the text a majority basis pushes the tag onto its own line
 * instead, where margin-left:auto still keeps it right-aligned. */
.qq-review-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--qq-bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
}

.qq-review-option .qq-option-text {
  flex: 1 1 60%;
  min-width: 0;
}

/* The row is already tinted, so the disc needs its own step of contrast. */
.qq-review-option .qq-option-letter {
  background: var(--qq-line);
  color: var(--qq-body);
}

.qq-review-option.is-correct {
  background: var(--qq-green-soft);
  border-color: rgba(23, 178, 106, .32);
  color: #0f7a48;
}

.qq-review-option.is-correct .qq-option-letter {
  background: var(--qq-green);
  color: #fff;
}

.qq-review-option.is-chosen-wrong {
  background: var(--qq-red-soft);
  border-color: rgba(229, 72, 77, .32);
  color: #b3272b;
}

.qq-review-option.is-chosen-wrong .qq-option-letter {
  background: var(--qq-red);
  color: #fff;
}

.qq-option-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.qq-tag-icon {
  display: inline-flex;
}

.qq-tag-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.qq-review-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 10px 13px;
  border-radius: var(--qq-radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: var(--qq-rv-tint, var(--qq-muted));
  background: var(--qq-rv-soft, var(--qq-bg));
}

.qq-note-icon {
  display: inline-flex;
}

.qq-note-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.qq-review-explanation {
  margin-top: 12px;
  padding: 12px 13px;
  background: var(--qq-bg);
  border-radius: var(--qq-radius-sm);
}

.qq-review-explanation-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--qq-primary);
  margin-bottom: 4px;
}

.qq-review-explanation p {
  margin: 0;
  font-size: 14px;
  color: var(--qq-body);
  line-height: 1.5;
}

/* Line the question and options up with the chips rather than the number
 * disc, the way the header row reads. Dropped on narrow screens, where the
 * indent costs more than the alignment is worth. */
@media (min-width: 560px) {

  .qq-review-q,
  .qq-review-options,
  .qq-review-note,
  .qq-review-explanation {
    margin-left: 10px;
  }
}


.fineprint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #eceafd;
  color: #4b4e86;
  font-size: 14px;
  line-height: 1.5;
}

.fineprint svg {
  width: 18px;
  height: 18px;
  color: #5b4fe8;
  flex-shrink: 0;
}

/* ─── Thank you / expired ─────────────────────────────────────────────── */

.qq-thanks-mark {
  width: 72px;
  height: 72px;
  margin: 4px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  color: var(--qq-green);
  background: var(--qq-green-soft);
  border-radius: 50%;
}

.qq-thanks-mark.is-warn {
  color: var(--qq-amber);
  background: var(--qq-amber-soft);
}

/* ─── Modal ───────────────────────────────────────────────────────────── */

.qq-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 24, 58, .5);
  backdrop-filter: blur(3px);
}

.qq-modal.is-visible {
  display: flex;
}

/* Same radius and shadow as the cards behind it, so the dialog reads as the
 * same surface brought forward rather than a different component. */
.qq-modal-box {
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 24px 24px;
  background: var(--qq-surface);
  border-radius: 28px;
  box-shadow: 0 24px 70px -20px rgba(30, 33, 102, .55);
}

.qq-modal-head {
  text-align: center;
  margin-bottom: 18px;
}

.qq-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--qq-primary);
  background: var(--qq-primary-soft);
}

.qq-modal-mark svg {
  width: 26px;
  height: 26px;
}

.qq-modal-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
}

/* ─── Pre-submit summary ──────────────────────────────────────────────── */

.qq-summary-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

/* Icon disc beside the number, matching the result screen stat cards. Each
 * card owns one accent, used by both the disc and the value. */
.qq-summary-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  background: var(--qq-bg);
  border-radius: var(--qq-radius);
}

.qq-summary-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--qq-summary-tint, var(--qq-muted));
}

.qq-summary-icon svg {
  width: 18px;
  height: 18px;
}

.qq-summary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qq-summary-value {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--qq-summary-tint, var(--qq-ink));
}

.qq-summary-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--qq-body);
}

.qq-summary-stat.is-answered {
  --qq-summary-tint: var(--qq-green);
}

.qq-summary-stat.is-skipped {
  --qq-summary-tint: var(--qq-primary);
}

.qq-summary-legend {
  margin: 0 0 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--qq-muted);
  text-align: center;
}

.qq-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.qq-summary-chip {
  min-height: 42px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--qq-muted);
  background: var(--qq-surface);
  border: 1.5px solid var(--qq-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.qq-summary-chip:hover {
  border-color: var(--qq-primary);
  color: var(--qq-primary);
}

.qq-summary-chip.is-answered {
  background: var(--qq-green-soft);
  border-color: rgba(23, 178, 106, .35);
  color: #0f7a48;
}

.qq-summary-chip.is-current {
  outline: 2px solid var(--qq-primary);
  outline-offset: 1px;
}

/* ─── Modal note ──────────────────────────────────────────────────────── */

/* Amber by default, green once nothing is left unanswered. The two icons are
 * both rendered and swapped by the modifier, because the text inside is set
 * with textContent and would wipe any icon that lived in the same element. */
.qq-modal-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--qq-radius-sm);
  color: var(--qq-amber);
  background: var(--qq-amber-soft);
}

.qq-modal-note svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.qq-modal-note .qq-note-ok,
.qq-modal-note.is-ok .qq-note-warn {
  display: none;
}

.qq-modal-note.is-ok .qq-note-ok {
  display: block;
}

.qq-modal-note.is-ok {
  color: var(--qq-green);
  background: var(--qq-green-soft);
}

.qq-modal-note .qq-modal-warn {
  margin: 0;
  color: inherit;
}

/* ─── Leave warning ───────────────────────────────────────────────────── */

.qq-leave-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--qq-amber);
  background: var(--qq-amber-soft);
}

.qq-leave-mark svg {
  width: 27px;
  height: 27px;
}

#qqLeaveModal .qq-modal-title,
#qqLeaveModal .qq-modal-text,
#qqLeaveModal .qq-modal-warn {
  text-align: center;
}

/* ─── Class-picker Continue ───────────────────────────────────────────── */

.qq-continue {
  margin-top: 18px;
}

.qq-modal-text {
  margin: 0;
  color: var(--qq-body);
  font-size: 15px;
  line-height: 1.5;
}

.qq-modal-warn {
  margin: 6px 0 0;
  color: var(--qq-amber);
  font-size: 13px;
  font-weight: 700;
}

.qq-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.qq-modal-actions .qq-btn {
  flex: 1 1 0;
  width: auto;
  margin-top: 0;
}

@media (max-width: 400px) {
  .qq-modal-box {
    padding: 22px 18px 20px;
  }

  .qq-summary-stat {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .qq-summary-text {
    align-items: center;
  }
}


/* ─── Blocking overlay ────────────────────────────────────────────────── */

.qq-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(22, 24, 58, .72);
}

.qq-overlay.is-visible {
  display: flex;
}

.qq-overlay-text {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* ─── Larger screens ──────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .qq-main {
    padding: 5px 24px 60px;
  }

  /* .qq-card { padding: 32px 28px; } */
  /* .qq-title { font-size: 28px; } */
  .qq-otp-row {
    gap: 10px;
  }

  .qq-otp-box {
    height: 62px;
    font-size: 24px;
  }
}


@media (max-width: 920px) {
  .qq-quiz-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .qq-card {
    padding: 24px 24px 24px;
  }

  .qq-title {
    font-size: 26px;
    margin: 0 0 2px;
  }

  .qq-topbar {
    padding: 20px 24px;
    justify-content: center;
  }

  .qq-main {
    padding: 28px 22px 28px;
  }

  .qq-sub {
    font-size: 15px;
    line-height: 1.3;
  }

  .qq-exit {
    gap: 6px;
    padding: 8px 8px;
    font-size: 13.5px;
    position: absolute;
    right: 12px;
  }
  .qq-exit span {
    display: none;
  }

  .qq-btn {
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 15px;
    padding: 0 20px;
    font-size: 15px;

  }

  .qq-class-card {
    gap: 10px;
    min-height: 66px;
    padding: 8px;
  }

  .qq-stat {
    gap: 8px;
    padding: 10px;
}

.qq-review-card::before {
  width: 3px;
}

.qq-review-summary {
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
}
.qq-review-summary strong {
    font-size: 13px;
}

.qq-link {
    font-size: 12px;
}
.qq-review-back {
    gap: 5px;
}

.qq-review-card {
    padding: 14px 12px 12px 14px;
}

.qq-review-q {
    font-size: 15px;
}

.qq-review-option {
    gap: 6px 8px;
    padding: 10px 10px;
    font-size: 13.5px;
}

.qq-option-letter {
    width: 25px;
    height: 25px;
    font-size: 12px;
}

.qq-review-rule {
    display: none;
}

.qq-review-list {
  gap: 20px;
}

.qq-whatsapp-box{
  display:none
}
}

@media (max-width: 520px) {
  .qq-quiz-mark {
    display:none;
  }
}