/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colours extracted from semapen-v1.svg */
  --brand-dark:  #012B3E;   /* SVG navy – logo letterforms */
  --brand-green: #76C371;   /* SVG green – heart/bar */

  --primary:    #76C371;
  --primary-dk: #58A853;
  --primary-lt: #EBF7EA;
  --accent:     #9ADA6E;

  --success:    #58A853;
  --warning:    #d97706;
  --danger:     #dc2626;

  --neutral-50:  #f4f8f6;
  --neutral-100: #eaf1ee;
  --neutral-200: #d4e3dd;
  --neutral-300: #a8c4bb;
  --neutral-500: #5c7d73;
  --neutral-700: #2d4a42;
  --neutral-900: #012B3E;

  --header-bg:   #ffffff;
  --progress-bg: #012B3E;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(1,43,62,.12);
  --shadow-sm: 0 2px 8px rgba(1,43,62,.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f0f5f3;
  color: var(--neutral-700);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.site-header {
  background: var(--header-bg);
  padding: 14px 28px;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  box-shadow: 0 1px 0 var(--neutral-200);
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
  /* Make the dark navy letterforms white; keep the SVG green unchanged */
  filter: brightness(0) invert(1);
}
/* Restore green on the heart/bar elements via a wrapper trick:
   the logo SVG has green (#76C371) and dark (#012B3E) paths.
   We composite: invert all → then tint back.
   Simplest reliable approach: show logo on its own pill background. */
.logo-pill {
  background: transparent;
  padding: 0;
  display: inline-flex; align-items: center;
}
.logo-pill img {
  height: 36px;
  width: auto;
  display: block;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 64px;
}

/* ── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar-container {
  background: var(--progress-bg);
  padding: 14px 24px 12px;
  position: relative;
}

.progress-track {
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-green), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow-x: auto;
  gap: 4px;
  scrollbar-width: none;
}
.progress-steps::-webkit-scrollbar { display: none; }

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 44px;
}

.progress-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
}

.progress-step.done .progress-dot {
  background: var(--brand-green);
  color: var(--brand-dark);
}
.progress-step.active .progress-dot {
  background: var(--brand-green);
  color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(118,195,113,.3);
}
.progress-step.future .progress-dot {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.4);
}

.progress-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  white-space: nowrap;
}
.progress-step.active .progress-label { color: var(--brand-green); font-weight: 600; }
.progress-step.done .progress-label  { color: rgba(255,255,255,.6); }

/* ── Card ──────────────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 560px;
}

.card-wide { max-width: 780px; }
.card-centered { text-align: center; }

.card-header {
  margin-bottom: 28px;
}
.card-header.text-center { text-align: center; }

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  color: var(--primary);
}
.step-icon.large { font-size: 4rem; }

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 8px;
}
.card-subtitle {
  font-size: 0.95rem;
  color: var(--neutral-500);
  line-height: 1.5;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) { .form-grid.two-col { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
}
.required { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--neutral-900);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lt);
}
input::placeholder, textarea::placeholder { color: var(--neutral-300); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea { resize: vertical; min-height: 100px; }

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 4px;
}

.input-with-toggle {
  position: relative;
}
.input-with-toggle input { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: var(--neutral-500);
  padding: 0;
}

/* Unit toggle */
.unit-input-group {
  display: flex; align-items: center; gap: 8px;
}
.unit-input-group input { flex: 1; }
.unit-toggle {
  display: flex;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.unit-btn {
  padding: 10px 14px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-500);
  transition: background 0.15s, color 0.15s;
}
.unit-btn.active {
  background: var(--primary);
  color: white;
}

/* Checkboxes */
.checkbox-group { display: flex; flex-direction: column; gap: 12px; }
.checkbox-group.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .checkbox-group.two-col { grid-template-columns: 1fr; } }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  color: var(--neutral-700);
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-label:hover { border-color: var(--primary-lt); background: var(--primary-lt); }
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 2px;
}

/* Fieldset sections */
fieldset.form-section {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
fieldset.form-section legend {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-note {
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-bottom: 12px;
}
.note-red { color: var(--danger); }

/* Inline warnings (step 3) */
.inline-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--danger);
  line-height: 1.5;
}
.inline-warning i { margin-top: 2px; flex-shrink: 0; }
.inline-warning--soft {
  background: #fffbeb;
  border-color: #fcd34d;
  color: var(--warning);
}
.btn-disabled { opacity: 0.5; cursor: not-allowed; }

/* Optional fields */
.optional-fields {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}
.optional-fields summary {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.optional-fields summary::before { content: '▶'; transition: transform 0.2s; }
.optional-fields[open] summary::before { transform: rotate(90deg); }
.optional-fields-body { padding: 0 20px 20px; }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}
.file-upload-area:hover { border-color: var(--primary); }
.file-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.file-upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.file-icon { font-size: 2rem; }
.file-text { font-size: 0.875rem; color: var(--neutral-700); }
.file-link { color: var(--primary); text-decoration: underline; }
.file-hint { font-size: 0.75rem; color: var(--neutral-500); }
.file-selected { display: flex; align-items: center; gap: 12px; justify-content: center; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--danger); font-size: 1rem; padding: 4px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
}

.btn-ghost {
  background: transparent;
  color: var(--neutral-700);
  border-color: var(--neutral-300);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--neutral-500);
  background: var(--neutral-100);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1ebe5d; }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

.form-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 24px;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.alert-error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success{ background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── OTP Input ──────────────────────────────────────────────────────────── */
.otp-input {
  font-size: 2rem !important;
  text-align: center !important;
  letter-spacing: 0.5em !important;
  font-weight: 700 !important;
}
.otp-group { text-align: center; }
.resend-form { text-align: center; margin-top: 20px; }
.resend-text  { font-size: 0.875rem; color: var(--neutral-500); margin-bottom: 8px; }

/* ── Conditions grid ───────────────────────────────────────────────────── */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.condition-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.condition-card input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.condition-card.selected {
  border-color: var(--primary);
  background: var(--primary-lt);
}
.condition-name { font-size: 0.875rem; font-weight: 500; }

/* ── Programme Carousel ─────────────────────────────────────────────────── */
.main-content--carousel {
  padding: 16px 16px 48px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.carousel-header {
  text-align: center;
  padding: 24px 24px 0;
  max-width: 560px;
  width: 100%;
}
.carousel-info-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 24px;
  max-width: 560px; width: 100%;
}
.bmi-chip {
  background: var(--primary-lt); color: var(--primary-dk);
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.85rem; font-weight: 500;
}
.eligibility-chip {
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.eligibility-chip.eligible   { background: #e6f9e6; color: var(--success); }
.eligibility-chip.ineligible { background: #fff3e0; color: var(--warning); }

/* Carousel viewport */
.prog-carousel {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  padding: 20px 0;
}
.prog-carousel__track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.prog-slide {
  min-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Programme card */
.prog-card {
  background: #fff;
  border: 2px solid var(--neutral-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(1,43,62,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 440px;
}

/* Top row: title chip + selector circle */
.prog-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prog-title-chip {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.prog-selector {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--neutral-300);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 0.8rem;
  transition: all 0.2s;
}

/* Programme name */
.prog-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0;
}

/* Price */
.prog-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.prog-price-week {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}
.prog-price-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--neutral-500);
}
.prog-price-month {
  font-size: 0.85rem;
  color: var(--neutral-500);
}

/* Description */
.prog-desc {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
  flex: 1;
}
.prog-desc ul, .prog-desc ol { padding-left: 18px; margin: 6px 0; }
.prog-desc li { margin-bottom: 4px; }
.prog-desc p  { margin-bottom: 6px; }

/* Estimation */
.prog-estimation {
  display: flex;
  gap: 12px;
}
.prog-estimation__item {
  flex: 1;
  background: var(--primary-lt);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prog-estimation__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-dk);
  font-weight: 600;
}
.prog-estimation__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Card actions */
.prog-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--neutral-100);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 8px;
}
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--neutral-200);
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark);
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.carousel-arrow:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-lt);
  color: var(--primary-dk);
}
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--neutral-300);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  padding: 8px 20px 24px;
  box-sizing: border-box;
}
.carousel-counter {
  font-size: 0.8rem;
  color: var(--neutral-400);
  font-weight: 500;
}

/* FAQ */
.faq-btn { margin-bottom: 4px; gap: 6px; }
.faq-empty { font-size: 0.875rem; color: var(--neutral-500); }

/* BMI / eligibility (legacy, kept for other uses) */
.bmi-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bmi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--neutral-500); }
.bmi-value { font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1; }
.bmi-category { font-size: 0.75rem; color: var(--neutral-500); }
.eligibility-msg { font-size: 0.9rem; font-weight: 500; }
.eligibility-msg.eligible   { color: var(--success); }
.eligibility-msg.ineligible { color: var(--warning); }

/* ── Step 5B – Eligibility Screen ──────────────────────────────────────── */

/* Ineligible */
.elig-fail { text-align: center; padding: 2rem 0 1rem; }
.elig-fail__title {
  font-size: 1.75rem; font-weight: 700; color: var(--neutral-900);
  line-height: 1.2; margin-bottom: 1rem;
}
.elig-fail__body  { color: var(--neutral-500); margin-bottom: 1.25rem; line-height: 1.6; }
.elig-fail__alt   { color: var(--neutral-500); line-height: 1.6; }
.elig-fail__link  { color: var(--neutral-900); font-weight: 600; text-decoration: underline; }

/* Eligible */
.elig-ok-card { padding-top: 1.5rem; }
.elig-ok__title {
  font-size: 1.75rem; font-weight: 700; color: var(--neutral-900);
  line-height: 1.2; margin-bottom: .5rem;
}
.elig-ok__sub { color: var(--neutral-500); margin-bottom: 1.25rem; line-height: 1.5; }

/* BMI display card */
.bmi-display-card {
  background: linear-gradient(135deg, #6dbf68 0%, #a8d96c 100%);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.bmi-display-card__header {
  font-size: .85rem; font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.bmi-display-card__row {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.bmi-display-card__calc-label { display: block; font-size: .75rem; color: rgba(255,255,255,.7); }
.bmi-display-card__calc-val   { font-size: 1.35rem; font-weight: 700; color: #fff; }
.bmi-display-card__goal       { text-align: right; }
.bmi-display-card__goal-pct   { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; }
.bmi-display-card__goal-label { font-size: .7rem; color: rgba(255,255,255,.7); }
.bmi-display-card__divider    { border: none; border-top: 1px solid rgba(255,255,255,.3); margin: 0 0 10px; }
.bmi-display-card__legend {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 4px 10px; font-size: .7rem;
  color: rgba(255,255,255,.9); margin-bottom: 8px;
}
.bmi-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0; box-sizing: border-box;
}
.bmi-gauge-wrap { margin: 4px 0 -8px; }

/* User stats bar */
.user-stats-bar {
  background: var(--neutral-900);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  color: #fff;
  gap: 8px;
  margin-bottom: 4px;
}
.user-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  font-size: .75rem; color: rgba(255,255,255,.85);
  min-width: 0;
}
.user-stat i { font-size: 1rem; color: #fff; margin-bottom: 2px; }
.user-stat__lbl { font-size: .65rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .04em; }
.user-stat__val { font-size: .85rem; font-weight: 600; color: #fff; }
.user-stat__val em { font-style: normal; font-size: .7rem; color: rgba(255,255,255,.6); }

/* ── Plans accordion ────────────────────────────────────────────────────── */
.plan-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--neutral-200);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Each plan row */
.plan-item {
  border-bottom: 1px solid var(--neutral-200);
  transition: background 0.2s;
}
.plan-item:last-child { border-bottom: none; }
.plan-item--open { background: var(--neutral-50); }

/* Collapsed header button – vertical stack */
.plan-item__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.plan-item__header:hover { background: var(--neutral-50); }
.plan-item--open .plan-item__header { background: var(--primary-lt); }

.plan-item__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-item__tagline {
  font-size: 0.875rem;
  color: var(--neutral-500);
  line-height: 1.5;
  margin-bottom: 4px;
}
.plan-item__tagline p { margin: 0; }

.plan-show-more {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.plan-chevron { font-size: 0.8rem; }

/* Expanded body */
.plan-item__body {
  padding: 20px 20px 28px;
  display: none;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--neutral-200);
}
.plan-item--open .plan-item__body { display: flex; }

/* Pricing block */
.plan-pricing {
  padding: 14px 16px;
  background: var(--brand-dark);
  border-radius: 10px;
  color: #fff;
}
.plan-pricing__main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-pricing__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.plan-pricing__period {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.plan-pricing__note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin: 4px 0 0;
}

/* Description */
.plan-full-desc {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
}
.plan-full-desc ul, .plan-full-desc ol { padding-left: 18px; margin: 0; }
.plan-full-desc li { margin-bottom: 4px; }
.plan-full-desc p { margin: 0 0 6px; }

/* Products */
.plan-products { }
.plan-products__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--neutral-500);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-products--optional .plan-products__title { color: var(--neutral-400); }
.plan-products__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-products__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--neutral-700);
}
.plan-products__list li i { color: var(--primary); flex-shrink: 0; }
.plan-products--optional .plan-products__list li i { color: var(--neutral-400); }
.product-price {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--neutral-400);
  white-space: nowrap;
}

/* Incentive */
.plan-incentive {
  background: var(--primary-lt);
  color: var(--primary-dk);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-incentive i { color: var(--primary); }

/* Cancellation */
.plan-cancellation {
  font-size: 0.75rem;
  color: var(--neutral-400);
  margin: 0;
}

.security-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--neutral-500);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── FAQ Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%; max-width: 620px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--neutral-200);
  flex-shrink: 0;
}
.modal-title { font-size: 1.125rem; font-weight: 700; color: var(--neutral-900); }
.modal-close {
  background: var(--neutral-100); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  font-size: 0.875rem; color: var(--neutral-500);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--neutral-200); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-loading { text-align: center; color: var(--neutral-500); padding: 24px 0; }

.faq-description {
  font-size: 0.875rem; color: var(--neutral-500);
  line-height: 1.6; margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-200);
}
.faq-description ul, .faq-description ol { padding-left: 18px; margin: 6px 0; }
.faq-description li { margin-bottom: 4px; }

.faq-accordion { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%; background: white; border: none; cursor: pointer;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.9rem; font-weight: 600; color: var(--neutral-900);
  text-align: left; font-family: inherit;
  transition: background .15s;
}
.faq-question:hover { background: var(--neutral-50); }
.faq-question[aria-expanded="true"] { background: var(--primary-lt); color: var(--primary-dk); }
.faq-chevron {
  font-size: 0.7rem; flex-shrink: 0; transition: transform .2s;
  color: var(--neutral-500);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 12px 16px 16px;
  font-size: 0.875rem; color: var(--neutral-500); line-height: 1.6;
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}
.faq-answer ul, .faq-answer ol { padding-left: 18px; margin: 6px 0; }
.faq-answer li { margin-bottom: 3px; }
.faq-answer p { margin-bottom: 6px; }

.faq-empty { text-align: center; color: var(--neutral-500); padding: 12px 0; font-size: 0.875rem; }

/* ── Success animation ─────────────────────────────────────────────────── */
.success-animation, .complete-animation { margin-bottom: 20px; }
.success-circle, .complete-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: scaleIn 0.4s ease;
}
.complete-circle { background: var(--primary-lt); font-size: 2.5rem; color: var(--primary); }
@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Final confirmation – Yes/No questions ──────────────────────────────── */
.conf-question {
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-200);
}
.conf-question:last-of-type { border-bottom: none; }
.conf-question__text {
  font-size: 0.95rem; font-weight: 500;
  color: var(--neutral-900); margin-bottom: 12px; line-height: 1.5;
}
.conf-yesno {
  display: flex; gap: 10px;
}
.conf-yesno__btn {
  display: flex; align-items: center; justify-content: center;
  width: 72px; padding: 8px 0;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.9rem; font-weight: 500;
  color: var(--neutral-700);
  transition: border-color 0.15s, color 0.15s;
  user-select: none;
}
.conf-yesno__btn input { display: none; }
.conf-yesno__btn--selected { border-color: var(--primary); color: var(--primary); }
.conf-yesno__btn--no       { border-color: var(--danger);  color: var(--danger);  }

.conf-section-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--neutral-900);
  margin: 24px 0 4px;
}
.conf-warning {
  background: #fff5f5; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem; color: var(--danger); line-height: 1.5;
  margin-top: 16px;
}
.conf-warning i { margin-right: 6px; }

/* ── Complete page ──────────────────────────────────────────────────────── */
.complete-check {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 24px;
  animation: scaleIn 0.4s ease;
}
.complete-title {
  font-size: 1.75rem; font-weight: 700; color: var(--neutral-900);
  line-height: 1.2; margin-bottom: 12px;
}
.complete-sub {
  color: var(--neutral-500); margin-bottom: 12px; line-height: 1.6;
}
.complete-body {
  color: var(--neutral-500); line-height: 1.6; margin-bottom: 20px;
}
.complete-email-notice {
  background: var(--primary-lt); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 0.9rem; color: var(--primary-dk);
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 24px; line-height: 1.5; text-align: left;
}
.complete-email-notice i { flex-shrink: 0; margin-top: 2px; }
.complete-app-section { width: 100%; }
.complete-app-label {
  font-size: 0.875rem; color: var(--neutral-500); margin-bottom: 14px; line-height: 1.5;
}
.complete-app-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.store-badge-link { display: inline-block; transition: opacity 0.2s; }
.store-badge-link:hover { opacity: 0.85; }
.store-badge { height: 52px; width: auto; display: block; border-radius: 10px; }

/* ── Payment result pages ───────────────────────────────────────────────── */
.payment-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  animation: scaleIn 0.4s ease;
}
.payment-icon--success { background: var(--success); color: #fff; }
.payment-icon--fail    { background: #ef4444; color: #fff; }
.payment-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--neutral-900); margin-bottom: 12px; line-height: 1.25;
}
.payment-body {
  color: var(--neutral-500); line-height: 1.6; margin-bottom: 16px;
}
.payment-help {
  font-size: 0.9rem; color: var(--neutral-500); margin-bottom: 8px;
}

/* ── Slot picker ─────────────────────────────────────────────────────────── */
.slot-intro {
  font-size: 0.9375rem;
  color: var(--neutral-600);
  margin-bottom: 20px;
}
.slot-date-group { margin-bottom: 24px; }
.slot-date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--neutral-800);
  margin-bottom: 10px;
}
.slot-date-label i { color: var(--primary); }
.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.slot-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}
.slot-btn:disabled {
  border-color: var(--neutral-300);
  color: var(--neutral-400);
  cursor: not-allowed;
}
.slot-remaining {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
}
.slot-selected-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--primary-lt);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--neutral-800);
}
.slot-selected-banner i { color: var(--primary); }
.slot-selected-banner .btn { margin-left: auto; }

/* ── Calendly embed ─────────────────────────────────────────────────────── */
.calendly-inline-widget {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.fallback-booking {
  padding: 16px;
  background: var(--primary-lt);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: 12px;
}
.booking-confirmed {
  text-align: center;
  padding: 32px;
}
.booking-confirmed h2 { margin: 12px 0 8px; font-size: 1.25rem; }

/* ── Videos (sequential) ─────────────────────────────────────────────────── */
.video-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
#videoCounterText {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-600);
}
.video-counter-dots {
  display: flex;
  gap: 6px;
}
.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neutral-200);
  transition: background 0.2s, transform 0.2s;
}
.video-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}
.video-dot.done {
  background: var(--success);
}
.video-slide { display: none; }
.video-slide--active { display: block; }
.video-slide__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 12px;
}
.video-player-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  margin-bottom: 16px;
}
.video-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-unavailable {
  padding: 32px;
  text-align: center;
  color: var(--neutral-400);
}
.video-unavailable i { font-size: 1.5rem; margin-bottom: 8px; display: block; }

/* Watched label */
.watched-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  margin-top: 4px;
}
.watched-label:hover { border-color: var(--primary); background: var(--primary-lt); }
.watched-label--done {
  border-color: var(--success);
  background: #f0fdf4;
}
.watched-label input[type="checkbox"] { display: none; }
.watched-box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--neutral-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.watched-box i {
  font-size: 0.75rem;
  color: white;
  opacity: 0;
  transition: opacity 0.15s;
}
.watched-label--done .watched-box {
  border-color: var(--success);
  background: var(--success);
}
.watched-label--done .watched-box i { opacity: 1; }
.watched-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-700);
}
.watched-label--done .watched-text { color: var(--success); }

.all-watched-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--success);
  margin-bottom: 16px;
}
.all-watched-banner i { font-size: 1.1rem; }

/* ── Final agreements ───────────────────────────────────────────────────── */
.agreements-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.agreement-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.agreement-item:hover { border-color: var(--primary); background: var(--primary-lt); }
.agreement-item input[type="checkbox"] {
  width: 20px; height: 20px; min-width: 20px;
  accent-color: var(--primary);
  margin-top: 3px; cursor: pointer;
}
.agreement-text strong { display: block; font-size: 0.9rem; color: var(--neutral-900); margin-bottom: 2px; }
.agreement-text p { font-size: 0.825rem; color: var(--neutral-500); line-height: 1.4; }
.select-all-row { text-align: right; margin-top: -4px; margin-bottom: 4px; }

/* ── Health conditions (step 4) ─────────────────────────────────────────── */
.hc-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.hc-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-100);
}
.hc-card:last-child { border-bottom: none; }
.hc-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.hc-selector {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--neutral-300); cursor: default;
}
.hc-selector--on { color: var(--primary); cursor: pointer; }
.hc-selector--on:hover { opacity: 0.7; }
.hc-name { font-size: 1rem; font-weight: 600; color: var(--neutral-800); }
.hc-question { font-size: 0.875rem; color: var(--neutral-500); margin: 4px 0 12px 40px; }
.hc-opt-label {
  text-align: center; font-size: 0.9rem; font-weight: 600;
  color: var(--neutral-700); margin-bottom: 6px; min-height: 1.4em;
}
.hc-slider-wrap { padding: 0 4px; }
.hc-slider {
  -webkit-appearance: none; width: 100%; height: 4px;
  border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(
    to right,
    var(--track-col, #76C371) 0%,
    var(--track-col, #76C371) var(--fill-pct, 0%),
    #e2e8e4 var(--fill-pct, 0%), #e2e8e4 100%
  );
}
.hc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: white; border: 3px solid var(--thumb-col, #76C371);
  box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer;
}
.hc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: white; border: 3px solid var(--thumb-col, #76C371);
  box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer;
}
.hc-ends {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--neutral-400); margin-top: 4px;
}
/* Bool toggle */
.hc-bool-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.hc-bool-row input[type="checkbox"] { display: none; }
.hc-toggle-box {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 2px solid var(--neutral-300); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.hc-toggle-box i { font-size: 0.8rem; color: white; opacity: 0; transition: opacity 0.15s; }
.hc-card--on .hc-toggle-box { background: var(--primary); border-color: var(--primary); }
.hc-card--on .hc-toggle-box i { opacity: 1; }

/* ── Info / support boxes ────────────────────────────────────────────────── */
.info-box {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.875rem;
}
.info-box-title { font-weight: 600; margin-bottom: 8px; }
.warning-list { padding-left: 16px; }
.warning-list li { color: var(--danger); margin-bottom: 4px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 4px 0; color: var(--success); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.checklist li i { font-size: 0.85rem; flex-shrink: 0; }
.support-block { margin: 20px 0; text-align: center; font-size: 0.875rem; }
.next-steps { font-size: 0.875rem; color: var(--neutral-500); margin: 12px 0; }
.error-code { font-size: 0.875rem; color: var(--neutral-500); margin-top: 8px; }
.empty-state { text-align: center; color: var(--neutral-500); padding: 24px 0; }

/* ── DOB split picker ───────────────────────────────────────────────────── */
.dob-picker {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 8px;
}
.dob-field select { padding-right: 32px; }
.dob-field--month { /* month column stretches */ }
@media (max-width: 400px) {
  .dob-picker { grid-template-columns: 1fr 1fr; }
  .dob-field--month { grid-column: 1 / -1; }
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
a:not(.btn) { color: var(--primary); }
a:not(.btn):hover { color: var(--primary-dk); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 24px 16px; }
  .card-title { font-size: 1.3rem; }
  .form-actions { flex-direction: column-reverse; }
  .btn-full, .form-actions .btn { width: 100%; }
  .progress-label { display: none; }
}
