/* ==========================================================================
   CGM Care Clinic - Modern Healthcare Theme
   Palette: Cool Light Tone (Amethyst, Lilac, Rose Quartz, Platinum Pearl)
   Strictly NO Blue, NO Green.
   ========================================================================== */

:root {
  /* Brand Primary & Accents (Amethyst & Cool Violet Spectrum) */
  --primary: #6c47ff;
  --primary-hover: #5935e6;
  --primary-dark: #4b2ac9;
  --primary-light: #ece7ff;
  --primary-soft: #f4f0ff;
  
  /* Secondary Accent (Cool Lilac & Orchid) */
  --secondary: #8f75e8;
  --secondary-light: #f1ecfc;
  
  /* Health Vital / Alert Accent (Rose Quartz & Coral Blossom) */
  --accent-rose: #f75576;
  --accent-rose-hover: #e04464;
  --accent-rose-soft: #fff0f3;
  --accent-amber: #f59e0b;
  --accent-amber-soft: #fef7ec;
  
  /* Cool Light Backgrounds & Neutrals */
  --bg-page: #f9f8fd;
  --bg-surface: #ffffff;
  --bg-surface-tint: #f4f2fa;
  --bg-dark: #19142b;
  --bg-dark-card: #251e3d;
  
  /* Typography Colors */
  --text-heading: #1a152e;
  --text-body: #4c4663;
  --text-muted: #7d7794;
  --text-light: #ffffff;
  
  /* Borders & Dividers */
  --border-subtle: #e7e2f5;
  --border-focus: #b29eff;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(108, 71, 255, 0.05);
  --shadow-md: 0 8px 24px rgba(108, 71, 255, 0.08);
  --shadow-lg: 0 16px 40px rgba(108, 71, 255, 0.12);
  --shadow-card: 0 10px 30px rgba(26, 21, 46, 0.06);
  --shadow-float: 0 20px 48px rgba(108, 71, 255, 0.16);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, a, span, button {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Top Notification Bar
   -------------------------------------------------------------------------- */
.top-notice-bar {
  background: linear-gradient(90deg, #4b2ac9 0%, #6c47ff 50%, #8f75e8 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 1031;
}

.top-notice-bar a {
  color: #fff0f3;
  text-decoration: underline;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.navbar-clinic {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: var(--transition);
  z-index: 1030;
}

.navbar-clinic.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-heading) !important;
  letter-spacing: -0.03em;
}

.navbar-logo {
  height: 54px;
  width: auto;
  max-width: 275px;
  display: block;
  transition: var(--transition);
}

.footer-logo-img {
  height: 54px;
  width: auto;
  max-width: 275px;
  display: block;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #9955e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(108, 71, 255, 0.3);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title span.main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.brand-title span.tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover, .nav-link:focus {
  color: var(--primary) !important;
  background-color: var(--primary-soft);
}

/* Buttons */
.btn-primary-clinic {
  background: linear-gradient(135deg, var(--primary) 0%, #8758ff 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.94rem;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(108, 71, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-clinic:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #7642f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(108, 71, 255, 0.45);
}

.btn-rose-clinic {
  background: linear-gradient(135deg, #6c47ff 0%, #8758ff 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 22px rgba(108, 71, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-rose-clinic:hover {
  background: linear-gradient(135deg, #5935e6 0%, #7642f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(108, 71, 255, 0.45);
}

.btn-outline-clinic {
  background: #ffffff;
  color: var(--text-heading) !important;
  font-weight: 600;
  border: 1.5px solid var(--border-subtle);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline-clinic:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background-color: var(--primary-soft);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-clinic {
  position: relative;
  padding: 70px 0 90px;
  background: radial-gradient(circle at 10% 20%, rgba(143, 117, 232, 0.12) 0%, rgba(249, 248, 253, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(247, 85, 118, 0.08) 0%, rgba(249, 248, 253, 0) 40%);
  overflow: hidden;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-pill-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-rose);
  box-shadow: 0 0 0 0 rgba(247, 85, 118, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(247, 85, 118, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(247, 85, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(247, 85, 118, 0); }
}

.hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #b34fd0 50%, var(--accent-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-stats-row {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item h4 {
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.hero-stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

/* Hero Visual & Badges */
.hero-visual-wrap {
  position: relative;
  text-align: center;
}

.hero-main-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.hero-main-img-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.hero-main-img-card:hover img {
  transform: scale(1.02);
}

/* Floating Glass Badges */
.glass-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  transition: var(--transition);
  text-align: left;
}

.glass-badge:hover {
  transform: translateY(-4px);
}

.badge-top-left {
  top: 20px;
  left: 10px;
}

.badge-bottom-right {
  bottom: 20px;
  right: 10px;
}

.glass-badge .badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.badge-icon.purple {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-icon.rose {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.glass-badge .badge-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glass-badge .badge-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   Insurance Trust Bar
   -------------------------------------------------------------------------- */
.insurance-trust-sec {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.trust-bar-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insurance-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.insurance-pill {
  padding: 8px 18px;
  background-color: var(--bg-surface-tint);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.insurance-pill i {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Section Common Styles
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Interactive Multi-Step Eligibility Form
   -------------------------------------------------------------------------- */
.wizard-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-rose) 100%);
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  position: relative;
}

.progress-track {
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-subtle);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.4s ease;
}

.step-node {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step-node.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.step-node.completed {
  background: #251e3d;
  border-color: #251e3d;
  color: #ffffff;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-choice-card {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.custom-choice-card:hover {
  border-color: var(--primary);
  background-color: var(--primary-soft);
}

.custom-choice-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.15);
}

.custom-choice-card .choice-title {
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.custom-choice-card .choice-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  font-size: 0.95rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 71, 255, 0.15);
}

.tcpa-box {
  background: var(--bg-surface-tint);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Benefits Cards
   -------------------------------------------------------------------------- */
.benefit-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.benefit-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #ece5fc 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #9955e8 100%);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

.benefit-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-body);
  font-size: 0.92rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Redesigned Comparison Showcase: Traditional vs CGM
   -------------------------------------------------------------------------- */
.comp-box-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 38px 32px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.comp-box-card.traditional {
  border: 1.5px solid #e7e2f5;
  box-shadow: 0 8px 24px rgba(26, 21, 46, 0.04);
  background-color: #faf9fd;
}

.comp-box-card.cgm-premium {
  border: 2px solid #6c47ff;
  box-shadow: 0 16px 45px rgba(108, 71, 255, 0.12);
  background: #ffffff;
}

.comp-box-card.cgm-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(108, 71, 255, 0.18);
}

.comp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.comp-badge-pill.traditional {
  background: #fdf0f3;
  color: #d93d5e;
  border: 1px solid #f9ccd6;
}

.comp-badge-pill.cgm {
  background: #ede8ff;
  color: #6c47ff;
  border: 1px solid #dcd4ff;
}

.comp-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a152e;
  margin-bottom: 8px;
}

.comp-card-sub {
  font-size: 0.9rem;
  color: #726c8a;
  margin-bottom: 28px;
  line-height: 1.5;
}

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-grow: 1;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.comp-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

.comp-icon-box.bad {
  background: #feecef;
  color: #e04464;
}

.comp-icon-box.good {
  background: #ede8ff;
  color: #6c47ff;
}

.comp-item-content h6 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #1a152e;
}

.comp-item-content p {
  font-size: 0.84rem;
  color: #6a6482;
  margin: 0;
  line-height: 1.45;
}

.cgm-popular-ribbon {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #6c47ff 0%, #9955e8 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(108, 71, 255, 0.35);
}

.comp-cgm-footer {
  padding-top: 20px;
  border-top: 1px solid #ede8ff;
}

/* --------------------------------------------------------------------------
   How It Works (Process Steps)
   -------------------------------------------------------------------------- */
.process-step-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px 24px;
  height: 100%;
  transition: var(--transition);
}

.process-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-number-bubble {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(108, 71, 255, 0.35);
}

.process-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Who Qualifies (Eligibility Checklist)
   -------------------------------------------------------------------------- */
.criteria-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-body);
}

.criteria-list li i {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-stars {
  color: #ff9f43;
  font-size: 1rem;
  margin-bottom: 14px;
}

.test-quote {
  font-size: 0.95rem;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.test-patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.accordion-clinic .accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) !important;
  margin-bottom: 14px;
  overflow: hidden;
  background: #ffffff;
}

.accordion-clinic .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  background-color: #ffffff;
  padding: 20px 24px;
  box-shadow: none;
}

.accordion-clinic .accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.accordion-clinic .accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.accordion-clinic .accordion-body {
  padding: 20px 24px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-box {
  background: linear-gradient(135deg, #231b40 0%, #3e266b 50%, #5935e6 100%);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-box h2 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-banner-box p {
  color: #e5dfff;
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Footer & Disclaimers
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Footer & Disclaimers (High Contrast & Clean Typography)
   -------------------------------------------------------------------------- */
.footer-clinic {
  background-color: #120e21;
  color: #dcd7ee;
  padding: 70px 0 35px;
  font-size: 0.92rem;
  border-top: 1px solid #282142;
}

.footer-clinic .footer-desc {
  color: #cec7e6 !important;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 440px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-link {
  color: #e5e0f8 !important;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.footer-contact-link:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

.footer-contact-link i {
  color: #9d84fc !important;
  font-size: 1.05rem;
}

.footer-clinic h5 {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 12px;
}

.footer-nav-list li a {
  color: #cec7e6 !important;
  font-size: 0.94rem;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
}

.footer-nav-list li a:hover {
  color: #ffffff !important;
  padding-left: 6px;
}

.footer-disclaimer-box {
  background-color: #19142d;
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #b5aecd;
  margin-top: 45px;
  border: 1px solid #2e264e;
}

.footer-disclaimer-box strong {
  color: #f1ecff;
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid #241d3b;
  font-size: 0.84rem;
  color: #a49ebd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.footer-bottom a {
  color: #dcd7ee;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Comprehensive Mobile & Tablet Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-clinic {
    padding: 8px 0;
  }
  .navbar-logo {
    height: 48px;
    max-width: 230px;
  }
  .navbar-collapse {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    margin-top: 12px;
    box-shadow: 0 12px 30px rgba(108, 71, 255, 0.12);
    border: 1.5px solid var(--border-subtle);
    max-width: 100%;
    overflow: hidden;
  }
  .navbar-nav {
    width: 100%;
    padding: 0;
  }
  .navbar-nav .nav-item {
    width: 100%;
    margin-bottom: 2px;
  }
  .navbar-nav .nav-link {
    width: 100%;
    display: block;
    padding: 10px 14px !important;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .navbar-nav .btn-primary-clinic {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    margin-top: 12px !important;
  }
  .hero-clinic {
    padding: 40px 0 60px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1.02rem;
  }
  .hero-stats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 28px !important;
    padding-top: 20px !important;
  }
  .hero-stat-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  .hero-stat-item h4 {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
  }
  .hero-stat-item p {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }
  .section-padding {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .comp-box-card {
    padding: 30px 24px;
  }
  .cgm-popular-ribbon {
    right: 18px;
    font-size: 0.72rem;
  }
  .glass-badge {
    padding: 8px 12px;
  }
  .badge-bottom-right {
    bottom: 12px;
    right: 10px;
  }
  .badge-top-left {
    top: 12px;
    left: 10px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.22;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-clinic .btn-rose-clinic,
  .hero-clinic .btn-outline-clinic {
    width: 100%;
  }
  .hero-stats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-top: 24px !important;
    padding-top: 18px !important;
  }
  .hero-stat-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  .hero-stat-item h4 {
    font-size: 1.2rem !important;
    white-space: nowrap !important;
  }
  .hero-stat-item p {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }
  .cgm-exact-form-card {
    padding: 22px 16px !important;
    border-radius: 16px !important;
  }
  .cgm-tcpa-box {
    padding: 14px 12px !important;
  }
  .cgm-input,
  .cgm-select-wrap {
    height: 52px !important;
    font-size: 16px !important; /* Prevents auto zoom on iOS Safari */
  }
  .cgm-verify-btn {
    height: 54px !important;
    font-size: 1.05rem !important;
  }
  .comp-card-title {
    font-size: 1.35rem;
  }
  .comp-box-card {
    padding: 24px 16px;
  }
  .benefit-card {
    padding: 24px 18px;
  }
  .criteria-card {
    padding: 22px 16px;
  }
  .cta-banner-box {
    padding: 36px 18px;
  }
  .cta-banner-box h2 {
    font-size: 1.75rem;
  }
  .footer-clinic {
    padding: 45px 0 20px;
  }
  .footer-logo-img {
    height: 48px;
    max-width: 230px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo {
    height: 42px;
    max-width: 210px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-stats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
  }
  .hero-stat-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  .hero-stat-item h4 {
    font-size: 1.08rem !important;
    white-space: nowrap !important;
  }
  .hero-stat-item p {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .badge-bottom-right {
    position: static;
    margin-top: 14px;
    display: inline-flex;
    width: 100%;
  }
  .cgm-popular-ribbon {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
  .cgm-exact-form-card {
    padding: 18px 12px !important;
  }
}

@media (max-width: 360px) {
  .hero-stats-row {
    gap: 4px !important;
  }
  .hero-stat-item h4 {
    font-size: 0.96rem !important;
  }
  .hero-stat-item p {
    font-size: 0.6rem !important;
  }
}


/* ==========================================================================
   Exact Form Matching User Attached Design
   ========================================================================== */
.cgm-exact-form-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e7e2f5;
  box-shadow: 0 16px 44px rgba(108, 71, 255, 0.08);
  padding: 36px;
  position: relative;
}

.cgm-input {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid #ded9ee;
  padding: 0 18px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1a152e;
  background-color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.cgm-input::placeholder {
  color: #7b7593;
  font-weight: 400;
}

.cgm-input:focus {
  border-color: #6c47ff;
  box-shadow: 0 0 0 4px rgba(108, 71, 255, 0.12);
}

.cgm-select-wrap {
  position: relative;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid #ded9ee;
  padding: 7px 18px 0;
  background-color: #ffffff;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cgm-select-wrap:focus-within {
  border-color: #6c47ff;
  box-shadow: 0 0 0 4px rgba(108, 71, 255, 0.12);
}

.cgm-select-label {
  font-size: 0.72rem;
  color: #7d7794;
  line-height: 1;
  margin-bottom: 2px;
  font-weight: 600;
}

.cgm-select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 500;
  color: #1a152e;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.cgm-select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #6c47ff;
  border-bottom: 2px solid #6c47ff;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.cgm-tcpa-box {
  background: #faf8fe;
  border: 1.5px solid #eae5f7;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.cgm-custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #c7bfdf;
  cursor: pointer;
  accent-color: #6c47ff;
  flex-shrink: 0;
}

.consent-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a152e;
  line-height: 1.45;
  cursor: pointer;
}

.consent-title a {
  color: #6c47ff;
  text-decoration: underline;
}

.consent-desc {
  font-size: 0.77rem;
  color: #6a6482;
  line-height: 1.55;
  margin-top: 10px;
  margin-bottom: 0;
}

.consent-desc a {
  color: #6c47ff;
  text-decoration: underline;
}

.cgm-verify-btn {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #6c47ff 0%, #8758ff 100%);
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(108, 71, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.cgm-verify-btn:hover {
  background: linear-gradient(135deg, #5935e6 0%, #7645f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(108, 71, 255, 0.45);
}

.form-divider-line {
  height: 1px;
  background-color: #eae5f7;
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Floating Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c47ff 0%, #8758ff 100%);
  color: #ffffff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(108, 71, 255, 0.4);
  cursor: pointer;
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #5935e6 0%, #7645f5 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(108, 71, 255, 0.55);
  color: #ffffff !important;
}

@media (max-width: 575.98px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}

