/* ============================================================
   Energy Archetype Quiz — Letitia May Collective
   Brand: burgundy / gold / cream · Playfair Display serif
   ============================================================ */

.quiz-shell {
  position: relative;
  min-height: 72vh;
  padding: 6.5rem 1.25rem 4rem;
  background: var(--cream, #f1e7dc);
}

/* soft mandala backdrop */
.quiz-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('/images/quiz/mandala-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.10;
  pointer-events: none;
}
.quiz-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--cream, #f1e7dc) 100%);
}

.quiz-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

/* progress */
.quiz-progress-wrap {
  margin-bottom: 1.5rem;
}
.quiz-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(61, 43, 31, 0.12);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold, #c4923f), #e0bc7a);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.quiz-progress-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-light, #6b5a4a);
  text-align: center;
}

.quiz-root {
  min-height: 420px;
}

/* ---------- welcome ---------- */
.qz-welcome {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 146, 63, 0.45);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(44, 24, 16, 0.10);
  padding: 2.75rem 2.25rem;
  text-align: center;
}
.qz-eyebrow {
  color: var(--gold, #c4923f);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.qz-h1 {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--burgundy, #800000);
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.qz-lead {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--burgundy, #800000);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.qz-body {
  color: var(--text, #3d2b1f);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0 auto 1rem;
  max-width: 560px;
}
.qz-cta {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
}

/* ---------- question ---------- */
.qz-question {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(196, 146, 63, 0.45);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(44, 24, 16, 0.10);
  padding: 2.5rem 2.25rem;
  text-align: center;
}
.qz-qmeta {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.qz-qcount {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c4923f);
}
.qz-qtext {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--text, #3d2b1f);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto 2rem;
}
.qz-scale {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}
.qz-opt {
  border: 1.5px solid rgba(196, 146, 63, 0.55);
  background: var(--white, #fff);
  color: var(--text, #3d2b1f);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.qz-opt:hover {
  border-color: var(--gold, #c4923f);
  background: rgba(196, 146, 63, 0.12);
}
.qz-opt:focus-visible {
  outline: 2px solid var(--gold, #c4923f);
  outline-offset: 2px;
}

/* ---------- capture ---------- */
.qz-capture {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(196, 146, 63, 0.45);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(44, 24, 16, 0.10);
  padding: 2rem;
}
.qz-capture-img img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
.qz-capture-h {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--burgundy, #800000);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.qz-capture-sub-lead {
  color: var(--text, #3d2b1f);
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 1.05rem;
}
.qz-capture-sub {
  color: var(--text-light, #6b5a4a);
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}
.qz-form {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.qz-input {
  width: 100%;
  border: 1.5px solid rgba(61, 43, 31, 0.25);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text, #3d2b1f);
}
.qz-input:focus-visible {
  outline: 2px solid var(--gold, #c4923f);
  outline-offset: 1px;
}
.qz-textarea {
  resize: vertical;
  min-height: 70px;
}
.qz-open-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text, #3d2b1f);
}
.qz-open-note {
  font-size: 0.8rem;
  color: var(--text-light, #6b5a4a);
  margin: 0 0 0.4rem;
}
.qz-err {
  color: #b3261e;
  font-size: 0.9rem;
  margin: 0;
}
.qz-privacy {
  font-size: 0.8rem;
  color: var(--text-light, #6b5a4a);
  margin: 0.8rem 0 0;
}
.qz-final-note {
  color: var(--burgundy, #800000);
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

/* ---------- result ---------- */
.qz-result {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(196, 146, 63, 0.45);
  box-shadow: 0 20px 45px rgba(44, 24, 16, 0.12);
  background: #fff;
}
.qz-result-head {
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
}
.qz-result-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: #e8d5b0;
  margin: 0 0 0.75rem;
}
.qz-result-name {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
}
.qz-result-secondary {
  margin: 0.75rem 0 0;
  font-style: italic;
  font-size: 1rem;
  color: #f3e6d2;
}
.qz-result-body {
  padding: 2.25rem 2rem 1.5rem;
}
.qz-section {
  margin-bottom: 1.6rem;
}
.qz-section-h {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--gold, #c4923f);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}
.qz-section-line {
  color: var(--text, #3d2b1f);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.qz-step-label {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--gold, #c4923f);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}
.qz-step {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  color: var(--burgundy, #800000);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 0 1.8rem;
}
.qz-result-img img {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin: 0 0 0.5rem;
}

/* CTA band */
.qz-cta-band {
  background: var(--cream, #f1e7dc);
  border-top: 1px solid rgba(196, 146, 63, 0.35);
  padding: 2rem;
  text-align: center;
}
.qz-cta-lead {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.3rem;
  color: var(--burgundy, #800000);
  margin: 0 0 0.75rem;
}
.qz-cta-body {
  color: var(--text, #3d2b1f);
  line-height: 1.7;
  margin: 0 0 1.4rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.qz-cta-band .qz-cta {
  display: inline-block;
  margin: 0.25rem 0.4rem;
}
.qz-coming-soon {
  font-size: 0.9rem;
  color: var(--text-light, #6b5a4a);
  font-style: italic;
  margin: 1rem 0 0;
}

/* universal CTA card */
.qz-universal {
  background: #fff;
  border-top: 1px solid rgba(196, 146, 63, 0.35);
  padding: 2.25rem 2rem;
  text-align: center;
}
.qz-universal-h {
  font-family: var(--font-serif, Georgia, serif);
  color: var(--burgundy, #800000);
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}
.qz-universal-body {
  color: var(--text, #3d2b1f);
  line-height: 1.7;
  margin: 0.25rem 0;
}
.qz-universal-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto;
  max-width: 480px;
  text-align: left;
}
.qz-universal-list li::before {
  content: "✅ ";
}
.qz-universal-list li {
  padding: 0.35rem 0;
  color: var(--text, #3d2b1f);
}
.qz-universal-footer {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  color: var(--gold, #c4923f);
  margin: 1rem 0 0;
}

/* floating note */
.qz-note {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 560px;
  width: calc(100% - 2rem);
  background: var(--burgundy, #800000);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 120;
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .quiz-shell { padding-top: 5.5rem; }
  .qz-welcome, .qz-question { padding: 2rem 1.25rem; }
  .qz-scale { grid-template-columns: 1fr; }
  .qz-capture { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
  .qz-capture-img { display: none; }
  .qz-result-head { padding: 2.5rem 1.25rem; }
  .qz-result-body { padding: 1.75rem 1.25rem 1rem; }
  .qz-cta-band, .qz-universal { padding: 1.75rem 1.25rem; }
}