/* ============================================================
   THE VILLAGE SURVEY (/quiz)
   One question per screen, slide transitions, big tap targets.
   Uses the campaign's handbill system from style.css.
   ============================================================ */

.quiz-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
}
.quiz-header .brand-name { color: var(--paper); }
.quiz-header { background: transparent; }
.quiz-counter { font-weight: 900; font-size: .9rem; letter-spacing: .1em; }

.quiz-progress { height: .5rem; background: rgba(250, 249, 246, .18); }
.quiz-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .4s ease;
}

.quiz-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  overflow-x: hidden;
}
.quiz-stage { width: 100%; max-width: 38rem; position: relative; }

/* ---- screen transitions ---- */
.screen { transition: transform .35s ease, opacity .35s ease; }
.screen.is-in { transform: translateX(3rem); opacity: 0; }
.screen.is-out { position: absolute; inset: 0; transform: translateX(-3rem); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .screen, .quiz-progress-fill { transition: none; }
}

.screen .kicker { color: var(--accent); }
.screen h1, .screen h2 {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin: .5rem 0 1.4rem;
}
.screen .lede, .screen .note { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.4rem; }
.screen .note { opacity: .8; font-size: .95rem; margin-top: -0.8rem; }

/* ---- answer options ---- */
.opts { display: grid; gap: .7rem; }
.opt {
  font: inherit;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--paper);
  padding: .9rem 1.1rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.opt:hover { background: rgba(250, 249, 246, .12); }
.opt.is-picked { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---- 1-10 scale: ten tap buttons, no slider ---- */
.scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 700;
  opacity: .85;
  margin-bottom: .6rem;
}
.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
}
.scale-btn {
  text-align: center;
  font-size: 1.5rem;
  padding: .85rem 0;
}

.other-input {
  display: block;
  width: 100%;
  margin-top: .7rem;
  padding: .9rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: rgba(250, 249, 246, .08);
  border: 2px dashed var(--accent);
}
.other-input::placeholder { color: rgba(250, 249, 246, .55); }

.btn-big {
  font: inherit;
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  padding: .9rem 1.8rem;
  cursor: pointer;
}
.btn-big:disabled { opacity: .35; cursor: default; }

/* ---- finale ---- */
.counting { font-size: 4rem; text-align: center; color: var(--accent); }
.reflect { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; }
.reflect strong { color: var(--accent); }
.don-lead {
  font-size: 1.1rem;
  font-weight: 900;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 2px solid rgba(250, 249, 246, .25);
}
.don-row { display: flex; gap: .8rem; margin: 1rem 0 1rem; }
.don-trust { opacity: 1; }
.don-trust .lock {
  width: 1em;
  height: 1em;
  fill: var(--accent);
  vertical-align: -0.12em;
  margin-right: .35em;
}
.don-trust strong { color: var(--accent); }
.don {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  text-decoration: none;
  color: var(--paper);
  border: 2px solid var(--paper);
  padding: 1rem .5rem;
  font-weight: 700;
  font-size: .85rem;
}
.don:hover { background: rgba(250, 249, 246, .12); }
.don-amt { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.don-pop { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.don-flash { font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.micro { font-size: .85rem; line-height: 1.5; opacity: .85; margin-top: .6rem; }
.micro a { color: var(--paper); }

.quiz-foot { padding: 1rem 1.25rem 1.5rem; text-align: center; font-size: .8rem; opacity: .75; }
.quiz-foot a { color: var(--paper); }
