:root {
  --color-navy: #1E3A8A;
  --color-blue: #0F6CBD;
  --color-blue-light: #4FA3FF;
  --color-cyan: #00C2FF;
  --color-cyan-soft: #66D9FF;
  --color-cyan-pale: #AEEBFF;
  --color-orange: #FF6A00;
  --color-orange-light: #FFA64D;
  --color-bg: #F5FAFF;
  --color-white: #FFFFFF;
  --color-text: #102326;
  --color-muted: #4B5563;
  --color-border: #D7E8F7;

  --gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #0F6CBD 100%);
  --gradient-cta: linear-gradient(135deg, #FF6A00 0%, #FFA64D 100%);
  --gradient-cta-hover: linear-gradient(135deg, #E85F00 0%, #FF8F2E 100%);

  --shadow-soft: 0 18px 45px rgba(30, 58, 138, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 108, 189, 0.10);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Trạng thái form — chức năng UX, không phải màu thương hiệu (xem notes/handao_brand_rules.md) */
  --color-error: #c0392b;
  --color-success-bg: #e6f6ea;
  --color-success-text: #1f7a3d;

  --max-width: 1100px;
  --font-base: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 0.5em;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Tiêu đề chủ động xuống 2 dòng (giữ trong hàm tự-co: nowrap chặn wrap ngoài ý muốn,
   <br> cho đúng 2 dòng) — nới line-height cho thoáng. */
.h2-multiline {
  line-height: 1.24;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--color-muted);
}

.feedback-section .section-intro {
  max-width: 820px;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-bg);
}

.btn-small {
  padding: 0.55em 1.1em;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

.logo-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-navy);
}

.logo-tagline {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.main-nav a:hover {
  color: var(--color-blue);
}

.main-nav a.nav-cta {
  color: var(--color-white);
  animation: navCtaPulse 1.5s ease-in-out infinite;
  will-change: transform;
}

.main-nav a.nav-cta:hover {
  color: var(--color-white);
  animation-play-state: paused; /* rê chuột thì dừng cho dễ bấm */
}

/* Nút "Đăng ký tư vấn" trên header đập nhịp + toả sáng để bắt mắt khách */
@keyframes navCtaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 7px 22px rgba(255, 106, 0, 0.6);
  }
}

/* Hero */
/* Banner chương trình Mùa vàng chỉnh nha */
.campaign-hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
  padding: 24px 20px 12px;
}

.campaign-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.campaign-hero-inner a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.campaign-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  animation: campaignKenBurns 12s ease-in-out infinite alternate;
}

/* Vệt sáng lướt nhẹ qua banner, hút mắt vào vùng chữ "Mùa vàng CHỈNH NHA" */
.campaign-hero-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.42) 49%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.42) 51%,
    transparent 60%
  );
  background-size: 260% 100%;
  background-position: 200% 0;
  animation: campaignShine 6s ease-in-out infinite;
}

/* Quầng sáng nhấp nháy nhẹ quanh nút "Đăng ký tư vấn ngay" trong ảnh */
.campaign-hero-cta-pulse {
  position: absolute;
  left: 76.5%;
  top: 88.5%;
  width: 18.5%;
  height: 9%;
  border-radius: 999px;
  pointer-events: none;
  animation: campaignCtaPulse 2.2s ease-in-out infinite;
}

@keyframes campaignKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

@keyframes campaignShine {
  0% { background-position: 200% 0; }
  35% { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

@keyframes campaignCtaPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .campaign-hero-image,
  .campaign-hero-shine,
  .campaign-hero-cta-pulse,
  .main-nav a.nav-cta {
    animation: none;
  }
}

@media (max-width: 768px) {
  .campaign-hero {
    padding: 14px 12px 8px;
  }

  .campaign-hero-inner a {
    border-radius: 14px;
  }

  .campaign-hero-image {
    border-radius: 14px;
  }
}

/* Mobile: banner dùng ảnh vuông (1:1) — không có nút "Đăng ký" như bản ngang nên tắt quầng sáng nút */
@media (max-width: 640px) {
  .campaign-hero-cta-pulse {
    display: none;
  }
}

.hero {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
  padding: 32px 0 28px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 32px;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.2rem;
  color: var(--color-navy);
}

.hero-sub {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.hero-note {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.hero-visual {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5FAFF 0%, #EAF5FF 100%);
  border-radius: 28px;
  padding: 20px;
}

.hero-doctor-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

/* Trust chips */
.hero-trust {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hero-trust li {
  display: flex;
}

/* Mỗi chip giờ là nút bấm có chức năng riêng */
.hero-trust-link {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hero-trust-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-blue-light);
}

.hero-trust-link:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.chip-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
}

.chip-icon img {
  display: block;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-blue-light);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  margin-bottom: 12px;
}

.card-icon img {
  display: block;
}

.card h3 {
  color: var(--color-navy);
  font-size: 1.05rem;
}

.card p {
  color: var(--color-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Vì sao khám sớm — danh sách mũi tên (chevron) dọc: số + banner mũi tên có mô tả */
.early-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 24px auto 0;
}

.early-step {
  position: relative;
  display: flex;
  align-items: center;
}

.early-step-num {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(16, 35, 84, 0.16);
  margin-right: -26px;
}

.early-step-body {
  flex: 1;
  min-width: 0;
  color: var(--color-white);
  padding: 15px 34px 15px 42px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  box-shadow: 0 8px 20px rgba(16, 35, 84, 0.12);
}

.early-step--1 .early-step-body { background: linear-gradient(135deg, #0F6CBD 0%, #1E3A8A 100%); }
.early-step--2 .early-step-body { background: linear-gradient(135deg, #FF7A1A 0%, #E85F00 100%); }
.early-step--3 .early-step-body { background: linear-gradient(135deg, #1E3A8A 0%, #0F6CBD 100%); }

/* Banner cam: viền huy hiệu đổi sang navy cho nổi (viền cam sẽ chìm trên nền cam) */
.early-step--2 .early-step-num { border-color: var(--color-navy); }

.early-step-body h3 {
  color: var(--color-white);
  font-size: 1.04rem;
  margin: 0 0 4px;
}

.early-step-body p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.42;
  margin: 0;
}

.why-us, .conditions, .early-check, .pre-info, .process, .feedback-section {
  padding: 56px 0;
}

.why-us {
  padding: 40px 0;
}

/* Section "Tình trạng" — dạng mô hình răng */
.condition-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.condition-model-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.condition-model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-blue-light);
}

.condition-model-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.condition-model-image img {
  width: 100%;
  max-width: 240px;
  min-width: 180px;
  height: 100%;
  object-fit: contain;
  display: block;
}

.condition-model-title {
  color: var(--color-navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.condition-model-desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.condition-model-cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white);
  background: var(--gradient-cta);
  padding: 7px 16px;
  border-radius: 999px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.condition-model-cta:hover {
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.32);
  transform: translateY(-1px);
}

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

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

.why-us h2 {
  margin-bottom: 20px;
}

/* Vì sao chọn Hân Đào — carousel ảnh 16:9 tự cuộn */
.why-carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.why-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.why-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.why-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.why-slide-media {
  aspect-ratio: 16 / 9;
  background: var(--color-bg);
}

.why-slide-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ánh sáng CHÉO lướt qua ảnh carousel "Vì sao chọn" — dạng gợn sóng, quét liên tục cho sinh động */
#why-carousel .why-slide-media {
  position: relative;
  overflow: hidden;
}

/* 2 dải sáng chéo lệch nhau -> gợn sóng ánh sáng. MẶC ĐỊNH nằm ngoài màn (chưa chạy);
   chỉ quét khi slide được kích hoạt (JS thêm class .is-shining) — chạy ĐÚNG 1 lần rồi dừng. */
#why-carousel .why-slide-media::before,
#why-carousel .why-slide-media::after {
  content: '';
  position: absolute;
  top: -25%;
  left: 0;
  height: 150%;
  pointer-events: none;
  z-index: 1;
  transform: translateX(-260%) skewX(-18deg);
}

/* Dải chính — sáng rõ */
#why-carousel .why-slide-media::after {
  width: 38%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.30) 30%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0.30) 70%,
    rgba(255, 255, 255, 0) 100%);
}

/* Dải phụ mờ hơn -> gợn sóng theo sau */
#why-carousel .why-slide-media::before {
  width: 20%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0) 100%);
}

/* Kích hoạt: quét 1 lần (dải phụ trễ 0.4s tạo gợn sóng theo sau) */
#why-carousel .why-slide-media.is-shining::after {
  animation: shineSweep 2.6s linear 1;
}
#why-carousel .why-slide-media.is-shining::before {
  animation: shineSweep 2.6s linear 0.4s 1;
}

@keyframes shineSweep {
  0% { transform: translateX(-260%) skewX(-18deg); }
  100% { transform: translateX(460%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  #why-carousel .why-slide-media.is-shining::before,
  #why-carousel .why-slide-media.is-shining::after { animation: none; }
}

/* Nhãn TRƯỚC / SAU trên ảnh carousel phản hồi (before–after) */
.feedback-carousel .why-slide-media {
  position: relative;
}

.ba-label {
  position: absolute;
  bottom: 10px;
  padding: 4px 15px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.ba-label--before {
  left: 10px;
  background: rgba(16, 35, 84, 0.88);
}

.ba-label--after {
  right: 10px;
  background: linear-gradient(135deg, #FF7A1A 0%, #E85F00 100%);
}

/* Chữ tách riêng dưới ảnh, không lồng vào ảnh */
.why-slide-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 20px 18px;
  text-align: center;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

/* Icon nằm ngang hàng với tiêu đề */
.why-slide-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.why-slide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.why-slide-caption h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin: 0;
  text-align: left;
}

.why-slide-caption p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

/* Lớp phủ chứa nút ‹ › — trùng đúng vùng ảnh 16:9 nên nút luôn giữa ảnh */
.why-nav-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 2;
}

.why-nav {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  box-shadow: 0 4px 12px rgba(16, 35, 84, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.why-nav:hover {
  background: var(--color-white);
  transform: scale(1.05);
}

.why-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 2px;
}

.why-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.why-dots button.is-active {
  width: 24px;
  border-radius: 5px;
  background: var(--color-orange);
}

.nowrap-phrase {
  white-space: nowrap;
}

.why-us-feedback-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.feedback-thumb {
  display: block;
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feedback-thumb:hover,
.feedback-thumb:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  outline: 2px solid var(--color-blue-light);
  outline-offset: 2px;
}

.feedback-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chỉ hiện 5 ảnh đầu, ẩn phần còn lại cho tới khi bấm "Xem thêm" */
.why-us-feedback-gallery:not(.is-expanded) .feedback-thumb:nth-child(n + 6) {
  display: none;
}

.feedback-gallery-toggle {
  display: block;
  margin: 20px auto 0;
  padding: 12px 22px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-gallery-toggle:hover,
.feedback-gallery-toggle:focus-visible {
  border-color: var(--color-blue-light);
  box-shadow: var(--shadow-card);
}

.conditions {
  background: var(--color-bg);
}

.process {
  background: var(--color-bg);
}

.pre-info {
  background: var(--color-bg);
}

/* Steps — timeline trực quan */
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.step-text {
  width: 100%;
}

.step-visual {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.step-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

.steps h3 {
  font-size: 1rem;
  margin-bottom: 0.2em;
  color: var(--color-navy);
}

.steps p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0 auto;
  max-width: 26ch;
}

/* Thông tin trước khi niềng răng — 1 khối card liền mạch */
.pre-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 44px;
}

.pre-info-card h2 {
  margin-bottom: 28px;
}

.pre-info-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 62%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.96rem;
  color: var(--color-text);
}

.info-list-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Infographic 4 mũi tên đánh số (thay danh sách gạch đầu dòng) — gọn, gradient nhiều màu */
.pinfo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 62%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pinfo-step {
  position: relative;
  display: flex;
  align-items: center;
}

.pinfo-num {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 5px 14px rgba(16, 35, 84, 0.16);
  margin-right: -22px;
}

.pinfo-body {
  flex: 1;
  min-width: 0;
  color: var(--color-white);
  padding: 12px 26px 12px 34px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  box-shadow: 0 7px 18px rgba(16, 35, 84, 0.12);
}

.pinfo-body p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.pinfo-step--1 .pinfo-body { background: linear-gradient(135deg, #0F6CBD 0%, #1E88C7 100%); }
.pinfo-step--2 .pinfo-body { background: linear-gradient(135deg, #12B3A6 0%, #0E8C93 100%); }
.pinfo-step--3 .pinfo-body { background: linear-gradient(135deg, #FF7A1A 0%, #E85F00 100%); }
.pinfo-step--4 .pinfo-body { background: linear-gradient(135deg, #1E3A8A 0%, #0F6CBD 100%); }

/* Huy hiệu số trên nền cam: viền cam sẽ chìm nên đổi sang navy */
.pinfo-step--3 .pinfo-num { border-color: var(--color-navy); }

/* Bố cục infographic: DESKTOP = tâm (tiêu đề) bên trái, 4 nhánh bên phải */
.pinfo-tree {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.pinfo-hub {
  flex: 0 0 38%;
}

.pinfo-hub-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.28;
  text-align: left;
}

.pinfo-tree .pinfo-steps {
  flex: 1 1 62%;
  margin: 0;
}

/* MOBILE: xếp dọc — tiêu đề trên, infographic dưới, không phân nhánh */
@media (max-width: 768px) {
  .pinfo-tree {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .pinfo-hub {
    flex: none;
  }

  .pinfo-hub-title {
    text-align: center;
  }

  .pinfo-tree .pinfo-steps {
    flex: none;
    width: 100%;
  }
}

.pre-info-visual {
  flex: 0 0 34%;
  background: linear-gradient(135deg, #F5FAFF 0%, #EAF5FF 100%);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.pre-info-visual img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
}

.pre-info-visual-caption {
  margin: 12px -20px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
  text-align: center;
}

/* Form */
.form-section {
  background: var(--color-bg);
  padding: 60px 0;
}

.form-section h2 {
  color: var(--color-navy);
}

.form-intro {
  text-align: center;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 auto 22px;
  max-width: 460px;
}

.form-intro strong {
  color: var(--color-orange);
  font-weight: 800;
}

/* Hộp nhắc ưu đãi "Mùa vàng" ngay trên form — thúc khách chốt (nội dung đúng banner, không khan hiếm giả) */
/* BANNER ưu đãi: nền xanh gradient + mẫu nữ chỉ tay + khay ưu đãi (dạng banner hoàn chỉnh) */
.promo-row {
  position: relative;
  display: flex;
  flex-direction: column; /* tiêu đề TRÊN — thân (mẫu + khay) DƯỚI */
  align-items: stretch;
  max-width: 600px;
  margin: 14px auto 18px;
  padding: 20px 12px 0; /* trên rộng để hộp quà 🎁 không bị mép banner che */
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #EAF4FF 0%, #CFE4FF 45%, #E7F2FF 100%);
  box-shadow: 0 8px 22px rgba(20, 70, 140, 0.16);
}

/* Vệt sáng quét ngang KHUNG XANH (sau mẫu nữ) cho khối banner nổi bật, lặp lại */
.promo-row::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46%;
  z-index: 0; /* trên nền xanh, DƯỚI mẫu nữ + khay + tiêu đề */
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-16deg);
  animation: promoBoxShine 4.2s ease-in-out infinite;
}

@keyframes promoBoxShine {
  0% { transform: translateX(-180%) skewX(-16deg); }
  45%, 100% { transform: translateX(360%) skewX(-16deg); }
}

/* Tiêu đề đặt HẲN lên đầu banner, canh giữa, 2 dòng, chạy typewriter */
.promo-row .form-promo__title {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  white-space: pre-line; /* giữ dấu xuống dòng: "Ưu đãi" / "Mùa vàng chỉnh nha" */
  line-height: 1.2;
  min-height: 2.4em; /* chừa chỗ 2 dòng, tránh nhảy layout khi gõ */
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 1.02rem;
}

/* Thân banner: mẫu nữ (trái) + khay ưu đãi (phải) */
.promo-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end; /* mẫu đứng chạm sóng */
  justify-content: center;
  gap: 0;
}

.promo-model {
  position: relative;
  z-index: 2; /* mẫu đứng TRÊN khay: tay đè lên khay vàng */
  flex: 0 0 auto;
  width: 50%;
  max-width: 182px;
  margin-right: -10px; /* kéo khay lại gần: tay mẫu nữ đè lên mép khay */
  align-self: flex-end; /* mẫu là phần CAO NHẤT → đầu chạm mép trên, không trống */
  pointer-events: none;
}

.promo-row .form-promo {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;   /* khay CAO BẰNG mẫu → không còn khoảng trống trên đầu */
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
  padding: 10px 10px 10px 14px; /* trái chừa cho tay đè lên */
  background: linear-gradient(135deg, #FFF8E4 0%, #FFE6AC 100%);
}

/* Các ô ưu đãi xếp CỘT, rộng đều bằng nhau, TRẢI ĐỀU kín chiều cao khay */
.promo-row .form-promo__deals {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between; /* 5 ô dàn đều từ trên xuống, kín khay */
  gap: 6px;
}
.promo-row .form-promo__deals li {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  padding: 4px 6px;
  line-height: 1.2;
  white-space: nowrap; /* mỗi ô GỌN 1 dòng để khay thấp hơn mẫu, không bị trống đầu */
}

.form-promo {
  position: relative; /* để đặt hộp quà nhô ra góc */
  max-width: 540px;
  margin: 14px auto 18px; /* chừa chỗ cho quà nhô lên khỏi mép trên */
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FFF6DC 0%, #FFE1A0 100%);
  border: 1px solid #F0C04B;
  box-shadow: 0 6px 18px rgba(230, 160, 40, 0.22);
}

/* Tiêu đề lên hàng đầu, canh giữa (quà đã dời ra góc nên tiết kiệm 1 khoảng) */
.form-promo__head {
  text-align: center;
  margin-bottom: 10px;
}

/* Hộp quà 🎁 nằm ở GÓC TRÊN-TRÁI của khung banner; tiêu đề canh giữa khung riêng */
.promo-row .form-promo__icon {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 4;
  font-size: 1.7rem;
  line-height: 1;
  transform-origin: top left; /* bung ra từ góc */
  animation: giftBurst 2.4s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(180, 120, 20, 0.35));
}

@keyframes giftBurst {
  0%, 55%, 100% { transform: scale(1) rotate(0deg); }
  62% { transform: scale(1.3) rotate(-10deg); }
  70% { transform: scale(1.12) rotate(9deg); }
  78% { transform: scale(1.24) rotate(-6deg); }
  86% { transform: scale(1.08) rotate(4deg); }
}

/* Tiêu đề ĐÁNH MÁY (typewriter) — gõ ra từng chữ, lặp lại ngẫu nhiên (xử lý ở script.js) */
.form-promo__title {
  display: block;
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 1.25em; /* giữ chỗ khi đang gõ, tránh nhảy layout */
}

.form-promo__title.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--color-orange);
  animation: promoCaret 0.7s steps(1) infinite;
}

@keyframes promoCaret {
  50% { opacity: 0; }
}

/* Danh sách ưu đãi dạng thẻ pill — bọc dòng, canh giữa, gọn, tối ưu mobile */
.form-promo__deals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.form-promo__deals li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #EAB94A;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a4b00;
  line-height: 1.35;
  animation: pillGlow 6s ease-in-out infinite;
}

/* Light chạy LẦN LƯỢT qua từng ưu đãi — mỗi ô sáng lệch nhau 1,2s */
.form-promo__deals li:nth-child(1) { animation-delay: 0s; }
.form-promo__deals li:nth-child(2) { animation-delay: 1.2s; }
.form-promo__deals li:nth-child(3) { animation-delay: 2.4s; }
.form-promo__deals li:nth-child(4) { animation-delay: 3.6s; }
.form-promo__deals li:nth-child(5) { animation-delay: 4.8s; }

@keyframes pillGlow {
  0%, 18%, 100% {
    background: rgba(255, 255, 255, 0.72);
    border-color: #EAB94A;
    box-shadow: none;
    transform: translateY(0) scale(1);
  }
  9% {
    background: #FFD152;
    border-color: #E67300;
    box-shadow: 0 6px 16px rgba(230, 95, 0, 0.42);
    transform: translateY(-3px) scale(1.06);
  }
}

.form-promo__deals b {
  color: #C0392B;
  font-weight: 800;
}

/* Tôn trọng "giảm chuyển động": tắt mọi hoạt ảnh của hộp ưu đãi */
@media (prefers-reduced-motion: reduce) {
  .promo-row::before,
  .form-promo__icon,
  .form-promo__deals li,
  .form-promo__title.is-typing::after {
    animation: none;
  }
  .promo-row::before { display: none; }
}

/* Siết gọn form đăng ký cuối trang cho khỏi dài lê thê (đồng bộ với popup) */
#lead-form .form-group {
  margin-bottom: 12px;
}

#lead-form .error-message:empty {
  display: none;
}

.form-privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  max-width: 600px;
  margin: 0 auto 24px;
  text-wrap: balance;
}

#lead-form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
  color: var(--color-text);
  resize: vertical;
}

.form-group textarea {
  min-height: 90px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.15);
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--color-error);
}

.form-group.is-prefilled select {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.15);
  animation: prefilledPulse 1.6s ease;
}

@keyframes prefilledPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 108, 189, 0.35); }
  100% { box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.15); }
}

@media (prefers-reduced-motion: reduce) {
  .form-group.is-prefilled select {
    animation: none;
  }
}

.error-message {
  display: block;
  color: var(--color-error);
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-top: 4px;
}

.form-success {
  margin-top: 16px;
  padding: 14px;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--gradient-blue);
  color: var(--color-white);
  padding: 44px 0;
  background-image: url("assets/footer-pattern.svg"), var(--gradient-blue);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, 100% 100%;
}

.footer-icon {
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--color-cyan-pale);
  flex: 0 0 auto;
}

.footer-locations h4 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-locations a {
  display: inline-flex;
  align-items: center;
}

.footer-hours {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.footer-locations a {
  color: var(--color-cyan-pale);
  text-decoration: underline;
  font-weight: 600;
}

.footer-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
}

.footer-locations h4 {
  margin-bottom: 4px;
}

.footer-locations p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-hours,
.footer-website {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-website a {
  color: var(--color-cyan-pale);
  text-decoration: underline;
  font-weight: 600;
}

.site-footer .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.footer-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
  max-width: 640px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    gap: 20px;
  }

  /* Quan trọng: reset flex-basis vì ở chế độ column, flex-basis (400px/320px,
     vốn dùng làm chiều RỘNG ưu tiên khi xếp hàng ngang trên desktop) bị trình
     duyệt hiểu thành chiều CAO tối thiểu — gây khoảng trắng ảo rất lớn dưới
     mỗi khối trên mobile. */
  .hero-text,
  .hero-visual {
    flex-basis: auto;
  }

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
    padding: 14px;
  }

  .hero-doctor-photo {
    max-height: 260px;
  }
}

@media (max-width: 680px) {
  .main-nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 700px) {
  .steps::before {
    display: none;
  }

  .steps {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  h2 {
    font-size: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  #lead-form {
    padding: 22px;
    border-radius: var(--radius-md);
  }

  .btn {
    font-size: 0.98rem;
  }

  .footer-locations h4,
  .footer-hours {
    flex-wrap: wrap;
  }
}

/* ==================================================
   MOBILE-FIRST SPACING OVERHAUL (v12)
   Gộp toàn bộ tinh chỉnh khoảng cách/kích thước cho mobile
   vào 2 breakpoint chính, tổ chức theo từng section để dễ
   bảo trì. Đặt cuối file để có độ ưu tiên cascade cao nhất,
   không cần xoá các breakpoint cột (900/860/700/680/560px)
   phía trên — những breakpoint đó chỉ đổi số cột, vẫn giữ
   nguyên logic hoạt động.
   ================================================== */

@media (max-width: 768px) {
  /* Nhịp độ section chung — khoảng cách trên/dưới ĐỀU NHAU cho gọn, chia vùng rõ */
  .why-us,
  .conditions,
  .early-check,
  .pre-info,
  .process,
  .form-section,
  .feedback-section {
    padding: 24px 0; /* nhịp dọc đồng đều giữa các khối (mobile) */
  }

  .why-us h2 {
    margin-bottom: 16px;
  }

  h2 {
    font-size: 1.65rem;
    margin-bottom: 0.4em;
  }

  .section-intro {
    margin-bottom: 20px;
  }

  /* Campaign banner — không để cách header/hero quá xa */
  .campaign-hero {
    padding: 12px 12px 8px;
  }

  /* Hero */
  .hero {
    padding: 24px 0; /* đồng đều với các khối khác */
  }

  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-sub {
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .hero-note {
    margin-top: 8px;
  }

  .hero-trust {
    margin-top: 16px;
    gap: 10px;
  }

  .hero-trust-link {
    padding: 12px 14px;
  }

  /* Section Tình trạng */
  .condition-models {
    gap: 16px;
  }

  .condition-model-card {
    padding: 16px;
  }

  .condition-model-image {
    aspect-ratio: auto;
    height: 150px;
    padding: 8px;
    margin-bottom: 10px;
  }

  .condition-model-image img {
    min-width: 0;
    max-width: 100%;
    width: auto;
    height: 100%;
  }

  .condition-model-desc {
    margin-bottom: 10px;
  }

  .condition-model-cta {
    padding: 12px 16px;
    font-size: 0.8rem;
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Vì sao khách hàng chọn Hân Đào — carousel trên điện thoại */
  .why-slide-caption {
    padding: 14px 16px 16px;
  }

  .why-slide-caption h3 {
    font-size: 1.02rem;
  }

  .why-slide-caption p {
    font-size: 0.86rem;
  }

  .why-nav {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }

  /* Phản hồi khách hàng */
  .why-us-feedback-gallery {
    gap: 10px;
  }

  .feedback-thumb {
    flex-basis: 100px;
    width: 100px;
  }

  /* Quy trình — 2 cột trên điện thoại, 4 bước gọn 2 hàng vừa 1 khung hình */
  .steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
    row-gap: 12px;
  }

  /* Bọc mỗi bước thành card viền cho gọn, đồng bộ với section "Tình trạng" */
  .steps li {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 12px 16px;
    justify-content: flex-start;
  }

  .steps p {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .step-visual {
    margin-bottom: 10px;
  }

  /* Thông tin trước khi niềng răng — 1 cột, ảnh trước danh sách */
  .pre-info-card {
    padding: 26px 22px;
  }

  .pre-info-card h2 {
    margin-bottom: 20px;
  }

  .pre-info-inner {
    flex-direction: column;
    gap: 20px;
  }

  .info-list {
    order: 2;
    gap: 10px;
  }

  .info-list li {
    padding: 12px 14px;
  }

  .pre-info-visual {
    order: 1;
    max-width: 280px;
    margin: 0 auto;
    padding: 16px;
  }

  .pre-info-visual img {
    max-width: 180px;
  }

  .pre-info-visual-caption {
    margin: 10px -16px 0;
    font-size: 0.68rem;
  }

  /* Form */
  #lead-form {
    padding: 20px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-privacy-note {
    margin-bottom: 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 44px;
  }

  .form-group textarea {
    min-height: 90px;
  }

  #lead-form button[type="submit"] {
    min-height: 48px;
  }

  /* Footer */
  .site-footer {
    padding: 32px 0;
  }

  .footer-inner {
    gap: 16px;
    /* Mobile: căn trái phần thông tin cho dễ đọc, gọn gàng */
    align-items: stretch;
    text-align: left;
  }

  .footer-brand {
    text-align: center; /* tên thương hiệu giữ ở giữa */
  }

  .footer-locations {
    gap: 14px;
  }

  .footer-locations h4 {
    justify-content: flex-start; /* icon + tên cơ sở căn trái */
  }

  .footer-hours {
    display: block; /* bỏ flex-center: icon đồng hồ chạy inline, thẳng lề trái */
  }

  .site-footer .btn-outline {
    align-self: center; /* nút CTA giữ ở giữa, không kéo tràn */
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;
  }

  /* Tiêu đề trong pre-info-card nằm trong khung có padding 16px 2 bên -> nới ra
     để chữ tự-co có thêm chỗ, tiêu đề dài đỡ bị thu quá nhỏ. */
  .pre-info-card > h2 {
    margin-left: -14px;
    margin-right: -14px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.18;
  }

  .hero-text .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-inner {
    gap: 16px;
  }

  .hero-visual {
    max-width: 280px;
    padding: 12px;
  }

  .hero-trust {
    margin-top: 14px;
    gap: 8px;
  }

  .why-us {
    padding: 24px 0;
  }

  .campaign-hero {
    padding: 10px 12px 6px;
  }

  .card {
    padding: 16px;
  }

  /* Section Tình trạng — nén gọn 2 cột, gom tiêu đề + 6 card vừa 1 khung hình */
  .conditions {
    padding: 24px 0;
  }

  .conditions h2 {
    margin-bottom: 8px;
  }

  .conditions .section-intro {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .condition-models {
    gap: 8px;
  }

  .condition-model-card {
    padding: 8px 8px 10px;
  }

  .condition-model-image {
    height: 84px;
    padding: 5px;
    margin-bottom: 6px;
  }

  .condition-model-title {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .condition-model-desc {
    font-size: 0.76rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .condition-model-cta {
    padding: 8px 12px;
    font-size: 0.76rem;
    min-height: 38px;
  }

  .pre-info-card {
    padding: 20px 16px;
  }

  .info-list li {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .pre-info-visual {
    max-width: 280px;
    padding: 14px;
  }

  .pre-info-visual img {
    max-width: 160px;
  }

  .pre-info-visual-caption {
    margin: 10px -14px 0;
    font-size: 0.68rem;
  }

  .footer-locations {
    gap: 12px;
  }

  .site-footer {
    padding: 28px 0;
  }
}

/* ==================================================
   NÚT HỖ TRỢ CHUYỂN ĐỔI (v14)
   Back-to-top, floating contact buttons, popup đăng ký.
   Toàn bộ chỉ xử lý giao diện phía client — không gọi API.
   ================================================== */

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 204px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.15s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.back-to-top.is-near-form {
  opacity: 0.35;
}

/* Floating contact buttons */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 55;
  transition: opacity 0.2s ease;
}

.floating-contact.is-near-form {
  opacity: 0.35;
}

.floating-contact__btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-contact__btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-soft);
}

.floating-contact__btn--fanpage,
.floating-contact__btn--messenger {
  background: var(--gradient-blue);
}

.floating-contact__btn--hotline {
  background: var(--gradient-cta);
}

.floating-contact__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .floating-contact__btn:hover .floating-contact__tooltip {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .floating-contact {
    flex-direction: row;
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .floating-contact__btn {
    width: 44px;
    height: 44px;
  }

  .floating-contact__tooltip {
    display: none;
  }

  .back-to-top {
    right: 12px;
    bottom: 66px;
    width: 40px;
    height: 40px;
  }
}

/* Popup đăng ký tư vấn */
.lead-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.lead-popup.is-open {
  display: flex;
}

.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 38, 0.45);
}

.lead-popup__card {
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
  text-align: left;
  animation: leadPopupIn 0.25s ease;
}

/* Banner quảng cáo trên đầu popup */
.lead-popup__banner {
  display: block;
}

.lead-popup__banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
}

.lead-popup__form-wrap {
  padding: 14px 20px 18px;
}

/* Form popup siết gọn để banner vuông + form vừa 1 màn */
#popup-lead-form .form-group {
  margin-bottom: 10px;
}

/* Ô báo lỗi trống thì không chiếm chỗ (chỉ hiện khi thật sự có lỗi) -> các ô sát nhau */
#popup-lead-form .error-message:empty {
  display: none;
}

#popup-lead-form input,
#popup-lead-form select {
  padding: 0.55em 0.8em;
  font-size: 0.92rem;
}

#popup-lead-form .btn-full {
  margin-top: 2px;
  min-height: 46px;
}

.lead-popup__form-wrap h3 {
  color: var(--color-navy);
  font-size: 1.14rem;
  text-align: center;
  margin: 0 0 4px;
  padding: 0;
}

.lead-popup__sub {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: center;
  margin: 2px 0 14px;
}

.lead-popup__sub strong {
  color: var(--color-orange);
  font-weight: 800;
}

.lead-popup__banner img {
  max-height: 342px;
  object-fit: cover;
  object-position: center top;
}

@keyframes leadPopupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lead-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 35, 84, 0.25);
}

.lead-popup__card h3 {
  color: var(--color-navy);
  font-size: 1.25rem;
  margin-bottom: 10px;
  padding-right: 20px;
}

.lead-popup__card p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.lead-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-popup__cta {
  min-height: 48px;
}

.lead-popup__later {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
}

.lead-popup__later:hover {
  color: var(--color-navy);
}

@media (max-width: 480px) {
  .lead-popup__card {
    padding: 0;
  }

  .lead-popup__form-wrap {
    padding: 12px 16px 14px;
  }
}

/* Lightbox phóng to ảnh phản hồi khách hàng */
.feedback-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  align-items: center;
  justify-content: center;
}

.feedback-lightbox.is-open {
  display: flex;
}

.feedback-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 38, 0.78);
}

.feedback-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: leadPopupIn 0.2s ease;
}

.feedback-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background: var(--color-bg);
}

.feedback-lightbox__caption {
  margin: 12px 0 0;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.feedback-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.feedback-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.feedback-lightbox__nav--prev {
  left: 16px;
}

.feedback-lightbox__nav--next {
  right: 16px;
}

.feedback-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 600px) {
  .feedback-lightbox__nav--prev {
    left: 8px;
  }

  .feedback-lightbox__nav--next {
    right: 8px;
  }

  .feedback-lightbox__close {
    top: 10px;
    right: 10px;
  }
}

/* Popup social proof — thông báo khách vừa đăng ký (góc dưới-trái) */
.social-proof {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, calc(100vw - 32px));
  padding: 12px 40px 12px 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 35, 84, 0.13);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.social-proof[hidden] {
  display: none;
}

.social-proof.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.social-proof__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.social-proof__body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.social-proof__name {
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.social-proof__action {
  color: var(--color-text);
  font-size: 0.82rem;
}

.social-proof__meta {
  color: var(--color-muted);
  font-size: 0.74rem;
  margin-top: 2px;
}

.social-proof__close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}

.social-proof__close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .social-proof {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* Mobile: đặt phía trên cụm nút liên hệ nổi để không đè lên nhau */
@media (max-width: 560px) {
  .social-proof {
    left: 10px;
    bottom: 84px;
    width: min(300px, calc(100vw - 20px));
  }
}

/* ==================================================
   Cuộn mượt cho neo trong trang + chừa khoảng dưới header dính
   ================================================== */
html {
  scroll-behavior: smooth;
}

main section[id] {
  scroll-margin-top: 78px;
}

/* ==================================================
   POPUP THÔNG TIN 3 CƠ SỞ (mở từ chip "3 cơ sở" ở hero)
   ================================================== */
.info-popup {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.info-popup.is-open {
  display: flex;
}

.info-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 44, 0.55);
  backdrop-filter: blur(2px);
}

.info-popup__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow: hidden; /* card KHÔNG tự cuộn — chỉ phần .info-popup__scroll cuộn, giữ nút X luôn hiện */
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 22, 44, 0.32);
  animation: leadPopupIn 0.28s ease;
}

/* Vùng nội dung cuộn được; nút X nằm NGOÀI vùng này nên luôn cố định góc trên */
.info-popup__scroll {
  overflow-y: auto;
  padding: 26px 22px 22px;
}

.info-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4; /* luôn nổi trên nội dung đang cuộn */
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 22, 44, 0.18);
  transition: background 0.15s ease;
}

.info-popup__close:hover {
  background: var(--color-border);
}

.info-popup__title {
  margin: 0 30px 2px 0;
  color: var(--color-navy);
  font-size: 1.2rem;
}

.info-popup__sub {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.clinic-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clinic-list li {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: 12px;
  padding: 12px 14px;
}

.clinic-badge {
  display: inline-block;
  background: var(--gradient-cta, var(--color-orange));
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.clinic-name {
  display: block;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.clinic-addr {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.clinic-addr svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--color-blue);
}

.clinic-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.clinic-tel:hover {
  text-decoration: underline;
}

.info-popup__cta {
  margin-top: 2px;
}

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

/* Popup "Tìm hiểu về Chỉnh nha" — 3 cột nội dung */
.learn-popup__card {
  max-width: 880px;
}

.learn-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 4px 0 18px;
}

.learn-col {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-blue);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: var(--color-bg);
}

.learn-col--1 { border-top-color: var(--color-blue); }
.learn-col--2 { border-top-color: #14B8A6; }
.learn-col--3 { border-top-color: var(--color-orange); }

.learn-col h4 {
  margin: 0 0 10px;
  color: var(--color-orange);
  font-size: 0.98rem;
  line-height: 1.3;
}

.learn-col ul,
.learn-col ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.learn-col li {
  color: var(--color-text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.learn-col b {
  color: var(--color-navy);
}

@media (max-width: 768px) {
  .learn-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Banner ưu đãi CHẠM ĐƯỢC để mở popup chi tiết */
.promo-row {
  cursor: pointer;
}
.promo-row:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}
.promo-row:active {
  transform: scale(0.992);
}

.promo-hint {
  margin: -6px auto 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-orange);
  font-weight: 600;
}

/* Popup chi tiết chương trình ưu đãi */
.offer-popup__card {
  max-width: 560px;
}
.offer-headline {
  color: var(--color-orange);
  text-align: center;
  margin: 0 24px 4px 0;
  font-size: 1.28rem;
  line-height: 1.25;
}
.offer-popup .info-popup__sub {
  text-align: center;
}
.offer-block {
  margin-bottom: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
}
.offer-block h4 {
  margin: 0 0 10px;
  color: var(--color-navy);
  font-size: 1rem;
  line-height: 1.3;
}
.offer-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.offer-list li {
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.offer-list b {
  color: #C0392B;
  font-weight: 800;
}
.offer-block--grow {
  border-color: #F0C04B;
  background: linear-gradient(135deg, #FFF8E4 0%, #FFEFC4 100%);
}
.offer-block--grow p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #7a4b00;
}
