/* ==================================================================
   FOR FUTURE — OPENING FEST 2026 — openingfest2026.forfuture.vn
   HTML5 & CSS3 thuần — bảng màu/font/bố cục thiết kế riêng, không
   dùng lại theo mẫu risingstars2026. Đăng ký/dữ liệu thời gian thực
   (khi tới section đó) sẽ gọi thẳng API từ JS phía client, không qua
   lớp PHP trung gian.
================================================================== */

:root {
  --color-bg: #150f30;
  --color-bg-alt: #1f1650;
  --color-accent-amber: #fdb833;
  --color-accent-amber-soft: #ffd98a;
  --color-accent-violet: #8b5cf6;
  --color-accent-cyan: #38ddf2;
  --color-text: #f5f3ff;
  --color-text-muted: #b7aedb;
  --color-panel: rgba(245, 243, 255, 0.05);
  --color-panel-border: rgba(245, 243, 255, 0.12);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container-width: 1360px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Sora", "Be Vietnam Pro", sans-serif;
}

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

@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-6);
  }
}

/* =========================== Banner (Section 1) ===========================
   Ảnh banner thật — toàn bộ tiêu đề/slogan/thông tin sự kiện đã nằm sẵn
   trong ảnh, section chỉ cần hiển thị đúng tỉ lệ gốc. */
.banner {
  width: 100%;
  line-height: 0;
  background: var(--color-bg);
}

.banner-img {
  width: 100%;
  height: auto;
}

/* ===================== Thanh đếm ngược webinar ===================== */
.countdown-bar {
  background: linear-gradient(90deg, #1976d2 0%, #0d47a1 100%);
}

.countdown-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.countdown-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.countdown-timer {
  display: flex;
  gap: var(--space-2);
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
}

.countdown-num {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0d47a1;
}

.countdown-unit {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b6b8c;
}

.countdown-mid {
  margin: 0;
  flex: 1 1 auto;
  min-width: 220px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.countdown-date {
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffd54f;
}

.countdown-cta {
  flex: none;
  position: relative;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  background: #e06611;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(224, 102, 17, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
  animation: countdown-cta-pulse 2.2s ease-out infinite;
}

.countdown-cta:hover {
  background: #c2570d;
  transform: translateY(-1px);
}

@keyframes countdown-cta-pulse {
  0% {
    box-shadow: 0 8px 18px rgba(224, 102, 17, 0.4), 0 0 0 0 rgba(224, 102, 17, 0.55);
  }
  70% {
    box-shadow: 0 8px 18px rgba(224, 102, 17, 0.4), 0 0 0 18px rgba(224, 102, 17, 0);
  }
  100% {
    box-shadow: 0 8px 18px rgba(224, 102, 17, 0.4), 0 0 0 0 rgba(224, 102, 17, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-cta {
    animation: none;
  }
}

@media (max-width: 900px) {
  .countdown-inner {
    justify-content: center;
    text-align: center;
  }

  .countdown-left {
    align-items: center;
  }

  .countdown-mid {
    order: 3;
  }

  .countdown-cta {
    order: 4;
  }
}

/* ================== Section 2: Con có tố chất gì? ==================
   Nền trắng — riêng section này đảo bảng màu chữ/khối sang tông tối
   trên nền sáng (đủ contrast AA) thay vì kế thừa tông chữ sáng trên
   nền tối dùng cho phần còn lại của trang. */
.why {
  padding-block: var(--space-16);
  background: #ffffff;

  --color-text: #150f30;
  --color-text-muted: #5b5478;
  --color-panel: #f7f6fc;
  --color-panel-border: rgba(21, 15, 48, 0.1);

  --chip-color: #0e7c86;
  --chip-bg: rgba(14, 124, 134, 0.08);
  --chip-border: rgba(14, 124, 134, 0.35);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-col-media {
  min-width: 0;
}

.why-visual-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.why-heading {
  margin: 0 0 var(--space-6);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: #2334eb;
}

.why-heading .accent-dark {
  color: #1b1a62;
}

.heading-sparkle-wrap {
  position: relative;
}

.sparkle {
  position: absolute;
  color: #f5b942;
  filter: drop-shadow(0 2px 4px rgba(245, 185, 66, 0.35));
}

.sparkle-left {
  top: -0.2rem;
  left: 6%;
  width: 20px;
  height: 20px;
}

.sparkle-right {
  bottom: 0.4rem;
  right: 8%;
  width: 28px;
  height: 28px;
}

.why-heading-register {
  text-align: center;
}

.why-heading-register .line-sm {
  color: #3a0996;
}

.why-heading-register .line-lg {
  display: inline-block;
  margin-top: 0.2em;
  font-size: 1.35em;
}

.why-text {
  margin: 0 0 var(--space-4);
  color: #000000;
  line-height: 1.75;
}

.why-text strong {
  color: #2334eb;
  font-weight: 700;
}

/* Chip row — thay cho khối "highlight" viền trái kiểu risingstars */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-6);
}

.chip {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-color);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Ô ưu đãi — badge dạng viên thuốc 2 màu, mép giữa vát nhọn kiểu ruy-băng */
.promo-badge {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: stretch;
  margin-top: var(--space-8);
  margin-inline: auto;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(27, 30, 109, 0.24);
}

.promo-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: promo-badge-shine 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes promo-badge-shine {
  0% {
    left: -60%;
  }
  55% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-badge::after {
    animation: none;
    display: none;
  }
}

.promo-badge-navy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 1.15rem 2.6rem 1.15rem 1.9rem;
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
  background: #1b1e6d;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}

.promo-badge-yellow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: -1.3rem;
  padding: 1.15rem 2.2rem 1.15rem 2.4rem;
  background: #ffc72c;
}

.promo-badge-percent {
  flex: none;
  font-family: "Sora", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #1b1e6d;
  white-space: nowrap;
}

.promo-badge-desc {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1b1e6d;
}

@media (max-width: 480px) {
  .promo-badge-navy {
    padding: 0.7rem 1.6rem 0.7rem 1.1rem;
    font-size: 0.72rem;
  }

  .promo-badge-yellow {
    padding: 0.7rem 1.2rem 0.7rem 1.4rem;
    gap: var(--space-2);
  }

  .promo-badge-percent {
    font-size: 1.6rem;
  }

  .promo-badge-desc {
    font-size: 0.68rem;
  }
}

/* Benefit list — 7 ô xếp dọc, mỗi ô 1 dòng ngang (icon trái + chữ phải) */
.benefit-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.benefit-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  border: 1px solid var(--color-panel-border);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-violet));
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
  stroke: #0f0a24;
}

.benefit-tile p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

/* ========== Section 2b: Đăng ký tham gia con nhận được gì? ==========
   Tách từ .why ra thành section riêng — cần lặp lại đúng bộ override
   token sáng-trên-tối như .why, nếu không benefit-tile/chữ sẽ kế thừa
   nhầm token gốc (tối, dành cho nền tối) trên nền trắng của section này. */
.benefits {
  padding-block: var(--space-16);
  background: #ffffff;
  --color-text: #150f30;
  --color-text-muted: #5b5478;
  --color-panel: #f7f6fc;
  --color-panel-border: rgba(21, 15, 48, 0.1);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.benefits-media {
  min-width: 0;
}

.benefits-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.benefits-content {
  min-width: 0;
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .benefits-media {
    order: -1;
  }
}

/* ============== Section 3: Một ngày – 4 không gian khám phá ==============
   Bảng màu/token riêng cho section này theo brief production (không tái
   dùng token global của trang, để khớp chính xác palette được yêu cầu). */
.explore {
  padding-top: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  padding-bottom: clamp(3.75rem, 3rem + 3vw, 5.625rem);
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
  font-family: "Sora", "Be Vietnam Pro", sans-serif;
}

.explore-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: 0 0 40px;
  text-align: center;
}

/* Panel trắng bao toàn bộ 4 card — 4 card không được nằm trực tiếp trên
   background của section, phải nằm trong 1 khung riêng biệt. */
.experience-wrapper {
  width: 100%;
  margin-inline: auto;
  padding: 28px;
  padding-bottom: 64px;
  border-radius: 28px;
  background: linear-gradient(90deg, #e2f0fd 0%, #ffeff1 100%);
  border: 1px solid rgba(20, 69, 170, 0.06);
  box-shadow: 0 12px 40px rgba(30, 70, 140, 0.08);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

.explore-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0f25f9;
}

.heading-line {
  flex: none;
  width: 48px;
  height: 3px;
  border-radius: var(--radius-pill);
}

.heading-line--blue {
  background: #1245c5;
}

.heading-line--orange {
  background: #ff8a00;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---- Card: cấu trúc dùng chung, màu riêng theo biến --card-* ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border-radius: 20px;
  overflow: visible;
  background: #fff;
  border: 1px solid rgba(23, 37, 84, 0.06);
  box-shadow: 0 10px 30px rgba(23, 37, 84, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(23, 37, 84, 0.14);
}

.card--blue {
  --card-color: #1245c5;
  --grad-from: #1245c5;
  --grad-via: #19a9ff;
}

.card--purple {
  --card-color: #6a45e8;
  --grad-from: #6a45e8;
  --grad-via: #9b7bff;
}

.card--pink {
  --card-color: #ed3f91;
  --grad-from: #ed3f91;
  --grad-via: #ff7fc0;
}

.card--orange {
  --card-color: #b85e00;
  --grad-from: #ff8a00;
  --grad-via: #ffc400;
}

.card-visual {
  position: relative;
  flex: none;
  overflow: visible;
}

/* Ảnh thật đã có sẵn nền thẻ bo góc + icon riêng trong file — hiển thị
   nguyên tỉ lệ, đẩy lên trên bằng position offset (bù lại bằng margin-
   bottom âm để phần dưới card-content không bị hở khoảng trống) để
   nhân vật "tràn" lên khỏi mép trên của card. */
.card-image {
  display: block;
  width: 116%;
  height: auto;
  margin-left: 0%;
  margin-top: -15%;
}

.card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 44px;
  background: #fff;
  border-radius: 0 0 20px 20px;
}

.card-content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--card-color);
}

.card-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Scroll reveal (progressive enhancement, JS thêm .reveal-init) ---- */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .card:nth-child(2).reveal-init {
  transition-delay: 0.1s;
}

.card-grid .card:nth-child(3).reveal-init {
  transition-delay: 0.2s;
}

.card-grid .card:nth-child(4).reveal-init {
  transition-delay: 0.3s;
}

/* Stagger cho các cặp/khối .reveal khác trên trang — item thứ 2 trong
   mỗi cặp (why-grid, benefits-grid, register-grid) trễ hơn 1 nhịp nhỏ. */
.why-grid .reveal-init:nth-child(2),
.benefits-grid .reveal-init:nth-child(2),
.register-grid .reveal-init:nth-child(2),
.tools-grid .reveal-init:nth-child(2) {
  transition-delay: 0.12s;
}

.faq-grid .faq-item:nth-child(4n + 2).reveal-init {
  transition-delay: 0.08s;
}

.faq-grid .faq-item:nth-child(4n + 3).reveal-init {
  transition-delay: 0.16s;
}

.faq-grid .faq-item:nth-child(4n + 4).reveal-init {
  transition-delay: 0.24s;
}

/* Mobile: bỏ hết độ trễ so le — mỗi ô cuộn tới đâu hiện ngay tới đó,
   tránh cảm giác "bị mờ kẹt" khi cuộn nhanh trên màn hình hẹp. */
@media (max-width: 700px) {
  .reveal-init {
    transition-delay: 0s !important;
  }
}

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

@media (max-width: 640px) {
  .experience-wrapper {
    padding: 16px;
    border-radius: 22px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 330px;
  }

  .heading-line {
    width: 32px;
  }
}

/* === Section 4: Future Map & Phiếu khám phá tố chất / Ưu đãi khai trương === */
.tools {
  padding-block: var(--space-16);
  background: #f8f7fc;
  --color-text: #150f30;
  --color-text-muted: #5b5478;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.tools-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.tools-card-light {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: start;
  background: #f3f8f8;
  border: 1px solid #ece9f7;
  box-shadow: 0 12px 32px rgba(21, 15, 48, 0.06);
}

.tools-heading {
  margin: 0;
  font-size: clamp(0.95rem, 0.5rem + 1.1vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: #01757d;
}

@media (max-width: 420px) {
  .tools-heading {
    white-space: normal;
  }
}

.tools-sub {
  margin: var(--space-2) 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.tools-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.tools-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: #01757d;
}

.tools-check svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.tools-item-title {
  margin: 0;
  font-weight: 700;
  color: #01757d;
}

.tools-item-desc {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.tools-note {
  margin: var(--space-6) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(1, 117, 125, 0.08);
  border: 1px solid rgba(1, 117, 125, 0.16);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tools-note strong {
  color: #01757d;
  font-weight: 700;
}

.tools-mockup {
  min-width: 0;
  align-self: center;
  overflow: visible;
}

.mockup-img {
  width: 150%;
  max-width: 150%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  margin-left: -25%;
  filter: drop-shadow(0 18px 28px rgba(21, 15, 48, 0.22));
}

.tools-card-dark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: #ffffff;
  border: 2px solid #7c3aed;
  overflow: hidden;
}

.promo2-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 0;
  display: block;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tools-card {
    padding: var(--space-6);
  }

  .tools-card-light {
    grid-template-columns: 1fr;
  }

  .tools-mockup {
    display: none;
  }
}

/* ========== Section 5: Thông tin sự kiện / Đăng ký nhận vé ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.register {
  padding-block: var(--space-16);
  background: #ffffff;
  --color-text: #150f30;
  --color-text-muted: #5b5478;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.reg-card {
  min-width: 0;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: #f7faff;
  border: 1px solid #e4eaf8;
  box-shadow: 0 12px 32px rgba(21, 15, 48, 0.05);
}

.reg-heading {
  margin: 0 0 var(--space-6);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #2334eb;
}

.info-rows {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px dashed #dbe3f5;
}

.info-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1 160px;
}

.info-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf0ff;
  color: #2334eb;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.info-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}

.info-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.info-venue {
  margin-top: var(--space-8);
}

.info-venue-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf0ff, #f3eaff);
  color: #2334eb;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.form-sub {
  margin: calc(var(--space-6) * -1) 0 var(--space-6);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.reg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.reg-field {
  min-width: 0;
}

/* Ngày sinh của bé dùng <input type="date"> — placeholder không hiển thị
   được trên input date (trình duyệt tự vẽ "dd/mm/yyyy" riêng), nên field
   này CẦN 1 label thấy được, khác các field còn lại trong form (chỉ dùng
   placeholder, label ẩn qua .sr-only). */
.reg-date-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.reg-date-label .required {
  color: #e06611;
}

.reg-form input,
.reg-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #dbe3f5;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
}

.reg-form input::placeholder {
  color: #9aa3bf;
}

.reg-form input:focus,
.reg-form select:focus {
  outline: none;
  border-color: #2334eb;
  box-shadow: 0 0 0 3px rgba(35, 52, 235, 0.12);
}

.reg-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .reg-form select {
    font-size: 0.8rem;
    padding-left: 0.85rem;
    padding-right: 2.1rem;
    background-position: right 0.75rem center;
    background-size: 14px;
  }
}

.reg-submit {
  padding: 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  background: #e06611;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.reg-submit:hover {
  background: #c2570d;
  transform: translateY(-1px);
}

.reg-note {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.reg-status {
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a5a00;
}

@media (max-width: 900px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== Popup đăng ký thành công ===================== */
/* Màu chữ dùng hằng số riêng (không phải var(--color-text)) vì overlay này
   nằm ngoài mọi section — var(--color-text) ở gốc :root là màu SÁNG (dùng
   cho nền tối), sẽ vô hình trên thẻ trắng của modal nếu dùng lại. */

.success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 15, 40, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.success-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.success-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(15, 15, 40, 0.25);
}

.success-modal-overlay.is-open .success-modal {
  transform: scale(1) translateY(0);
}

.success-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: #f1f3fb;
  color: #5b5478;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.success-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: #e8f9ee;
  color: #16a34a;
}

.success-modal h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: #150f30;
}

.success-modal p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5b5478;
}

.success-modal-event {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: #f4f6ff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2334eb;
}

.success-modal-btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: var(--radius-md);
  background: #e06611;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.success-modal-btn:hover {
  background: #c9540a;
}

@media (max-width: 560px) {
  .reg-card {
    padding: var(--space-6);
  }

  .info-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .reg-form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================= Section 6: FAQ ========================= */
.faq {
  padding-block: var(--space-16);
  background: #ffffff;
  --color-text: #150f30;
  --color-text-muted: #5b5478;
}

.faq-heading {
  margin: 0 0 var(--space-12);
  text-align: center;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #2334eb;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.faq-item {
  min-width: 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #dbe3f5;
}

.faq-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 0.3rem;
}

.faq-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf0ff;
  color: #2334eb;
  font-weight: 800;
  font-size: 0.95rem;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
}

.faq-item h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: #242a81;
}

.faq-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

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

@media (max-width: 560px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================== Footer ============================== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  min-height: 180px;
}

.footer-info {
  display: flex;
  flex: 1 1 460px;
  background: #1b1e6d;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-8);
}

.footer-col {
  flex: 1;
  min-width: 0;
}

.footer-col h3 {
  margin: 0 0 var(--space-3);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.footer-link,
.footer-address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e3f7;
}

.footer-address {
  align-items: flex-start;
  line-height: 1.4;
}

.footer-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
}

.footer-link:nth-of-type(1) .footer-icon {
  color: #f5b942;
}

.footer-link:nth-of-type(2) .footer-icon {
  color: #4b8bff;
}

.footer-link:nth-of-type(3) .footer-icon {
  color: #38ddf2;
}

.footer-address .footer-icon {
  color: #f5b942;
  margin-top: 0.15rem;
}

.footer-map-btn {
  display: inline-flex;
  margin-top: var(--space-2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: background-color 0.15s ease;
}

.footer-map-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-map {
  flex: 1 1 320px;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 0;
}

@media (max-width: 700px) {
  .footer-info {
    flex: 1 1 100%;
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-map {
    flex: 1 1 100%;
  }
}

