/* =====================================================================
   CUỘC THI VIDEO MKT HẰNG TUẦN — RECO
   Màu thương hiệu lấy từ logo: xanh #0A5597, cam #F5831F.
   Đổi màu/font tại :root.
   ===================================================================== */

:root {
  /* Thương hiệu */
  --blue: #0A5597;
  --blue-600: #0C4A84;
  --navy: #0B2B4C;
  --navy-900: #071D35;
  --orange: #F5831F;
  --orange-600: #E06F0C;
  --orange-ink: #B04F00;      /* cam đủ tương phản cho chữ nhỏ trên nền sáng */

  /* Nền & chữ */
  --bg: #FFFFFF;
  --bg-tint: #F3F6FA;
  --ink: #0F1B2D;
  --ink-2: #3D4A5C;
  --ink-3: #5B6779;
  --line: #D9E0E8;
  --line-strong: #B8C3D1;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D6E6;

  /* Trạng thái */
  --error: #B42318;
  --error-bg: #FEF3F2;
  --success: #067647;
  --success-bg: #ECFDF3;
  --focus: #F5831F;

  /* Chữ */
  --font-body: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Be Vietnam Pro", "Arial Narrow", sans-serif;

  /* Bố cục */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 6px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--blue); }
strong, b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--orange); color: var(--navy); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Chữ dùng chung ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--orange); }

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.section-lead { margin-top: 1rem; font-size: 1.0625rem; color: var(--ink-2); max-width: 46ch; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* ---------- Nút ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--navy-900); --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: #FF9A3D; --btn-bd: #FF9A3D; }
.btn--ghost { --btn-fg: var(--on-dark); --btn-bd: rgba(255,255,255,.55); }
.btn--ghost:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.08); }
.btn--outline { --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- A. Thanh điều hướng ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: block; padding: 10px 12px;
  color: var(--on-dark-2); text-decoration: none; font-weight: 500; font-size: .9375rem;
  border-radius: 4px; position: relative;
}
.nav__list a:hover { color: #fff; }
.nav__list a[aria-current="true"] { color: #fff; }
.nav__list a[aria-current="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange);
}

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .brand img { height: 40px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,.25);
  }
  .js .nav:not(.is-open) { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav__list a[aria-current="true"]::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .nav__cta { margin-top: 16px; min-height: 48px; }
  /* Không có JS: menu xếp dọc, vẫn dùng được */
  html:not(.js) .nav-bar { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
}

/* ---------- B. Mở đầu ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(10,85,151,.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy) 100%);
  color: var(--on-dark);
  padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "head head" "copy visual";
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 72px); align-items: center;
}
.hero__head { grid-area: head; }
.hero__copy { grid-area: copy; }
.hero__visual { grid-area: visual; }
.hero__program {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 10px;
}
.hero__program::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1rem + 5.6vw, 6rem);
  line-height: 1.04;           /* đủ chỗ cho dấu tiếng Việt chồng (Ể, Ộ...) */
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero__title span { display: block; text-wrap: balance; }
@media (min-width: 1024px) { .hero__title span { white-space: nowrap; } }
.hero__title-accent { color: var(--orange); }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--on-dark-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero__support {
  margin-top: 2.25rem; padding: 18px 20px 18px 22px;
  border-left: 4px solid var(--orange);
  background: rgba(255,255,255,.06);
  max-width: 560px;
}
.hero__support-title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); font-weight: 600; line-height: 1.35; color: #fff; }
.hero__support-title strong { color: var(--orange); font-weight: 800; }
.hero__support-note { margin-top: 6px; font-size: 1rem; color: var(--on-dark-2); }

.hero__visual { position: relative; }
.stage { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.stage__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .12em; fill: rgba(255,255,255,.75); }
.stage__tick { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; fill: rgba(255,255,255,.6); }

.hero-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-meta > div { padding: 18px 20px 0 0; }
.hero-meta dt { font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hero-meta dd { margin-top: 4px; font-weight: 600; color: #fff; font-size: 1.0625rem; }
.hero-meta dd small { display: block; font-weight: 400; color: var(--on-dark-2); font-size: .9375rem; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "head" "copy" "visual"; }
  .hero__visual { max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero__visual { max-width: 320px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- C. Yêu cầu dự thi ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__head { position: sticky; top: calc(var(--header-h) + 32px); }
.focus-list { border-top: 2px solid var(--navy); }
.focus { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.focus__num { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--orange); }
.focus__title { font-size: 1.3125rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.35; }
.focus p { color: var(--ink-2); font-size: 1.0625rem; }
.intro__statement {
  grid-column: 2; margin-top: 8px;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; font-weight: 500; color: var(--navy);
  padding: 20px 0 0 20px; border-left: 4px solid var(--blue);
}
.intro__statement strong { color: var(--blue); }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__head { position: static; }
  .intro__statement { grid-column: auto; padding-top: 4px; }
  .focus { grid-template-columns: 56px 1fr; padding: 22px 0; }
  .focus__num { font-size: 2rem; }
}

/* ---------- D. Cách tham gia ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0 33.33%, var(--line-strong) 33.33% 100%);
}
.step { position: relative; padding-right: clamp(16px, 2.5vw, 32px); }
.step__num {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--navy); background: var(--bg-tint);
  border: 2px solid var(--navy); border-radius: 50%;
}
.step:first-child .step__num { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }
.step:last-child .step__num { background: var(--navy); color: #fff; }
.step__text { font-size: 1.125rem; font-weight: 600; line-height: 1.45; color: var(--navy); max-width: 26ch; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--orange) 0 33.33%, var(--line-strong) 33.33% 100%); }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 0 0 28px; }
  .step:last-child { padding-bottom: 0; }
  .step__num { margin: 0; }
  .step__text { max-width: none; font-size: 1.0625rem; }
}

/* ---------- E. Cách chấm điểm ---------- */
.score-bar { display: flex; width: 100%; margin-bottom: 28px; gap: 3px; }
.score-bar span {
  flex: var(--w) 1 0; min-width: 0;
  padding: 12px 12px 10px; background: var(--bg-tint); border-top: 4px solid var(--blue);
  font-size: .8125rem; font-weight: 600; color: var(--ink-2); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.score-bar span b { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--navy); margin-bottom: 4px; }
.score-bar span.is-key { border-top-color: var(--orange); background: #FFF4EA; }
@media (max-width: 560px) {
  .score-bar span { padding: 10px 8px 8px; font-size: .6875rem; white-space: normal; }
  .score-bar span b { font-size: 1.375rem; }
}

.table-wrap { max-width: 100%; }
.score-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.score-table .col-num { width: 72px; }
.score-table .col-pts { width: 150px; }
.score-table thead th {
  font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: left; color: var(--ink-3); padding: 0 16px 12px; border-bottom: 2px solid var(--navy);
}
.score-table thead th:first-child { padding-left: 0; }
.t-right { text-align: right !important; }
.score-table tbody th, .score-table tbody td { padding: 24px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.score-table__num { padding-left: 0 !important; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; color: var(--line-strong); }
.score-table__name { display: block; font-size: 1.1875rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.score-table__desc { display: block; margin-top: 6px; color: var(--ink-2); }
.score-table__pts {
  text-align: right !important; font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.score-table tbody tr.is-key { background: linear-gradient(90deg, #FFF4EA, #FFF9F3); }
.score-table tbody tr.is-key .score-table__num, .score-table tbody tr.is-key .score-table__pts { color: var(--orange-ink); }
.score-table tbody tr.is-key td:first-child { box-shadow: inset 4px 0 0 var(--orange); padding-left: 16px !important; }

.sub-criteria { margin-top: 10px; border-top: 1px dashed #E8C9AA; }
.sub-criteria li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #E8C9AA; color: var(--ink-2); }
.sub-criteria b { flex: none; color: var(--orange-ink); font-weight: 700; white-space: nowrap; }

.score-table tfoot th, .score-table tfoot td { padding: 20px 16px; border-top: 2px solid var(--navy); text-align: left; }
.score-table tfoot th { font-size: 1.0625rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.score-table tfoot .score-table__pts { color: var(--orange-ink); }

@media (max-width: 600px) {
  .score-table .col-num { width: 36px; }
  .score-table .col-pts { width: 84px; }
  .score-table thead th { padding: 0 8px 10px; font-size: .75rem; }
  .score-table tbody th, .score-table tbody td { padding: 18px 8px; }
  .score-table tfoot th, .score-table tfoot td { padding: 16px 8px; }
  .score-table tbody tr.is-key td:first-child { padding-left: 10px !important; }
  .score-table__num { font-size: 1.375rem; }
  .score-table__name { font-size: 1.0625rem; }
  .score-table__desc { font-size: .9375rem; }
  .score-table__pts { font-size: 1.75rem; }
  .sub-criteria li { flex-direction: column; gap: 2px; font-size: .9375rem; }
}

.rules { margin-top: clamp(32px, 5vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--navy); color: var(--on-dark); border-radius: var(--radius); }
.rules__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.rules__formula { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 600; line-height: 1.5; color: #fff; margin-bottom: 16px; }
.rules__formula strong, .rules__list strong { color: var(--orange); }
.rules__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rules__list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid rgba(255,255,255,.14); color: #E8EEF6; }
.rules__list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--orange); }
@media (max-width: 760px) { .rules__list { grid-template-columns: 1fr; } }

/* ---------- F. Giải thưởng ---------- */
.prize {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--on-dark);
  padding-block: clamp(72px, 10vw, 128px);
}
.prize::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 18% 50%, rgba(245,131,31,.18), transparent 70%);
  pointer-events: none;
}
.prize__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.prize__figure {
  font-family: var(--font-display); font-weight: 800; line-height: .85; letter-spacing: -0.03em;
  font-size: clamp(7rem, 4rem + 14vw, 15rem);
  color: transparent; -webkit-text-stroke: 2px var(--orange);
}
.prize__figure span { color: var(--orange); -webkit-text-stroke: 0; }
.prize__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.06; font-size: clamp(2.125rem, 1.3rem + 2.6vw, 3.25rem); }
.prize__title span { display: block; text-wrap: balance; }
.prize__title-accent { color: var(--orange); }
.prize__lead { margin-top: 1.25rem; font-size: 1.125rem; color: var(--on-dark-2); max-width: 50ch; }
.prize__scope { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.prize__scope > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.prize__scope dt { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-size: .9375rem; padding-top: 2px; }
.prize__scope dd { color: #fff; }
@media (max-width: 860px) {
  .prize__grid { grid-template-columns: 1fr; }
  .prize__scope > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- G. Form đăng ký ---------- */
.register { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.register__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.register__groups { margin-top: 2rem; border-top: 1px solid var(--line-strong); counter-reset: grp; }
.register__groups li { counter-increment: grp; border-bottom: 1px solid var(--line-strong); }
.register__groups a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; color: var(--navy); text-decoration: none; font-weight: 600; }
.register__groups a::before { content: "0" counter(grp); font-family: var(--font-display); font-weight: 800; color: var(--orange-ink); font-size: 1.125rem; }
.register__groups a:hover { color: var(--blue); }
.register__required-note { margin-top: 1rem; font-size: .9375rem; color: var(--ink-3); }

.register__body { min-width: 0; }
.entry-form, .success, .notice {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.entry-form { padding: clamp(20px, 4vw, 44px); }

.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group + .group { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.group__legend {
  padding: 0; margin-bottom: 20px;
  font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.35;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.group__num {
  font-family: var(--font-display); font-weight: 700; font-size: .9375rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 3px 10px; border-radius: 3px;
}
.group[disabled] { opacity: .6; }

.field { display: flex; flex-direction: column; margin-bottom: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.req { color: var(--error); font-weight: 700; }
.opt { font-weight: 400; color: var(--ink-3); font-size: .9375rem; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2B4C' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(245,131,31,.55);
}
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--bg-tint); cursor: not-allowed; }
.field__hint { order: 2; margin-top: 6px; font-size: .9375rem; color: var(--ink-3); line-height: 1.5; }
.field label { order: 0; }
.field input, .field select, .field textarea { order: 1; }
.field__error { order: 3; display: none; margin-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--error); line-height: 1.45; }
.field__error:not(:empty) { display: flex; gap: 6px; }
.field__error:not(:empty)::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; }
.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  margin-bottom: 28px; padding: 16px 18px; border-radius: var(--radius);
  border: 1.5px solid var(--error); background: var(--error-bg); color: var(--ink);
}
.form-alert:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-alert__title { font-weight: 700; color: var(--error); margin-bottom: 4px; }
.form-alert ul { margin: 6px 0 0; padding-left: 20px; }
.form-alert li { margin: 2px 0; }
.form-alert a { color: var(--error); font-weight: 600; }

.form-actions { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions__note { font-size: .9375rem; color: var(--ink-3); flex: 1 1 240px; }
@media (max-width: 560px) { .form-actions .btn { width: 100%; } }

.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(7,29,53,.3); border-top-color: var(--navy-900); border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { opacity: .85; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { margin-bottom: 20px; padding: 20px 22px; border-left: 4px solid var(--orange); }
.notice__title { font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); line-height: 1.15; }
.notice__text { margin-top: 6px; color: var(--ink-2); }
.notice--warn { border-left-color: var(--error); }

.success { padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--success); }
.success:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.success__badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: .875rem; margin-bottom: 16px; }
.success__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.35; color: var(--navy); margin-bottom: 12px; }
.success__text { color: var(--ink-2); margin-bottom: 8px; }
.success__details { margin: 4px 0 16px; border-top: 1px solid var(--line); }
.success__details > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.success__details dt { color: var(--ink-3); }
.success__details dd { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
@media (max-width: 480px) { .success__details > div { grid-template-columns: 1fr; gap: 0; } }
.success .btn { margin-top: 20px; }
.success, .form-alert { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (max-width: 920px) {
  .register { grid-template-columns: 1fr; }
  .register__intro { position: static; }
  .register__groups { display: none; }
}

/* ---------- H. Hỏi đáp ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 2px solid var(--navy); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.125rem; font-weight: 600; color: var(--navy); line-height: 1.45;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--navy);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq__item[open] summary::after {
  background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat, var(--navy);
}
.faq__item summary:hover { color: var(--blue); }
.faq__item summary:focus-visible { outline-offset: 4px; }
.faq__answer { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__answer { padding-right: 0; }
}

/* ---------- Chân trang ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-2); padding-block: 48px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__logo { height: 64px; width: auto; }
.footer__program { margin-top: 14px; font-size: .9375rem; }
.footer__label { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.footer__contact-list li { margin: 4px 0; color: #fff; }
.footer__contact-list a { color: #fff; text-underline-offset: 3px; }

/* ---------- Chuyển động (chỉ khi thiết bị cho phép) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .reveal-on .reveal.is-visible { opacity: 1; transform: none; }
  .stage__play { transform-origin: 280px 205px; animation: pulse 2.8s ease-in-out infinite; }
  .stage__rec { animation: blink 1.6s steps(2, start) infinite; }
  .stage__progress { stroke-dasharray: 80; stroke-dashoffset: 80; animation: progress 1.6s .3s ease-out forwards; }
  .stage__beam { animation: beam 6s ease-in-out infinite alternate; transform-origin: 280px 0; }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes progress { to { stroke-dashoffset: 0; } }
@keyframes beam { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
  .btn__spinner { animation: none; border-top-color: rgba(7,29,53,.3); }
}

/* Section/nhóm nhận focus khi bấm liên kết nội trang: không cần viền */
section[tabindex="-1"]:focus, fieldset[tabindex="-1"]:focus { outline: none; }
