/* ===== Engineered Creatively brand colours ===== */
:root,
[data-bs-theme=light] {
  --bs-primary: #3f78e0;
  --bs-primary-rgb: 63, 120, 224;
  --bs-yellow: #fab758;
  --bs-yellow-rgb: 250, 183, 88;
  --bs-dark: #262b32;
  --bs-dark-rgb: 38, 43, 50;
  --bs-body-color: #60697b;
}
footer.bg-dark { background: #262b32 !important; }

/* ===== Quiz question card (used by the landing page hero preview and the quiz wizard) ===== */
.quiz-preview { max-width: 31rem; margin: 0 auto; text-align: left; }
.quiz-preview .quiz-meta { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; margin-bottom: .5rem; }
.quiz-progress { height: .35rem; border-radius: 1rem; background: var(--bs-pale-primary); margin-bottom: 1.4rem; }
.quiz-progress span { display: block; width: 10%; height: 100%; border-radius: 1rem; background: var(--bs-primary); transition: width .3s ease; }
.quiz-option { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .65rem 1rem; margin-bottom: .55rem; border: 1px solid rgba(164, 174, 198, .35); border-radius: .4rem; background: transparent; text-align: left; font-weight: 600; font-size: .8rem; color: #343f52; }
.quiz-option:last-child { margin-bottom: 0; }
.quiz-option .radio,
.quiz-option .check { flex: none; width: 1rem; height: 1rem; border: 2px solid #aab0bc; }
.quiz-option .radio { border-radius: 50%; }
.quiz-option .check { border-radius: .2rem; }
.quiz-option.is-selected { border-color: var(--bs-primary); background: var(--bs-soft-primary); }
.quiz-option.is-selected .radio { border: 5px solid var(--bs-primary); background: #fff; }
.quiz-option.is-selected .check { border: 5px solid var(--bs-primary); background: #fff; }

/* Interactive options (quiz wizard) */
button.quiz-option { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
button.quiz-option:hover { border-color: var(--bs-primary); }
button.quiz-option:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }

/* ===== Quiz wizard page ===== */
[x-cloak] { display: none !important; }
.quiz-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.quiz-page .quiz-preview { width: 100%; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; }
.quiz-error { font-size: .75rem; margin-top: .75rem; }
.quiz-server-error { font-size: .75rem; }
