/* =========================================================================
   quiz-us.css
   Stylesheet for the US quiz shell (/quiz on soul-medium.com).

   Self-contained. No external fonts, no CDN, no imports. The palette is the
   same cream / gold / deep-red used by ad-soulmate-list.html so the click
   from the advertorial into the quiz feels like one continuous document.

   Mobile-first: base rules target a phone, the two min-width blocks at the
   bottom widen things for tablet and desktop.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: #f5efe0;
  color: #23201a;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* Kill the iOS tap flash. Selection states are explicit in this UI, the
   grey overlay only makes taps look broken. */
a, button, .opt, .zodiac-cell { -webkit-tap-highlight-color: rgba(0,0,0,0); }

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 14px 40px;
  background: #fffdf6;
  min-height: 100vh;
  box-shadow: 0 0 22px rgba(90, 70, 30, 0.10);
}

/* ---------- Masthead ---------- */

.topbar {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a6845;
  text-align: center;
  padding: 13px 0 11px;
  border-bottom: 1px solid #e3d7bb;
  margin-bottom: 14px;
}

/* ---------- Progress ---------- */

.progress-wrap { margin: 0 0 14px; }

.progress-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  color: #8a7853;
  margin-bottom: 6px;
  /* Hidden by default: a visible "1 of 33" counter costs completions.
     The markup stays because the engine writes into it. */
  display: none;
}

.progress-bar {
  height: 8px;
  background: #eae0c8;
  border: 1px solid #d8c9a4;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c2571c 0%, #a41d13 100%);
  transition: width 320ms ease;
}

/* ---------- The persistent list-check line ----------
   Mariella is "checking the list" for the whole flow. It never resolves in
   the quiz: the payoff is the first thing the sales page delivers. */

.list-check {
  display: none;
  background: #fffaed;
  border: 1px solid #c9b37a;
  border-left: 4px solid #a41d13;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.5;
  color: #3a2e1a;
}

.list-check.shown { display: block; }

.list-check::before {
  content: "\00BB\00A0";
  color: #a41d13;
  font-weight: bold;
  font-style: normal;
}

/* ---------- Question area ---------- */

.qarea { min-height: 260px; }

.q-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.34;
  font-weight: normal;
  color: #1d1a15;
  margin: 4px 0 10px;
}

.q-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6d5f45;
  font-style: italic;
  margin: 0 0 16px;
}

/* ---------- Options ---------- */

.opts { margin: 0 0 8px; }

.opt {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: #23201a;
  background: #fffaed;
  border: 2px solid #d8c9a4;
  border-radius: 2px;
  padding: 13px 14px;
  margin: 0 0 9px;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease, transform 90ms ease;
}

.opt:focus { outline: none; }
.opt:focus-visible { outline: 2px solid #a41d13; outline-offset: 2px; }
.opt:active { transform: scale(0.992); }

@media (hover: hover) {
  .opt:hover { background: #fff4cf; border-color: #a41d13; }
}

.opt.selected {
  background: #fff27a;
  border-color: #a41d13;
  font-weight: bold;
}

/* Multi-select gets an explicit box so it reads as "pick several". */
.opt.multi { padding-left: 44px; position: relative; }

.opt.multi::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border: 2px solid #b8a474;
  background: #fff;
}

.opt.multi.selected::before {
  content: "\2713";
  border-color: #a41d13;
  background: #a41d13;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 15px;
  text-align: center;
}

/* ---------- Zodiac grid (Q1, the promise match with the advertorial) ---------- */

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 4px 0 16px;
}

.zodiac-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 11px 6px;
  font-family: inherit;
  background: #fffaed;
  border: 2px solid #d8c9a4;
  border-radius: 2px;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease, transform 90ms ease;
}

.zodiac-cell:focus { outline: none; }
.zodiac-cell:focus-visible { outline: 2px solid #a41d13; outline-offset: 2px; }
.zodiac-cell:active { transform: scale(0.98); }

@media (hover: hover) {
  .zodiac-cell:hover { background: #fff4cf; border-color: #a41d13; }
}

.zodiac-cell.selected,
.zodiac-cell.prefilled {
  background: #fff27a;
  border-color: #a41d13;
}

.zodiac-name {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
}

.zodiac-dates {
  display: block;
  margin-top: 3px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10.5px;
  font-style: italic;
  color: #6d5f45;
}

/* ---------- Date of birth ---------- */

.date-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 8px;
  margin: 4px 0 18px;
}

.date-row select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: #23201a;
  background: #fffaed;
  border: 2px solid #d8c9a4;
  border-radius: 2px;
  padding: 12px 8px;
  appearance: none;
  -webkit-appearance: none;
}

.date-row select:focus {
  outline: none;
  border-color: #a41d13;
}

/* ---------- Free text ---------- */

.ta {
  width: 100%;
  min-height: 116px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  color: #23201a;
  background: #fffaed;
  border: 2px solid #d8c9a4;
  border-radius: 2px;
  padding: 12px;
  resize: vertical;
}

.ta:focus { outline: none; border-color: #a41d13; }

.ta-count {
  font-size: 12px;
  color: #8a7853;
  text-align: right;
  margin: 4px 0 14px;
}

/* ---------- Bridges (Mariella speaking, no options) ---------- */

.bridge-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17.5px;
  line-height: 1.62;
  color: #23201a;
  margin: 6px 0 22px;
  padding-left: 14px;
  border-left: 3px solid #d8c9a4;
}

.bridge-body p { margin: 0 0 13px; }
.bridge-body p:last-child { margin-bottom: 0; }
.bridge-body em { color: #a41d13; font-style: italic; }

/* ---------- Buttons ---------- */

.btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: bold;
  line-height: 1.35;
  color: #fff;
  background: #a41d13;
  border: none;
  border-radius: 3px;
  padding: 16px 18px;
  margin: 4px 0 0;
  cursor: pointer;
  box-shadow: 0 2px 0 #7d160e;
  transition: background 130ms ease, transform 90ms ease;
}

.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #7d160e; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid #23201a; outline-offset: 2px; }

@media (hover: hover) {
  .btn:hover { background: #b62317; }
}

.btn[disabled] {
  background: #cfc3a6;
  box-shadow: 0 2px 0 #b8a98a;
  cursor: not-allowed;
}

.btn-back {
  display: inline-block;
  margin: 16px 0 0;
  padding: 6px 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  color: #8a7853;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.btn-back:focus { outline: none; }
.btn-back:focus-visible { outline: 2px solid #a41d13; outline-offset: 2px; }

/* ---------- Email gate ---------- */

.field {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* 16px minimum, anything smaller makes iOS zoom on focus */
  color: #23201a;
  background: #fffaed;
  border: 2px solid #d8c9a4;
  border-radius: 2px;
  padding: 14px 12px;
  margin: 0 0 10px;
}

.field:focus { outline: none; border-color: #a41d13; }
.field::placeholder { color: #a3947a; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 6px 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5c5140;
}

.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: #a41d13;
}

.consent a { color: #a41d13; }

.trust {
  margin: 12px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12.5px;
  font-style: italic;
  color: #8a7853;
  text-align: center;
}

/* ---------- Footer / legal ---------- */

.foot {
  margin: 34px 0 0;
  padding: 16px 2px 0;
  border-top: 1px solid #e3d7bb;
  font-size: 11.5px;
  line-height: 1.65;
  color: #8a7853;
  text-align: center;
}

.foot a { color: #8a7853; }
.foot .foot-legal { margin: 0 0 8px; }
.foot .foot-addr { margin: 0; }

/* ---------- Wider screens ---------- */

@media (min-width: 480px) {
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .zodiac-name { font-size: 15px; }
  .q-title { font-size: 23px; }
}

@media (min-width: 700px) {
  .wrap { padding: 0 30px 52px; margin-top: 22px; min-height: 0; border: 1px solid #e3d7bb; }
  body { padding: 0 0 30px; }
  .q-title { font-size: 25px; }
}

/* ---------- Motion ---------- */

.fade-in { animation: qfade 240ms ease both; }

@keyframes qfade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
  .progress-bar-fill { transition: none; }
  .opt, .zodiac-cell, .btn { transition: none; }
}
