/* Lá thư trao người lính — chương trình Tự hào màu áo lính (tuhaomauaolinh.forfuture.vn) */
:root {
  --red: #b92325;
  --red-d: #9a1b1e;
  --green: #243d2b;
  --green-d: #182c1f;
  --green-dd: #0d1a12;
  --gold: #e8b52d;
  --gold-l: #f4d37a;
  --cream: #f8f5ed;
  --paper: #e9dfc9;
  --ink: #1f2a22;
  --ink-2: #445043;
  --muted: #6d6b5c;
  --line: #d6c9ab;
  --blue-ink: #23365c;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --hand: "Dancing Script", "Segoe Script", cursive;
  --gutter: 48px;
  --header-h: 76px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --airmail: repeating-linear-gradient(-45deg, var(--red) 0 16px, var(--cream) 16px 25px, var(--green) 25px 41px, var(--cream) 41px 50px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ol,
ul,
blockquote {
  margin: 0;
}
.container {
  width: min(1200px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green-dd);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------------------------------------------------------------- nút */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: 700 15px/1 var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
}
.btn-lg {
  height: 58px;
  padding: 0 30px;
  font-size: 15.5px;
}
.btn-block {
  width: 100%;
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(185, 35, 37, 0.75);
}
.btn-red:hover {
  background: #a81e21;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(185, 35, 37, 0.85);
}
.btn-ghost {
  border-color: rgba(248, 245, 237, 0.55);
  background: rgba(248, 245, 237, 0.05);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(248, 245, 237, 0.12);
  color: #fff;
}
.btn-gold {
  background: var(--gold);
  color: var(--green-dd);
  box-shadow: 0 14px 30px -12px rgba(13, 26, 18, 0.7);
}
.btn-gold:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- đầu trang */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  color: var(--cream);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid {
  background: rgba(13, 26, 18, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -14px rgba(0, 0, 0, 0.6);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.brand {
  display: inline-flex;
  text-decoration: none;
}
.brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(248, 245, 237, 0.96);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.6);
}
.brand-logos img {
  width: auto;
  height: 42px;
}
.brand-logos .logo-wide {
  height: 34px;
}
.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(248, 245, 237, 0.88);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav a:hover {
  color: #fff;
}
.nav a:hover::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------- 01 hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(680px, 100svh, 980px);
  overflow: hidden;
  background: var(--green-dd);
  color: var(--cream);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 100%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 26, 18, 0.94) 0%, rgba(13, 26, 18, 0.8) 30%, rgba(13, 26, 18, 0.25) 56%, rgba(13, 26, 18, 0) 68%),
    linear-gradient(180deg, rgba(13, 26, 18, 0.55) 0, rgba(13, 26, 18, 0) 20%);
}
.hero-inner {
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.hero-copy {
  max-width: 640px;
}
.hero-program span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-program strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--gold);
}
.hero-divider i {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider i:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-divider svg {
  width: 16px;
  height: 16px;
}
.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 245, 237, 0.82);
}
.hero-title {
  margin: 8px 0 26px;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero-title .t1 {
  display: block;
  font-size: clamp(66px, 9.4vw, 132px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.hero-title .t2 {
  display: block;
  margin-top: 6px;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.hero-quote {
  max-width: 620px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  font: italic 400 clamp(17px, 1.45vw, 20.5px) / 1.65 var(--serif);
  color: rgba(248, 245, 237, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(248, 245, 237, 0.75);
}
.hero-note .i {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.airmail-rule {
  height: 10px;
  background: var(--airmail);
}

/* ---------------------------------------------------------------- nền giấy */
.paper {
  background-color: var(--paper);
  background-image: var(--noise), radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.35), transparent 60%), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(130, 95, 40, 0.13) 100%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow-gold {
  color: var(--gold);
}
.h2 {
  text-wrap: balance;
  margin-top: 12px;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--green);
}
.h2-light {
  color: var(--cream);
}
.h2-light span {
  color: var(--gold);
  white-space: nowrap;
}
.title-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 24px;
  color: var(--gold);
}
.title-mark i {
  width: 70px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.title-mark svg {
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------- 02 giới thiệu */
.intro {
  padding: 120px 0 128px;
  overflow: hidden;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
}
.intro-copy p {
  font-size: 16.5px;
  color: var(--ink-2);
}
.intro-copy p + p {
  margin-top: 16px;
}
.intro-copy .lead {
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--ink);
}
.intro-copy .lead b {
  color: var(--red);
  font-weight: 700;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 245, 237, 0.75);
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
}
.facts small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
}
.fact-ico svg {
  width: 20px;
  height: 20px;
}

/* tranh tĩnh vật: phong thư + lá thư + bút */
.still {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1 / 0.98;
  margin-inline: auto;
}
.still-env {
  position: absolute;
  top: 2%;
  right: 0;
  width: 80%;
  aspect-ratio: 1.58;
  padding: 10px;
  border-radius: 8px;
  background: var(--airmail);
  box-shadow: 0 26px 50px -24px rgba(50, 35, 10, 0.55);
  transform: rotate(6deg);
}
.still-env::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f1e6cb, #dfcda7);
}
.still-env::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 58%;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), #c8b386 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), #c8b386 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat;
}
.still-stamp,
.reg-stamp,
.cta-env-stamp {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px rgba(120, 90, 40, 0.25), 0 10px 18px -8px rgba(40, 20, 0, 0.6);
}
.still-stamp::before,
.reg-stamp::before,
.cta-env-stamp::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 4px dotted var(--paper);
  pointer-events: none;
}
.still-stamp {
  top: 26px;
  right: 28px;
  width: 64px;
  height: 78px;
}
.still-stamp svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.still-stamp b {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.still-postmark {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 74px;
  width: 104px;
  height: 104px;
  fill: none;
  stroke: rgba(70, 55, 35, 0.5);
  stroke-width: 1.6;
  transform: rotate(-14deg);
}
.still-postmark text {
  fill: rgba(70, 55, 35, 0.62);
  stroke: none;
  font: 700 8.8px var(--sans);
  letter-spacing: 0.08em;
}
.still-postmark .pm-mid {
  font-size: 15px;
}
.still-letter {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  width: 68%;
  padding: 26px 26px 30px 30px;
  border-radius: 4px;
  background: var(--noise), repeating-linear-gradient(180deg, transparent 0 31px, rgba(150, 120, 70, 0.28) 31px 32px) 0 58px / 100% calc(100% - 80px) no-repeat, linear-gradient(160deg, #fbf5e6, #ece0c3);
  box-shadow: 0 30px 50px -22px rgba(50, 35, 10, 0.6), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transform: rotate(-4deg);
}
.still-letter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: rgba(185, 35, 37, 0.35);
}
.hand {
  font-family: var(--hand);
  font-weight: 600;
  color: var(--blue-ink);
}
.still-letter .hand {
  font-size: clamp(16px, 1.45vw, 19.5px);
  line-height: 32px;
}
.still-letter .hand-date {
  text-align: right;
  font-size: 15.5px;
  opacity: 0.85;
}
.still-letter .hand-hi {
  margin-top: 4px;
}
.still-letter .hand-sign {
  margin-top: 6px;
  padding-left: 34%;
}
.still-heart {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 22px;
  height: 22px;
  fill: var(--red);
  opacity: 0.85;
}
.still-pen {
  position: absolute;
  z-index: 5;
  right: -6%;
  bottom: 4%;
  width: 52%;
  height: auto;
  filter: drop-shadow(0 14px 10px rgba(30, 20, 5, 0.4));
  transform: rotate(-28deg);
}

/* ---------------------------------------------------------------- 03 thông điệp */
.message {
  position: relative;
  padding: 120px 0 130px;
  overflow: hidden;
  background: radial-gradient(rgba(232, 181, 45, 0.09) 1.2px, transparent 1.6px) 0 0 / 28px 28px, radial-gradient(ellipse at 50% -10%, rgba(232, 181, 45, 0.22), transparent 55%), linear-gradient(180deg, var(--green) 0%, var(--green-d) 100%);
  color: var(--cream);
}
.message::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  background: var(--gold);
  opacity: 0.06;
  clip-path: polygon(50% 0%, 61.8% 35.4%, 100% 35.4%, 69.1% 57.3%, 80.9% 92.7%, 50% 70.8%, 19.1% 92.7%, 30.9% 57.3%, 0% 35.4%, 38.2% 35.4%);
  pointer-events: none;
}
.section-head {
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  padding: 38px 30px 34px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--noise), linear-gradient(170deg, #fbf8f0, #efe5cd);
  color: var(--ink);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--airmail);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.8);
}
.card-num {
  position: absolute;
  top: 18px;
  right: 24px;
  font: 700 66px/1 var(--serif);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(185, 35, 37, 0.38);
}
.card-ico {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 0 0 6px rgba(185, 35, 37, 0.12);
}
.card-ico svg {
  width: 34px;
  height: 34px;
}
.card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.card p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 04 đăng ký */
.register {
  padding: 120px 0 130px;
}
.envelope {
  max-width: 1100px;
  margin-inline: auto;
  padding: 13px;
  border-radius: 20px;
  background: var(--airmail);
  box-shadow: 0 40px 80px -40px rgba(36, 61, 43, 0.55);
}
.envelope-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  padding: 54px 52px 52px;
  border-radius: 10px;
  background: var(--noise), linear-gradient(170deg, #fcfaf4, var(--cream));
}
.reg-intro {
  position: relative;
}
.reg-desc {
  margin-top: 18px;
  font: italic 400 18.5px/1.65 var(--serif);
  color: var(--green);
}
.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.steps b {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dd);
  font-size: 14px;
}
.steps em {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
}
.privacy {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: rgba(36, 61, 43, 0.07);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.privacy .i {
  width: 22px;
  height: 22px;
  color: var(--green);
}
.privacy b {
  color: var(--green);
}
.reg-stamp {
  top: -84px;
  right: -26px;
  width: 92px;
  height: 108px;
  transform: rotate(8deg);
}
.reg-stamp svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.reg-stamp b {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reg-stamp small {
  margin-top: -4px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.reg-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 16px;
  align-content: start;
}
.form-hint {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--muted);
}
.req {
  color: var(--red);
  font-weight: 700;
}
.field {
  grid-column: 1 / -1;
  min-width: 0;
}
.field-wide {
  grid-column: span 3;
}
.field-narrow {
  grid-column: span 2;
}
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #cdbf9f;
  border-radius: 11px;
  background: #fffdf7;
  color: var(--ink);
  font: 500 16px var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder {
  color: #9a937f;
  font-weight: 400;
}
.field input:hover {
  border-color: #b5a57f;
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 181, 45, 0.38);
}
.field.has-error input[type="text"],
.field.has-error input[type="tel"] {
  border-color: var(--red);
  background: #fff8f7;
}
.field.has-error input:focus {
  box-shadow: 0 0 0 4px rgba(185, 35, 37, 0.18);
}
.err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--red-d);
}
.err:empty {
  display: none;
}
.err::before {
  content: "!";
  display: grid;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-check {
  margin-top: 4px;
}
.check {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed #cdbf9f;
  border-radius: 12px;
  background: rgba(233, 223, 201, 0.35);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}
.field .check {
  display: grid;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.check input {
  position: absolute;
  opacity: 0;
  width: 26px;
  height: 26px;
  margin: 0;
}
.check .box {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--green);
  border-radius: 7px;
  background: #fff;
  transition: background-color 0.15s;
}
.check .box svg {
  width: 17px;
  height: 17px;
  color: var(--cream);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.check input:checked + .box {
  background: var(--green);
}
.check input:checked + .box svg {
  opacity: 1;
  transform: none;
}
.check input:focus-visible + .box {
  box-shadow: 0 0 0 4px rgba(232, 181, 45, 0.5);
}
.field.has-error .check {
  border-color: var(--red);
  background: #fff6f5;
}
.form-alert {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #efb3b4;
  border-radius: 10px;
  background: #fdeeee;
  color: var(--red-d);
  font-size: 14.5px;
  line-height: 1.5;
}
.form-alert[hidden] {
  display: none;
}
.reg-form .btn-block {
  grid-column: 1 / -1;
  margin-top: 6px;
}
.btn .spin {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spin {
  display: inline-block;
}
.btn.is-loading .i-send {
  display: none;
}
.btn[disabled] {
  cursor: progress;
  opacity: 0.9;
  transform: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- 05 kêu gọi */
.cta {
  position: relative;
  isolation: isolate;
  padding: 110px 0;
  overflow: hidden;
  background: linear-gradient(100deg, #a41c1f 0%, #c4292b 24%, #a81e21 44%, #c62c2d 64%, #a31c1f 84%, #b82325 100%);
  color: var(--cream);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--noise), linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18));
}
.cta-flag {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 6%;
  width: min(520px, 46vw);
  color: var(--gold);
  transform: translateY(-50%) rotate(-8deg);
  filter: drop-shadow(0 20px 40px rgba(90, 10, 10, 0.35));
}
.cta-flag svg {
  width: 100%;
  height: auto;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.cta-title {
  text-wrap: balance;
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(80, 0, 0, 0.35);
}
.cta-copy p {
  max-width: 560px;
  margin: 22px 0 34px;
  font: italic 400 clamp(17px, 1.4vw, 19.5px) / 1.7 var(--serif);
  color: rgba(248, 245, 237, 0.95);
}
.cta-art {
  display: grid;
  place-items: center;
}
.cta-env {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1.55;
  padding: 11px;
  border-radius: 8px;
  background: var(--airmail);
  box-shadow: 0 40px 60px -26px rgba(60, 5, 5, 0.75);
  transform: rotate(-7deg);
}
.cta-env::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 4px;
  background: var(--noise), linear-gradient(180deg, #faf4e4, #eadcbc);
}
.cta-env-stamp {
  top: 26px;
  right: 26px;
  width: 58px;
  height: 70px;
}
.cta-env-stamp svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.cta-env .hand {
  position: absolute;
  left: 15%;
  bottom: 22%;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.45;
}
.cta-env .hand::after {
  content: "";
  display: block;
  width: 86%;
  height: 1px;
  margin-top: 8px;
  background: rgba(35, 54, 92, 0.35);
}

/* ---------------------------------------------------------------- 06 chân trang */
.footer {
  background: var(--green-dd);
  color: rgba(248, 245, 237, 0.82);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-program {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-program strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.footer-contest {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.footer-contest strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 245, 237, 0.6);
}
.org-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  list-style: none;
}
.org-list li {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.org-logo {
  display: grid;
  place-items: center;
  width: 108px;
  height: 84px;
  padding: 10px;
  border-radius: 16px;
  background: var(--cream);
}
.org-logo img {
  width: auto;
  max-width: 100%;
  height: 60px;
  object-fit: contain;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(248, 245, 237, 0.12);
  font-size: 13.5px;
  color: rgba(248, 245, 237, 0.6);
}
.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- nút đăng ký dính đáy (điện thoại) */
.mobile-cta {
  display: none;
}

/* ---------------------------------------------------------------- hộp đăng ký thành công */
.done {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(10, 20, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.25s ease;
}
.done[hidden] {
  display: none;
}
.done-card {
  position: relative;
  width: min(540px, 100%);
  padding: 40px 34px 34px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--noise), linear-gradient(170deg, #fcfaf4, var(--cream));
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.done-card:focus {
  outline: none;
}
.done-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--airmail);
}
.done-env svg {
  width: 168px;
  height: auto;
  margin: 0 auto 8px;
  overflow: visible;
}
.env-back {
  fill: #dccaa1;
}
.env-letter {
  fill: #fffdf6;
  stroke: #d6c9ab;
  animation: slip 1.1s 0.2s cubic-bezier(0.3, 0.8, 0.3, 1) both;
}
.env-lines {
  fill: none;
  stroke: #c3ab7c;
  stroke-width: 3;
  stroke-linecap: round;
  animation: slip 1.1s 0.2s cubic-bezier(0.3, 0.8, 0.3, 1) both;
}
.env-front {
  fill: #efe2c2;
  stroke: #cdb990;
  stroke-width: 1.5;
}
.env-edge {
  fill: none;
  stroke: #cdb990;
  stroke-width: 1.5;
}
.env-seal {
  fill: var(--red);
  transform-box: fill-box;
  transform-origin: center;
  animation: seal 0.5s 1s cubic-bezier(0.2, 0.9, 0.3, 1.5) both;
}
.env-star {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: seal 0.5s 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.5) both;
}
.done-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
}
.done-text {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.done-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.done-code {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1.5px dashed var(--green);
  border-radius: 8px;
  font-size: 14px;
  color: var(--green);
}
.done-code[hidden] {
  display: none;
}
.done-code b {
  letter-spacing: 0.06em;
}
.done-quote {
  margin: 18px 0 24px;
  font-size: 27px;
  line-height: 1.3;
  color: var(--green);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}
@keyframes slip {
  from {
    transform: translateY(-26px);
  }
}
@keyframes seal {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

/* ---------------------------------------------------------------- hiện dần khi cuộn */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .cards .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.js .cards .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

/* ---------------------------------------------------------------- màn hình vừa / nhỏ */
@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }
  .intro-grid {
    gap: 44px;
  }
  .envelope-inner {
    gap: 36px;
    padding: 44px 36px 40px;
  }
  .nav {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
    --gutter: 22px;
  }
  .nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .brand-logos {
    gap: 9px;
    padding: 5px 11px;
  }
  .brand-logos img {
    height: 34px;
  }
  .brand-logos .logo-wide {
    height: 27px;
  }
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: linear-gradient(180deg, #0d1a12 0%, #12221a 60%, #172b1f 100%);
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    order: 1;
    padding: calc(var(--header-h) + 34px) 0 6px;
  }
  .hero-shade {
    display: none;
  }
  .hero-art {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 2;
    overflow: hidden;
    aspect-ratio: 1 / 0.86;
  }
  .hero-art::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 28%;
    background: linear-gradient(180deg, #172b1f, rgba(23, 43, 31, 0));
  }
  .hero-art img {
    object-position: 100% 100%;
    transform: scale(1.32);
    transform-origin: 80% 88%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .intro,
  .message,
  .register {
    padding: 84px 0 92px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
    gap: 20px;
  }
  .envelope-inner {
    grid-template-columns: 1fr;
  }
  .reg-stamp {
    top: -80px;
    right: -8px;
    width: 76px;
    height: 90px;
  }
  .reg-stamp svg {
    width: 26px;
    height: 26px;
  }
  .reg-stamp b {
    font-size: 12px;
  }
  .reg-stamp small {
    font-size: 7px;
  }
  .cta {
    padding: 84px 0 96px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .cta-flag {
    top: auto;
    bottom: -60px;
    right: -60px;
    width: 380px;
    transform: rotate(-8deg);
  }
  .cta-copy .btn {
    width: 100%;
  }
  .cta-title br {
    display: none;
  }
  .cta-env {
    width: min(360px, 92%);
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 55;
    display: flex;
    height: 56px;
    font-size: 15px;
    box-shadow: 0 14px 34px -10px rgba(120, 10, 12, 0.75);
    transform: translateY(150%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mobile-cta.is-on {
    transform: none;
  }
  .mobile-cta:hover {
    transform: none;
  }
  .footer-bottom {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .hero-program strong {
    font-size: 23px;
  }
  .hero-kicker {
    font-size: 12.5px;
    letter-spacing: 0.24em;
  }
  .hero-title .t1 {
    font-size: 64px;
  }
  .hero-title .t2 {
    font-size: 31px;
  }
  .hero-quote {
    font-size: 16.5px;
  }
  .btn-lg {
    height: 56px;
    padding: 0 20px;
    font-size: 14.5px;
  }
  .header-cta {
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
  }
  .still-letter {
    width: 76%;
    padding: 18px 16px 22px 24px;
  }
  .still-letter .hand {
    font-size: 15px;
    line-height: 26px;
  }
  .still-letter {
    background: var(--noise), repeating-linear-gradient(180deg, transparent 0 25px, rgba(150, 120, 70, 0.28) 25px 26px) 0 44px / 100% calc(100% - 60px) no-repeat, linear-gradient(160deg, #fbf5e6, #ece0c3);
  }
  .still-letter .hand-date {
    font-size: 13px;
  }
  .still-stamp {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 58px;
  }
  .still-stamp svg {
    width: 22px;
    height: 22px;
  }
  .still-stamp b {
    font-size: 7.5px;
  }
  .still-postmark {
    top: 8px;
    right: 50px;
    width: 76px;
    height: 76px;
  }
  .still {
    aspect-ratio: 1 / 1.08;
  }
  .envelope {
    padding: 9px;
    border-radius: 16px;
  }
  .envelope-inner {
    padding: 34px 18px 22px;
  }
  .reg-form {
    grid-template-columns: 1fr;
  }
  .field-wide,
  .field-narrow {
    grid-column: 1 / -1;
  }
  .check {
    padding: 12px;
    font-size: 14px;
  }
  .done-card {
    padding: 34px 20px 24px;
  }
  .done-title {
    font-size: 25px;
  }
  .done-quote {
    font-size: 24px;
  }
  .done .btn {
    width: 100%;
  }
  .cta-title {
    font-size: clamp(26px, 7.4vw, 32px);
  }
  .org-list {
    gap: 12px;
  }
  .org-list li {
    width: 96px;
    font-size: 11px;
    text-align: center;
  }
  .org-logo {
    width: 96px;
    height: 74px;
  }
  .org-logo img {
    height: 50px;
  }
  .still-pen {
    bottom: 0;
    width: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
