/* =========================================================
   Vivera Longevity Intake Quiz — brand color #2037f5
   ========================================================= */

:root {
  /* Brand color */
  --brand-primary: #2037f5;
  --brand-primary-hover: #1a2dd4;
  --brand-primary-light: #e8ebff;

  /* Legacy aliases (preservados para compat) */
  --green-primary: var(--brand-primary);
  --green-primary-light: var(--brand-primary-light);
  --green-primary-hover: var(--brand-primary-hover);
  --heading-dark: rgb(17, 24, 39);
  --subheading: rgb(35, 45, 64);
  --muted: rgb(107, 114, 128);
  --input-text: rgb(75, 85, 99);
  --border-light: rgb(229, 231, 235);
  --card-shadow: rgba(0, 0, 0, 0.08) 0px 4px 20px 0px;
  --error-bg: rgb(254, 226, 226);
  --error-text: rgb(220, 38, 38);
  --warning-bg: rgb(253, 252, 232);
  --warning-text: rgb(120, 99, 16);
  --pill-light: rgb(223, 228, 237);
  --bg-page: #ffffff;
  --trustpilot-green: #00B67A;
  --trustpilot-gray: #D3D3D3;
  --gender-male-bg: #DBEAFE;
  --gender-male-fg: #1D4ED8;
  --gender-female-bg: #FCE7F3;
  --gender-female-fg: #BE185D;

  /* Type */
  --font-primary: 'Red Hat Text', 'Red Hat Text Placeholder', sans-serif;
  --font-secondary: 'Inter', 'Inter Placeholder', sans-serif;

  /* Layout */
  --form-max: 480px;
  --content-max: 432px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--heading-dark);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

/* ---------- Form container ---------- */
.ms-form {
  width: 100%;
  max-width: var(--form-max);
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Header strip (logo + trustpilot) ---------- */
.header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 12px;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
  font-family: 'Outfit', var(--font-primary);
}

.logo .logo-mark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--brand-primary);
  text-transform: uppercase;
}

.logo .logo-sub {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--brand-primary);
  opacity: 0.85;
  text-transform: uppercase;
  margin-top: 2px;
}

.rating-block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rating-text {
  font-family: var(--font-secondary);
  font-size: 10.08px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.1px;
}

.trustpilot-stars {
  display: block;
  flex-shrink: 0;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 30px 0;
  justify-content: space-between;
}

.step-mark {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: var(--border-light);
  transition: background 0.3s ease;
}

.step-mark.current {
  background: var(--green-primary-light);
}

.step-mark.completed {
  background: var(--green-primary);
}

/* ---------- Pages ---------- */
.pages {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- Hero block ---------- */
.hero-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
}

.hero-image {
  width: 100%;
  max-width: var(--content-max);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 432 / 210;
  background: #84a298;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.display-title {
  font-family: var(--font-primary);
  font-size: 38px;
  font-weight: 600;
  line-height: 41.8px;
  letter-spacing: normal;
  color: var(--heading-dark);
  margin: 0;
}

.display-title .accent {
  color: var(--green-primary);
}

.lead {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* ---------- Question block ---------- */
.question {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question h2 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.4px;
  color: var(--heading-dark);
  margin: 0;
}

.question h3 {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  line-height: 22.95px;
  color: var(--subheading);
  margin: 0;
}

.question h3.standalone {
  font-size: 17px;
  font-weight: 500;
  line-height: 22.95px;
  color: var(--subheading);
}

.question-sub {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin: -8px 0 0;
}

/* ---------- Inputs (text + select) ---------- */
.input-row {
  display: flex;
  gap: 18px;
}

.input-row .input-group {
  flex: 1;
  min-width: 0;
}

.dob-row .input-group { flex: 1; }
.dob-row .dob-year { flex: 1.4; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-input,
.select-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  height: 51px;
  display: flex;
  align-items: center;
  padding: 0;
  transition: box-shadow 0.2s ease;
}

.text-input:focus-within,
.select-wrapper:focus-within {
  box-shadow: 0 0 0 2px var(--green-primary), rgba(0, 0, 0, 0.08) 0px 4px 20px 0px;
}

.text-input input,
.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--input-text);
  outline: none;
  cursor: text;
}

.select-wrapper select {
  cursor: pointer;
  padding-right: 40px;
}

.text-input input::placeholder {
  color: var(--input-text);
  opacity: 0.7;
}

/* number arrows hide */
.text-input input[type="number"]::-webkit-inner-spin-button,
.text-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.text-input input[type="number"] { -moz-appearance: textfield; }

.chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ---------- Gender cards ---------- */
.gender-row {
  display: flex;
  gap: 16px;
}

.gender-card {
  flex: 1;
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 48px 24px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 180px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gender-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-card .gender-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -90%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gender-card h4 {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  color: var(--heading-dark);
  line-height: 22.95px;
  margin: 0;
  text-align: center;
}

.gender-card:hover {
  transform: translateY(-1px);
}

.gender-card:has(input:checked) {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary), rgba(46, 147, 111, 0.18) 0px 4px 20px 0px;
}

/* ---------- Yes/No cards ---------- */
.yesno-row {
  display: flex;
  gap: 16px;
}

.yesno-card {
  flex: 1;
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 51px;
}

.yesno-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yesno-card h4 {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  color: var(--heading-dark);
  margin: 0;
  text-align: center;
}

.yesno-card:has(input:checked) {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary), rgba(46, 147, 111, 0.18) 0px 4px 20px 0px;
}

/* ---------- Checkbox list ---------- */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-item {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cb-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cb-checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cb-item:has(input:checked) .cb-checkmark {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

.cb-checkmark svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cb-item:has(input:checked) .cb-checkmark svg { opacity: 1; }

.cb-item:has(input:checked) {
  border-color: var(--green-primary);
}

.cb-label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--heading-dark);
  margin: 0;
}

/* ---------- Info card list (BP, Heart Rate) ---------- */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 64px;
}

.info-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.info-card .info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.info-card h4 {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  color: var(--heading-dark);
  margin: 0;
  line-height: 22.95px;
}

.info-card .info-sub {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 16px;
}

.info-card:has(input:checked) {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 1px var(--green-primary), rgba(46, 147, 111, 0.18) 0px 4px 20px 0px;
}

.info-card .info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tone variants */
.info-card.tone-normal { /* green */ }
.info-card.tone-normal .info-icon { background: rgb(220, 252, 231); color: rgb(34, 197, 94); }
.info-card.tone-normal .info-sub { color: rgb(34, 197, 94); }

.info-card.tone-elevated .info-icon { background: rgb(254, 249, 195); color: rgb(202, 138, 4); }
.info-card.tone-elevated .info-sub { color: rgb(202, 138, 4); }

.info-card.tone-stage1 .info-icon { background: rgb(255, 237, 213); color: rgb(234, 88, 12); }
.info-card.tone-stage1 .info-sub { color: rgb(234, 88, 12); }

.info-card.tone-stage2 .info-icon { background: rgb(254, 226, 226); color: rgb(220, 38, 38); }
.info-card.tone-stage2 .info-sub { color: rgb(220, 38, 38); }

.info-card.tone-slow .info-icon { background: rgb(207, 250, 254); color: rgb(8, 145, 178); }
.info-card.tone-slow .info-sub { color: rgb(8, 145, 178); }

/* ---------- Next button (pill) ---------- */
.btn-next {
  width: 100%;
  height: 53.6px;
  padding: 16px 32px;
  background: var(--brand-primary);
  color: #ffffff;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(32, 55, 245, 0.25);
}

.btn-next:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 6px 20px rgba(32, 55, 245, 0.35);
}

.btn-next:active {
  transform: translateY(1px);
}

/* Generic pill buttons — qualquer <button> dentro do form */
.ms-form button,
.ms-form .btn,
button.btn,
.btn {
  border-radius: 9999px;
}

/* ---------- Contact step (Step 6) ---------- */
.contact-question .input-group + .input-group {
  margin-top: 12px;
}

/* ---------- 🚧 TEMP Lead Gate (full-screen takeover) ---------- */
.lead-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg, #F3F4F6);
  padding: 24px;
  overflow-y: auto;
}

.lead-gate[hidden] { display: none; }

.lead-gate-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-gate-logo {
  align-self: center;
  text-align: center;
}

.lead-gate-header { text-align: center; }
.lead-gate-header .display-title { font-size: 26px; line-height: 32px; margin: 8px 0 8px; }
.lead-gate-header .lead { font-size: 14px; line-height: 1.5; margin: 0; }

.lead-gate-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 520px) {
  .lead-gate { padding: 16px; }
  .lead-gate-card { padding: 24px 20px; }
  .lead-gate-header .display-title { font-size: 22px; line-height: 28px; }
}

/* ---------- Thank you screen ---------- */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.thank-you-inner {
  text-align: center;
  max-width: 520px;
}

.thank-you-icon {
  display: inline-flex;
  margin-bottom: 16px;
}

.thank-you h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary, #111827);
}

.thank-you p {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary, #4B5563);
  margin: 0;
}

/* ---------- Mobile / responsive ---------- */
@media (max-width: 520px) {
  .ms-form {
    padding: 0 16px 16px;
  }
  .display-title { font-size: 30px; line-height: 34px; }
  .gender-card { height: 160px; padding: 36px 16px 4px; }
  .gender-card .gender-icon { width: 52px; height: 52px; }
  .input-row { gap: 12px; }
  .dob-row { gap: 10px; }
  .header-strip { padding: 16px 0 10px; }
  .progress-bar { padding: 20px 0; gap: 4px; }
  .step-mark { height: 10px; }
  .thank-you h1 { font-size: 28px; }
}

/* =========================================================
   ===== MULTI-STEP QUIZ ADDITIONS (Vivera v2) =====
   ========================================================= */

/* ---------- Multi-step container ---------- */
.steps-wrapper { display: flex; flex-direction: column; gap: 0; }
.quiz-step { display: flex; flex-direction: column; gap: 24px; padding-bottom: 16px; }
.quiz-step[hidden] { display: none !important; }

/* ---------- Nav row (back + progress) ---------- */
.nav-row { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; }
.nav-row .progress-bar { padding: 0; flex: 1; }

.btn-back {
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--input-text);
  flex-shrink: 0;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.btn-back:hover { background: var(--border-light); }
.btn-back[hidden] { display: none; }

/* ---------- Display title medium (for video step) ---------- */
.display-title-md {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  color: var(--heading-dark);
  margin: 0;
  text-align: center;
}
.display-title-md .accent { color: var(--brand-primary); }

/* ---------- Lead large (for interstitial Perfect) ---------- */
.lead-large {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.5;
  color: var(--input-text);
  margin: 0;
}

/* ---------- Centered CTA (intro to button) ---------- */
.centered-cta {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--input-text);
  margin: 0;
}

/* ---------- Video block ---------- */
.video-block {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--card-shadow);
  aspect-ratio: 4 / 3;
}
.video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ---------- Calculation result card (PACE CHECK) ---------- */
.calc-result-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--brand-primary);
}
.calc-line {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--subheading);
}
.calc-line strong { color: var(--brand-primary); font-weight: 700; }

/* ---------- Option list (radio cards with icon) ---------- */
.opt-list { display: flex; flex-direction: column; gap: 12px; }

.opt-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card:hover { border-color: var(--brand-primary); }
.opt-card:has(input:checked) {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary), rgba(32,55,245,0.18) 0 4px 18px;
  background: #fafbff;
}

.opt-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.opt-icon-ok { background: #DCFCE7; color: #15803D; }
.opt-icon-fast { background: #DBEAFE; color: #1D4ED8; }
.opt-icon-slow { background: #FEE2E2; color: #DC2626; }

.opt-label {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--heading-dark);
  flex: 1;
}

/* Radio variant (round mark on left, no icon) */
.opt-card-radio { padding: 16px 20px; }
.opt-card-radio .opt-radio-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  position: relative;
  transition: border-color 0.18s ease;
}
.opt-card-radio:has(input:checked) .opt-radio-mark {
  border-color: var(--brand-primary);
}
.opt-card-radio:has(input:checked) .opt-radio-mark::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
}

/* ---------- Conditional block (textarea Yes) ---------- */
.conditional-block { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.conditional-block[hidden] { display: none; }
.conditional-label {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--input-text);
  margin: 0;
}
.conditional-block textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--input-text);
  resize: vertical;
  min-height: 120px;
  outline: none;
}
.conditional-block textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary), rgba(0,0,0,0.08) 0 4px 20px;
}

/* ---------- Assessment screen ---------- */
.quiz-step-assessment { gap: 18px; }

.assessment-header {
  background: linear-gradient(135deg, #1a3a2e 0%, #2d5a3f 100%);
  border-radius: 12px 12px 0 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  margin: 0 -20px 0;
}
.assessment-header-left { display: flex; flex-direction: column; }
.assessment-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
}
.assessment-tagline {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 1px;
}
.assessment-header-right { text-align: right; display: flex; flex-direction: column; }
.assessment-status { font-size: 13px; font-weight: 600; }
.assessment-substatus { font-size: 11px; color: #86efac; }

.assessment-banner {
  background: #f0fdf4;
  border-radius: 0;
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 -20px 0;
}
.assessment-check { flex-shrink: 0; margin-top: 2px; }
.assessment-banner-title { font-weight: 600; color: #15803D; margin: 0 0 2px; font-size: 14px; }
.assessment-banner-sub { font-size: 13px; color: #166534; margin: 0; line-height: 1.4; }

.assessment-card {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assessment-card-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-dark);
  margin: 0;
  text-align: center;
}

.success-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
}
.success-bar-wrapper { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.success-label { font-size: 13px; color: var(--input-text); }
.success-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.success-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.success-value {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: #15803D;
}

.stat-row {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-label { font-weight: 600; color: var(--heading-dark); font-size: 14px; }
.stat-value { color: var(--input-text); font-size: 14px; }

.assessment-card-footer {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #15803D;
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.5;
}

.assessment-eligibility {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eligibility-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-dark);
  margin: 0 0 4px;
}

.hipaa-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--input-text);
  font-size: 12px;
  margin-top: 4px;
}
.hipaa-icon { color: var(--brand-primary); }

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 0 4px;
  margin-top: 8px;
}
.consent-row input { position: absolute; opacity: 0; pointer-events: none; }
.consent-check {
  width: 18px; height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: all 0.18s ease;
}
.consent-row:has(input:checked) .consent-check {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.consent-row:has(input:checked) .consent-check::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 4px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--input-text);
}
.consent-text a { color: var(--brand-primary); text-decoration: underline; }

.btn-icon { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
#checkEligibilityBtn { display: inline-flex; align-items: center; justify-content: center; }

.trust-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}
.trust-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--input-text); font-weight: 600; }
.trust-badges { display: flex; gap: 16px; }
.trust-badge {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--input-text);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  width: 56px; height: 56px;
  justify-content: center;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}
.trust-badge small { font-size: 7px; opacity: 0.85; }
.trust-badge-flag { font-size: 16px; border-color: #DC2626; color: #DC2626; }

/* ---------- Loader overlay ---------- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.loader-overlay[hidden] { display: none; }
.loader-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.loader-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--brand-primary-light);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-dark);
}
.loader-card p {
  margin: 0;
  font-size: 14px;
  color: var(--input-text);
  line-height: 1.5;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 520px) {
  .display-title-md { font-size: 24px; line-height: 28px; }
  .lead-large { font-size: 16px; }
  .video-block { aspect-ratio: 1 / 1; }
  .assessment-header { padding: 12px 16px; margin: 0 -16px; }
  .assessment-banner { padding: 12px 16px; margin: 0 -16px; }
  .assessment-card, .assessment-eligibility { padding: 16px; }
  .success-value { font-size: 22px; }
  .opt-card { padding: 14px 16px; }
}

/* =========================================================
   ===== APPROVAL LANDING — STEP 19 (Vivera v3) =====
   ========================================================= */
.quiz-step-landing { gap: 24px; padding-bottom: 32px; }

/* Timer bar topo */
.approval-timer-bar {
  background: linear-gradient(135deg, #1a3a2e 0%, #2d5a3f 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.approval-timer-clock {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 13px;
}

.approval-title {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-dark);
  margin: 0;
}
.approval-title .accent { color: var(--brand-primary); }

/* Stat cards mini (3-up) */
.stat-cards-row { display: flex; gap: 8px; }
.stat-card-mini {
  flex: 1;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 8px;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-card-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
}
.stat-card-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading-dark);
}

.approval-intro {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  color: var(--input-text);
  margin: 0;
}

/* Weight chart */
.weight-chart {
  background: #fafbff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--card-shadow);
}
.weight-chart svg { width: 100%; height: auto; display: block; }

/* Recommendation card */
.recommendation-card {
  background: #fafbff;
  border-radius: 12px;
  padding: 18px 18px 14px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recommendation-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--heading-dark);
  text-align: center;
}
.recommendation-body {
  display: flex;
  gap: 14px;
  align-items: center;
}
.recommendation-text { flex: 1; }
.recommendation-text p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--input-text); }
.recommendation-text strong { color: var(--brand-primary); }
.recommendation-note { font-size: 12px !important; color: var(--muted) !important; font-style: italic; }
.recommendation-vial { flex-shrink: 0; }
.recommendation-success-row {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid #15803D;
}
.recommendation-success-text { flex: 1; font-size: 12px; line-height: 1.4; color: var(--input-text); }
.recommendation-success-text strong { color: #15803D; }
.recommendation-success-percent {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.recommendation-success-percent strong { font-size: 22px; font-weight: 700; color: #15803D; line-height: 1; }
.recommendation-success-percent small { font-size: 9px; font-weight: 700; color: #15803D; letter-spacing: 1px; }

/* Section titles */
.section-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-dark);
  margin: 0;
}
.section-title .accent { color: var(--brand-primary); }
.section-sub {
  font-size: 13px;
  color: var(--input-text);
  margin: -16px 0 0;
}

/* Goals checklist */
.goals-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.goals-checklist li {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--heading-dark);
  box-shadow: var(--card-shadow);
}
.check-pill {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

/* Your plan banner */
.your-plan-banner {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.your-plan-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--heading-dark); }
.your-plan-text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--input-text); }
.your-plan-text strong { color: var(--brand-primary); }
.your-plan-icon { flex-shrink: 0; }

/* Included card */
.included-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.included-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--heading-dark); text-align: center; }
.included-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.included-icon { flex-shrink: 0; }
.included-item-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--heading-dark); }
.included-item-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.included-bonus {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Happens list (5 steps) */
.happens-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.happens-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: var(--card-shadow);
}
.happens-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.happens-item-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--heading-dark); }
.happens-item-sub { margin: 0; font-size: 12px; line-height: 1.5; color: var(--input-text); }

/* Urgency banner */
.urgency-banner {
  background: linear-gradient(135deg, #1a3a2e 0%, #2d5a3f 100%);
  color: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.urgency-pill {
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.urgency-pill strong { font-family: 'Courier New', monospace; }
.urgency-title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
}
.urgency-title strong { color: #fde047; font-style: normal; }
.urgency-sub { margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.95; }
.urgency-included { margin: 4px 0 0; font-size: 12px; opacity: 0.92; }

/* Product cards */
.product-cards { display: flex; flex-direction: column; gap: 18px; }

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.product-card:hover { border-color: var(--brand-primary); }

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.product-name { margin: 0; font-size: 22px; font-weight: 700; color: var(--heading-dark); }
.product-tag {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
.product-tag-potent { background: #15803D; }

.product-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.product-stars { color: #fde047; font-size: 16px; letter-spacing: 1px; }
.product-reviews { font-size: 11px; color: var(--muted); }

.product-vial {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.product-price-line {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: var(--heading-dark);
}
.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary);
}
.product-strike {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 16px;
  margin-left: 6px;
}

.product-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--input-text);
}
.product-feats li { padding-left: 4px; }
.product-feats strong { color: var(--brand-primary); }

.product-prefer { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--heading-dark); text-align: center; }
.product-variant-btns {
  display: flex;
  gap: 8px;
}
.product-variant-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border-light);
  color: var(--heading-dark);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.5px;
}
.product-variant-btn:hover { border-color: var(--brand-primary); }
.product-variant-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.product-foot-note { margin: 0; font-size: 11px; line-height: 1.4; color: var(--muted); }

.product-cta {
  background: var(--brand-primary);
  color: #fff;
  border: 0;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: background 0.18s ease;
  margin-top: 4px;
}
.product-cta:hover { background: var(--brand-primary-hover); }

/* HSA row + guarantee */
.hsa-row { text-align: center; padding: 8px 0; }
.hsa-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #15803D;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #15803D;
}
.guarantee-card {
  background: #fafbff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid #15803D;
}
.guarantee-icon { flex-shrink: 0; }
.guarantee-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #15803D; }
.guarantee-text { margin: 0; font-size: 12px; line-height: 1.5; color: var(--input-text); }

/* Research row */
.research-label {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.research-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.research-badge {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--input-text);
  border: 1px solid var(--border-light);
}

/* Big stats (4-up) */
.big-stats { display: flex; flex-direction: column; gap: 8px; }
.big-stat-row {
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.big-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 70px;
}
.big-stat-num small { font-size: 18px; font-weight: 700; color: var(--brand-primary); }
.big-stat-row p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--heading-dark); }

/* Testimonials */
.testimonial-list { display: flex; flex-direction: column; gap: 12px; }
.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.testimonial-card header { display: flex; flex-direction: column; gap: 4px; }
.testimonial-stars { color: #fde047; letter-spacing: 1px; font-size: 14px; }
.testimonial-quote { margin: 0; font-size: 16px; font-weight: 700; color: var(--heading-dark); }
.testimonial-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--input-text); }
.testimonial-card footer { display: flex; justify-content: space-between; align-items: center; }
.testimonial-author { font-size: 12px; font-weight: 700; color: var(--heading-dark); }
.testimonial-verified { font-size: 11px; color: #15803D; font-weight: 600; }

/* Ready banner */
.ready-banner {
  background: linear-gradient(135deg, #1a3a2e 0%, #2d5a3f 100%);
  color: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.ready-banner h2 { margin: 0; font-size: 22px; font-weight: 700; color: #fff; }
.ready-banner h2 .accent { color: #fde047; }
.ready-pill {
  background: rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11px;
  margin: 0;
}
.ready-pill strong { font-family: 'Courier New', monospace; }
.ready-line { margin: 0; font-size: 13px; opacity: 0.95; }
.ready-line strong { color: #fde047; }

/* Final included */
.final-included {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.final-included-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--heading-dark); text-align: center; }
.final-included-title em { color: var(--brand-primary); font-style: normal; }
.final-included-sub { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--heading-dark); }
.final-included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--input-text);
}
.final-included-list li { line-height: 1.4; }
.final-included-list li small { display: block; color: var(--muted); font-size: 11px; }
.final-cta-pre {
  margin: 8px 0 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-dark);
}
.final-cta-pre strong { color: var(--brand-primary); }
.final-cta-pre-sub { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

.btn-final-cta {
  background: var(--brand-primary) !important;
  color: #fff !important;
  font-size: 16px !important;
  padding: 16px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: 0 !important;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.18s ease;
}
.btn-final-cta:hover { background: var(--brand-primary-hover) !important; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-dark);
  position: relative;
  padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--brand-primary);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--input-text);
}

/* Legal disclaimer */
.legal-disclaimer {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  padding: 16px 0;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .approval-title { font-size: 22px; }
  .stat-cards-row { flex-direction: row; gap: 6px; }
  .stat-card-mini { padding: 8px 4px; }
  .stat-card-value { font-size: 12px; }
  .recommendation-body { flex-direction: column-reverse; align-items: center; text-align: center; }
  .your-plan-banner { padding: 14px; }
  .urgency-title { font-size: 20px; }
  .product-name { font-size: 18px; }
  .product-price { font-size: 18px; }
  .big-stat-num { font-size: 26px; min-width: 56px; }
}

/* =========================================================
   ===== CHECKOUT OVERLAY (iframe inline) =====
   ========================================================= */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}
.checkout-overlay[hidden] { display: none; }

.checkout-overlay-bar {
  background: linear-gradient(135deg, #1a3a2e 0%, #2d5a3f 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.checkout-overlay-title {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
}
.checkout-overlay-close {
  background: rgba(255,255,255,0.15);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.checkout-overlay-close:hover { background: rgba(255,255,255,0.3); }

.checkout-overlay-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  display: block;
}

/* Travar scroll do body quando overlay está aberto */
body.checkout-open { overflow: hidden; }

/* =========================================================
   IMAGE SLOTS — placeholders dashed visíveis até receber assets reais
   ========================================================= */
.image-slot {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.image-slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--brand-primary, #2037f5);
  background: rgba(32, 55, 245, 0.04);
  border-radius: 12px;
  padding: 14px 10px;
  color: var(--brand-primary, #2037f5);
  text-align: center;
  font-family: var(--font-primary, sans-serif);
}
.image-slot-empty span {
  font-size: 28px;
  line-height: 1;
}
.image-slot-empty small {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading-dark, #111827);
}
.image-slot-empty em {
  font-size: 9px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  font-weight: 500;
}
.image-slot-vial,
.image-slot-empty.image-slot-vial {
  width: 80px;
  height: 120px;
}
.image-slot-product,
.image-slot-empty.image-slot-product {
  width: 100px;
  height: 150px;
}

/* =========================================================
   STEP 20 — Embedded Checkout (inline, dentro do quiz form)
   ========================================================= */
.quiz-step-checkout {
  padding: 0 !important;
  gap: 0 !important;
}
.checkout-inline-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  height: calc(100vh - 120px);
  border: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  .checkout-inline-frame {
    min-height: 700px;
    height: calc(100vh - 80px);
    border-radius: 0;
    box-shadow: none;
  }
}

/* --- STEP 10: MEDICAL REVIEW --- */
#section-medical-review {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 10px;
}
.med-review-header {
  background: #1B3624;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: 4px 4px 0 0;
}
.med-review-logo strong {
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.med-review-logo span {
  font-size: 0.75rem;
  opacity: 0.8;
}
.med-review-status {
  text-align: right;
  font-size: 0.85rem;
}
.ready-text {
  color: #4ade80;
  font-size: 0.75rem;
}
.med-review-banner {
  background: #F0FDF4;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #dcfce7;
}
.med-check-icon {
  background: #bbf7d0;
  color: #16a34a;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}
.med-review-banner strong {
  color: #166534;
  font-size: 0.95rem;
}
.med-review-banner span {
  color: #16a34a;
  font-size: 0.8rem;
}
.med-review-card {
  background: #F8FAF9;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
}
.med-review-card h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 20px;
}
.prob-box {
  background: white;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.prob-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.prob-labels span {
  color: #6b7280;
  font-size: 0.9rem;
}
.prob-labels strong {
  color: #16a34a;
  font-size: 1.3rem;
}
.prob-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 4px;
}
.stats-list {
  background: white;
  border-radius: 6px;
  padding: 5px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f3f4f6;
}
.stat-item:last-child {
  border-bottom: none;
}
.stat-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}
.stat-item div {
  font-size: 0.95rem;
}
.strong-candidate-text {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.strong-candidate-text strong {
  color: #16a34a;
}
.med-review-form {
  background: #FAFAFA;
  padding: 25px;
  border-radius: 8px;
  margin-top: 20px;
}
.med-review-form h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 20px;
}
.med-review-form label {
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}
