/* ─── Quiz section wrapper ───────────────────────────────── */
.qz-section {
  padding: var(--section-pad);
}

.qz-section-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Quiz card ──────────────────────────────────────────── */
.qz-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

/* ─── Progress ───────────────────────────────────────────── */
.qz-meta {
  margin-bottom: 10px;
}

.qz-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qz-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}

.qz-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ─── Question ───────────────────────────────────────────── */
.qz-question {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 28px;
}

/* ─── Answer buttons ─────────────────────────────────────── */
.qz-options {
  display: flex;
  gap: 12px;
}

.qz-options--choice {
  flex-direction: column;
}

.qz-btn {
  flex: 1;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
}

.qz-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

.qz-btn:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-light);
}

.qz-restart:focus-visible {
  outline: none;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qz-options--choice .qz-btn {
  flex: none;
  text-align: left;
}

/* ─── Reveal ─────────────────────────────────────────────── */
.qz-wrap--reveal {
  text-align: center;
}

.qz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.qz-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.qz-headline {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 14px;
}

.qz-insight {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.qz-cta {
  display: inline-block;
  margin-bottom: 16px;
}

.qz-restart {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.qz-restart:hover {
  color: var(--text);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .qz-wrap { padding: 24px 20px; }
  .qz-question { font-size: 17px; }
  .qz-options { flex-direction: column; }
  .qz-btn { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-bar-fill { transition: none; }
}
