/* Typography inherited from the archive's page; scoped to the imported quiz. */
.quiz-gate {
  font-family: "Libre Franklin", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #1f2734;
  text-align: left;
}
.quiz-gate :where(h2, h3) {
  margin: 0;
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.18;
}
.quiz-gate :where(p) {
  margin: 10px 0 0;
  font-size: 1.02rem;
}
.quiz-gate :where(button) {
  font-family: revert;
  line-height: revert;
  letter-spacing: revert;
  padding: revert;
}

/* Component rules copied from the supplied archive. */

body.quiz-open {
  overflow: hidden;
}

body.quiz-open .landing-page {
  filter: blur(9px);
  transform: scale(0.995);
  pointer-events: none;
  user-select: none;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.quiz-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.quiz-gate.is-active {
  display: flex;
}

.quiz-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 30, 0.56);
  backdrop-filter: blur(3px);
}

.quiz-shell {
  position: relative;
  width: min(450px, 100%);
  max-height: 92vh;
  border-radius: 22px;
  border: 1px solid #dbe5ef;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 22%);
  box-shadow: 0 24px 64px rgba(11, 31, 56, 0.34);
  overflow: hidden;
}

.quiz-screen {
  display: none;
  padding: 24px 20px 22px;
  max-height: 92vh;
  overflow: auto;
}

.quiz-screen.is-active {
  display: block;
  animation: quiz-fade-up 0.3s ease;
}

.quiz-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c75ad;
}

.quiz-title {
  margin-top: 6px;
  color: #17395d;
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(1.45rem, 5.6vw, 1.88rem);
}

.quiz-copy {
  margin-top: 10px;
  color: #2e455f;
  font-size: 0.96rem;
  line-height: 1.45;
}

.quiz-progress {
  margin-top: 16px;
  height: 10px;
  background: #e4edf7;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b6ea9, #5fa7ec);
  transition: width 0.14s linear;
}

.quiz-primary-btn,
.quiz-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 800;
  border-radius: 12px;
}

.quiz-primary-btn {
  color: #ffffff;
  background: linear-gradient(180deg, #377dbd, #28679f);
  box-shadow: 0 10px 24px rgba(30, 87, 136, 0.33);
}

.quiz-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.quiz-primary-btn--accent {
  color: #3f3100;
  background: linear-gradient(180deg, #ffe27a, #f4c531);
  box-shadow: 0 12px 26px rgba(141, 107, 19, 0.35);
}

.quiz-primary-btn--accent:hover {
  filter: brightness(1.03);
}

.quiz-secondary-btn {
  color: #285c8f;
  background: #eff5fc;
  border: 1px solid #cdddf0;
  box-shadow: none;
}

.quiz-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.quiz-step-count,
.quiz-step-select {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.quiz-step-count {
  color: #2e6aa5;
}

.quiz-step-select {
  color: #667b93;
}

.quiz-question {
  margin: 2px 0 0;
  color: #18385a;
  font-size: clamp(1.1rem, 4.6vw, 1.38rem);
  line-height: 1.25;
}

.quiz-options {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.quiz-option {
  width: 100%;
  border: 1px solid #cdddef;
  background: #ffffff;
  color: #173f67;
  text-align: left;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 0.97rem;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.quiz-option:hover {
  border-color: #8fb5dd;
}

.quiz-option.is-selected {
  border-color: #2c72ad;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(45, 118, 180, 0.15);
  transform: translateY(-1px);
}

.quiz-options--multi .quiz-option {
  padding-left: 44px;
  position: relative;
}

.quiz-options--multi .quiz-option::before,
.quiz-options--multi .quiz-option::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.quiz-options--multi .quiz-option::before {
  left: 14px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #9db8d6;
  background: #ffffff;
}

.quiz-options--multi .quiz-option::after {
  left: 20px;
  width: 7px;
  height: 11px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: translateY(-58%) rotate(40deg);
}

.quiz-options--multi .quiz-option.is-selected::before {
  border-color: #2b6ea9;
  background: #2b6ea9;
}

.quiz-options--multi .quiz-option.is-selected::after {
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.quiz-next-btn {
  margin-top: 14px;
}

.quiz-benefits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.quiz-benefits li {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  font-size: 0.96rem;
  color: #1d436c;
  border: 1px solid #d6e5f4;
  background: #f7fbff;
  border-radius: 11px;
  padding: 9px 12px;
  font-weight: 600;
}

.quiz-benefits li::before {
  content: "✔ ";
  color: #1e6cae;
}

.quiz-benefits li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.quiz-screen--warning .quiz-title {
  color: #6a2f1a;
}

.quiz-screen--warning .quiz-copy {
  color: #58433a;
}

.is-hidden {
  display: none;
}

@keyframes quiz-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
