/* -------------------------------------------------------------
   MIC Care Landing Page - Stylesheet
   Design System: Bright theme, Warm and professional accents, Crimson/Rose Red CTA
   ------------------------------------------------------------- */

/* Custom properties / Design tokens */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  
  /* Brand colors - Customized to MIC Green */
  --color-primary: #136232;       /* MIC Green */
  --color-primary-dark: #0d4824;  /* Dark MIC Green */
  --color-primary-light: #e7f6ec; /* Very soft light green tint */
  
  --color-success: #10b981;       /* Friendly emerald green */
  --color-success-light: #ecfdf5;
  
  /* CTA Red - Premium deep ruby crimson */
  --color-cta: #e11d48;           /* Rose 600 */
  --color-cta-hover: #be123c;     /* Rose 700 */
  --color-cta-light: #fff1f2;
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  --grad-card-hover: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(231,246,236,0.8) 100%);
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout & Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Misc */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

p {
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Helpers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.highlight {
  color: var(--color-primary);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Badges & Accents */
.badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 30px;
}

.note-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.safety-note p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Section Common Stylings */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
  text-align: center;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 40px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  min-height: 54px;
}

.btn-red {
  background-color: var(--color-cta);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.btn-red:hover {
  background-color: var(--color-cta-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

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

.btn-outline {
  background-color: transparent;
  border-color: #cbd5e1;
  color: var(--color-text);
}

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

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Navigation Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* 1. Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(19, 98, 50, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-microcopy {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

.hero-image-container {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
}

.floating-badge {
  position: absolute;
  bottom: 30px;
  left: -40px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-icon {
  font-size: 2rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #0f172a;
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* 2. Mở Vấn Đề Section */
.problem-section {
  background-color: var(--color-bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.rounded-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.problem-content .section-title {
  margin-bottom: 24px;
}

.section-text {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.problem-quote {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-cta);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 32px;
}

.problem-quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  font-style: italic;
  line-height: 1.5;
}

/* 3. MIC Care Phù Hợp Với Gia Đình Nào? */
.suitability-section {
  background-color: var(--color-bg-alt);
}

.suitability-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.suit-card {
  background-color: var(--color-bg-card);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
}

.suit-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.suit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.suit-card:hover::after {
  background-color: var(--color-primary);
}

.card-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  color: rgba(19, 98, 50, 0.35);
  line-height: 1;
  margin-bottom: 20px;
}

.suit-card p {
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

/* 4. Quyền Lợi Nên Quan Tâm (FAB Structure) */
.benefits-section {
  background-color: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: var(--color-bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary-light);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-header .benefit-icon-wrapper {
  margin-bottom: 0;
  flex-shrink: 0;
}

.benefit-header h3 {
  margin-bottom: 0;
  line-height: 1.25;
}

.benefit-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.benefit-icon {
  width: 30px;
  height: 30px;
}

.benefit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.fab-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.fab-f { background-color: #f1f5f9; color: #475569; }
.fab-a { background-color: var(--color-primary-light); color: var(--color-primary); margin-top: 12px; }
.fab-b { background-color: var(--color-cta-light); color: var(--color-cta); margin-top: 12px; }

.fab-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.highlight-benefit {
  font-weight: 600;
  color: #0f172a;
}

/* 5 Chương Trình Bảo Hiểm Chi Tiết */
.programs-section {
  background-color: var(--color-bg-alt);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.program-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary-light);
}

.program-card.popular {
  border: 2.5px solid var(--color-cta);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  z-index: 5;
}

.program-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: var(--shadow-premium);
}

.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-cta);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.prog-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.program-card.popular .prog-badge {
  color: var(--color-cta);
}

.prog-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.prog-limit {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.prog-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.prog-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.prog-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: left;
  flex-grow: 1;
}

.prog-features li {
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.prog-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.prog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: auto;
  text-align: center;
}

.program-card.popular .prog-tag {
  color: #ffffff;
  background-color: var(--color-cta);
}

/* 5. Hiểu Đúng Trước Khi Mua */
.understand-section {
  background-color: var(--color-bg);
}

.understand-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

/* Question Accordion for Section 5 */
.question-accordion {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.q-acc-item {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.q-acc-item:hover {
  border-color: #cbd5e1;
}

.q-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  gap: 16px;
}

.q-num {
  width: 28px;
  height: 28px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.q-acc-trigger[aria-expanded="true"] .q-num {
  background-color: var(--color-primary);
  color: #ffffff;
}

.q-title {
  flex-grow: 1;
  line-height: 1.4;
}

.q-acc-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.q-acc-trigger[aria-expanded="true"] .q-acc-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.q-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.q-acc-content-inner {
  padding: 0 24px 20px 68px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.waiting-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waiting-list li {
  position: relative;
  padding-left: 16px;
}

.waiting-list li::before {
  content: •;
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.understand-footer-text {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}

.understand-footer-text p {
  font-weight: 600;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.5;
}

.understand-sticky-card {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.sticky-card-inner {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.sticky-card-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.sticky-card-inner p {
  font-size: 1rem;
  margin-bottom: 28px;
}

/* 6. Có BHYT Rồi Có Cần Thêm Không? */
.bhyt-section {
  background-color: var(--color-bg-alt);
}

.bhyt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.bhyt-content .section-title {
  margin-bottom: 24px;
}

.bhyt-visual {
  display: flex;
  justify-content: center;
}

.comparison-visual {
  position: relative;
  width: 100%;
}

/* 7. Chọn Gói Theo Nhu Cầu Của Bé */
.packages-section {
  background-color: var(--color-bg);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.package-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.pkg-header {
  background-color: var(--color-primary-light);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(19, 98, 80, 0.1);
}

.pkg-header h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
}

.pkg-body {
  padding: 24px;
  text-align: center;
}

.pkg-body p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  min-height: 48px;
}

.pkg-focus {
  font-size: 0.95rem;
  background-color: var(--color-bg-alt);
  padding: 12px;
  border-radius: var(--radius-sm);
  color: #0f172a;
}

.packages-cta {
  text-align: center;
}

/* 8. Quy Trình Tư Vấn */
.process-section {
  background-color: var(--color-bg-alt);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cta-light);
  color: var(--color-cta);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  padding: 0 10px;
}

/* 9. Form Lead Section */
.lead-form-section {
  background-color: var(--color-primary-light);
  background-image: radial-gradient(circle at 10% 20%, rgba(19, 98, 50, 0.05) 0%, transparent 40%);
  padding: 90px 0;
}

.form-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-premium);
  max-width: 800px;
  margin: 0 auto;
}

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

.form-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.form-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.form-group label .required {
  color: var(--color-cta);
}

.form-group label .optional {
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  color: var(--color-text);
  min-height: 48px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

/* Form inputs hover & focus states */
.form-group input:hover, 
.form-group select:hover, 
.form-group textarea:hover {
  border-color: var(--color-text-muted);
}

.form-group input:focus-visible, 
.form-group select:focus-visible, 
.form-group textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(19, 98, 50, 0.15);
}

/* User feedback validation */
.form-group input:invalid:user-invalid,
.form-group select:invalid:user-invalid {
  border-color: var(--color-cta);
  background-color: #fff8f8;
}

.form-group input:invalid:user-invalid:focus-visible,
.form-group select:invalid:user-invalid:focus-visible {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.error-msg {
  font-size: 0.85rem;
  color: var(--color-cta);
  display: none;
  font-weight: 500;
}

.error-msg.active {
  display: block;
  margin-top: 2px;
}

/* Custom Radios for main need */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.custom-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: #ffffff;
  transition: all var(--transition-fast);
  min-height: 54px;
}

.custom-radio:hover {
  border-color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-btn {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.custom-radio input[type="radio"]:checked + .radio-btn {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.custom-radio input[type="radio"]:checked + .radio-btn::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
}

.custom-radio input[type="radio"]:checked ~ .radio-label {
  color: #0f172a;
  font-weight: 600;
}

.custom-radio input[type="radio"]:focus-visible + .radio-btn {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.custom-radio:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.radio-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.form-submit-container {
  margin-top: 16px;
  text-align: center;
}

.form-microcopy {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 16px;
}

/* 10. FAQ Accordion Section */
.faq-section {
  background-color: var(--color-bg);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}

.faq-trigger:focus-visible {
  background-color: rgba(19, 98, 50, 0.05);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content-inner {
  padding: 0 30px 24px 30px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* 11. Final CTA Section */
.final-cta-section {
  background-color: var(--color-bg-alt);
  padding-bottom: 100px;
}

.final-cta-card {
  background-color: #0f172a;
  background-image: radial-gradient(circle at 90% 10%, rgba(225, 29, 72, 0.15) 0%, transparent 50%), 
                    radial-gradient(circle at 10% 90%, rgba(19, 98, 50, 0.1) 0%, transparent 50%);
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.final-cta-card h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.final-cta-card p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

/* Main Footer */
.main-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 60px 0 40px 0;
}

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

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo-row {
  margin-bottom: 8px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.95rem;
  max-width: 500px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px 0;
}

.footer-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.footer-link-btn:hover {
  color: var(--color-primary);
}

.footer-divider {
  color: var(--color-text-light);
}

.footer-bottom {
  border-top: 1px solid #cbd5e1;
  padding-top: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Modals & Popups (Standard popup styling with glassmorphism overlays) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.modal-overlay.active .modal-container {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modal-slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  padding: 30px 40px 20px 40px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-body {
  padding: 30px 40px;
  overflow-y: auto;
}

.modal-q-item {
  margin-bottom: 24px;
}

.modal-q-item:last-child {
  margin-bottom: 0;
}

.modal-q-item h5 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-q-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.modal-footer {
  padding: 20px 40px 30px 40px;
  border-top: 1px solid #f1f5f9;
}

/* Success Modal specific styles */
.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.success-icon {
  width: 36px;
  height: 36px;
}

.success-desc {
  font-size: 1rem;
  margin: 12px 0 28px 0;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .floating-badge {
    animation: none !important;
  }
}

/* -------------------------------------------------------------
   Scroll-Driven Animations (Progressive Enhancement)
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up-anim {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fade-in-left-anim {
      from {
        opacity: 0;
        transform: translateX(-50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes fade-in-right-anim {
      from {
        opacity: 0;
        transform: translateX(50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    [data-animate="fade-in-up"] {
      animation: fade-in-up-anim auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    [data-animate="fade-in-left"] {
      animation: fade-in-left-anim auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    [data-animate="fade-in-right"] {
      animation: fade-in-right-anim auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* JavaScript class fallback for non-supporting browsers */
.no-scroll-timeline [data-animate] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.no-scroll-timeline [data-animate="fade-in-up"] {
  transform: translateY(30px);
}

.no-scroll-timeline [data-animate="fade-in-left"] {
  transform: translateX(-30px);
}

.no-scroll-timeline [data-animate="fade-in-right"] {
  transform: translateX(30px);
}

.no-scroll-timeline [data-animate].animate-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* -------------------------------------------------------------
   Responsive Media Queries
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .program-card.popular {
    transform: none;
  }
  .program-card.popular:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 1024px) {
  .hero-headline {
    font-size: 2.75rem;
  }
  
  .hero-container {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  section {
    padding: 60px 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .trust-microcopy {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .floating-badge {
    left: 10px;
    bottom: 10px;
  }
  
  .problem-grid,
  .bhyt-grid,
  .understand-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .understand-layout {
    display: flex;
    flex-direction: column;
  }
  
  .understand-sticky-card {
    position: static;
    width: 100%;
  }
  
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 70px;
  }
  
  .main-header {
    height: var(--header-height);
  }
  
  .nav-links {
    display: none; /* Hide header links on mobile to save space */
  }
  
  .main-header .btn {
    width: auto;
    font-size: 0.85rem;
    padding: 8px 16px;
    white-space: nowrap;
  }
  
  .logo-img {
    height: 34px;
  }
  
  .hero-headline {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%; /* Full width buttons on small screens */
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .q-acc-trigger {
    padding: 16px;
    font-size: 0.95rem;
  }
  
  .q-acc-content-inner {
    padding: 0 16px 16px 16px;
  }
  
  .form-container {
    padding: 24px;
  }
  
  .faq-trigger {
    padding: 20px;
  }
  
  .faq-content-inner {
    padding: 0 20px 20px 20px;
  }
  
  .final-cta-card {
    padding: 40px 24px;
  }
  
  .final-cta-card h2 {
    font-size: 1.8rem;
  }
  
  .modal-container {
    padding: 10px;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 20px;
  }
}

@media (max-width: 400px) {
  .main-header .btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
  .logo-img {
    height: 28px;
  }
}
