/* VAA 25Y – Đại hội VI & Lễ Kỷ niệm 25 năm
   Màu theo key visual: xanh lục đậm + ánh kim vàng. */

:root {
  --green-950: #02160C;
  --green-900: #031F11;   /* đúng tông nền tối của KV */
  --green-800: #0A3320;
  --green-700: #125236;
  --gold-600: #B08A35;
  --gold-500: #C8A24A;
  --gold-300: #E6CF8F;
  --gold-100: #F6EBC8;
  --paper: #F3F6F2;
  --tint: #E6EDE5;        /* nền sáng đậm hơn một bậc, xen kẽ trong vùng thông tin */
  --paper-line: #D5DED7;
  --ink: #0F231C;
  --ink-soft: #46594F;
  --error: #A3261B;

  --serif: "Montserrat", "Segoe UI", Arial, sans-serif; /* font của KV */
  --sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;   /* 18px – chữ thân lớn cho khách lớn tuổi */
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;

  --wrap: 72rem;
  --wrap-narrow: 42rem;
  --gutter: 1rem;
  --radius-sm: 6px;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold-300); color: var(--green-950); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }

/* Ô bẫy bot trong form, người dùng không thấy */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.placeholder-note { color: inherit; opacity: .7; font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 var(--step-0)/1.2 var(--sans);
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--green-950); border-color: var(--gold-500); }
.btn--gold:hover { background: var(--gold-300); }
.btn--outline { border-color: var(--gold-300); color: var(--gold-100); }
.btn--outline:hover { background: rgba(230, 207, 143, .12); }
:is(.section--paper, .section--tint) .btn--outline { border-color: var(--green-700); color: var(--green-800); }
:is(.section--paper, .section--tint) .btn--outline:hover { background: rgba(18, 82, 54, .08); }
.btn--sm { font-size: var(--step--1); padding: .55rem 1rem; }
.btn--lg { font-size: var(--step-1); padding: 1rem 2rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 35, 27, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 207, 143, .25);
  color: var(--gold-100);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.topbar__brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { height: 2.5rem; width: auto; }
.topbar__name { font-size: var(--step--1); font-weight: 500; display: none; white-space: nowrap; }
@media (min-width: 40rem) and (max-width: 63.99rem) { .topbar__name { display: inline; } }
/* màn rộng: lề thanh đầu trang thẳng hàng với cột chữ ở hero */
@media (min-width: 80rem) { .topbar__inner { max-width: none; padding-inline: max(2rem, 4vw); } }
.topbar__brand { margin-right: auto; }
.topbar__cta { flex: none; }

/* ---------- Menu ---------- */
.nav__toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid rgba(230, 207, 143, .45); color: var(--gold-100);
  font: 600 var(--step--1)/1 var(--sans); padding: .5rem .7rem; border-radius: 999px; cursor: pointer;
}
.nav__toggle span { display: none; }
@media (min-width: 30rem) { .nav__toggle span { display: inline; } }
.nav__list {
  list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--green-950); border-bottom: 1px solid rgba(230, 207, 143, .25);
  display: none;
}
.nav--open .nav__list { display: block; }
.nav__list a {
  display: block; padding: .8rem .25rem; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(230, 207, 143, .12);
}
.nav__list a:hover { color: var(--gold-300); }
@media (min-width: 64rem) {
  /* 3 cột: logo | menu căn giữa | nút xác nhận – hai cột bên bằng nhau để menu nằm đúng tâm */
  .topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .topbar__brand { margin-right: 0; justify-self: start; }
  .topbar__cta { justify-self: end; }
  .nav__toggle { display: none; }
  .nav__list {
    display: flex; position: static; padding: 0; background: none; border: 0; gap: clamp(1.25rem, 2.2vw, 2.25rem);
  }
  .nav__list a { padding: .5rem 0; border: 0; font-size: var(--step--1); }
  .nav__list a[aria-current="true"] { color: var(--gold-300); box-shadow: 0 2px 0 var(--gold-500); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--gold-100);
  background: var(--green-900);
  padding-bottom: 3.5rem;
}
/* Điện thoại: ảnh logo 25 năm ở trên, chữ ở dưới */
.hero__visual { display: block; position: relative; margin-bottom: -18%; z-index: -1; }
.hero__visual img { width: 100%; height: auto; aspect-ratio: 1080 / 1090; object-fit: cover; }
.hero__visual::after {
  content: ""; position: absolute; inset: 40% 0 0 0;
  background: linear-gradient(to bottom, rgba(3, 31, 17, 0), var(--green-900) 92%);
}
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; }

.hero__vaa { display: none; }

.hero__title {
  font-family: var(--serif); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.45rem, 6.2vw, 2.6rem); line-height: 1.22; letter-spacing: .01em;
  display: flex; flex-direction: column;
  /* chừa chỗ cho dấu chồng trên chữ hoa (Ễ, Ậ…) – background-clip:text chỉ tô trong khung,
     thiếu đệm thì dấu ở dòng đầu bị cắt; lề âm giữ nguyên vị trí */
  padding-block: .3em .12em; margin-block: -.3em -.12em;
  /* ánh kim như chữ trên KV + vệt sáng lướt qua (Text Shimmer, 21st.dev) */
  background-image:
    linear-gradient(100deg, transparent 42%, rgba(255, 252, 235, .95) 50%, transparent 58%),
    linear-gradient(180deg, #FFF6D2 0%, #F1D27A 45%, #C99A32 75%, #F3DC8E 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
  animation: shimmer 7s linear 1.6s infinite;
}
@keyframes shimmer {
  0% { background-position: 130% 0, 0 0; }
  32%, 100% { background-position: -30% 0, 0 0; }
}
.hero__title span:nth-child(2) { font-size: 1.12em; }

.hero__date {
  display: flex; align-items: center; gap: .9rem; width: 100%; max-width: 26rem;
  margin: 1rem 0 0; color: var(--gold-100); font-weight: 600; letter-spacing: .06em;
}
.hero__date::before, .hero__date::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-300));
}
.hero__date::after { background: linear-gradient(90deg, var(--gold-300), transparent); }

.hero__term { font-size: var(--step-0); color: var(--gold-300); margin: 1.25rem 0 1.75rem; }

.countdown { display: flex; gap: .6rem; margin-bottom: 1.75rem; }
.countdown__cell {
  min-width: 4.5rem; text-align: center;
  padding: .6rem .5rem; border-radius: var(--radius-sm);
  background: rgba(2, 22, 12, .6); border: 1px solid rgba(230, 207, 143, .3);
}
.countdown__cell span { display: block; font: 700 var(--step-3)/1 var(--serif); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.countdown__cell small { font-size: var(--step--1); }

.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.hero__deadline { font-size: var(--step--1); margin: 0; opacity: .85; }

/* Desktop: KV phủ toàn khung, chữ nằm vùng tối bên trái như bố cục KV */
.hero__title span { white-space: nowrap; }
.hero__title { font-size: clamp(1rem, 4.6vw, 2.2rem); }

/* Máy tính bảng / laptop nhỏ: 2 cột – chữ trái, ảnh logo 25 năm phải */
@media (min-width: 48rem) and (max-width: 79.99rem) {
  .hero {
    display: grid; grid-template-columns: 1fr minmax(0, 1fr); grid-template-areas: "text visual";
    align-items: center; padding-block: 3rem;
  }
  .hero__visual { grid-area: visual; margin: 0; }
  .hero__visual::after { inset: 0; background: linear-gradient(90deg, var(--green-900), rgba(3, 31, 17, 0) 25%, rgba(3, 31, 17, 0) 75%, var(--green-900)); }
  .hero__inner { grid-area: text; padding-right: 0; }
  .hero__title { font-size: clamp(1rem, 2.15vw, 1.6rem); }
}

/* Màn hình rộng: KV phủ toàn khung, chữ ở vùng tối bên trái như bố cục KV.
   Logo 25 năm nằm ở 54–93% bề ngang KV nên neo ảnh bên phải, cột chữ ≤ 42vw. */
@media (min-width: 80rem) {
  .hero { padding-block: 3rem 3.5rem; min-height: 56.25vw; display: flex; align-items: center; }
  .hero__visual { position: absolute; inset: 0; margin: 0; }
  .hero__visual img { height: 100%; aspect-ratio: auto; object-position: right center; }
  .hero__visual::after { inset: 0; background: linear-gradient(90deg, rgba(3, 31, 17, .6), rgba(3, 31, 17, 0) 50%); }
  .hero__inner { max-width: none; padding-inline: max(2rem, 4vw); }
  .hero__inner > * { max-width: min(36rem, 42vw); }
  .hero__vaa { display: block; width: clamp(5.5rem, 7vw, 9rem); height: auto; margin-bottom: 1.5rem; }
  .hero__title { font-size: clamp(1.3rem, 1.95vw, 2.4rem); }
  .hero__term { margin-block: 1rem 1.5rem; }
  .countdown { margin-bottom: 1.5rem; }
}

/* ---------- Sections ---------- */
/* Trang chia 3 vùng: mở đầu tối → thông tin sáng (paper/tint xen kẽ) → kết thúc tối */
.section { padding-block: 4rem 4.5rem; }
@media (min-width: 48rem) { .section { padding-block: 5.5rem 6.25rem; } }
.section--paper { background: var(--paper); color: var(--ink); }
.section--tint { background: var(--tint); color: var(--ink); }
.section--deep {
  color: var(--gold-100);
  background: radial-gradient(60rem 28rem at 88% 0%, rgba(200, 162, 74, .09), transparent 65%), var(--green-900);
}
.section__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(var(--step-2), 5vw, var(--step-3));
  letter-spacing: -.01em; margin-bottom: 1rem;
}
:is(.section--paper, .section--tint) .section__title { color: var(--green-800); }
.section--deep .section__title { color: var(--gold-300); }
.section__intro { max-width: 60ch; color: inherit; }
:is(.section--paper, .section--tint) .section__intro { color: var(--ink-soft); }

/* ---------- Dải thông tin nhanh: đầu vùng sáng, cách dải logo một khoảng section ---------- */
.quick-facts {
  position: relative; margin: 0;
  display: grid; background: #fff; border-radius: var(--radius);
  border-top: 3px solid var(--gold-500);
  box-shadow: 0 2px 6px rgba(3, 31, 17, .08), 0 28px 50px -30px rgba(3, 31, 17, .6);
}
.quick-facts__item { padding: 1.1rem 1.35rem 1.2rem; display: grid; gap: .2rem; align-content: start; }
.quick-facts__item + .quick-facts__item { border-top: 1px solid var(--paper-line); }
.quick-facts dt { font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; color: var(--gold-600); }
.quick-facts dd { margin: 0; display: grid; gap: .2rem; justify-items: start; }
.quick-facts strong { font: 700 var(--step-1)/1.3 var(--serif); color: var(--green-900); }
.quick-facts span { font-size: var(--step--1); color: var(--ink-soft); }
.quick-facts a { font-size: var(--step--1); font-weight: 600; color: var(--green-700); text-underline-offset: 3px; }
.quick-facts a::after { content: " →"; }
@media (min-width: 56rem) {
  .quick-facts { grid-template-columns: 1fr 1.3fr 1fr; }
  .quick-facts__item { padding: 1.5rem 1.75rem 1.6rem; }
  .quick-facts strong { font-size: 1.15rem; }
  .quick-facts__item + .quick-facts__item { border-top: 0; border-left: 1px solid var(--paper-line); }
}

/* ---------- Thư mời: thiệp hai cột kiểu tạp chí ---------- */
.letter {
  margin-top: 3rem;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 2rem 1.5rem; position: relative;
  box-shadow: 0 1px 0 var(--gold-300) inset, 0 24px 48px -36px rgba(3, 31, 17, .45);
}
.letter::before {
  content: ""; position: absolute; inset: .5rem; border: 1px solid var(--gold-300);
  border-radius: calc(var(--radius) - 6px); pointer-events: none;
}
@media (min-width: 40rem) { .letter { padding: 3rem 3.5rem; } }
.letter__title { font: 700 var(--step-3)/1.1 var(--serif); color: var(--green-800); text-align: center; margin-bottom: 1.5rem; }
.letter__lead { font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; color: var(--green-900); }
.letter__body p { max-width: 62ch; }
.letter__sign { display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-top: 2rem; }
.letter__sign strong { font: 700 var(--step-1)/1.3 var(--serif); color: var(--green-800); margin-top: .5rem; }
@media (min-width: 60rem) {
  .letter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; padding: 4rem 4.5rem; }
  .letter__head { padding-right: 3.5rem; border-right: 1px solid var(--gold-300); }
  .letter__title { text-align: left; font-size: var(--step-4); margin-bottom: 2rem; }
  .letter__lead { font-size: clamp(1.35rem, 1.75vw, 1.6rem); line-height: 1.45; margin: 0; }
  .letter__head::after {
    /* dấu gạch vàng dưới lời mời */
    content: ""; display: block; width: 4rem; height: 2px; margin-top: 2rem;
    background: linear-gradient(90deg, var(--gold-500), rgba(200, 162, 74, 0));
  }
}

/* ---------- Hành trình 25 năm: thẻ logo 25 năm từ KV + chữ ---------- */
.journey { display: grid; gap: 2rem; align-items: center; }
.journey__mark {
  width: 100%; max-width: 26rem; height: auto; aspect-ratio: 900 / 728;
  border-radius: 22px; background: var(--green-900);
  border: 1px solid rgba(200, 162, 74, .45);
  box-shadow: 0 0 0 6px rgba(200, 162, 74, .12), 0 30px 60px -30px rgba(3, 31, 17, .65);
}
.journey__text .section__intro { margin: 0; }
@media (min-width: 48rem) { .journey { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; } }

/* ---------- Program ---------- */
.program { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
/* đường ánh vàng nối 3 phần trong ngày: ::before là rãnh mờ, ::after tự vẽ dần theo cuộn trang
   (Scroll animated timeline, 21st.dev) – main.js đặt --p từ 0 đến 1; không có JS thì vẽ đủ */
.program::before, .program::after {
  content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px;
}
.program::before { background: rgba(200, 162, 74, .25); }
.program::after {
  background: linear-gradient(var(--gold-300), var(--gold-500) 70%, var(--gold-600));
  transform: scaleY(var(--p, 1)); transform-origin: top;
}
.part { position: relative; padding-left: 2.5rem; padding-bottom: 2rem; }
.part:last-child { padding-bottom: 0; }
.part::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; z-index: 1;
  background: var(--paper); border: 3px solid var(--gold-500);
  transition: background-color .4s, transform .4s, box-shadow .4s;
}
.part--gala::before, .part.is-active::before { background: var(--gold-500); }
.part.is-active::before { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(200, 162, 74, .2); }

.part__card {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem .4rem;
  box-shadow: 0 1px 2px rgba(15, 35, 28, .04), 0 14px 32px -20px rgba(15, 35, 28, .4);
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (hover: hover) {
  .part__card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 35, 28, .05), 0 22px 40px -20px rgba(15, 35, 28, .45); }
}
.part__items li:last-child { border-bottom: 0; }
/* Tiệc Gala: thẻ tối, viền sáng chạy quanh */
.part--gala .part__card {
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border-color: rgba(230, 207, 143, .35); color: var(--gold-100);
  --spot: rgba(230, 207, 143, .16);
}
.part--gala .part__time { color: var(--gold-300); }
.part--gala .part__name { color: #FFF8E6; }
.part--gala .part__for { background: rgba(230, 207, 143, .16); color: var(--gold-100); }
.part--gala .part__items, .part--gala .part__items li { border-color: rgba(230, 207, 143, .16); }
.part__time { font-weight: 700; color: var(--gold-600); margin: 0; font-variant-numeric: tabular-nums; }
.part__name { font: 700 var(--step-2)/1.2 var(--serif); color: var(--green-800); margin: .15rem 0 .35rem; }
.part__for {
  display: inline-block; font-size: var(--step--1); font-weight: 500;
  background: var(--gold-100); color: var(--green-900); padding: .2rem .65rem; border-radius: 999px;
}
.part__items { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--paper-line); }
.part__items li { padding: .8rem 0; border-bottom: 1px solid var(--paper-line); display: grid; gap: .15rem; }
.part__items time { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .part__items li { grid-template-columns: 9rem 1fr; gap: 1.5rem; } }
.part__items--plain li { display: list-item; list-style: none; padding-left: 1.25rem; position: relative; }
.part__items--plain li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: .5rem; height: .5rem; background: var(--gold-500); transform: rotate(45deg); }
.program__note { margin-top: 2rem; font-size: var(--step--1); color: var(--ink-soft); }

/* Bố cục: cột trái đứng yên (tiêu đề, mục lục 3 phần), cột phải đường thời gian dọc */
.program-layout { display: grid; gap: 0; }
.program-index { display: none; }
@media (min-width: 64rem) {
  .program-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
  .program-layout__aside { position: sticky; top: 6rem; }
  .program-layout .program { margin-top: .5rem; }
  .program-index {
    display: grid; list-style: none; margin: 2rem 0; padding: 0;
    border-left: 2px solid var(--paper-line);
  }
  .program-index a {
    display: grid; grid-template-columns: 3.75rem 1fr; gap: .75rem; align-items: baseline;
    padding: .7rem 1rem; margin-left: -2px; border-left: 2px solid transparent;
    text-decoration: none; color: var(--ink-soft); transition: color .3s, border-color .3s, background-color .3s;
  }
  .program-index time { font-weight: 700; color: var(--gold-600); font-variant-numeric: tabular-nums; }
  .program-index a:hover { color: var(--green-900); background: rgba(200, 162, 74, .08); }
  .program-index a[aria-current="true"] { color: var(--green-900); font-weight: 600; border-left-color: var(--gold-500); }
  .part { padding-left: 3rem; }
}

/* ---------- Venue: video đường vào nằm đè lên mép bản đồ ---------- */
.venue { display: grid; gap: 2rem; }
.venue__name { font: 700 var(--step-1)/1.3 var(--serif); color: var(--green-800); }
.venue__text .btn { margin-top: .5rem; }
.venue__map {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-line);
  box-shadow: 0 24px 48px -32px rgba(3, 31, 17, .5);
}
/* iframe phủ kín khung kể cả khi khung chỉ có min-height */
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.venue__route { margin: 0; display: grid; gap: .9rem; justify-items: center; }
.venue__video {
  width: 100%; max-width: 20rem; aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; background: var(--green-950);
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 0 6px rgba(200, 162, 74, .18), 0 36px 60px -30px rgba(3, 31, 17, .7);
}
.venue__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.venue__route figcaption { max-width: 20rem; text-align: center; font-size: var(--step--1); color: var(--ink-soft); }
.venue__route figcaption strong { display: block; font: 700 var(--step-0)/1.3 var(--serif); color: var(--green-800); margin-bottom: .2rem; }
@media (min-width: 56rem) {
  .venue { grid-template-columns: 1fr minmax(16rem, 20rem); grid-template-areas: "text route" "map route"; gap: 2.5rem 3rem; align-items: start; }
  .venue__text { grid-area: text; }
  .venue__map { grid-area: map; aspect-ratio: 16 / 9; }
  .venue__route { grid-area: route; }
}
@media (min-width: 64rem) {
  /* bản đồ và video nằm cạnh nhau, không đè lên nhau để không che nút điều khiển của Google Maps */
  .venue { gap: 2.5rem 4rem; }
  .venue__map { aspect-ratio: auto; min-height: 24rem; }
}

/* ---------- Notes: lưới ô có biểu tượng ---------- */
.notes { display: grid; gap: 1rem; margin: 2rem 0 0; }
.notes__item {
  display: grid; gap: .6rem; align-content: start;
  padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--radius);
  background: var(--tint); border-top: 2px solid var(--gold-500);
}
.notes dt { display: grid; gap: .9rem; justify-items: start; font: 700 var(--step-1)/1.25 var(--serif); color: var(--green-800); }
.notes dd { margin: 0; }
.notes__icon {
  width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 10px;
  background: var(--green-800); color: var(--gold-300);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 40rem) { .notes { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 68rem) { .notes { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sponsors ---------- */
.sponsors { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
.tier__name { font: 600 var(--step-1)/1.3 var(--serif); color: var(--gold-300); margin-bottom: 1rem; text-align: center; }
.tier__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.logo-tile {
  background: #fff; border-radius: var(--radius-sm);
  display: grid; place-items: center; padding: .75rem;
  width: var(--tile-w); height: calc(var(--tile-w) * .6);
}
.logo-tile { position: relative; }
.logo-tile img { position: absolute; inset: .7rem; width: calc(100% - 1.4rem); height: calc(100% - 1.4rem); object-fit: contain; }
.logo-tile--dark { background: var(--green-800); }
.logo-tile__text { font-size: var(--step--1); font-weight: 600; color: var(--green-900); text-align: center; line-height: 1.3; }
.tier { --tile-w: 8.5rem; }
.tier--1 { --tile-w: 12rem; }
.tier--2 { --tile-w: 10.5rem; }
.tier--3, .tier--4 { --tile-w: 9rem; }
.tier--5, .tier--6, .tier--7 { --tile-w: 7.75rem; }
@media (max-width: 30rem) {
  .tier--1 { --tile-w: 9.5rem; }
  .tier--2 { --tile-w: 8.75rem; }
  .tier--3, .tier--4 { --tile-w: 7.5rem; }
  .tier--5, .tier--6, .tier--7 { --tile-w: 6.5rem; }
}

/* ---------- Form: cột trái 3 bước, cột phải form chia nhóm ---------- */
.section--rsvp {
  background: radial-gradient(48rem 36rem at 72% 35%, rgba(200, 162, 74, .14), transparent 62%), var(--green-950);
}
.rsvp-layout { display: grid; gap: 2rem; }
@media (min-width: 64rem) {
  .rsvp-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
  .rsvp-layout__aside { position: sticky; top: 6rem; }
}
.steps { list-style: none; counter-reset: step; margin: 1.75rem 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--gold-500); color: var(--gold-300); font: 700 var(--step-0)/1 var(--serif);
}
.steps strong { color: #FFF8E6; font-weight: 600; }
.steps span { font-size: var(--step--1); opacity: .85; }
.rsvp-help { font-size: var(--step--1); opacity: .9; margin: 0; }
.rsvp-help a { color: var(--gold-300); font-weight: 600; white-space: nowrap; }

.rsvp {
  display: grid; gap: 2rem; position: relative; container-type: inline-size;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 1.75rem 1.25rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  /* viền sáng dày hơn mặc định để thấy rõ quanh form */
  --beam-duration: 10s; --beam-w: 2.5px;
}
@media (min-width: 40rem) { .rsvp { padding: 2.5rem 2.75rem; } }
.rsvp[hidden] { display: none; }
.rsvp .field--sub, .rsvp .choice--card { background: var(--paper); }
.form-group { display: grid; gap: 1.5rem; min-width: 0; }
.form-group + .form-group { border-top: 1px solid var(--paper-line); padding-top: 2rem; }
.form-group__title { display: flex; align-items: center; gap: .75rem; font: 700 var(--step-1)/1.3 var(--serif); color: var(--green-800); }
.form-group__num {
  flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--green-800); color: var(--gold-300); font-size: var(--step--1);
}
.field-row { display: grid; gap: 1.5rem; }
@container (min-width: 34rem) { .field-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; color: var(--green-900); padding: 0; }
.field--inline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.field--inline legend { width: 100%; margin-bottom: .45rem; }
.field--sub { margin-top: .5rem; padding: 1rem; background: #fff; border-left: 3px solid var(--gold-500); border-radius: var(--radius-sm); }
.field--sub[hidden] { display: none; }
.req { color: var(--error); }
.hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.hint--center { text-align: center; }

input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; min-height: 3.25rem;
  border: 1.5px solid #AEBDB3; border-radius: var(--radius-sm); background: #fff;
}
input:focus, select:focus { border-color: var(--green-700); outline: 3px solid rgba(200, 162, 74, .45); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }

.choice { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-weight: 400; }
.choice input { width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; accent-color: var(--green-700); flex: none; }
.choice--card { padding: .9rem 1rem; background: #fff; border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm); }
.choice--card:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.choice--card strong { display: block; color: var(--green-900); }
.choice--consent { font-size: var(--step--1); }
fieldset.field .choice + .choice { margin-top: .35rem; }
/* hàng lựa chọn nằm ngang (Ông / Bà): không giãn dọc, căn cùng một hàng */
fieldset.field--inline .choice + .choice { margin-top: 0; }
.field--inline { align-items: center; }

.form-error { background: #FBE9E7; color: var(--error); padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 0; font-weight: 500; }
.field-msg { color: var(--error); font-size: var(--step--1); margin: 0; }

.rsvp-done, .rsvp-closed {
  padding: 2.5rem 1.5rem; border-radius: var(--radius); color: var(--ink);
  background: #fff; border: 2px solid var(--gold-500); text-align: center;
}
.rsvp-done h3, .rsvp-closed h3 { font: 700 var(--step-2)/1.2 var(--serif); color: var(--green-800); margin-bottom: .75rem; }
.rsvp-done:focus { outline: none; }

/* ---------- Contacts: tiêu đề trái, 2 thẻ phải ---------- */
.section--contact { padding-top: 0; background: var(--green-950); }
.contact-layout { display: grid; gap: .5rem; padding-top: 3.5rem; border-top: 1px solid rgba(230, 207, 143, .18); }
.contacts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .contacts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .contact-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
  .contacts { margin: 0; }
}
.contacts li {
  position: relative; padding: 1.5rem; border: 1px solid rgba(230, 207, 143, .35); border-radius: var(--radius);
  display: grid; gap: .25rem; justify-items: start; --spot: rgba(230, 207, 143, .14);
  transition: border-color .3s;
}
@media (hover: hover) { .contacts li:hover { border-color: rgba(230, 207, 143, .65); } }
.contacts__name { font: 700 var(--step-1)/1.3 var(--serif); color: #FFF8E6; margin: 0; }
.contacts__role { margin: 0 0 .5rem; opacity: .8; }
.contacts__phone { font: 700 var(--step-2)/1.2 var(--sans); color: var(--gold-300); text-decoration: none; font-variant-numeric: tabular-nums; }
.contacts__zalo { margin-top: .25rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: var(--gold-100); padding-block: 2rem; font-size: var(--step--1); text-align: center; }
.footer p { margin: .25rem 0; }
.footer__credit { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(230, 207, 143, .15); }
.footer__credit p { opacity: .7; margin-bottom: .9rem; }
.footer__credit-logos { display: flex; justify-content: center; align-items: center; gap: 2rem; }
.footer__credit-logos img { width: auto; opacity: .92; }
/* cân thị giác: 5S cao 2 tầng chữ, ttd 1 tầng chữ */
.credit-5s { height: 2.6rem; }
.credit-ttd { height: 1.8rem; }
/* chừa chỗ cho nút liên hệ nổi */
.footer { padding-bottom: 5.5rem; }

/* ---------- Nút liên hệ nổi ---------- */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.fab__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 700 .8rem/1 var(--sans); color: var(--green-950);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  border: 1.5px solid var(--gold-100); border-radius: 999px; padding: .55rem .85rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.fab__btn svg { width: 16px; height: 16px; }
/* Điện thoại: chỉ còn nút tròn có biểu tượng */
@media (max-width: 39.99rem) {
  .fab { right: .75rem; bottom: .75rem; }
  .fab__btn { width: 2.9rem; height: 2.9rem; padding: 0; }
  .fab__btn svg { width: 20px; height: 20px; }
  .fab__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.fab__btn[aria-expanded="true"] { background: var(--gold-100); }
.fab__panel {
  width: min(20rem, calc(100vw - 2rem));
  background: #fff; color: var(--ink); border-radius: var(--radius);
  border-top: 4px solid var(--gold-500);
  padding: 1rem 1.1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.fab__panel[hidden] { display: none; }
.fab__title { font: 700 var(--step-0)/1.3 var(--serif); color: var(--green-800); margin-bottom: .75rem; }
.fab__person + .fab__person { border-top: 1px solid var(--paper-line); padding-top: .75rem; margin-top: .75rem; }
.fab__person p { margin: 0 0 .5rem; font-size: var(--step--1); color: var(--ink-soft); }
.fab__person strong { display: block; color: var(--ink); font-size: var(--step-0); }
.fab__actions { display: flex; gap: .5rem; }
.fab__actions a {
  flex: 1; text-align: center; text-decoration: none; font-weight: 600; font-size: var(--step--1);
  padding: .6rem .5rem; border-radius: var(--radius-sm); background: var(--green-800); color: var(--gold-100);
}
.fab__actions a + a { flex: 0 0 auto; padding-inline: 1rem; background: #0068FF; color: #fff; }

/* ---------- Hiệu ứng (chuyển từ component 21st.dev sang CSS/JS thuần) ---------- */

/* Thanh tiến trình đọc dưới thanh đầu trang – main.js đặt --sp */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transform: scaleX(var(--sp, 0)); transform-origin: left;
}

/* Gạch vàng dưới tiêu đề mục, tự kéo dài khi hiện ra */
.section__title::after {
  content: ""; display: block; width: 3.5rem; height: 2px; margin-top: .7rem;
  background: linear-gradient(90deg, var(--gold-500), rgba(200, 162, 74, 0));
  transform-origin: left; transition: transform .9s ease-out .35s;
}
.js .section__title[data-reveal]:not(.is-in)::after { transform: scaleX(0); }

/* Hiện dần khi cuộn tới (Reveal, 21st.dev): mờ + nhoè → rõ, lệch nhịp theo --i */
.js [data-reveal] {
  transition: opacity .7s ease-out, transform .7s ease-out, filter .7s ease-out;
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.5rem); filter: blur(8px); }

/* Hero hiện ngay khi tải trang bằng CSS, không chờ JS cuộn */
.js [data-intro] { animation: intro .8s ease-out both; animation-delay: calc(var(--i, 0) * 110ms + .1s); }
/* tiêu đề hero đã có filter đổ bóng + vệt sáng riêng nên chỉ mờ + trượt */
.js .hero__title[data-intro] { animation: intro-fade .8s ease-out .21s both, shimmer 7s linear 1.6s infinite; }
@keyframes intro { from { opacity: 0; transform: translateY(1.5rem); filter: blur(8px); } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(1.5rem); } }

/* Hạt sáng vàng trên hero (Sparkles, 21st.dev) – vẽ bằng canvas trong main.js */
.hero__sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Nút vàng có vệt sáng lướt qua định kỳ */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  transform: translateX(-120%); animation: btn-shine 5s ease-in-out 2.5s infinite;
}
@keyframes btn-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

/* Viền sáng chạy quanh khung (Border Beam, 21st.dev) */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.beam {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 2;
  padding: var(--beam-w, 1.5px);
  background: conic-gradient(from var(--beam-angle), transparent 0 62%, rgba(200, 162, 74, .6) 76%, var(--beam-hi, #FFF3C4) 86%, var(--gold-500) 90%, transparent 96%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-spin var(--beam-duration, 7s) linear infinite;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* Quầng sáng theo con trỏ (Spotlight, 21st.dev) – main.js đặt --mx, --my */
[data-spotlight] { isolation: isolate; }
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(200, 162, 74, .12)), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
@media (hover: hover) { [data-spotlight]:hover::after { opacity: 1; } }

/* Dải logo nhà tài trợ chạy ngang (Logo Marquee, 21st.dev) */
.marquee {
  background: var(--green-950); color: var(--gold-300);
  border-top: 1px solid rgba(230, 207, 143, .18);
  padding-block: 1.25rem 1.5rem;
}
.marquee__label {
  margin: 0 0 1rem; text-align: center;
  font: 600 var(--step--1)/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.marquee__viewport {
  overflow: hidden;
  /* mép mờ hẹp, cố định 2.5rem để ô logo trắng không bị loang xám */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}
.marquee--static .marquee__viewport { overflow-x: auto; }
.marquee__track, .marquee__group { display: flex; gap: 1rem; width: max-content; list-style: none; margin: 0; padding: 0; }
.marquee__track { will-change: transform; padding-inline: 1rem; }
.marquee__item {
  position: relative; flex: none; width: 8.5rem; height: 4.25rem; overflow: hidden;
  background: #fff; border-radius: var(--radius-sm);
}
.marquee__item--dark { background: var(--green-800); }
/* ảnh nằm gọn trong ô, giữ tỉ lệ (logo dọc như VNPT, ALTA không tràn ra ngoài) */
.marquee__item img {
  position: absolute; top: .55rem; left: .7rem;
  width: calc(100% - 1.4rem); height: calc(100% - 1.1rem); object-fit: contain;
}
@media (min-width: 48rem) { .marquee__item { width: 10rem; height: 5rem; } }

/* Logo nhà tài trợ nhấc nhẹ khi rê chuột */
.logo-tile { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) {
  a.logo-tile:hover, div.logo-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; filter: none; }
  .js .section__title[data-reveal]:not(.is-in)::after { transform: none; }
  .btn--shine::after { display: none; }
}
