/* Tiếng Trung Gia Gia — vở tập viết ô mễ tự */
:root {
  /* màu */
  --paper: #F4EFE6;
  --grid: #E4D9C6;
  --ink: #1A1A1A;
  --muted: #5E574F;
  --red: #C8102E;
  --on-ink-muted: #CFC6B8;
  /* chữ */
  --f-han: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --f-serif: 'Noto Serif', Georgia, serif;
  --f-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  --fs-h1: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  /* khoảng cách: bội số của 8, lưới 48 */
  --cell: 48px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px;
  --line: 2px solid var(--ink);
  --bar-h: 56px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
  overflow-x: hidden;
}
@media (max-width: 767.98px) { body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); } }

[lang^="zh-Hans"]:not([lang$="Latn"]) { font-family: var(--f-han); font-weight: 900; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 700; line-height: 1.25; margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s2); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img, video { max-width: 100%; height: auto; display: block; }
.num, .fee-big, .cc-fee, .amt, .acct, .mono { font-variant-numeric: tabular-nums; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
mark.ph { background: #FFE9A8; color: var(--ink); outline: 1px dashed var(--ink); padding: 0 4px; font-family: var(--f-sans); font-weight: 500; font-size: 0.875em; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s1) var(--s2); }
.skip:focus { top: var(--s1); color: #fff; }

.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 var(--s2); }
.wrap--narrow { max-width: 864px; }
@media (min-width: 768px) { .wrap { padding: 0 var(--s3); } }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 10px 20px;
  font: 700 var(--fs-base)/1.2 var(--f-sans);
  text-decoration: none; text-align: center;
  border: var(--line); border-radius: 0; cursor: pointer;
  background: var(--paper); color: var(--ink);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); color: inherit; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { color: #fff; }
.btn-onink { border: 1px solid #fff; }
.btn-onink:hover { box-shadow: 2px 2px 0 #fff; }
.btn-line { background: var(--paper); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: var(--fs-lg); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--ink); }
.header-in { display: flex; align-items: center; gap: var(--s3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-weight: 700; font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.site-header .brand img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: var(--s3); margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.menu-btn { display: none; }
@media (max-width: 1023.98px) {
  .header-cta { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; min-width: 44px; padding: 0 12px;
    background: var(--paper); border: var(--line); font: 700 var(--fs-sm) var(--f-sans); color: var(--ink); cursor: pointer;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ''; }
  .menu-lines::before { position: absolute; top: -6px; }
  .menu-lines::after { position: absolute; top: 6px; }
  .js .nav { display: none; }
  .nav { position: fixed; inset: 64px 0 0 0; margin: 0; background: var(--paper); padding: var(--s3) var(--s2); overflow-y: auto; z-index: 49; border-top: 1px solid var(--ink); }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--grid); }
  .nav a { min-height: var(--cell); font-family: var(--f-serif); font-size: 1.375rem; width: 100%; }
  html:not(.js) .nav { position: static; display: block; padding: 0; border: 0; }
}
@media (max-width: 479.98px) { .header-cta { display: none; } .menu-btn { margin-left: auto; flex: none; } .brand { font-size: 1.0625rem; gap: 8px; } .site-header .brand img { width: 40px; height: 40px; } .header-in { gap: var(--s2); } }
@media (max-width: 389.98px) { .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-btn { justify-content: center; } }
body.menu-open { overflow: hidden; }

/* ---------- cố định: Zalo + thanh đăng ký ---------- */
.zalo-float {
  position: fixed; right: var(--s2); bottom: var(--s2); z-index: 40;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--red); color: var(--ink);
  font-weight: 700; text-decoration: none; font-size: var(--fs-sm);
}
.zalo-float:hover { background: #fff; color: var(--red); }
.m-bar { display: none; }
@media (max-width: 767.98px) {
  .m-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--red); color: #fff; font-weight: 700; font-size: var(--fs-lg); text-decoration: none;
    transition: transform .2s ease;
  }
  .m-bar:hover { color: #fff; }
  .m-bar.is-hidden { transform: translateY(110%); }
  .zalo-float { bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); transition: bottom .2s ease; }
  .bar-hidden .zalo-float { bottom: calc(var(--s2) + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .m-bar, .zalo-float { transition: none; } }

/* ---------- nét đỏ vẽ tay ---------- */
.ink-circle { position: absolute; inset: -8px -10px; width: calc(100% + 20px); height: calc(100% + 16px); pointer-events: none; transform: rotate(-2deg); overflow: visible; }
.ink-circle path { fill: none; stroke: var(--red); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ink-wave { position: absolute; left: 0; right: 0; bottom: -8px; width: 100%; height: 10px; overflow: visible; }
.ink-wave path { fill: none; stroke: var(--red); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ink-check { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.ink-check path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ink-arrow { width: 48px; height: 16px; flex: none; }
.ink-arrow path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ô mễ tự ---------- */
.mizi { position: relative; aspect-ratio: 1; border: var(--line); background: var(--paper); display: grid; place-items: center; }
.mizi-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.mizi-lines path { fill: none; stroke: var(--grid); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.mizi-char { position: relative; line-height: 1; }
.mizi--hero { width: min(100%, 432px); border-color: var(--red); }
.mizi--hero .mizi-char { font-size: clamp(9rem, 26vw, 20rem); }
.mizi--course { width: min(100%, 288px); border-color: var(--red); }
.mizi--course .mizi-char { font-size: clamp(6rem, 18vw, 12rem); }
.mizi--sm { width: 96px; flex: none; }
.mizi--sm .mizi-char { font-size: 3.75rem; }

@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.js .mizi--hero .mizi-char { animation: reveal 1.4s cubic-bezier(.6,.05,.3,1) .15s both; }
@media (prefers-reduced-motion: reduce) { .js .mizi--hero .mizi-char { animation: none; } }

/* ---------- section ---------- */
.section { padding: var(--s12) 0 var(--s8); }
.sec-head { display: flex; align-items: flex-start; gap: var(--s2); margin-bottom: var(--s4); }
.sec-head h2 { margin: 4px 0 var(--s1); }
.sec-num {
  flex: none; width: var(--cell); height: var(--cell); border: var(--line); background: var(--paper);
  display: grid; place-items: center; position: relative; font-size: 1.625rem; line-height: 1;
}
.sec-num small { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font: 500 0.6875rem/1 var(--f-sans); color: var(--muted); }
.sec-sub { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.sec-head--sm { margin: var(--s8) 0 var(--s3); align-items: center; }
.sec-head--sm h2 { margin: 0; font-size: 1.5rem; }

/* ---------- banner ---------- */
.hero { padding: var(--s8) 0 var(--s8); }
.hero-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s6); } .hero { padding: var(--s12) 0; } }
@media (max-width: 899.98px) {
  .hero-char { order: -1; }
  .mizi--hero { width: 192px; }
  .mizi--hero .mizi-char { font-size: 8.5rem; }
  .hero { padding-top: var(--s4); }
}
.hero-char { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.hero-char figcaption { color: var(--muted); font-size: var(--fs-sm); }
.eyebrow { color: var(--red); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .02em; text-transform: uppercase; margin-bottom: var(--s2); }
.slogan { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); margin: var(--s2) 0 var(--s3); }
.wavy { position: relative; white-space: nowrap; }
.lead { font-size: var(--fs-lg); max-width: 60ch; }

/* ---------- 一 nhu cầu ---------- */
.need-grid { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .need-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .need-grid { grid-template-columns: repeat(5, 1fr); } }
.need {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: var(--s2) var(--s2) var(--s2) 52px;
  border: var(--line); background: var(--paper); cursor: pointer;
}
.need input { position: absolute; left: var(--s2); top: 20px; width: 22px; height: 22px; margin: 0; accent-color: var(--red); }
.need-label { font-weight: 700; line-height: 1.35; }
.need-hint { color: var(--muted); font-size: var(--fs-sm); }
.need .ink-circle { opacity: 0; }
.need:has(input:checked) { background: #fff; }
.need:has(input:checked) .ink-circle { opacity: 1; }
.need:has(input:checked) .ink-circle path { animation: draw .6s ease-out both; }
.need:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 4px; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .need:has(input:checked) .ink-circle path { animation: none; } }
.need-result:empty { display: none; }
.need-result { margin-top: var(--s3); font-weight: 500; }
#nhu-cau .small { margin-top: var(--s3); }

/* ---------- 二 khóa học ---------- */
.course-grid { display: grid; grid-template-columns: 1fr; border-top: var(--line); border-left: var(--line); }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card {
  position: relative; display: flex; flex-direction: column; padding: var(--s3); min-height: 384px;
  border-right: var(--line); border-bottom: var(--line); background: var(--paper);
}
.course-card:not(.course-card--aside):hover { background: #fff; }
.course-card.is-fit { background: #fff; }
.cc-char { display: flex; align-items: baseline; gap: var(--s1); margin: 0 0 var(--s2); line-height: 1; }
.cc-char [lang] { font-size: 4.5rem; }
.cc-char .hv { color: var(--muted); font-size: var(--fs-sm); }
.cc-name { font-size: 1.25rem; margin-bottom: var(--s1); }
.cc-name a { text-decoration: none; }
.cc-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.cc-name a:focus-visible { outline: none; }
.course-card:has(.cc-name a:focus-visible) { outline: 2px solid var(--red); outline-offset: -6px; }
.cc-aud { color: var(--muted); margin-bottom: var(--s1); }
.cc-meta { font-weight: 500; margin-bottom: var(--s2); }
.cc-fee { color: var(--red); font-weight: 700; font-size: 1.5rem; margin: auto 0 var(--s1); }
.cc-fee small { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
.tag { display: inline-block; align-self: flex-start; border: 1px solid var(--ink); padding: 2px 8px; font-size: 0.8125rem; font-weight: 500; margin-bottom: var(--s2); }
.cc-more { font-weight: 700; margin: 0; }
.course-card:hover .cc-more { color: var(--red); }
.course-card--aside { justify-content: center; }
.course-card--aside .btn { position: relative; z-index: 2; }
.start-here { position: absolute; top: 20px; right: 20px; margin: 0; padding: 4px 12px; font-family: var(--f-serif); font-style: italic; font-weight: 700; color: var(--red); transform: rotate(-6deg); }
.start-here .ink-circle { transform: none; }
.fit-badge { position: absolute; top: 0; left: 0; margin: 0; background: var(--red); color: #fff; font-size: 0.8125rem; font-weight: 700; padding: 4px 10px; }
.course-card.is-fit .cc-char { margin-top: var(--s2); }

/* bảng học phí */
.fee-table { margin-top: var(--s6); background: var(--paper); border: var(--line); padding: var(--s3); }
.fee-table h3 { margin-bottom: var(--s2); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
thead th { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; border-bottom: var(--line); }
tbody th { font-weight: 700; }
td.num { text-align: right; white-space: nowrap; }
td.num[colspan] { text-align: left; white-space: normal; }
.policy-line { margin: var(--s2) 0 0; font-size: var(--fs-base); }
@media (max-width: 719.98px) {
  .fee-table { padding: var(--s2); }
  .fee-table thead, .sched thead, .fee-mini thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table tr, .sched tr, .fee-mini tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--grid); }
  .fee-table th, .fee-table td, .sched th, .sched td, .fee-mini th, .fee-mini td { display: flex; justify-content: space-between; gap: var(--s2); border: 0; padding: 2px 0; text-align: right; white-space: normal; }
  .fee-table tbody th, .sched tbody th, .fee-mini tbody th { font-size: var(--fs-lg); padding-bottom: 6px; }
  .fee-table td::before, .sched td[data-label]::before, .fee-mini td::before { content: attr(data-label); color: var(--muted); text-align: left; font-weight: 400; }
  .fee-table td[colspan] { display: block; text-align: left; }
  .fee-table td[colspan]::before { content: none; }
}

/* ---------- 三 lộ trình ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.path li { display: flex; flex-direction: column; align-items: center; }
.path .ink-arrow { transform: rotate(90deg); margin: 16px 0; }
@media (min-width: 900px) {
  .path { grid-template-columns: repeat(4, 1fr); }
  .path li { flex-direction: row; align-items: stretch; }
  .path .ink-arrow { transform: none; margin: 0 4px; align-self: center; }
}
.path-step {
  flex: 1; width: 100%; display: flex; flex-direction: column; gap: 4px; padding: var(--s2) var(--s3);
  border: var(--line); background: var(--paper); text-decoration: none; min-height: 144px;
}
.path-step:hover { background: #fff; color: inherit; }
.path-step:hover .ps-name { color: var(--red); }
.ps-char { display: flex; align-items: baseline; gap: 6px; font-size: 2.5rem; line-height: 1.1; }
.ps-char small { font: 500 var(--fs-sm) var(--f-sans); color: var(--muted); }
.ps-name { font-family: var(--f-serif); font-weight: 700; font-size: 1.25rem; }
.ps-meta { color: var(--muted); font-size: var(--fs-sm); }
.path-total { margin: var(--s4) 0; font-size: var(--fs-lg); }
.path-branch { position: relative; max-width: 432px; padding-left: var(--s6); }
.path-branch::before { content: ''; position: absolute; left: 16px; top: -24px; bottom: 50%; border-left: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); width: 24px; }
.path-step--branch { border-style: dashed; }

/* ---------- 四 vì sao ---------- */
.reasons { list-style: none; margin: 0; padding: 0; border-top: var(--line); max-width: 912px; }
.reasons li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--ink); background: linear-gradient(transparent calc(100% - 0px), transparent); }
.reasons h3 { margin-bottom: 4px; }
.reasons p { margin: 0; color: var(--muted); }
.r-char { flex: none; width: 64px; height: 64px; border: var(--line); background: var(--paper); display: grid; place-items: center; position: relative; font-size: 2.125rem; line-height: 1; }
.r-char small { position: absolute; bottom: -22px; left: -8px; right: -8px; text-align: center; font: 500 0.75rem/1 var(--f-sans); color: var(--muted); }
.reasons li { padding-bottom: calc(var(--s3) + 8px); }

/* ---------- 五 / 六 ---------- */
.teacher-grid, .t-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.teacher { border: var(--line); background: var(--paper); padding: var(--s2); }
.teacher img { aspect-ratio: 4/5; object-fit: cover; border: var(--line); margin-bottom: var(--s2); width: 100%; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
.filter { min-height: 44px; padding: 8px 14px; border: var(--line); background: var(--paper); font: 500 var(--fs-sm) var(--f-sans); cursor: pointer; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.t-item { border: var(--line); background: var(--paper); padding: var(--s2); }
.t-item[hidden] { display: none; }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); }
.ba figure { margin: 0; }
.lightbox { border: var(--line); padding: var(--s2); max-width: min(960px, 92vw); background: var(--paper); }
.lightbox::backdrop { background: rgba(26, 26, 26, .8); }
.lb-close { min-height: 44px; margin-bottom: var(--s1); border: var(--line); background: var(--paper); font-weight: 700; padding: 0 16px; cursor: pointer; }

/* ---------- 七 ---------- */
.empty { border: var(--line); background: var(--paper); padding: var(--s4); max-width: 720px; font-size: var(--fs-lg); }
.empty p:last-child { margin: 0; }
.sched { background: var(--paper); border: var(--line); }
.sched td.red { font-weight: 700; }

/* ---------- 八 FAQ ---------- */
.faq { border-top: var(--line); }
.qa { border-bottom: 1px solid var(--ink); background: var(--paper); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: var(--cell); padding: var(--s2) 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font-size: 1.125rem; }
.qa summary::after { content: '+'; flex: none; width: 32px; height: 32px; border: var(--line); display: grid; place-items: center; font: 700 1.25rem/1 var(--f-sans); }
.qa[open] summary::after { content: '−'; background: var(--ink); color: #fff; }
.qa p { padding: 0 var(--s6) var(--s3) 0; margin: 0; }

/* ---------- 九 đăng ký ---------- */
.reg { background: var(--ink); color: #fff; padding: var(--s3) var(--s2); position: relative; max-width: 960px; }
@media (min-width: 768px) { .reg { padding: var(--s6); } }
.reg a:not(.btn) { color: #fff; }
.reg a:not(.btn):hover { color: #FFD5DB; }
.steps { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #fff; }
.steps li { display: flex; align-items: center; gap: var(--s1); padding: 10px 12px; font-size: var(--fs-sm); color: var(--on-ink-muted); }
.steps li + li { border-left: 1px solid #fff; }
.step-n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps .is-current { color: #fff; font-weight: 700; }
.steps .is-current .step-n { background: var(--red); border-color: var(--red); }
.steps .is-done .step-n { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 479.98px) { .steps li { flex-direction: column; text-align: center; gap: 4px; font-size: 0.8125rem; padding: 8px 4px; } }

.reg-form { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .reg-form { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } .reg-form > :is(.form-intro, fieldset, .field--check, .form-error, .error-summary, button), .reg-form > .field:has(textarea) { grid-column: 1 / -1; } }
.form-intro { margin: 0; color: var(--on-ink-muted); }
.field { margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: var(--s1); padding: 0; }
.req { color: #FF8A9B; }
.reg input[type="text"], .reg input[type="tel"], .reg select, .reg textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--paper); border-radius: 0;
  background: var(--paper); color: var(--ink); font: 400 var(--fs-base) var(--f-sans);
}
.reg select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.reg textarea { min-height: 96px; resize: vertical; }
.reg :is(input, select, textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.reg ::placeholder { color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: var(--s1); }
.opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px; border: 1px solid var(--on-ink-muted); cursor: pointer; }
.opt:has(input:checked) { border: 2px solid #fff; background: #2C2A27; }
.opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.opt input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; }
.check input { margin-top: 3px; }
.err { margin: 6px 0 0; color: #FFB3BF; font-weight: 500; font-size: var(--fs-sm); }
.err:empty { display: none; }
.err::before { content: 'Lỗi: '; }
.is-invalid :is(input[type="text"], input[type="tel"], select) { border-color: #FF8A9B; box-shadow: inset 4px 0 0 var(--red); }
.js .cond:not(.is-on) { display: none; }
.amount-box { margin: 0; grid-column: 1 / -1; }
.amount-box:empty { display: none; }
.amount-box strong { display: block; font-size: 1.75rem; font-variant-numeric: tabular-nums; color: #fff; }
.form-error { border: 2px solid #FF8A9B; padding: var(--s2); }
.form-error[hidden], .error-summary[hidden] { display: none; }
.form-error p:last-child { margin: 0; }
.error-summary { margin: 0; color: #FFB3BF; font-weight: 700; }
.reg-form button[type="submit"] { justify-self: start; }
.turnstile-wrap { min-height: 65px; }
@media (max-width: 400px) { .reg { padding-left: 12px; padding-right: 12px; } }
.form-hint { margin: 6px 0 0 32px; color: var(--on-ink-muted); font-size: var(--fs-sm); }
.form-hint--box { margin: 0; border-left: 3px solid var(--on-ink-muted); padding: 4px 0 4px 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* sau khi gửi */
.reg-done { position: relative; }
.done-title { font-size: 1.625rem; padding-right: 112px; }
.done-title:focus { outline: none; }
.done-step { margin-top: var(--s4); padding: var(--s3); border: 1px solid #fff; }
.done-step h4 { font-size: 1.25rem; }
.stamp {
  position: absolute; top: -8px; right: 0; margin: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 96px; height: 96px; border: 3px solid var(--red); color: var(--red); background: rgba(255, 255, 255, .04);
  transform: rotate(-12deg); font-size: 0.75rem; font-weight: 700;
}
.stamp [lang] { font-size: 2rem; line-height: 1; color: #FF6B80; }
.stamp { color: #FF6B80; border-color: #FF6B80; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
.js .reg-done:not([hidden]) .stamp { animation: stamp .45s cubic-bezier(.3,.7,.4,1) .1s both; }
@media (prefers-reduced-motion: reduce) { .js .reg-done:not([hidden]) .stamp { animation: none; } }

.bank { margin: 0 0 var(--s3); display: grid; gap: 0; border-top: 1px solid currentColor; }
.bank > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid currentColor; }
@media (min-width: 640px) { .bank > div { grid-template-columns: 180px 1fr; align-items: center; gap: var(--s2); } }
.bank dt { color: var(--muted); font-size: var(--fs-sm); }
.reg .bank dt { color: var(--on-ink-muted); }
.bank dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); font-weight: 700; font-size: var(--fs-lg); }
.acct { font-size: 1.625rem; letter-spacing: .02em; color: var(--red); }
.reg .acct, .reg .amt { color: #FF6B80; }
.amt { font-size: 1.375rem; }
.copy {
  min-height: 44px; min-width: 44px; padding: 6px 14px; border: 2px solid currentColor; background: transparent; color: inherit;
  font: 700 var(--fs-sm) var(--f-sans); cursor: pointer;
}
.copy:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.copy.is-done::after { content: ' ✓'; }
.qr { margin: 0 0 var(--s3); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.qr img { width: 240px; max-width: 100%; height: auto; border: var(--line); }
.qr-ph { width: 192px; height: 192px; background: #fff; border: var(--line); padding: 8px; }
.qr-ph { display: grid; place-items: center; text-align: center; font-size: var(--fs-sm); }
.qr figcaption { flex: 1; min-width: 220px; }
.note { border-left: 4px solid var(--red); padding: var(--s2); background: rgba(200, 16, 46, .08); }

/* ---------- 十 ---------- */
.contact { margin: 0; display: grid; gap: 0; border-top: var(--line); max-width: 912px; }
.contact > div { display: grid; gap: 4px; padding: var(--s2) 0; border-bottom: 1px solid var(--ink); }
@media (min-width: 640px) { .contact > div { grid-template-columns: 280px 1fr; align-items: center; } }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; font-weight: 500; }
.big-link { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--ink); background: var(--paper); padding: var(--s6) 0 var(--s8); margin-top: var(--s8); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); }
.footer-links { list-style: none; padding: 0; margin: var(--s2) 0 0; display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.motto { margin: 0; display: flex; gap: var(--s2); align-items: flex-start; }
.motto-zh { writing-mode: vertical-rl; font-size: 1.75rem; letter-spacing: .15em; margin: 0; border-left: 2px solid var(--red); padding-left: 8px; }
.motto figcaption { font-family: var(--f-serif); font-style: italic; max-width: 200px; }
.motto figcaption .muted { font-style: normal; font-family: var(--f-sans); font-size: var(--fs-sm); }

/* ---------- trang con ---------- */
.crumbs ol { list-style: none; margin: 0; padding: var(--s2) 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 4px; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.course-hero { padding: var(--s4) 0 var(--s4); }
.course-hero-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .course-hero-grid { grid-template-columns: 288px 1fr; gap: var(--s8); } }
@media (max-width: 899.98px) { .mizi--course { width: 160px; } .mizi--course .mizi-char { font-size: 6.5rem; } }
.course-hero-char { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.course-hero-char figcaption { color: var(--muted); font-size: var(--fs-sm); }
.course-hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
.summary { background: var(--paper); }
.course-body { padding-bottom: var(--s8); }
.dash, .numbered, .checks { margin: 0; padding: 0; list-style: none; background: var(--paper); border-top: 1px solid var(--ink); }
.dash li, .numbered li, .checks li { padding: 12px 0 12px 40px; border-bottom: 1px solid var(--grid); position: relative; }
.dash li::before { content: '—'; position: absolute; left: 8px; color: var(--muted); }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border: var(--line); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); line-height: 1; }
.checks li { display: flex; gap: var(--s2); padding-left: 0; }
.info { background: var(--paper); border: var(--line); }
.info thead th:first-child { width: 40%; }
.fee-cards { display: grid; gap: 0; border-top: var(--line); border-left: var(--line); }
@media (min-width: 720px) { .fee-cards { grid-template-columns: 1fr 1fr; } }
.fee-cards--one { grid-template-columns: 1fr !important; max-width: 560px; }
.fee-card { padding: var(--s3); border-right: var(--line); border-bottom: var(--line); background: var(--paper); }
.fee-card--full { background: #fff; }
.fee-big { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); color: var(--red); font-weight: 700; line-height: 1.1; margin-bottom: var(--s1); }
.fee-big small { font-size: 1rem; color: var(--muted); }
.fee-card .btn { margin-top: var(--s1); }
.inst { margin: 0; }
.inst > div { display: flex; justify-content: space-between; gap: var(--s2); padding: 10px 0; border-bottom: 1px solid var(--grid); }
.inst dd { margin: 0; font-weight: 700; white-space: nowrap; }
.inst-total { border-bottom: 0 !important; border-top: 2px solid var(--ink); font-weight: 700; }
.gv-switch .seg { border: 0; padding: 0; margin: 0 0 var(--s3); display: flex; flex-wrap: wrap; }
.seg legend { font-weight: 700; margin-bottom: var(--s1); width: 100%; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { min-height: 48px; padding: 10px 18px; border: var(--line); background: var(--paper); cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; }
.seg label + input + label { border-left: 0; }
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; position: relative; z-index: 1; }
.gv-label { font-weight: 700; margin-bottom: var(--s1); }
.gv-switch:has(#gv-vn:checked) .gv-panel--cn, .gv-switch:has(#gv-cn:checked) .gv-panel--vn { display: none; }
.gv-panel + .gv-panel { margin-top: var(--s3); }
.gv-switch:has(input:checked) .gv-panel + .gv-panel { margin-top: 0; }
.next-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.next-grid .path-step { min-height: 0; }
.path-step--next { border-color: var(--red); }

.page { padding-bottom: var(--s8); }
.page-head { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0 var(--s4); }
.page-head h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin: 0; }
.page h2 { margin-top: var(--s4); font-size: 1.5rem; }
.page .done-step { background: var(--paper); border: var(--line); }
.page .done-step h2 { margin-top: 0; }
.fee-mini { background: var(--paper); }
.fee-mini td.num { text-align: right; }
