/* ============================================================
   webinar.css — Webinar landing page
   Theme & tokens kế thừa từ Kindy/maugiao.css để giữ đồng nhất
   với hệ thống Apollo English (Brauer NeueVN + Nunito).
============================================================ */

/* ── Local fonts (dùng chung từ thư mục fonts local) ── */
@font-face {
  font-family: 'Brauer NeueVN';
  src: url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/BrauerNeueVN-Bold.woff2') format('woff2'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/BrauerNeueVN-Bold.woff') format('woff'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/BrauerNeueVN-Bold.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-Regular.woff2') format('woff2'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-Regular.woff') format('woff'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-SemiBold.woff2') format('woff2'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-SemiBold.woff') format('woff'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-Bold.woff2') format('woff2'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-Bold.woff') format('woff'),
    url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Baskerville.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('/landings/webinar-dong-hanh-cung-phu-huynh/fonts/Baskerville-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ap-primary: #1a5fa6;
  --ap-primary-container: #2576b9;
  --ap-on-primary-container: #e8f4ff;
  --ap-primary-fixed: #a8d8f0;
  --ap-primary-fixed-dim: #79c0e4;
  --ap-secondary: #fecc00;
  --ap-secondary-soft: #ffe380;
  --ap-tertiary: #f5443c;
  --ap-tertiary-soft: #ffb3d5;
  --ap-surface: #f8fafb;
  --ap-surface-container-low: #f2f4f5;
  --ap-surface-container: #eceeef;
  --ap-on-surface: #191c1d;
  --ap-on-surface-variant: #414751;
  --ap-title: #2667e0;
  --ap-outline-variant: #cccccc;
  --ap-outline: #b0b0b0;
  --ap-success: #16a34a;
  --display: 'Brauer NeueVN', sans-serif;
  --body: 'Nunito', sans-serif;
  --shadow-sm: 0 6px 18px rgba(37, 118, 185, 0.07);
  --shadow-md: 0 14px 36px rgba(37, 118, 185, 0.09);
  --shadow-lg: 0 28px 60px rgba(37, 118, 185, 0.11);
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  color: var(--ap-on-surface);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ap-title);
  line-height: 1.25;
  letter-spacing: 0.3px;
}

p {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: #252525;
}

@media (max-width: 768px) {
  p {
    font-size: 17px;
    line-height: 1.5;
  }
}

.form-error {
  display: block;
  color: #ef4444;
  font-size: 18px;
  font-family: var(--body);
  margin-top: 4px;
}

/* ============================================================
   HEADER — hiển thị trên cả desktop & mobile.
============================================================ */
#site-header {
  display: block;
}

/* ============================================================
   FALLBACK HEADER (chỉ áp dụng khi trang chạy độc lập, ngoài
   apollo.edu.vn — production header được kế thừa từ CSS site).
============================================================ */
.header-fixed-navRevamap-New2025 {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 35, 80, 0.04);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-fixed-navRevamap-New2025 .navRevamap-New2025 {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-apollo-new2025 {
  display: inline-flex;
  align-items: center;
}

.logo-apollo-new2025 img {
  height: 48px;
  width: auto;
  transition: filter .3s ease;
}

@media (max-width: 1024px) {
  .header-fixed-navRevamap-New2025 .navRevamap-New2025 {
    padding: 12px 16px;
  }
  .logo-apollo-new2025 img {
    height: 40px;
  }
}

/* ============================================================
   SHARED TOKENS — eyebrow / section title / reveal
============================================================ */
.tn-eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ap-primary-container);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tn-eyebrow--light { color: var(--ap-secondary); }

.tn-section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.16vw, 52px);
  color: var(--ap-title);
  line-height: 1.25;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.tn-section-title em {
  font-style: normal;
  color: var(--ap-secondary);
}

.tn-section-title--white { color: #fff; }

.tn-section-sub {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ap-on-surface-variant);
  max-width: 760px;
}

.tn-section-sub--white { color: rgba(255, 255, 255, 0.78); }

.tn-story-reveal {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Các biến thể hướng trượt */
.tn-story-reveal.reveal-up { transform: translateY(36px); }
.tn-story-reveal.reveal-down { transform: translateY(-36px); }
.tn-story-reveal.reveal-left { transform: translateX(-40px); }
.tn-story-reveal.reveal-right { transform: translateX(40px); }
.tn-story-reveal.reveal-scale { transform: scale(0.94); }

/* Trạng thái kích hoạt hoạt ảnh */
.tn-story-reveal.is-active {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}

/* Nhịp điệu trễ (Staggered Delays) */
.tn-delay-1 { transition-delay: 0.1s; }
.tn-delay-2 { transition-delay: 0.2s; }
.tn-delay-3 { transition-delay: 0.3s; }
.tn-delay-4 { transition-delay: 0.4s; }
.tn-delay-5 { transition-delay: 0.5s; }
.tn-delay-6 { transition-delay: 0.6s; }
.tn-delay-7 { transition-delay: 0.7s; }
.tn-delay-8 { transition-delay: 0.8s; }

/* ============================================================
   HERO — ảnh tĩnh, full-bleed, form bar đè xuống dưới
============================================================ */
.tn-hero {
  position: relative;
  background: #ffffff;
  padding: 32px 0 0;
}

.tn-hero-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0e3a73;
}
.tn-hero-bg {
  width: 100%;
  padding-top: 56.25%;
  background-image: url('/landings/webinar-dong-hanh-cung-phu-huynh/Assets/banner_so3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
}

/* ── Hero form bar (positioned below hero image) ── */
.tn-hero-form-bar {
  position: relative;
  margin-top: 24px;
  z-index: 5;
  padding: 0 32px 32px;
}

.tn-form-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5edf6;
}

.tn-form-bar-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
}
.tn-form-bar-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ap-primary-container);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  width: 100%;
}

.tn-form-bar-fields {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: start;
}

.tn-form-bar-group { min-width: 0; }

.tn-form-bar-group input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--body);
  font-size: 18px;
  color: var(--ap-on-surface);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.tn-form-bar-group input::placeholder { color: #94a3b8; }
.tn-form-bar-group input:focus {
  border-color: var(--ap-secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(254, 204, 0, 0.18);
}

.tn-form-bar-btn {
  height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: var(--ap-primary);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(254, 204, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.tn-form-bar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.42);
  filter: brightness(1.04);
}
.tn-form-bar-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Tablet & small desktop */
@media (max-width: 1024px) {
  .tn-hero-inner { padding: 0 24px; }
  .tn-hero-form-bar { padding: 0 24px 24px; }
  .tn-form-bar-fields { grid-template-columns: 1fr 1fr; }
  .tn-form-bar-btn { grid-column: 1 / -1; }
}
/* Small tablet */
@media (max-width: 768px) {
  .tn-hero-inner { padding: 0 20px; }
  .tn-hero-form-bar { padding: 0 20px 24px; }
  .tn-form-bar-inner { padding: 20px; }
}
/* Mobile */
@media (max-width: 640px) {
  .tn-hero-bg {
    padding-top: 177.75%;
    background-image: url('/landings/webinar-dong-hanh-cung-phu-huynh/Assets/banner_so3_mobile.jpg');
  }
  .tn-hero { padding: 20px 0 0; }
  .tn-hero-inner { padding: 0 16px; }
  .tn-hero-image { border-radius: 16px; }
  .tn-hero-form-bar { margin-top: 16px; padding: 0 16px 20px; }
  .tn-form-bar-inner { padding: 18px; border-radius: 16px; }
  .tn-form-bar-fields { grid-template-columns: 1fr; }
  .tn-form-bar-title { font-size: clamp(22px, 6vw, 30px); }
}

/* ============================================================
   SECTION — chung
============================================================ */
.tn-section {
  position: relative;
  padding: 96px 0;
}
.tn-section-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .tn-section { padding: 64px 0; }
  .tn-section-inner { padding: 0 20px; }
}

/* ============================================================
   SECTION 1: BĂN KHOĂN
============================================================ */
.tn-bankhoan {
  background: var(--ap-surface);
  background-image:
    radial-gradient(60% 60% at 85% 0%, rgba(254, 204, 0, 0.10), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(37, 118, 185, 0.10), transparent 60%);
}
.tn-bankhoan-inner { text-align: center; }
.tn-bankhoan .tn-section-title { margin-left: auto; margin-right: auto; max-width: 900px; }
.tn-bankhoan-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 44px 0 36px;
  list-style: none;
  text-align: left;
}
.tn-bankhoan-item {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tn-bankhoan-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tn-bankhoan-q {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ap-on-primary-container);
  color: var(--ap-primary-container);
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tn-bankhoan-item p {
  font-family: var(--body);
  font-size: 17px;
  color: var(--ap-on-surface);
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}
.tn-bankhoan-conclusion {
  font-family: var(--body);
  font-size: 18px;
  color: var(--ap-on-surface-variant);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.65;
}
.tn-bankhoan-conclusion strong { color: var(--ap-primary-container); }
@media (max-width: 900px) {
  .tn-bankhoan-list { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 2: BỐ MẸ SẼ NHẬN ĐƯỢC GÌ?
============================================================ */
.tn-benefit {
  background: linear-gradient(135deg, #0e2a52 0%, #1a5fa6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tn-benefit::before {
  content: "";
  position: absolute;
  inset: -140px -100px auto auto;
  width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(254, 204, 0, 0.30), transparent);
  filter: blur(10px);
  pointer-events: none;
}
.tn-benefit::after {
  content: "";
  position: absolute;
  inset: auto auto -180px -140px;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(168, 216, 240, 0.40), transparent);
  filter: blur(10px);
  pointer-events: none;
}
.tn-benefit .tn-section-inner { position: relative; z-index: 1; text-align: center; }
.tn-benefit .tn-section-title { color: #fff; }
.tn-benefit .tn-eyebrow { color: var(--ap-secondary); }

.tn-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 44px;
  text-align: left;
}
.tn-benefit-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease, background .25s ease;
}
.tn-benefit-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.10);
}
.tn-benefit-card.is-special {
  background: linear-gradient(135deg, rgba(254, 204, 0, 0.20), rgba(254, 204, 0, 0.06));
  border-color: rgba(254, 204, 0, 0.50);
}
.tn-benefit-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fecc00, #ffd633);
  color: var(--ap-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.tn-benefit-icon svg { width: 30px; height: 30px; }
.tn-benefit-card h3 {
  font-family: var(--display);
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.tn-benefit-card p {
  font-family: var(--body);
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.6;
}
.tn-benefit-card.is-special h3 { color: var(--ap-secondary); }
.tn-benefit-tag {
  display: inline-block;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--ap-secondary);
  color: var(--ap-primary);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .tn-benefit-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 3: ĐỘI NGŨ DIỄN GIẢ
============================================================ */
.tn-speakers { background: #fff; }
.tn-speakers-inner { text-align: center; }
.tn-speakers .tn-section-title { margin-left: auto; margin-right: auto; max-width: 900px; }

.tn-speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  text-align: left;
}
.tn-speaker {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5edf6;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tn-speaker:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.tn-speaker-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ap-on-primary-container), #d5e5f8);
  position: relative;
  overflow: hidden;
}
.tn-speaker-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.tn-speaker-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  color: var(--ap-primary-container);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: .35;
}
.tn-speaker-body { padding: 28px 28px 32px; }
.tn-speaker-name {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--ap-primary);
  font-weight: 800;
}
.tn-speaker-role {
  display: block;
  font-family: var(--body);
  color: #b8860b;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.tn-speaker-bio {
  list-style: none;
  padding: 0; margin: 0;
}
.tn-speaker-bio li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-family: var(--body);
  color: var(--ap-on-surface-variant);
  font-size: 16px;
  line-height: 1.6;
}
.tn-speaker-bio li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  background: var(--ap-on-primary-container);
  border: 2px solid var(--ap-primary-container);
  border-radius: 50%;
}
.tn-speaker-note {
  margin-top: 40px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ap-on-surface-variant);
  font-style: italic;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  background: #fff8e5;
  border-left: 4px solid var(--ap-secondary);
  padding: 16px 22px;
  border-radius: 8px;
  text-align: left;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .tn-speakers-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   SECTION 4: COUNTDOWN
============================================================ */
.tn-countdown {
  position: relative;
  background:
    radial-gradient(70% 70% at 50% 0%, rgba(254, 204, 0, 0.18), transparent 60%),
    linear-gradient(135deg, var(--ap-primary) 0%, #0a3e80 100%);
  color: #fff;
  text-align: center;
}
.tn-countdown .tn-section-title { color: #fff; }
.tn-countdown-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ap-secondary);
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tn-countdown-meta span { display: inline-flex; align-items: center; gap: 8px; }
.tn-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 44px auto 28px;
}
.tn-countdown-cell {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 26px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tn-countdown-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tn-countdown-lbl {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.tn-countdown-tagline {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--body);
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  line-height: 1.6;
}
.tn-countdown-tagline strong { color: var(--ap-secondary); }
@media (max-width: 640px) {
  .tn-countdown-grid { gap: 10px; }
  .tn-countdown-cell { padding: 16px 8px; border-radius: 14px; }
  .tn-countdown-lbl { font-size: 10px; letter-spacing: .14em; }
}

/* ============================================================
   SECTION 5: BOTTOM FORM (re-skinned từ Kindy)
============================================================ */
.tn-bottom-form {
  position: relative;
  background: linear-gradient(180deg, #f7fbff 0%, #eaf3fc 100%);
  padding: 96px 0;
}
.tn-bf-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.tn-bf-left {
  background: #fff;
  border-radius: 28px;
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5edf6;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tn-bf-left::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ap-secondary) 0%, var(--ap-primary-container) 100%);
}
.tn-bf-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  color: #2667e0;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.tn-bf-sub {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ap-on-surface-variant);
  margin: 0 0 28px;
}
.tn-bf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.tn-bf-group input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--ap-on-surface);
  font-family: var(--body);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tn-bf-group input::placeholder { color: #94a3b8; }
.tn-bf-group input:focus {
  border-color: var(--ap-secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(254, 204, 0, 0.30);
}
.tn-bf-btn {
  margin-top: 6px;
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: var(--ap-primary);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 10px 22px rgba(254, 204, 0, 0.34);
}
.tn-bf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(254, 204, 0, 0.44);
  filter: brightness(1.04);
}
.tn-bf-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.tn-bf-privacy {
  margin-top: 18px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--ap-on-surface-variant);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tn-bf-privacy a {
  color: var(--ap-primary-container);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tn-bf-status {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--body);
}
.tn-bf-status.is-success { color: var(--ap-success); }
.tn-bf-status.is-error { color: #ef4444; }

@media (max-width: 640px) {
  .tn-bottom-form { padding: 64px 0; }
  .tn-bf-inner { padding: 0 16px; }
  .tn-bf-left { padding: 36px 24px; border-radius: 20px; }
}

/* ============================================================
   FOOTER (inline-styled from Kindy template) — không cần thêm CSS
============================================================ */

/* ============================================================
   WEBINAR CONTENT SECTION — NỘI DUNG WEBINAR (Theo yêu cầu)
============================================================ */
.tn-webinar-content {
  background: #fff;
  padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid #f1f5f9;
}

.tn-wc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-wc-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  color: #2576b9; /* Vibrant brand royal blue */
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: left;
}

.tn-wc-subhead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #191c1d;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  text-align: left;
}

.tn-wc-split {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 40px;
}

.tn-wc-split-text {
  flex: 1 1 0;
  min-width: 0;
}

.tn-wc-video {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
}

.tn-wc-video-frame {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 44px rgba(37, 118, 185, 0.18);
}

.tn-wc-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tn-wc-intro {
  font-family: var(--body);
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--ap-on-surface-variant);
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
}

.tn-wc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.tn-wc-left {
  flex: 1;
}

.tn-wc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tn-wc-list li {
  position: relative;
  padding-left: 24px;
  font-family: var(--body);
  font-size: 18px;
  color: var(--ap-on-surface-variant);
  font-weight: 400;
  line-height: 1.7;
}

.tn-wc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
  font-size: 24px;
  line-height: 1;
  top: -1px;
}

.tn-wc-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tn-wc-trophy-icon {
  width: clamp(90px, 12vw, 120px);
  height: clamp(90px, 12vw, 120px);
  color: #2576b9;
  filter: drop-shadow(0 6px 16px rgba(37, 118, 185, 0.08));
}

.tn-wc-conclusion {
  font-family: var(--body);
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 400;
  color: var(--ap-on-surface-variant);
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: left;
}

.tn-wc-conclusion strong {
  color: #2576b9;
  font-weight: 700;
}

.tn-wc-schedule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
}

.tn-wc-schedule-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tn-wc-orange-icon {
  width: 68px;
  height: 68px;
  color: #ff9800;
  stroke: #ff9800;
  flex-shrink: 0;
}

.tn-wc-schedule-text {
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 52px);
  font-weight: 800;
  color: #191c1d;
  letter-spacing: 0.01em;
  line-height: 1;
}

.tn-wc-divider {
  width: 2px;
  height: 68px;
  background-color: #cbd5e1;
}

@media (max-width: 1024px) {
  .tn-wc-inner { padding: 0 24px; }
}
@media (max-width: 768px) {
  .tn-wc-inner {
    padding: 0 20px;
  }
  .tn-wc-title {
    text-align: center;
    margin-bottom: 24px;
  }
  .tn-wc-subhead {
    text-align: center;
  }
  .tn-wc-intro {
    text-align: center;
  }
  .tn-wc-split {
    flex-direction: column;
    gap: 28px;
  }
  .tn-wc-video {
    flex: 0 0 auto;
    width: 100%;
  }
  .tn-wc-video-frame {
    width: 300px;
  }
  .tn-wc-row {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .tn-wc-right {
    order: -1;
  }
  .tn-wc-conclusion {
    text-align: center;
  }
  .tn-wc-schedule {
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 40px;
  }
  .tn-wc-orange-icon { width: 52px; height: 52px; }
  .tn-wc-schedule-text { font-size: clamp(28px, 5vw, 38px); }
  .tn-wc-divider { height: 52px; }
}

@media (max-width: 640px) {
  .tn-wc-schedule {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .tn-wc-orange-icon { width: 40px; height: 40px; }
  .tn-wc-schedule-text { font-size: clamp(22px, 6vw, 28px); }
  .tn-wc-divider {
    width: 60%;
    height: 1px;
  }
}

/* ============================================================
   BENEFITS SECTION — BỐ MẸ NHẬN ĐƯỢC GÌ (5 Cột / Thẻ)
============================================================ */
.tn-benefits {
  background: var(--ap-surface, #f8fafb);
  padding: 96px 0;
  border-top: 1px solid rgba(37, 118, 185, 0.08);
  border-bottom: 1px solid rgba(37, 118, 185, 0.08);
}

.tn-benefits-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-benefits-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  color: #2576b9; /* Vibrant brand royal blue */
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}

.tn-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0; /* Contiguous columns with vertical borders */
}

.tn-benefit-col {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tn-benefit-col:first-child {
  padding-left: 0;
}

.tn-benefit-col:last-child {
  padding-right: 0;
}

/* Vertical dividers between columns */
.tn-benefit-col + .tn-benefit-col {
  border-left: 1px solid #cbd5e1;
}

.tn-benefit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 18px;
  border-radius: 2px; /* Slight roundness for crisp borders, sharp visual */
}

/* Mockup specific badge colors */
.badge-pink {
  background-color: #f2659e; /* Strawberry pink from mockup */
}
.badge-green {
  background-color: #7bb33b; /* Fresh leaf green from mockup */
}
.badge-blue {
  background-color: #00a2e2; /* Sky cyan blue from mockup */
}
.badge-orange {
  background-color: #ff9800; /* Warm bright orange from mockup */
}
.badge-purple {
  background-color: #8b5cf6; /* Violet accent for 5th benefit */
}

.tn-benefit-col-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #191c1d;
  line-height: 1.25;
  margin-bottom: 12px;
}

.tn-benefit-col-desc {
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  color: var(--ap-on-surface-variant);
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .tn-benefits-inner { padding: 0 24px; }
  .tn-benefit-col { padding: 0 20px; }
}

/* Tablet: 2 cột */
@media (max-width: 900px) {
  .tn-benefits-inner { padding: 0 24px; }
  .tn-benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .tn-benefit-col { padding: 0; }
  .tn-benefit-col + .tn-benefit-col {
    border-left: none;
  }
  /* Divider dọc giữa 2 cột trên cùng 1 hàng */
  .tn-benefit-col:nth-child(odd) {
    padding-right: 16px;
    border-right: 1px solid #cbd5e1;
  }
  .tn-benefit-col:nth-child(even) {
    padding-left: 16px;
  }
}

/* Mobile: 1 cột */
@media (max-width: 640px) {
  .tn-benefits-inner { padding: 0 16px; }
  .tn-benefits-title { margin-bottom: 32px; }
  .tn-benefits-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tn-benefit-col,
  .tn-benefit-col:nth-child(odd),
  .tn-benefit-col:nth-child(even) {
    padding: 0;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
  .tn-benefit-col + .tn-benefit-col {
    border-top: 1px solid #edf2f7;
    padding-top: 24px;
  }
}

/* ============================================================
   SPEAKERS SECTION — DIỄN GIẢ ZIGZAG (Theo yêu cầu)
============================================================ */
.tn-speakers-zigzag {
  background: #ffffff;
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid #f1f5f9;
}

.tn-speakers-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-speakers-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  color: #2576b9; /* Vibrant brand royal blue */
  line-height: 1.15;
  margin-bottom: 60px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.tn-speakers-list {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Generous gap between speakers */
}

.tn-speaker-item {
  display: flex;
  align-items: center;
  gap: 60px;
}

.tn-speaker-item:nth-child(even) {
  flex-direction: row-reverse;
}

.tn-speaker-photo-wrap {
  flex: 0 0 340px;
  max-width: 340px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tn-speaker-item:hover .tn-speaker-photo-wrap {
  transform: translateY(-4px);
}

.tn-speaker-photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.tn-speaker-info {
  flex: 1;
}

.tn-speaker-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.tn-speaker-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  font-family: var(--body);
  color: var(--ap-on-surface-variant);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  text-align: left;
}

.tn-speaker-bullets li:last-child {
  margin-bottom: 0;
}

.tn-speaker-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232576b9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .tn-speakers-inner { padding: 0 24px; }
  .tn-speaker-item, .tn-speaker-item:nth-child(even) { gap: 40px; }
  .tn-speaker-photo-wrap { flex: 0 0 300px; max-width: 300px; }
}

/* Tablet: stack ảnh trên, text dưới */
@media (max-width: 900px) {
  .tn-speakers-title { margin-bottom: 48px; }
  .tn-speakers-list { gap: 64px; }
  .tn-speaker-item,
  .tn-speaker-item:nth-child(even) {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: left;
  }
  .tn-speaker-photo-wrap {
    flex: 0 0 280px;
    max-width: 280px;
  }
  .tn-speaker-info { width: 100%; }
}

@media (max-width: 768px) {
  .tn-speakers-inner { padding: 0 20px; }
  .tn-speakers-title { margin-bottom: 40px; }
  .tn-speakers-list { gap: 56px; }
  .tn-speaker-photo-wrap {
    flex: 0 0 260px;
    max-width: 260px;
  }
  .tn-speaker-bullets li {
    margin-bottom: 16px;
    padding-left: 26px;
  }
  .tn-speaker-bullets li::before {
    width: 16px;
    height: 16px;
    top: 4px;
  }
}

@media (max-width: 640px) {
  .tn-speakers-inner { padding: 0 16px; }
  .tn-speaker-photo-wrap { flex: 0 0 220px; max-width: 220px; }
}

/* ============================================================
   COUNTDOWN SECTION — PHÒNG ZOOM GIỚI HẠN & COUNTDOWN (Theo yêu cầu)
============================================================ */
.tn-zoom-countdown {
  background: #f8fafc;
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.tn-zc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-zc-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #2576b9;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  text-transform: none;
}

/* Flip clock layout */
.tn-flip-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 48px auto 0;
  max-width: 600px;
}

.tn-flip-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tn-flip-card-wrapper {
  position: relative;
  border-radius: 12px;
  background: #7a7a7a; /* Fallback */
  padding: 1px; /* Subtle dark border wrapper */
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 16px 36px rgba(0, 0, 0, 0.12);
}

.tn-flip-card {
  position: relative;
  width: clamp(100px, 15vw, 150px);
  height: clamp(90px, 14vw, 136px);
  /* Top to bottom folding look by color gradients with a middle split line */
  background: linear-gradient(to bottom, 
    #eaeaea 0%, 
    #c8c8c8 48.5%, 
    #666666 49.5%, 
    #333333 50.5%, 
    #9e9e9e 51.5%, 
    #888888 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid #b5b5b5;
}

/* Flip numbers */
.tn-flip-num {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 84px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.01em;
}

/* Middle split gap overlay */
.tn-flip-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* Metal hinges on the fold line */
.tn-flip-hinge {
  position: absolute;
  width: 5px;
  height: 14px;
  background: linear-gradient(to right, #ffffff 0%, #e2e2e2 50%, #999999 100%);
  border: 1px solid #8c8c8c;
  border-radius: 1px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.hinge-left {
  left: -2.5px;
}

.hinge-right {
  right: -2.5px;
}

/* Label below the flip clock card */
.tn-flip-label {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: #191c1d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Connector bar */
.tn-flip-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(20px, 4vw, 36px);
  height: clamp(90px, 14vw, 136px);
}

.tn-connector-bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, #eaeaea 0%, #b8b8b8 50%, #7a7a7a 100%);
  border: 1px solid #9c9c9c;
  border-radius: 1.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Desktop spacing class for title */
.desktop-only {
  display: inline;
}

@media (max-width: 1024px) {
  .tn-zc-inner { padding: 0 24px; }
}
@media (max-width: 768px) {
  .tn-zc-inner { padding: 0 20px; }
  .desktop-only { display: none; }
  .tn-flip-clock { gap: 14px; margin-top: 40px; }
}

@media (max-width: 640px) {
  .tn-zc-inner { padding: 0 16px; }
  .tn-flip-clock {
    gap: 8px;
    margin-top: 36px;
    max-width: 100%;
  }
  .tn-flip-card {
    width: clamp(80px, 22vw, 110px);
    height: clamp(72px, 20vw, 100px);
  }
  .tn-flip-num { font-size: clamp(40px, 11vw, 56px); }
  .tn-flip-connector { width: 10px; height: clamp(72px, 20vw, 100px); }
  .tn-connector-bar { height: 6px; }
  .tn-flip-label { font-size: 16px; margin-top: 10px; }
}

/* ============================================================
   BOTTOM CTA SECTION — ĐĂNG KÝ THAM DỰ MIỄN PHÍ NGAY (Theo yêu cầu)
============================================================ */
.tn-bottom-cta {
  background: #ffffff;
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.tn-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-cta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  color: #2576b9;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tn-cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.tn-cta-form-group {
  position: relative;
}

.tn-cta-form-group input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--body);
  font-size: 18px;
  color: var(--ap-on-surface);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tn-cta-form-group input::placeholder { color: #94a3b8; }

.tn-cta-form-group input:focus {
  border-color: var(--ap-secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(254, 204, 0, 0.18);
}

.tn-cta-btn {
  height: 56px;
  width: 100%;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: var(--ap-primary);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(254, 204, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tn-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.35);
  filter: brightness(1.05);
}

.tn-cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .tn-cta-inner { padding: 0 20px; }
}
@media (max-width: 640px) {
  .tn-cta-inner { padding: 0 16px; }
  .tn-cta-title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 24px; }
}

/* ============================================================
   MOBILE — Headline scaling (tránh rơi chữ / chữ quá lớn trên phone)
============================================================ */
@media (max-width: 640px) {
  .tn-wc-title { font-size: clamp(24px, 6.4vw, 30px); }
  .tn-wc-subhead { font-size: clamp(20px, 5.4vw, 24px); }
  .tn-benefits-title { font-size: clamp(24px, 6.4vw, 30px); }
  .tn-speakers-title { font-size: clamp(23px, 6vw, 28px); }
  .tn-zc-title { font-size: clamp(18px, 4.8vw, 22px); }
  .tn-form-bar-title { font-size: clamp(20px, 5.6vw, 26px); }
}

/* ============================================================
   FOOTER — mobile optimization (ghi đè inline-styles của template)
============================================================ */
@media (max-width: 768px) {
  .tn-footer { padding: 32px 0 24px !important; }
  .tn-footer-wrap { padding: 0 20px !important; }
  .tn-footer-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px !important;
    text-align: center !important;
  }
  .tn-footer-logo { margin: 0 auto !important; }
  .tn-footer-logo img { height: 60px !important; margin: 0 auto !important; }
  .tn-footer-content {
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .tn-footer-links {
    justify-content: center !important;
    gap: 10px 18px !important;
    margin-bottom: 22px !important;
  }
  .tn-footer-links a { font-size: 16px !important; }
  .tn-footer-bottom {
    justify-content: center !important;
    align-items: center !important;
  }
  .tn-footer-follow {
    align-items: center !important;
    width: 100% !important;
  }
  .tn-footer-follow > span { font-size: 16px !important; }
  .tn-footer-follow-row {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
  }
  .tn-footer-copyright { font-size: 14px !important; text-align: center !important; }
}
@media (max-width: 640px) {
  .tn-footer-wrap { padding: 0 16px !important; }
  .tn-footer-links { gap: 8px 14px !important; }
  .tn-footer-links a { font-size: 15px !important; }
}





/* ============================================================
   LIVE STREAM SECTION — Hiển thị khi vào giờ live
   Mặc định ẩn; body.is-live-mode kích hoạt + ẩn hero/form/countdown
============================================================ */
/* ============================================================
   LIVE STREAM SECTION — Hiển thị khi vào giờ live (Premium Upgrade)
   Mặc định ẩn; body.is-live-mode kích hoạt + ẩn hero/form/countdown
============================================================ */
.tn-live-stream {
  display: none;
  background: radial-gradient(circle at top, #111827 0%, #030712 100%);
  padding: clamp(32px, 5vw, 64px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

body.is-live-mode .tn-live-stream { display: block; }
body.is-live-mode .tn-hero,
body.is-live-mode .tn-zoom-countdown,
body.is-live-mode .tn-bottom-cta {
  display: none;
}

/* ============================================================
   TRẠNG THÁI "ĐÃ DIỄN RA" — sau khi hội thảo kết thúc
   Trang quay về dạng thông tin, form đăng ký vẫn giữ nguyên.
============================================================ */
/* Badge ở khu vực lịch (mặc định ẩn, chỉ hiện khi is-ended) */
.tn-wc-status-ended {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 24px auto 0;
  padding: 10px 22px;
  background: #eef2f6;
  border: 1px solid #d4dde6;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #5b6b7b;
  letter-spacing: 0.01em;
}

.tn-wc-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

body.is-ended .tn-wc-status-ended { display: inline-flex; }

/* Trong countdown section: ẩn flip clock + tiêu đề cũ, hiện khối kết thúc */
.tn-zc-ended { display: none; }

body.is-ended .tn-zc-title,
body.is-ended #flipClock { display: none; }

body.is-ended .tn-zc-ended {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.tn-zc-ended-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  background: rgba(245, 130, 31, 0.12);
  border: 1px solid rgba(245, 130, 31, 0.3);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #d9730d;
  text-transform: uppercase;
}

.tn-zc-ended-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5821f;
  flex-shrink: 0;
}

.tn-zc-ended-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  color: #2576b9;
  margin: 0;
  line-height: 1.25;
}

.tn-zc-ended-text {
  font-family: var(--body);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.6;
  color: #475569;
  max-width: 620px;
  margin: 0;
}

.tn-zc-ended-text strong { color: #1e293b; }

.tn-zc-ended-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 32px;
  background: #f5821f;
  color: #fff !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(245, 130, 31, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.tn-zc-ended-btn:hover {
  background: #e0730f;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 130, 31, 0.45);
}

.tn-zc-ended-btn:active { transform: translateY(0); }

.tn-live-stream-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
}

.tn-live-stream-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.tn-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(245, 68, 60, 0.95);
  color: #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(245, 68, 60, 0.45);
}

.tn-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: tn-live-pulse 1.4s ease-in-out infinite;
}

@keyframes tn-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.tn-live-stream-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 36px);
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.tn-live-stream-subtitle {
  font-family: var(--body);
  font-size: clamp(15px, 1.8vw, 18px);
  color: #94a3b8;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

.tn-live-stream-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tn-live-stream-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lớp chờ phủ lên iframe trong lúc xin quyền camera/mic & nạp Zoom */
.tn-live-waiting {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #1b2a45 0%, #0b1220 75%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.tn-live-waiting.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tn-live-waiting-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #f5821f;
  animation: tn-live-spin 0.9s linear infinite;
}

@keyframes tn-live-spin {
  to { transform: rotate(360deg); }
}

.tn-live-waiting-title {
  font-family: var(--head, var(--body));
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.tn-live-waiting-text {
  font-family: var(--body);
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 540px;
  margin: 0;
}

.tn-live-waiting-text strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .tn-live-waiting-spinner { animation-duration: 2.5s; }
}

/* Glassmorphic Fallback Details Card */
.tn-live-zoom-fallback {
  margin-top: clamp(28px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.tn-fallback-text {
  font-family: var(--body);
  font-size: clamp(15px, 1.8vw, 17px);
  color: #cbd5e1;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.tn-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.tn-btn-zoom-direct {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2d8cff; /* Official Zoom Blue */
  color: #ffffff !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(45, 140, 255, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.tn-btn-zoom-direct:hover {
  background: #1a7ae6;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 140, 255, 0.45);
}

.tn-btn-zoom-direct:active {
  transform: translateY(0);
}

.tn-btn-zoom-direct svg {
  flex-shrink: 0;
}

.tn-fallback-credentials {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Premium Click-to-Copy Capsules */
.tn-cred-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tn-cred-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tn-cred-item:active {
  transform: translateY(0);
}

.tn-cred-label {
  font-family: var(--body);
  font-size: 14px;
  color: #94a3b8;
  font-weight: 700;
}

.tn-cred-value {
  font-family: var(--display);
  font-size: 16px;
  color: #facc15; /* Golden Yellow for visual hierarchy */
  font-weight: 800;
}

/* Tooltip container for copy feedback */
.tn-copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  z-index: 10;
}

.tn-copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.tn-copy-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Thông tin hỗ trợ kỹ thuật trong card Đang diễn ra */
.tn-live-support {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  padding: 16px 20px;
  text-align: left;
  background: rgba(245, 130, 31, 0.08);
  border: 1px solid rgba(245, 130, 31, 0.25);
  border-radius: 14px;
}

.tn-live-support-icon {
  flex-shrink: 0;
  color: #f5821f;
  margin-top: 2px;
}

.tn-live-support-text {
  font-family: var(--body);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.55;
  color: #cbd5e1;
  font-weight: 600;
  margin: 0;
}

.tn-live-support-text strong { color: #fff; }

.tn-live-support-phone {
  color: #f5821f;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tn-live-support-phone:hover { text-decoration: underline; }

/* Responsive adjustment for small viewports */
@media (max-width: 768px) {
  .tn-fallback-actions {
    flex-direction: column;
    gap: 14px;
  }
  .tn-fallback-credentials {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .tn-cred-item {
    width: 100%;
    justify-content: center;
  }
  .tn-btn-zoom-direct {
    width: 100%;
    justify-content: center;
  }
  /* Optimization: Taller aspect-ratio on mobile so Zoom Web UI fits perfectly */
  .tn-live-stream-frame {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .tn-live-stream-inner {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .tn-live-stream-inner { padding: 0 24px; }
}

@media (max-width: 640px) {
  .tn-live-stream-inner { padding: 0 16px; }
  .tn-live-stream-frame { border-radius: 12px; }
  .tn-live-zoom-fallback { padding: 18px; }
}

/* ============================================================
   PRE-EVENT POPUP — Hiển thị T-1h, persistent (không có nút đóng)
   Tự ẩn sau khi user submit form thành công
============================================================ */
.tn-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: tn-popup-fade 0.3s ease;
}

.tn-popup.is-visible { display: flex; }

body.is-popup-active { overflow: hidden; }

@keyframes tn-popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tn-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 58, 115, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tn-popup-card {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: tn-popup-card-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tn-popup-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Banner phía trên */
.tn-popup-banner {
  position: relative;
  width: 100%;
  background: #0e3a73;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.tn-popup-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Countdown strip nổi trên banner (góc dưới trái) */
.tn-popup-countdown {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(245, 68, 60, 0.95);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(245, 68, 60, 0.35);
  backdrop-filter: blur(4px);
}

.tn-popup-cd-text {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tn-popup-cd-time {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tn-popup-cd-num {
  display: inline-block;
  min-width: 28px;
  text-align: center;
}

.tn-popup-cd-sep {
  display: inline-block;
  padding: 0 2px;
  opacity: 0.7;
}

/* Body chứa title + form bar */
.tn-popup-body {
  padding: 28px 32px 32px;
}

.tn-popup-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  color: #2576b9;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 20px;
}

.tn-popup-form { width: 100%; }

.tn-popup-form-fields {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr auto;
  gap: 12px;
  align-items: start;
}

.tn-popup-form-group { min-width: 0; }

.tn-popup-form-group input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--body);
  font-size: 18px;
  color: var(--ap-on-surface);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tn-popup-form-group input::placeholder { color: #94a3b8; }

.tn-popup-form-group input:focus {
  border-color: var(--ap-secondary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(254, 204, 0, 0.18);
}

.tn-popup-btn {
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: var(--ap-primary);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(254, 204, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.tn-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.4);
  filter: brightness(1.04);
}

.tn-popup-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Tablet: 2 cột + button full-width */
@media (max-width: 900px) {
  .tn-popup-form-fields {
    grid-template-columns: 1fr 1fr;
  }
  .tn-popup-btn { grid-column: 1 / -1; }
}

/* Mobile: stack 1 cột */
@media (max-width: 640px) {
  .tn-popup { padding: 12px; }
  .tn-popup-card { border-radius: 18px; }
  .tn-popup-banner { border-radius: 18px 18px 0 0; }
  .tn-popup-countdown {
    bottom: 10px;
    left: 10px;
    padding: 8px 12px;
    gap: 8px;
  }
  .tn-popup-cd-text { font-size: 11px; letter-spacing: 0.06em; }
  .tn-popup-cd-time { font-size: 18px; }
  .tn-popup-cd-num { min-width: 22px; }
  .tn-popup-body { padding: 20px 18px 22px; }
  .tn-popup-title { margin-bottom: 16px; }
  .tn-popup-form-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================================
   POST-WEBINAR SURVEY PAGE CSS
   Clean, premium modern survey layout with glassmorphism effects
   ============================================================ */
.tn-survey-section {
  position: relative;
  padding: 60px 0 96px;
  background: var(--ap-surface);
  background-image:
    radial-gradient(50% 50% at 90% 10%, rgba(254, 204, 0, 0.12), transparent 50%),
    radial-gradient(60% 60% at 10% 90%, rgba(37, 118, 185, 0.12), transparent 60%);
}

.tn-survey-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.tn-survey-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5edf6;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tn-survey-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--ap-secondary) 0%, var(--ap-primary-container) 100%);
}

.tn-survey-header {
  text-align: center;
  margin-bottom: 40px;
}

.tn-survey-page-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 8px;
}

.tn-survey-banner {
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tn-survey-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.tn-survey-logo-wrap {
  display: inline-block;
  margin-bottom: 18px;
}

.tn-survey-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.3;
  color: var(--ap-primary-container);
  margin-bottom: 16px;
  text-wrap: balance;
}

.tn-survey-subtitle {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ap-on-surface-variant);
  max-width: 680px;
  margin: 0 auto;
}

.tn-survey-subtitle em {
  font-style: normal;
  color: var(--ap-tertiary);
  font-weight: 700;
}

/* Form Items */
.tn-survey-group {
  margin-bottom: 32px;
  position: relative;
}

.tn-survey-group:last-of-type {
  margin-bottom: 40px;
}

.tn-survey-label {
  display: block;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  color: var(--ap-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.tn-survey-label-desc {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
  margin-top: 4px;
}

/* Star Rating widget */
.tn-survey-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.tn-survey-star-input {
  display: none;
}

.tn-survey-star-lbl {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 64px;
}

.tn-survey-star-icon {
  font-size: 34px;
  filter: grayscale(1) opacity(0.4);
  transition: filter 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tn-survey-star-text {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  transition: color 0.25s ease;
}

/* Hover effects */
.tn-survey-star-lbl:hover {
  transform: scale(1.2);
}

.tn-survey-star-lbl:hover .tn-survey-star-icon,
.tn-survey-star-lbl:hover ~ .tn-survey-star-lbl .tn-survey-star-icon {
  filter: grayscale(0) opacity(1);
}

/* Checked state */
.tn-survey-star-input:checked ~ .tn-survey-star-lbl .tn-survey-star-icon {
  filter: grayscale(0) opacity(1);
  animation: starPulse 0.4s ease;
}

.tn-survey-star-input:checked ~ .tn-survey-star-lbl .tn-survey-star-text {
  color: var(--ap-primary);
}

@keyframes starPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Basic inputs */
.tn-survey-textarea,
.tn-survey-input,
.tn-survey-select {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ap-on-surface);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tn-survey-textarea {
  min-height: 100px;
  padding: 14px 18px;
  resize: vertical;
}

.tn-survey-input {
  height: 52px;
  padding: 0 18px;
}

.tn-survey-select {
  height: 52px;
  padding: 0 18px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}

.tn-survey-textarea::placeholder,
.tn-survey-input::placeholder {
  color: #94a3b8;
}

.tn-survey-textarea:focus,
.tn-survey-input:focus,
.tn-survey-select:focus {
  border-color: var(--ap-primary-container);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 118, 185, 0.12);
}

/* Subsection Divider */
.tn-survey-section-divider {
  margin: 36px 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.tn-survey-section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ap-primary-container);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tn-survey-section-title svg {
  color: var(--ap-secondary);
}

/* Referral list (Dynamic UX) */
.tn-referrals-container {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.tn-referral-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  animation: slideInSurvey 0.3s ease;
}

@keyframes slideInSurvey {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tn-referral-remove-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: #fee2e2;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tn-referral-remove-btn:hover {
  background: #fecaca;
  transform: scale(1.05);
}

.tn-referral-add-btn {
  border: 1.5px dashed var(--ap-primary-container);
  background: #ffffff;
  color: var(--ap-primary-container);
  border-radius: 10px;
  height: 48px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 6px;
}

.tn-referral-add-btn:hover {
  background: var(--ap-on-primary-container);
}

/* Submit Button */
.tn-survey-submit-wrap {
  text-align: center;
  margin-top: 36px;
}

.tn-survey-submit-btn {
  height: 56px;
  padding: 0 48px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: var(--ap-primary);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(254, 204, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tn-survey-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.42);
  filter: brightness(1.04);
}

.tn-survey-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success View State */
.tn-survey-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
  animation: fadeInSurvey 0.5s ease;
}

@keyframes fadeInSurvey {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tn-success-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.tn-success-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #d1fae5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

.tn-success-circle svg {
  width: 48px;
  height: 48px;
}

.tn-success-sparkles {
  position: absolute;
  inset: -15px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #fbbf24 15%, transparent 16%),
    radial-gradient(circle, #fecc00 15%, transparent 16%),
    radial-gradient(circle, #fbbf24 15%, transparent 16%),
    radial-gradient(circle, #fecc00 15%, transparent 16%);
  background-size: 12px 12px, 8px 8px, 12px 12px, 10px 10px;
  background-position: 10% 20%, 90% 10%, 20% 80%, 80% 80%;
  background-repeat: no-repeat;
  animation: sparkleAnimation 1.5s ease-out infinite alternate;
}

@keyframes sparkleAnimation {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 1; }
}

.tn-success-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  color: #059669;
  margin-bottom: 16px;
}

.tn-success-desc {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ap-on-surface-variant);
  max-width: 600px;
  margin: 0 auto 28px;
}

.tn-btn-home {
  height: 48px;
  padding: 0 32px;
  border-radius: 10px;
  background: var(--ap-primary);
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(26, 95, 166, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tn-btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 95, 166, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tn-survey-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .tn-survey-stars {
    gap: 10px;
    padding: 16px;
  }
  .tn-survey-star-lbl {
    min-width: 52px;
  }
  .tn-survey-star-icon {
    font-size: 28px;
  }
  .tn-referral-item {
    grid-template-columns: 1fr;
    gap: 8px;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    position: relative;
  }
  .tn-referral-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
}

/* ===== Check-in Popup (Live mode) ===== */
.tn-checkin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 30, 60, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tn-checkin-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.tn-checkin-modal {
  background: #fff;
  border-radius: 28px;
  padding: 52px 48px;
  max-width: 520px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(10, 30, 60, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.tn-checkin-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--ap-primary);
  line-height: 1.3;
  margin: 0;
}
.tn-checkin-desc {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}
.tn-checkin-input {
  width: 100%;
  height: 60px;
  padding: 0 22px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 18px;
  color: var(--ap-primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tn-checkin-input:focus {
  border-color: var(--ap-accent, #2576b9);
}
.tn-checkin-btn {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: var(--ap-primary);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(254, 204, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.tn-checkin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.4);
  filter: brightness(1.04);
}
.tn-checkin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.tn-checkin-msg {
  font-size: 15px;
  min-height: 22px;
  margin: 0;
}
.tn-checkin-msg.error { color: #e53e3e; }
.tn-checkin-msg.success { color: #38a169; }

/* ============================================================
   SPEAKER TAGS BADGES
============================================================ */
.tn-speaker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}

.tn-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(37, 118, 185, 0.08);
  border: 1px solid rgba(37, 118, 185, 0.2);
  border-radius: 20px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  color: var(--ap-primary-container);
  transition: background 0.2s ease, transform 0.2s ease;
}

.tn-tag:hover {
  background: rgba(37, 118, 185, 0.15);
  transform: translateY(-1px);
}

/* ============================================================
   MOBILE STICKY REGISTER BAR
============================================================ */
.tn-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(37, 118, 185, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tn-mobile-sticky-bar.is-active {
  transform: translateY(0);
}

.tn-mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.tn-mobile-sticky-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tn-mobile-sticky-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-primary-container);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tn-mobile-sticky-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: #191c1d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tn-mobile-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: #1a5fa6;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(254, 204, 0, 0.35);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tn-mobile-sticky-bar {
    display: block;
  }
}



