/* ===========================================================
   Plug-and-Play Questionnaire Funnel — Base Stylesheet
   Override brand variables in your page <style> block or in
   config.json's `theme` section (auto-injected at runtime).
   =========================================================== */

:root {
  --brand-primary: #00CEB5;
  --brand-primary-hover: #00A591;
  --brand-accent: #D9F8F4;
  --brand-cream: #FAFBF9;
  --brand-warn: rgb(255, 109, 74);
  --bg-page: #FAFBF9;
  --bg-card: #ffffff;
  --text-dark: #00483F;
  --text-muted: #5A6B63;
  --border-soft: rgba(0, 206, 181, 0.18);
  --font-headline: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 20px;
  --radius-pill: 999px;
}

body {
  background-color: var(--bg-page);
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

div { font-family: var(--font-body); }

/* ---------- Press logo strip — infinite marquee (from leandose.co) ---------- */
.press-strip {
  background: var(--brand-primary);
  overflow: hidden;
  padding: 14px 0 26px;
  white-space: nowrap;
  position: relative;
}
.press-strip-eyebrow {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.press-track {
  display: inline-flex;
  width: max-content;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}
.press-strip:hover .press-track { animation-play-state: paused; }
.press-set {
  display: inline-flex;
  align-items: center;
  gap: 90px;
  padding-right: 90px;
  color: white;
}
.press-logo { display: inline-flex; align-items: baseline; line-height: 1; color: white; }
.logo-yahoo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 42px; letter-spacing: -0.04em; align-items: flex-end; }
.logo-yahoo em { font-style: normal; font-weight: 900; }
.logo-yahoo i { font-style: normal; font-size: 14px; font-weight: 800; letter-spacing: 0; margin-left: 6px; padding-bottom: 6px; }
.logo-wsj { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 46px; letter-spacing: -0.02em; }
.logo-fox { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-fox b { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 44px; font-style: italic; letter-spacing: -0.01em; }
.logo-fox i { font-style: normal; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 10px; letter-spacing: 0.18em; margin-top: 4px; }
.logo-nbc { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 38px; letter-spacing: 0.02em; }
.logo-forbes { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-style: italic; font-size: 42px; letter-spacing: -0.01em; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 980px) {
  .press-strip { padding: 10px 0 18px; }
  .press-strip-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .press-set { gap: 60px; padding-right: 60px; }
  .logo-yahoo, .logo-forbes { font-size: 32px; }
  .logo-wsj { font-size: 34px; }
  .logo-fox b { font-size: 32px; }
  .logo-nbc { font-size: 28px; }
  .press-track { animation-duration: 28s; }
}

/* ---------- Brand bar ---------- */
.brandbar {
  padding: 1rem 0 0.75rem;
  background-color: var(--bg-page);
}
.brandbar img { height: 64px; width: auto; max-width: 60vw; }

/* ---------- Conditional follow-ups (re-enrollment branch) ---------- */
.conditional-followups { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Hims-style mega wordmark in footer ---------- */
.lean-dose-mark {
  font-family: var(--font-headline);
  font-weight: 600;
  color: rgba(0, 206, 181, 0.12);
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.9;
  text-align: center;
  margin: 4rem 0 1rem;
  letter-spacing: -0.03em;
  user-select: none;
  pointer-events: none;
}

/* ---------- Progress steps ---------- */
.progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: fit-content;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.progress-step { display: flex; align-items: center; flex: 1; position: relative; }
.progress-circle {
  width: 32px; height: 32px;
  border: 2px solid #b5b5b5;
  border-radius: 50%;
  background-color: var(--bg-page);
  display: flex; justify-content: center; align-items: center;
}
.progress-circle.active { border-color: var(--brand-primary); }
.progress-circle.active::before {
  content: ''; width: 10px; height: 10px;
  background-color: var(--brand-primary); border-radius: 50%;
}
.progress-step.completed .progress-circle {
  background-color: var(--brand-primary); border: none; color: #fff;
}
.progress-step.completed .progress-circle::before {
  content: "✓"; color: #fff; font-weight: bold; background: transparent; width:auto; height:auto;
}
.progress-label {
  margin-left: 0.5rem;
  color: #a0a0a0;
  font-weight: 400;
  white-space: nowrap;
  font-size: 16px;
  font-family: var(--font-headline);
}
.progress-step.active .progress-label,
.progress-step.completed .progress-label { color: var(--brand-primary); }
.progress-line { flex: 1; height: 2px; background-color: var(--border-soft); margin: 0 8px; }
.progress-step.completed .progress-line { background-color: var(--brand-primary); }

@media (max-width: 991.98px) {
  .progress-step:not(.active) .progress-label { display: none; }
}
@media (max-width: 575.98px) {
  .progress-container { justify-content: space-between; padding: 0.5rem; gap: 0; width: 100%; }
  .progress-step { flex: 1 1 auto; min-width: 0; }
  .progress-circle { width: 24px; height: 24px; }
  .progress-line { margin: 0 4px; }
  .progress-label { display: none !important; }
}

/* ---------- Headline (DirectMeds-style — sans, mint accent) ---------- */
.headline,
h1 {
  letter-spacing: -0.022em;
  margin-top: 24px;
  margin-bottom: 14px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
  font-family: var(--font-headline);
  color: var(--text-dark);
}
.headline em,
h1 em {
  font-style: normal;
  color: var(--brand-primary);
  font-weight: 700;
}
.headline .dark { color: var(--text-dark); }
.headline + p,
h1 + p { color: var(--text-muted); font-size: 17px; line-height: 1.5; max-width: 38rem; margin-top: 14px; }

h2.question-headline,
h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 18px;
}
h3 {
  letter-spacing: -0.01em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 8px 0;
  font-family: var(--font-body);
}
@media (max-width: 767.98px) {
  .headline, h1 { font-size: 30px; }
  h2 { font-size: 19px; }
}

/* ---------- Form section ---------- */
.form-section { margin: 0 auto; padding: 1rem; }
.form-label { font-family: var(--font-body); font-weight: 400; }

/* Inputs */
select, input {
  min-height: 56px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-dark);
  outline: 0 !important;
  font-size: 16px;
  padding: 0 16px;
  font-family: var(--font-body);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:focus, input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(14, 140, 107, 0.15);
}
input::placeholder, textarea::placeholder { color: rgba(23, 23, 23, 0.35) !important; }
select { color: rgba(23, 23, 23, 0.45) !important; }
select.has-value { color: var(--text-dark) !important; }
select option { color: var(--text-dark); }

/* ---------- Radio "card" option (Hims-style pill cards) ---------- */
.radio-option { cursor: pointer; display: block; margin-bottom: 10px; }
.radio-option input[type="radio"] { display: none; }
.radio-option .option-box {
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  background-color: var(--bg-card);
  transition: all 0.15s ease;
  font-size: 16px;
  font-weight: 500;
  display: flex; align-items: center;
  color: var(--text-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.radio-option:hover .option-box {
  border-color: var(--brand-primary);
  background-color: var(--bg-card);
}
.radio-option .option-box::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-soft); background-color: #fff;
  margin-right: 14px; display: inline-block; flex-shrink: 0;
  transition: all 0.15s ease;
}
.radio-option input[type="radio"]:checked + .option-box {
  border-color: var(--brand-primary);
  border-width: 2px;
  background-color: var(--brand-accent);
}
.radio-option input[type="radio"]:checked + .option-box::before {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
  box-shadow: inset 0 0 0 4px var(--brand-accent);
}

/* ---------- Multi-select checkbox cards ---------- */
.multi-option {
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  width: 100%;
}
.multi-option input[type="checkbox"] { display: none; }
.multi-option .option-box {
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  background-color: var(--bg-card);
  transition: all 0.15s ease;
  display: flex; align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.multi-option .option-box::before {
  content: ''; width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid var(--border-soft); background-color: #fff;
  margin-right: 14px; display: inline-block; flex-shrink: 0;
  transition: all 0.15s ease;
}
.multi-option:hover .option-box { border-color: var(--brand-primary); }
.multi-option input[type="checkbox"]:checked + .option-box {
  border-color: var(--brand-primary);
  border-width: 2px;
  background-color: var(--brand-accent);
}
.multi-option input[type="checkbox"]:checked + .option-box::before {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.option-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.option-two-column > .form-label,
.option-two-column > h3 {
  grid-column: 1 / -1;
}
.option-two-column .multi-option {
  margin-bottom: 0;
}
.option-two-column .option-box {
  height: 100%;
  min-height: 64px;
  overflow-wrap: anywhere;
}

/* Gender/icon cards (big pills with icon) */
.gender-option { cursor: pointer; }
.gender-option input[type="radio"] { display: none; }
.gender-option .option-box {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: all 0.2s ease;
  background-color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}
.gender-option:hover .option-box { background-color: #f1f1f1; }
.gender-option input[type="radio"]:checked + .option-box {
  border: 3px solid var(--brand-primary); background-color: #fff;
}

/* ---------- Next / primary CTA (Hims pill button) ---------- */
.btn-next {
  background-color: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, transform 0.1s ease;
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  letter-spacing: 0.005em;
  box-shadow: 0 4px 14px rgba(14, 140, 107, 0.18);
}
.btn-next:hover { background-color: var(--brand-primary-hover); color: #fff; }
.btn-next:active { transform: translateY(1px); }

.ctaBtn1 {
  background-color: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  margin: 0.5rem auto;
  display: inline-block;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(14, 140, 107, 0.18);
}
.ctaBtn1:hover { background-color: var(--brand-primary-hover); color: #fff; }

/* ---------- Validation pulse ---------- */
.pulse, .pulse + label {
  position: relative;
  animation: animate 3s linear infinite;
}
@keyframes animate {
  0%   { box-shadow: 0 0 0 0 rgba(255,109,74,0.7), 0 0 0 0 rgba(255,109,74,0.7); }
  40%  { box-shadow: 0 0 0 10px rgba(255,109,74,0),   0 0 0 0 rgba(255,109,74,0.7); }
  80%  { box-shadow: 0 0 0 10px rgba(255,109,74,0),   0 0 0 7px rgba(255,109,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,109,74,0),     0 0 0 7px rgba(255,109,74,0); }
}

/* ---------- Warning / disqualification modals ---------- */
.intersticial.popup.warning {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  background-color: var(--bg-page);
  z-index: 1050;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.intersticial.popup.warning .bmi { display:inline-block; margin:0 auto; }
.spacer { height: 12px; }

/* ---------- Footer badges ---------- */
.footer-badge { margin: 2rem 0 1rem; }

/* ---------- Hero image ---------- */
.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

/* Utility */
.bg-page { background-color: var(--bg-page); }
.nowrap { white-space: nowrap; }
.cta-shake { animation: shakeCycle 5s infinite ease-in-out; }
@keyframes shakeCycle {
  0%, 89.9% { transform: translate(0, 0); }
  90% { transform: translate(-2px, 0); }
  92% { transform: translate(2px, 0); }
  94% { transform: translate(-2px, 0); }
  96% { transform: translate(2px, 0); }
  98%, 100% { transform: translate(0, 0); }
}

/* ===========================================================
   v3 — DirectMeds-style icon cards, info-media break screens,
   consult tier modal, sublabels.
   =========================================================== */

/* Option grid layout: 2-3 col cards with icons */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 0 0 1.25rem;
}
.option-grid > .form-label,
.option-grid > h3 { grid-column: 1 / -1; }

.card-option {
  cursor: pointer;
  display: block;
  margin: 0;
}
.card-option input { display: none; }
.opt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 22px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg-card);
  min-height: 140px;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.card-option:hover .opt-card {
  border-color: var(--brand-primary);
}
.card-option input:checked + .opt-card {
  border-color: var(--brand-primary);
  border-width: 2px;
  background: var(--brand-accent);
}
.opt-icon {
  font-size: 34px;
  line-height: 1;
  color: var(--text-dark);
}
.card-option input:checked + .opt-card .opt-icon { color: var(--brand-primary); }
.opt-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}
.opt-sublabel {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Informational break screens (charts + videos) */
.info-step .info-media {
  max-width: 560px;
  margin: 0 auto 24px;
}
.info-media-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--brand-accent) 0%, #F0FDFA 100%);
  padding: 12px;
}
.info-media--video {
  max-width: 360px;
  margin: 0 auto 24px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 72, 63, 0.15);
}
.info-media-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  display: block;
}
.info-step .info-body {
  max-width: 38rem;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Consult tier modal — softer than disqualify (notice, not warning) */
.intersticial.popup.notice {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  background-color: var(--bg-page);
  z-index: 1050;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.intersticial.popup.notice h1 {
  color: var(--text-dark);
}
#consultReview .ctaBtn1 {
  background-color: var(--brand-primary);
}

/* Mobile tweaks for icon-card grids */
@media (max-width: 575.98px) {
  .option-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .opt-card { min-height: 120px; padding: 16px 10px; }
  .opt-icon { font-size: 28px; }
  .opt-label { font-size: 14px; }
}
@media (max-width: 380px) {
  .option-grid { grid-template-columns: 1fr; }
}

/* Smooth fade-in on step render so transitions feel less jumpy */
.form-section { animation: stepFade .25s ease both; }
@keyframes stepFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- TrimRx-style "#1 Ranked" endorsement card ---------- */
.ranking-card-wrap {
  max-width: 460px;
  margin: 18px auto 0;
  text-align: left;
}
.ranking-banner {
  background: #6001D2;
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-align: center;
}
.ranking-banner span { font-style: italic; }
.ranking-card {
  border: 1.5px solid rgba(96, 1, 210, 0.18);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  padding: 18px 18px 20px;
  box-shadow: 0 4px 14px rgba(96, 1, 210, 0.05);
}
.ranking-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.ranking-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 50%;
}
.ranking-ribbon {
  background: #0F2D24;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ranking-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.ranking-rank {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 22px;
  color: var(--text-dark);
}
.ranking-brand-name {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
  line-height: 1;
}
.ranking-score {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.ranking-score .score-value {
  background: #E7F5E9;
  color: #166534;
  font-weight: 900;
  font-size: 18px;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.1;
}
.ranking-score .score-label {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  letter-spacing: 0.02em;
}
.ranking-score .score-stars {
  color: #F4C754;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.ranking-popular {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 14px;
}
.ranking-popular span {
  background: linear-gradient(135deg, #F4C754 0%, #F0A04B 100%);
  color: #0F2D24;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ranking-bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
}
.ranking-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: left;
}
.ranking-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #166534;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}
@media (max-width: 575.98px) {
  .ranking-card-wrap { max-width: 100%; }
  .ranking-eyebrow { max-width: 55%; font-size: 10.5px; }
  .ranking-ribbon { font-size: 11px; padding: 5px 10px; }
  .ranking-rank, .ranking-brand-name { font-size: 19px; }
  .ranking-bullets li { font-size: 13px; }
}

/* ---------- Medical Review line items (TrimRx style) ---------- */
.review-lines {
  margin: 18px auto 14px;
  max-width: 480px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.review-lines .rl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-family: var(--font-body);
}
.review-lines .rl-row:last-child { border-bottom: 0; }
.review-lines .rl-row dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
}
.review-lines .rl-row dd {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
}
.review-lines .rl-row--highlight {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}
.review-lines .rl-row--highlight dt { color: #065F46; font-weight: 700; }
.review-lines .rl-row--highlight dd { color: #065F46; font-size: 20px; }

/* ---------- Medical Review tiles + Candidate Score pill ---------- */
.review-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px auto 6px;
  max-width: 520px;
}
.review-tile {
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.review-tile-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.review-tile-value {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px auto 0;
  background: linear-gradient(135deg, #166534 0%, #15803D 100%);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.22);
}
.score-pill span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}
.score-pill strong {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (max-width: 575.98px) {
  .review-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .review-tile { padding: 10px 6px; }
  .review-tile-label { font-size: 9.5px; letter-spacing: 0.05em; }
  .review-tile-value { font-size: 16px; }
  .score-pill strong { font-size: 20px; }
}

/* ---------- TrimRx-inspired quiz theme for the US funnel ---------- */
.trimrx-theme {
  background: var(--bg-page);
  color: var(--text-dark);
}

.trimrx-theme .lean-dose-mark {
  display: none;
}

.trimrx-theme .coverage-header {
  background: var(--bg-page);
  padding: 24px 16px 12px;
}

.trimrx-theme .coverage-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.trimrx-theme .coverage-brand {
  color: var(--text-dark);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 4.8vw, 58px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}

.trimrx-theme .coverage-divider {
  width: 1px;
  height: 44px;
  background: rgba(23, 48, 72, 0.14);
}

.trimrx-theme .coverage-rating {
  display: grid;
  gap: 4px;
  text-align: center;
  color: #284561;
  font-family: Inter, system-ui, sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
}

.trimrx-theme .coverage-rating span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.trimrx-theme .coverage-rating strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 20px;
  border-radius: 3px;
  background: #f3b23e;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.trimrx-theme .coverage-logos {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  gap: 3px 16px;
  color: var(--text-dark);
}

/* Real publication logo marks (replaced styled-text spans per client review) */
.trimrx-theme .coverage-press-logo {
  height: 16px;
  width: auto;
  display: block;
}
.trimrx-theme .coverage-press-logo--wide {
  height: 14px;
}

/* Informational "how it works" bullet list (TrimRX Week 1-4 / 4-8 / 9+) */
.info-bullets {
  list-style: none;
  max-width: 38rem;
  margin: 18px auto 4px;
  padding: 0;
  text-align: left;
}
.info-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}
.info-bullets li:last-child {
  margin-bottom: 0;
}
.info-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.info-bullets li strong {
  font-weight: 700;
  color: var(--text-dark);
}

.trimrx-theme .progress-shell--trimrx {
  border-bottom: 1px solid #e2e8ee;
  padding: 16px 0 20px;
}

.trimrx-theme .progress-shell--trimrx .container {
  max-width: 840px;
}

.trimrx-theme .back-link {
  color: var(--text-dark) !important;
  font-size: 30px !important;
  line-height: 1;
  margin-left: -52px;
  margin-right: 28px !important;
}

.trimrx-theme .back-link--hidden {
  visibility: hidden;
  pointer-events: none;
}

.trimrx-theme .progress-container {
  gap: 0;
  padding: 0;
}

.trimrx-theme .progress-step {
  flex: 0 1 auto;
  min-width: 0;
}

.trimrx-theme .progress-circle {
  width: 34px;
  height: 34px;
  border: 2px solid #9dafbf;
  background: var(--bg-page);
}

.trimrx-theme .progress-circle.active {
  border-color: var(--brand-primary);
}

.trimrx-theme .progress-circle.active::before {
  width: 16px;
  height: 16px;
  background: var(--brand-primary);
  box-shadow: inset 0 0 0 5px var(--bg-page);
}

.trimrx-theme .progress-step.completed .progress-circle {
  background: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.trimrx-theme .progress-label {
  margin-left: 7px;
  color: #8b9aaa;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 700;
}

.trimrx-theme .progress-step.active .progress-label,
.trimrx-theme .progress-step.completed .progress-label {
  color: var(--brand-primary);
}

.trimrx-theme .progress-line {
  width: 32px;
  flex: 0 0 32px;
  height: 2px;
  background: #9dafbf;
  margin: 0 7px;
}

.trimrx-theme .qfunnel-main {
  padding-top: 24px;
}

.trimrx-theme .qfunnel-main .col-lg-8 {
  flex: 0 0 auto;
  width: min(100%, 710px);
  max-width: 710px;
  margin-left: auto;
  margin-right: auto;
}

.trimrx-theme .form-section {
  padding: 0 0 48px;
}

.trimrx-theme .hero-frame {
  position: relative;
  margin-bottom: 20px !important;
  overflow: hidden;
  border-radius: 6px;
}

.trimrx-theme .hero-img {
  width: 100%;
  height: auto;
  max-height: 392px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}
/* Portrait headshots: anchor to the top so the head is never cropped (client: Dr. Garcia head cut off) */
.trimrx-theme .hero-img[src*="dr-garcia"] {
  width: min(260px, 72vw);
  height: min(325px, 90vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  max-height: none;
}

.trimrx-theme .hero-wordmark {
  position: absolute;
  left: 18px;
  bottom: 10px;
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.trimrx-theme .headline,
.trimrx-theme h1 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.trimrx-theme .headline em,
.trimrx-theme h1 em {
  color: var(--brand-primary);
  font-style: normal;
  font-weight: 500;
}

.trimrx-theme .preheadline {
  margin: 0 0 18px;
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.25;
}

.trimrx-theme .preheadline strong {
  font-weight: 800;
}

.trimrx-theme .headline + p,
.trimrx-theme h1 + p,
.trimrx-theme .text-muted {
  color: #536b82 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.45;
}

.trimrx-theme h2.question-headline,
.trimrx-theme h2 {
  margin: 20px 0 16px;
  color: var(--text-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.trimrx-theme h3 {
  color: var(--text-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.trimrx-theme .form-label {
  margin-bottom: 8px;
}

.trimrx-theme select,
.trimrx-theme input {
  min-height: 50px;
  border: 1px solid #aab8c8;
  border-radius: 2px;
  background: #fff;
  color: var(--text-dark);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  box-shadow: none;
}

.trimrx-theme input::placeholder,
.trimrx-theme textarea::placeholder {
  color: #91a2b4 !important;
}

.trimrx-theme select:focus,
.trimrx-theme input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(87, 153, 216, 0.16);
}

.trimrx-theme .btn-next {
  min-height: 54px;
  margin-top: 22px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--brand-cta, var(--text-dark));
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 500;
  box-shadow: none;
}

.trimrx-theme .btn-next:hover {
  background: var(--brand-cta-hover, #173653);
}

.trimrx-theme .language-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-height: 34px;
  margin: 36px auto 28px;
  padding: 7px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.trimrx-theme .language-pill i {
  font-size: 14px;
}

.trimrx-theme .option-grid {
  grid-template-columns: repeat(2, minmax(0, 224px));
  justify-content: start;
  gap: 16px;
}

.trimrx-theme .card-option .opt-card {
  position: relative;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 148px;
  border: 1px solid #aab8c8;
  border-radius: 2px;
  padding: 18px 18px 16px 54px;
  background: #fff;
  box-shadow: none;
}

.trimrx-theme .card-option .opt-card::before {
  content: '';
  position: absolute;
  left: 16px;
  bottom: 18px;
  width: 23px;
  height: 23px;
  border: 1px solid #aab8c8;
  border-radius: 50%;
  background: #fff;
}

.trimrx-theme .card-option input:checked + .opt-card {
  border-color: var(--brand-primary);
  border-width: 1px;
  background: #fff;
}

.trimrx-theme .card-option input:checked + .opt-card::before {
  border: 2px solid var(--brand-primary);
  background: radial-gradient(circle at center, var(--brand-primary) 0 38%, #fff 41% 100%);
}

.trimrx-theme .opt-icon {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #3b342f;
  font-size: 52px;
}

.trimrx-theme .opt-label {
  color: var(--text-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 500;
}

.trimrx-theme .radio-option .option-box,
.trimrx-theme .multi-option .option-box {
  border-color: #aab8c8;
  border-radius: 2px;
  box-shadow: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
}

.trimrx-theme .radio-option input[type="radio"]:checked + .option-box,
.trimrx-theme .multi-option input[type="checkbox"]:checked + .option-box {
  border-color: var(--brand-primary);
  background-color: #eef6fd;
}

@media (max-width: 767.98px) {
  .trimrx-theme .coverage-header {
    padding: 18px 14px 8px;
  }

  .trimrx-theme .coverage-lockup {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .trimrx-theme .coverage-brand {
    font-size: 42px;
  }

  .trimrx-theme .coverage-divider {
    display: none;
  }

  .trimrx-theme .coverage-rating span {
    font-size: 12px;
  }

  .trimrx-theme .coverage-rating strong {
    min-width: 88px;
    height: 18px;
    font-size: 12px;
  }

  .trimrx-theme .coverage-logos {
    gap: 3px 10px;
  }
  .trimrx-theme .coverage-press-logo { height: 13px; }
  .trimrx-theme .coverage-press-logo--wide { height: 11px; }

  .trimrx-theme .coverage-logos span {
    font-size: 16px;
  }

  .trimrx-theme .progress-shell--trimrx {
    padding: 14px 0;
  }

  .trimrx-theme .back-link {
    margin-left: 0;
    margin-right: 12px !important;
    font-size: 26px !important;
  }

  .trimrx-theme .progress-container {
    width: 100%;
  }

  .trimrx-theme .progress-line {
    flex: 1 1 auto;
    width: auto;
    margin: 0 6px;
  }

  .trimrx-theme .qfunnel-main {
    padding-top: 18px;
  }

  .trimrx-theme .headline,
  .trimrx-theme h1 {
    font-size: 29px;
  }

  .trimrx-theme h2.question-headline,
  .trimrx-theme h2 {
    font-size: 27px;
  }

  .trimrx-theme h3 {
    font-size: 22px;
  }

  .trimrx-theme .hero-img {
    max-height: 330px;
  }

  .trimrx-theme .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  /* Logo on its own centered row; rating + publication names sit together below it */
  .trimrx-theme .coverage-brand {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }
  .trimrx-theme .coverage-logos {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    width: auto;
    gap: 2px 10px;
  }
  .trimrx-theme .coverage-logos span { font-size: 13px; }
  .trimrx-theme .coverage-logos span:nth-child(3) { font-size: 12px; }
  .trimrx-theme .coverage-logos span:nth-child(4) { font-size: 11px; }
  .trimrx-theme .coverage-press-logo { height: 12px; }
  .trimrx-theme .coverage-press-logo--wide { height: 10px; }

  .trimrx-theme .progress-circle {
    width: 30px;
    height: 30px;
  }

  .trimrx-theme .hero-img {
    max-height: 260px;
  }

  .trimrx-theme .option-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== TrimRX overhaul additions (v2) ===== */
/* Before/after transformation pair (mid-quiz testimonials) */
.before-after{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:440px;margin:0 auto 4px}
.before-after .ba-cell{margin:0}
.before-after .ba-cell img{width:100%;border-radius:14px;display:block;aspect-ratio:7/10;object-fit:cover;object-position:top center}
.before-after figcaption{text-align:center;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-top:6px}
.before-after .ba-cell:last-child figcaption{color:var(--brand-primary)}

/* #11 Qualification table — bigger, bolder, anchored card */
.review-lines{background:#fff;border:2px solid var(--brand-primary);border-radius:18px;padding:6px 18px;max-width:460px;margin:18px auto;box-shadow:0 8px 30px rgba(0,72,63,.08)}
.review-lines .rl-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--border-soft);font-size:17px}
.review-lines .rl-row:last-child{border-bottom:0}
.review-lines .rl-row dt{font-weight:600;color:var(--text-muted);margin:0}
.review-lines .rl-row dd{font-weight:800;color:var(--text-dark);margin:0;font-size:20px}
.review-lines .rl-row--highlight{background:linear-gradient(90deg,rgba(0,206,181,.12),transparent);margin:0 -18px;padding:18px;border-radius:0 0 16px 16px}
.review-lines .rl-row--highlight dt{color:var(--text-dark);font-weight:800}
.review-lines .rl-row--highlight dd{color:var(--brand-primary);font-size:28px}

/* TrimRX-style coverage header logo */
.coverage-brand .coverage-logo-img{height:58px;width:auto;display:block}
@media(max-width:560px){.coverage-brand .coverage-logo-img{height:46px}}
