/* =========================================================
   IELTS 1984 — Học bổng landing page
   Tokens come from colors_and_type.css
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* Inline accent helper */
.text-accent {
  color: var(--brand-red);
  font-weight: 700;
}

img { max-width: 100%; height: auto; display: block; }

/* ----- Layout container ----- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
}

/* =========================================================
   MOBILE UX TWEAKS — gom các chỉnh nhỏ < 720px
   ========================================================= */
@media (max-width: 720px) {
  /* Section padding nhỏ lại */
  .program { padding: 56px 0; }
  .calculator { padding: 44px 0 56px; }
  .summary { padding: 56px 0; }

  /* Hero padding ngắn */
  .hero { padding: 64px 0 56px; }

  /* Headlines compact hơn */
  .program__title { font-size: 28px; }
  .summary__title { font-size: 26px; }
  .calc__title { font-size: 24px; }

  /* Body text dễ đọc */
  .program__intro { font-size: 15px; line-height: 1.65; }

  /* Effort cards: padding gọn */
  .effort-card { padding: 20px 18px; gap: 12px; }
  .effort-card__desc { font-size: 13.5px; line-height: 1.55; }

  /* Notes & footnote: padding gọn */
  .notes { padding: 20px 18px; }
  .notes__list li { font-size: 14px; line-height: 1.55; padding: 4px 0 4px 18px; }
  .footnote { padding: 16px 18px; font-size: 13.5px; }

  /* Tier table — giảm padding */
  .tier-table__cell { padding: 14px 16px; }
  .tier-table__cell--obj { font-size: 14px; line-height: 1.5; }
  .tier-amount { font-size: 26px; }

  /* Voucher cards — sub text shorter feel */
  .voucher { padding: 20px 22px; gap: 8px; }
  .voucher__amount { font-size: 36px; }
  .voucher__sub { font-size: 12px; line-height: 1.45; }

  /* Calc rows — ẩn cond text dài (đã có trong dropdown label rồi) */
  .calc-row__cond {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  .calc-row { padding: 12px; }
  .calc-row__top { gap: 8px; }
  .calc-row__name { font-size: 15px; }

  /* Pickers gọn */
  .calc-pick-inline__label { font-size: 11px; }
  .calc-select { font-size: 12.5px; padding: 6px 22px 6px 9px; }
  .calc-mini-check { font-size: 11.5px; }
  .calc-hononghe-note { font-size: 10.5px; padding: 3px 8px; }

  /* Fee panel — gọn hơn */
  .fee-panel__title { font-size: 20px; }
  .fee-panel__sub { font-size: 13.5px; }
  .fee-scholarships { padding: 14px 16px; }
  .fee-scholarships__intro { font-size: 13px; }
  .fee-scholarships__pill { font-size: 11.5px; padding: 4px 11px; }
  .fee-scholarships__amt { font-size: 12.5px; }
  .fee-scholarships__hint { font-size: 12px; padding-top: 8px; }

  /* Steps accordion — gọn */
  .steps-toggle__title { font-size: 15.5px; }
  .steps-toggle__hint { font-size: 12px; }
  .step { padding: 18px 16px; gap: 8px; }
  .step__num { font-size: 30px; }
  .step__title { font-size: 15.5px; }
  .step__body p { font-size: 13.5px; line-height: 1.6; }
  .email-info li { font-size: 13px; }

  /* Rules accordion — text gọn */
  .rules h4 { font-size: 14px; margin: 14px 0 6px; }
  .rules ul li, .rules p { font-size: 13.5px; line-height: 1.55; }

  /* Referral howto steps gọn */
  .referral-howto__steps li { font-size: 13.5px; padding-left: 36px; }

  /* Total panel cuối — gọn */
  .calc-total { padding: 18px 20px; }
  .calc-total__row--final span:last-child { font-size: 26px; }

  /* Hero CTA */
  .hero__cta { font-size: 14px; padding: 12px 22px; }

  /* Summary cards */
  .summary-card { padding: 22px 20px; }
  .summary-card__amount { font-size: 24px; }
  .summary-card__meta li { font-size: 13.5px; }
}

/* Cực hẹp (< 480px): ẩn cond text dài để gọn */
@media (max-width: 480px) {
  .calc-row__cond { display: none; }
  .calc__sub { font-size: 13.5px; }
  .calc__disclaimer { font-size: 11.5px; line-height: 1.55; }
}

/* =========================================================
   SECTION 2 — HERO
   ========================================================= */
.hero {
  background: var(--surface-blue);
  padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}
.hero::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(190, 216, 241, 0.55) 0%, rgba(190, 216, 241, 0) 70%);
  top: -80px; left: -100px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 246, 246, 0.7) 0%, rgba(255, 246, 246, 0) 70%);
  bottom: -120px; right: -80px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
  margin: 0;
  position: relative;
}

.hero__title-red { color: var(--brand-red); }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
  padding: 14px 28px;
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(193, 37, 37, 0.28);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
  position: relative;
  z-index: 1;
}
.hero__cta:hover {
  transform: translateY(-2px);
  background: var(--brand-red-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(193, 37, 37, 0.36);
}
.hero__cta:active { transform: translateY(0); }
.hero__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 700;
  animation: hero-cta-bounce 2.2s ease-in-out infinite;
}
@keyframes hero-cta-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.hero__title .accent-underline {
  background-image: linear-gradient(transparent 62%, rgba(193, 37, 37, 0.85) 62%, rgba(193, 37, 37, 0.85) 92%, transparent 92%);
  background-size: 100% 0.95em;
  background-position: 0 0.78em;
  padding: 0 6px;
}

/* =========================================================
   SUMMARY — 3 chương trình at a glance
   ========================================================= */
.summary {
  background: var(--surface-0);
  padding: clamp(48px, 6vw, 76px) 0;
  position: relative;
}

.summary__head { text-align: center; margin-bottom: 32px; }
.summary__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
  margin: 0 auto;
  max-width: 760px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 960px) {
  .summary-grid { grid-template-columns: 1fr; gap: 16px; }
}

.summary-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand-navy);
}

.summary-card--01::before { background: var(--brand-navy); }
.summary-card--02::before { background: var(--brand-red); }
.summary-card--03::before { background: var(--brand-navy); }

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--surface-blue-mid);
}

.summary-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-1);
}

.summary-card__num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.summary-card--02 .summary-card__num {
  background: var(--surface-cream);
  color: var(--brand-red);
}
.summary-card--03 .summary-card__num {
  background: var(--surface-blue);
  color: var(--brand-navy);
}

.summary-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
}

.summary-card__row { display: flex; flex-direction: column; gap: 4px; }
.summary-card__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0;
}
.summary-card__value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0;
  font-weight: 500;
}

.summary-card__row--amount { padding: 6px 0 4px; }

.summary-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin: 0;
  line-height: 1.1;
}
.summary-card--02 .summary-card__amount { color: var(--brand-red); }
.summary-card--03 .summary-card__amount { color: var(--brand-navy); }
.summary-card__amount-unit {
  font-size: 0.55em;
  font-weight: 700;
  color: inherit;
  opacity: 0.85;
  margin-left: 1px;
}
.summary-card__amount-sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  opacity: 0.7;
  letter-spacing: 0.01em;
}

.summary-card__meta {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.summary-card__meta li {
  font-size: 13.5px;
  color: var(--fg-1);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.summary-card__meta .dot {
  flex: 0 0 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-navy);
  margin-top: 7px;
}
.summary-card__meta .dot--accent { background: var(--brand-red); }

.summary-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-red);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.summary-card__link:hover { color: var(--brand-red-dark); text-decoration: underline; }

/* =========================================================
   PROGRAM SECTIONS — common
   ========================================================= */
.program {
  padding: clamp(48px, 6vw, 80px) 0;
}

.program__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.program__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
  margin: 4px 0 0;
}

.program__intro {
  max-width: 820px;
  margin: 0 0 32px;
  font-size: clamp(15px, 1.2vw, 16.5px);
  line-height: 1.65;
  color: var(--fg-1);
  font-weight: 500;
}

.program__intro--on-navy { color: var(--fg-on-navy-muted); }
.program__title--on-navy { color: var(--fg-on-navy); }

.eyebrow--on-navy { color: #FFB7B7; }

/* MỚI badge */
.badge-new {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  text-transform: uppercase;
}
.badge-new--on-navy { background: #fff; color: var(--brand-red); }

/* =========================================================
   SECTION 4 — Đồng hành (white)
   ========================================================= */
.program--dong-hanh { background: var(--surface-0); }

/* Tier table */
.tier-table {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.tier-table__row {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  border-bottom: 1px solid var(--border-2);
}
.tier-table__row:last-child { border-bottom: 0; }

.tier-table__row--head {
  background: var(--surface-blue);
  border-bottom: 1px solid var(--border-1);
}
.tier-table__row--head .tier-table__cell {
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 18px;
  padding-bottom: 18px;
}

.tier-table__cell {
  padding: 14px 22px;
  color: var(--fg-1);
  line-height: 1.5;
  font-weight: 500;
}
.tier-table__cell--obj { font-size: 14.5px; }
.tier-table__cell--amt { text-align: right; padding-left: 16px; }

.tier-amount {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--brand-red);
  letter-spacing: -0.01em;
}
.tier-amount--flex {
  font-size: 18px;
  font-weight: 700;
  background: var(--surface-cream);
  color: var(--brand-red);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 720px) {
  .tier-table__row { grid-template-columns: 1fr; }
  .tier-table__cell { padding: 18px 20px; }
  .tier-table__cell--amt { text-align: left; padding-top: 0; padding-bottom: 22px; }
  .tier-table__row--head { display: none; }
}

/* Notes block */
.notes {
  background: var(--surface-blue-alt);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin-bottom: 32px;
}
.notes__title {
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.notes__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.notes__list li {
  position: relative;
  padding: 3px 0 3px 20px;
  color: var(--fg-1);
  line-height: 1.55;
  font-weight: 500;
  font-size: 14.5px;
}
.notes__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
}

/* Steps accordion (shared) */
.steps-toggle {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 200ms ease-out;
  margin-bottom: 10px;
}
.steps-toggle:last-child { margin-bottom: 0; }
.steps-toggle[open] { box-shadow: var(--shadow-md); }

.steps-toggle__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  cursor: pointer;
  user-select: none;
  transition: background 180ms ease-out;
}
.steps-toggle__summary::-webkit-details-marker { display: none; }
.steps-toggle__summary:hover { background: var(--surface-blue-alt); }

.steps-toggle__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.steps-toggle__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--brand-navy);
  letter-spacing: var(--tracking-tight);
}
.steps-toggle__hint {
  font-size: 13px;
  color: var(--brand-red);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.steps-toggle__chev {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-blue);
  position: relative;
  transition: transform 220ms ease-out, background 180ms ease-out;
}
.steps-toggle__chev::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--brand-navy);
  border-bottom: 2.5px solid var(--brand-navy);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 220ms ease-out;
}
.steps-toggle[open] .steps-toggle__chev { background: var(--brand-red); }
.steps-toggle[open] .steps-toggle__chev::before {
  border-color: #fff;
  transform: translate(-50%, -35%) rotate(-135deg);
}

.steps-toggle .steps {
  padding: 8px 28px 28px;
  border-top: 1px dashed var(--border-1);
  margin-top: 0;
}

@media (max-width: 720px) {
  .steps-toggle__summary { padding: 18px 20px; }
  .steps-toggle .steps { padding: 8px 18px 22px; }
}


.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
}

.step {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: var(--brand-red);
  letter-spacing: -0.02em;
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-navy);
  margin: 0;
  line-height: 1.35;
}
.step__title a {
  color: var(--brand-red);
  text-decoration: none;
  word-break: break-all;
}
.step__title a:hover { text-decoration: underline; }

.step__email-line {
  font-size: 14.5px !important;
  color: var(--fg-1) !important;
  font-weight: 500;
  word-break: break-word;
}
.step__email-line a {
  color: var(--brand-red);
  font-weight: 700;
  word-break: break-all;
  text-decoration: none;
}
.step__email-line a:hover { text-decoration: underline; }

.step__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-1);
  margin: 0;
  font-weight: 500;
}
.step__body p + p { margin-top: 10px; }

.step__note {
  background: var(--surface-blue-alt);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px !important;
  color: var(--fg-1) !important;
}

/* Email info — list of key fields needed in the email */
.email-info {
  list-style: none;
  margin: 8px 0 0;
  padding: 18px 22px;
  background: var(--surface-blue-alt);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-info li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-1);
  font-weight: 500;
}
.email-info li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand-red);
}
.email-info strong { color: var(--brand-navy); font-weight: 700; }

/* =========================================================
   SECTION 5 — Chăm chỉ (surface-blue-alt)
   ========================================================= */
.program--cham-chi {
  background: var(--surface-blue-alt);
}

.effort-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .effort-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .effort-cards { grid-template-columns: 1fr; }
}

.effort-card {
  background: var(--surface-blue);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.effort-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.effort-card__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.effort-card__index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-navy);
  opacity: 0.7;
}

.effort-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand-navy);
}
.effort-card__unit {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 2px;
  vertical-align: 0.25em;
}

.effort-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0;
  font-weight: 500;
}

/* Escalation: light blue → mid blue → navy → red */
.effort-card--1 { background: var(--surface-blue); }
.effort-card--2 { background: var(--surface-blue-mid); }
.effort-card--2 .effort-card__index { color: var(--brand-navy); opacity: 0.85; }

.effort-card--3 { background: var(--brand-navy); }
.effort-card--3 .effort-card__index { color: #C6D6E8; opacity: 1; }
.effort-card--3 .effort-card__amount { color: #fff; }
.effort-card--3 .effort-card__desc { color: #D7E2EE; }

.effort-card--4 { background: var(--brand-red); }
.effort-card--4 .effort-card__index { color: #FFD6D6; opacity: 1; }
.effort-card--4 .effort-card__amount { color: #fff; }
.effort-card--4 .effort-card__desc { color: #FFE5E5; }

/* Footnote */
.footnote {
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--surface-cream);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-1);
}

/* =========================================================
   SECTION 6 — Referral (navy)
   ========================================================= */
.program--referral {
  background: var(--surface-0);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.program--referral .eyebrow,
.program--referral .program__title,
.program--referral .program__intro { text-align: center; }
.program--referral .program__intro { margin-left: auto; margin-right: auto; }

.program--referral::before {
  content: '';
  position: absolute;
  top: -160px; left: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 216, 241, 0.55) 0%, rgba(190, 216, 241, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.program--referral::after {
  content: '';
  position: absolute;
  bottom: -160px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 246, 0.95) 0%, rgba(255, 246, 246, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.program--referral .container { position: relative; z-index: 1; }

/* Voucher visual: 2 voucher cards with "+" between */
.referral-vouchers {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.voucher {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  color: var(--brand-navy);
  padding: 18px 22px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  text-align: left;
  box-shadow: 0 14px 36px rgba(16, 64, 112, 0.12), 0 2px 6px rgba(16, 64, 112, 0.06);
  border: 1px solid var(--border-1);
}

/* Card A — Giảm trực tiếp (red accent, urgent feel) */
.voucher--instant {
  background: linear-gradient(135deg, #fff 0%, #FFFAFA 100%);
  border-top: 4px solid var(--brand-red);
}
/* Card B — Voucher 60 ngày (navy accent, saved-for-later feel) */
.voucher--coupon {
  background: linear-gradient(135deg, #fff 0%, #FAFCFF 100%);
  border-top: 4px solid var(--brand-navy);
}

/* Notched edges (perforated ticket look) */
.voucher::before,
.voucher::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--surface-0);
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-1);
}
.voucher::before { left: -10px; }
.voucher::after { right: -10px; }

/* Tag pill at top */
.voucher__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.voucher__tag--instant {
  background: var(--brand-red);
  color: #fff;
}
.voucher__tag--coupon {
  background: var(--surface-blue);
  color: var(--brand-navy);
}

.voucher__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin-top: 2px;
}
.voucher__amount--minus { color: var(--brand-red); }

.voucher__unit {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 2px;
  vertical-align: 0.3em;
}

.voucher__owner {
  font-size: 14px;
  color: var(--fg-1);
  font-weight: 700;
  margin-top: 6px;
}

.voucher__sub {
  font-size: 12.5px;
  color: var(--fg-2);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 2px;
}

.referral-vouchers__plus {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: var(--brand-navy);
  opacity: 0.5;
  line-height: 1;
}

@media (max-width: 720px) {
  .referral-vouchers__plus { display: none; }
  .voucher { flex-basis: 100%; }
}

/* Prose paragraphs */
.referral-prose {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface-blue-alt);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border-top: 4px solid var(--brand-red);
  text-align: left;
}
.referral-prose p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-1);
  margin: 0;
  font-weight: 500;
}
.referral-prose p + p { margin-top: 14px; }

@media (max-width: 720px) {
  .referral-prose { padding: 24px 22px; }
}

/* =========================================================
   SECTION 7 — Lưu ý chung (cream)
   ========================================================= */
.general-notes {
  background: var(--surface-cream);
  padding: clamp(64px, 8vw, 96px) 0;
}

.general-notes .eyebrow { margin-bottom: 24px; display: inline-block; }

.general-notes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.general-notes__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: var(--fg-1);
  line-height: 1.7;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.general-notes__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
}

/* =========================================================
   FEE PANEL — Học phí + 3 chương trình (CS screenshot)
   ========================================================= */
.fee-panel {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-1);
  position: relative;
  overflow: hidden;
}
.fee-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle at top right, rgba(193,37,37,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.fee-panel__head { margin-bottom: 16px; position: relative; z-index: 1; }
.fee-panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--brand-navy);
  margin: 0 0 4px;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
}
.fee-panel__sub {
  font-size: 13.5px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

.fee-panel__body {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) 1.15fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) {
  .fee-panel__body { grid-template-columns: 1fr; gap: 20px; }
  .fee-panel { padding: 22px 20px; }
}

/* Fee table */
.fee-table {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fee-table__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-2);
}
.fee-table__row:last-child { border-bottom: 0; }

.fee-table__row--head {
  background: var(--surface-blue);
}
.fee-table__row--head .fee-table__cell {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-navy);
  padding: 12px 14px;
}

.fee-table__cell {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fee-table__cell--course {
  background: var(--surface-blue-alt);
  border-right: 1px solid var(--border-2);
}
.fee-table__row--head .fee-table__cell { justify-content: center; }
.fee-table__cell strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .fee-table__cell { padding: 10px 12px; font-size: 13px; }
}

/* Scholarships side panel */
.fee-scholarships {
  background: var(--surface-cream);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border-left: 4px solid var(--brand-red);
}

.fee-scholarships__intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--fg-1);
  line-height: 1.5;
}
.fee-scholarships__intro strong { color: var(--brand-navy); font-weight: 700; }

.fee-scholarships__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fee-scholarships__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .fee-scholarships__item { flex-wrap: wrap; }
}

.fee-scholarships__pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16, 64, 112, 0.15);
}
.fee-scholarships__pill--navy { background: var(--brand-navy); }
.fee-scholarships__pill--red  { background: var(--brand-red); box-shadow: 0 2px 6px rgba(193, 37, 37, 0.18); }

.fee-scholarships__amt {
  font-size: 13.5px;
  color: var(--fg-1);
  font-weight: 700;
}

.fee-scholarships__hint {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(193, 37, 37, 0.25);
  font-size: 12.5px;
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* =========================================================
   CALCULATOR — Tính học phí (compact 2-col)
   ========================================================= */
.calculator {
  background: var(--surface-cream);
  padding: clamp(48px, 6vw, 72px) 0 clamp(48px, 6vw, 72px);
}

.calc__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
  margin: 0 auto 6px;
  text-align: center;
  max-width: 720px;
}
.calc__sub {
  max-width: 580px;
  margin: 0 auto 20px;
  font-size: 14px;
  color: var(--fg-1);
  opacity: 0.85;
  line-height: 1.55;
  text-align: center;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 920px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-grid__main {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-1);
}
@media (max-width: 600px) {
  .calc-grid__main { padding: 18px 16px; border-radius: var(--radius-lg); }
}

/* Top controls bar — segmented + format side-by-side */
.calc-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .calc-controls { grid-template-columns: 1fr; gap: 12px; }
}

.calc-field { display: flex; flex-direction: column; gap: 6px; }

.calc-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-red);
}

.calc-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--surface-blue-alt);
  padding: 4px;
  border-radius: var(--radius-md);
}
.calc-segmented--two { grid-template-columns: repeat(2, 1fr); }

.calc-segmented button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 180ms ease-out;
  letter-spacing: 0.02em;
}
.calc-segmented button:hover { color: var(--brand-navy); }
.calc-segmented button.is-active {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 64, 112, 0.25);
}

.calc-helper {
  margin: 4px 0 18px;
  font-size: 12.5px;
  color: var(--brand-red);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  background: var(--surface-cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-red);
}

/* Compact rows */
.calc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-row {
  background: var(--surface-blue-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  transition: background 150ms ease-out;
}
.calc-row:hover { background: var(--surface-blue); }

.calc-row__top {
  display: grid;
  grid-template-columns: 110px 110px 1fr auto;
  align-items: center;
  gap: 12px;
}
@media (max-width: 720px) {
  .calc-row__top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "course price"
      "pickers pickers"
      "net net";
    gap: 10px;
  }
  .calc-row__course  { grid-area: course; }
  .calc-row__price   { grid-area: price; text-align: right; }
  .calc-row__pickers { grid-area: pickers; }
  .calc-row__net     { grid-area: net; text-align: right; }
}

.calc-row__course {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.calc-row__num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.calc-row__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
}

.calc-row__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
  white-space: nowrap;
}

.calc-row__pickers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calc-pick-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-pick-inline__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
}

.calc-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M6 8L2 4h8z' fill='%23104070'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  border: 1.5px solid var(--border-1);
  border-radius: var(--radius-sm);
  padding: 7px 26px 7px 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-navy);
  cursor: pointer;
  transition: border-color 150ms ease-out;
}
.calc-select:hover, .calc-select:focus {
  border-color: var(--brand-navy);
  outline: none;
}

/* Note hộ nghèo nhỏ inline khi active ở các khoá ≥ 2 */
.calc-hononghe-note {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface-cream);
  border: 1px solid rgba(193, 37, 37, 0.28);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Locked pick (kept for reference, not currently used) */
.calc-pick-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--surface-cream);
  border: 1.5px solid rgba(193, 37, 37, 0.28);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--fg-1);
  font-weight: 500;
  line-height: 1.4;
}
.calc-pick-locked__icon {
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
.calc-pick-locked__text strong { color: var(--brand-red); font-weight: 700; }

.calc-mini-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-1);
}
.calc-mini-check input { position: absolute; opacity: 0; pointer-events: none; }
.calc-mini-check__box {
  flex: 0 0 16px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: all 150ms ease-out;
}
.calc-mini-check input:checked + .calc-mini-check__box {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.calc-mini-check input:checked + .calc-mini-check__box::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.calc-row__net {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  gap: 2px;
}
.calc-row__strike {
  font-size: 11.5px;
  color: var(--fg-3);
  text-decoration: line-through;
}
.calc-row__net-amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-red);
  letter-spacing: -0.01em;
}

.calc-row__cond {
  margin: 8px 0 0 !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: var(--fg-2) !important;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-style: italic;
}
.calc-row__cond-icon {
  color: var(--brand-red);
  font-weight: 700;
  font-style: normal;
  flex: 0 0 12px;
}

/* Side: total panel (sticky on desktop) */
.calc-grid__side { position: relative; }
@media (min-width: 921px) {
  .calc-grid__side { position: sticky; top: 24px; }
}

.calc-total {
  background: var(--brand-navy);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.calc-total::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,37,37,0.35) 0%, rgba(193,37,37,0) 70%);
  pointer-events: none;
}

.calc-total__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.calc-total__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--fg-on-navy-muted);
}
.calc-total__row span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.calc-total__row--discount span:last-child { color: #FFD6D6; }

.calc-total__divider {
  height: 1px;
  background: rgba(255,255,255,0.18);
  margin: 6px 0 4px;
}

.calc-total__row--final {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
}
.calc-total__row--final span:first-child {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: #FFB7B7;
}
.calc-total__row--final span:last-child {
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.calc-total__savings {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #FFD6D6;
  position: relative;
  z-index: 1;
  line-height: 1.55;
}
.calc-total__savings.is-active strong { color: #fff; }

.calc__disclaimer {
  margin: 20px auto 0;
  max-width: 780px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-3);
  font-style: italic;
}

/* =========================================================
   JOURNEY — (kept for reference, no longer rendered)
   ========================================================= */
.journey {
  background: var(--surface-cream);
  padding: clamp(72px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}

.journey::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(190, 216, 241, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 246, 246, 0.6) 0%, transparent 40%);
  pointer-events: none;
}
.journey .container { position: relative; z-index: 1; }

.journey__head { text-align: center; margin-bottom: 56px; }
.journey__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
  margin: 12px auto 14px;
  max-width: 820px;
}
.journey__sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--fg-1);
  font-weight: 500;
  opacity: 0.85;
}
.journey__sub strong { color: var(--brand-navy); font-weight: 700; }

/* Path: 5 stage cards in a row (4 courses + đăng ký thi bonus) */
.journey-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 0;
  position: relative;
}

@media (max-width: 1100px) {
  .journey-path { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .journey-path { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .journey-path { grid-template-columns: 1fr; }
}

.stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.stage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Connector arrow between desktop cards */
@media (min-width: 1101px) {
  .stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    right: -10px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--surface-blue-mid);
    border-right: 2px solid var(--surface-blue-mid);
    transform: rotate(45deg);
    z-index: 2;
  }
  /* Stronger arrow before bonus stage to mark transition */
  .stage--bloom::after {
    border-color: var(--brand-red) !important;
    opacity: 0.6;
  }
}

/* Tree-growing color treatment per stage */
.stage--root  { background: linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%); }
.stage--trunk { background: linear-gradient(180deg, var(--surface-blue) 0%, #FFFFFF 80%); }
.stage--bud   { background: linear-gradient(180deg, var(--surface-blue) 0%, #FFFFFF 60%); }
.stage--bloom { background: linear-gradient(180deg, var(--surface-blue-mid) 0%, #FFFFFF 80%); }
.stage--exam  {
  background: linear-gradient(180deg, var(--surface-cream) 0%, #FFFFFF 90%);
  border-color: rgba(193, 37, 37, 0.2);
}

.stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.stage__leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
}
.stage--root .stage__leaf  { background: var(--brand-navy); opacity: 0.55; }
.stage--trunk .stage__leaf { background: var(--brand-navy); opacity: 0.7; }
.stage--bud .stage__leaf   { background: var(--brand-navy); opacity: 0.85; }
.stage--bloom .stage__leaf { background: var(--brand-navy); }
.stage__leaf--exam { background: var(--brand-red) !important; }
.stage--exam .stage__index { color: var(--brand-red); }
.stage--exam .stage__course { color: var(--brand-red); }

.stage__index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.stage__course {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  margin: 4px 0 0;
  line-height: 1;
}

.stage__sub {
  font-size: 13px;
  color: var(--fg-1);
  font-weight: 500;
  margin: 0 0 8px;
  opacity: 0.75;
}

.stage__chips {
  list-style: none;
  margin: auto 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chip--navy { background: var(--surface-blue); color: var(--brand-navy); }
.chip--red  { background: var(--surface-cream); color: var(--brand-red); }

.chip__amt {
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .stage { padding: 22px 20px; }
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: var(--surface-blue);
  padding: clamp(48px, 6vw, 76px) 0;
  text-align: center;
}

.cta-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  color: var(--brand-navy);
  margin: 0 0 12px;
  letter-spacing: var(--tracking-tight);
}

.cta-section__sub {
  max-width: 580px;
  margin: 0 auto 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 180ms ease-out;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--brand-red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(193, 37, 37, 0.3);
  text-decoration: none;
  color: #fff;
}
.btn--primary:active { transform: scale(0.98); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--surface-navy);
  color: var(--fg-on-navy);
  padding: clamp(56px, 6vw, 80px) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__logo {
  width: 160px;
  margin-bottom: 16px;
}

.footer__tag {
  color: var(--fg-on-navy-muted);
  font-style: italic;
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}

.footer__col-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: #FFB7B7;
  margin: 0 0 16px;
}

.footer__line {
  margin: 0 0 8px;
  color: var(--fg-on-navy-muted);
  line-height: 1.6;
  font-size: 14.5px;
}
.footer__line a { color: #fff; }
.footer__line a:hover { color: #FFB7B7; }

.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__social a {
  color: #fff;
  font-size: 14.5px;
}
.footer__social a:hover { color: #FFB7B7; text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 13px;
  color: var(--fg-on-navy-muted);
  text-align: center;
}
.footer__bottom p { margin: 0; color: var(--fg-on-navy-muted); }

/* =========================================================
   FLOATING ZALO BUTTON
   ========================================================= */
.calc-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 20px 12px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(16, 64, 112, 0.32), 0 4px 10px rgba(16, 64, 112, 0.2);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}
.calc-fab:hover {
  transform: translateY(-2px);
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(193, 37, 37, 0.4);
}
.calc-fab svg { flex: 0 0 20px; }

@media (max-width: 600px) {
  .calc-fab { right: 14px; bottom: 14px; padding: 12px; }
  .calc-fab span { display: none; }
  .calc-fab svg { width: 22px; height: 22px; flex-basis: 22px; }
}

/* =========================================================
   REFERRAL HOWTO + .rules block (Lớp 1 + Lớp 2 thông tin)
   ========================================================= */
.referral-howto__steps {
  margin: 0;
  padding: 18px 28px 24px;
  list-style: none;
  counter-reset: ref-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed var(--border-1);
  text-align: left;
}
.referral-howto__steps li {
  position: relative;
  padding: 4px 0 4px 40px;
  counter-increment: ref-step;
  color: var(--fg-1);
  line-height: 1.65;
  font-size: 14.5px;
}
.referral-howto__steps li::before {
  content: counter(ref-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .referral-howto__steps { padding: 16px 18px 20px; }
}

/* Rules accordion content */
.rules {
  padding: 4px 28px 22px;
  border-top: 1px dashed var(--border-1);
  text-align: left;
}
/* Force left-align trong section căn giữa (Giới thiệu) */
.program--referral .rules,
.program--referral .referral-howto__steps {
  text-align: left;
}
.program--referral .steps-toggle__summary {
  text-align: left;
}
.rules h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 18px 0 8px;
  letter-spacing: 0;
}
.rules h4:first-child { margin-top: 14px; }
.rules ul {
  margin: 0 0 4px;
  padding-left: 20px;
  list-style: none;
}
.rules ul li {
  position: relative;
  margin-bottom: 6px;
  line-height: 1.65;
  font-size: 14px;
  color: var(--fg-2);
}
.rules ul li::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
}
.rules p {
  margin: 0 0 8px;
  line-height: 1.65;
  font-size: 14px;
  color: var(--fg-2);
}

@media (max-width: 720px) {
  .rules { padding: 4px 18px 18px; }
}
