/* =============================================
   Eye-Q Landing Pages — Centralized Stylesheet
   ============================================= */

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, button, textarea { font-family: inherit; font-size: inherit; }

/* --- Brand Variables --- */
:root {
  --brand-blue: #1a5276;
  --brand-blue-dark: #0e3a5c;
  --brand-gold: #e8a317;
  --brand-gold-dark: #c78d12;
  --brand-orange: #f0a030;
  --brand-brown: #6b3a1f;
  --brand-light-blue: #e8f4f8;
  --brand-light-cream: #fdf6ec;
  --brand-stats-bg: #1a4a6e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --max-w: 1280px;
}

/* --- Layout Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.section-padding { padding: 28px 0; }
@media (min-width: 768px) { .section-padding { padding: 36px 0; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 32px; border-radius: 9999px; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all 0.2s ease; border: none; text-align: center;
}
.btn:hover { transform: scale(1.05); }
.btn-gold {
  background: linear-gradient(135deg, #e8a317, #f0a030);
  color: #fff; box-shadow: 0 4px 15px rgba(232,163,23,0.3);
}
.btn-brown {
  background: var(--brand-brown); color: #fff;
  box-shadow: 0 4px 12px rgba(107,58,31,0.3);
}
.btn-brown:hover { background: #5a3018; }
.btn-white {
  background: #fff; color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-white:hover { background: var(--gray-100); }
.btn-outline {
  background: #fff; color: var(--gray-800);
  border: 2px solid var(--gray-800);
}
.btn-outline:hover { background: var(--gray-800); color: #fff; }
.btn-blue {
  background: var(--brand-blue); color: #fff;
}
.btn-blue:hover { background: var(--brand-blue-dark); }

/* --- SVG Icons --- */
.icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* --- Google Rating Bar --- */
.google-rating-bar {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}
@media (min-width: 768px) { .google-rating-bar { padding: 8px 0; } }
.google-rating-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px;
}
@media (min-width: 768px) { .google-rating-inner { font-size: 14px; } }
.google-rating-bar img { width: 22px; height: 22px; }
@media (min-width: 768px) { .google-rating-bar img { width: 20px; height: 20px; } }
.google-rating-bar svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .google-rating-bar svg { width: 16px; height: 16px; } }
.google-rating-value { font-weight: 800; color: var(--gray-900); display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .google-rating-value { gap: 4px; } }
.google-rating-sep { color: var(--gray-400); }
.google-rating-label { color: var(--gray-600); font-weight: 500; }

/* --- Header --- */
.header-bar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo { height: 40px; width: auto; }
@media (min-width: 768px) { .header-logo { height: 48px; } }
.header-cta-text { display: none; }
@media (min-width: 640px) { .header-cta-text { display: inline; } .header-cta-mobile { display: none; } }

/* --- Hero Section --- */
.hero-section {
  background: #e8f0f5;
}

/* Image wrapper — text overlays the blank left side of the image */
.hero-img-wrap {
  position: relative; overflow: hidden;
}
.hero-img {
  width: 100%; height: auto; display: block;
}

/* Text overlay — positioned on the left blank area */
.hero-overlay {
  position: absolute; top: 0; left: 0;
  width: 55%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 14px;
}
.hero-title {
  font-size: 16px; font-weight: 800; color: var(--gray-900);
  line-height: 1.25; margin-bottom: 4px;
}
.hero-subtitle {
  font-size: 11.5px; font-weight: 600; color: var(--brand-gold);
  margin-bottom: 6px; line-height: 1.3;
}
.hero-highlights { margin-bottom: 24px; }
.hero-highlight-item {
  display: flex; align-items: center; gap: 4px;
  color: var(--gray-700); font-weight: 600; padding: 1px 0; font-size: 10.5px;
}
.hero-highlight-item svg { width: 11px; height: 11px; color: var(--brand-blue); flex-shrink: 0; }
.hero-cta { font-size: 10px; padding: 6px 10px; gap: 3px; white-space: nowrap; }
.hero-cta .icon { width: 14px; height: 14px; }

/* Tablet (768px+) — scale text up */
@media (min-width: 768px) {
  .hero-overlay { padding: 24px 28px; width: 50%; }
  .hero-title { font-size: 24px; margin-bottom: 6px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 10px; }
  .hero-highlight-item { font-size: 13px; gap: 6px; padding: 2px 0; }
  .hero-highlight-item svg { width: 14px; height: 14px; }
  .hero-highlights { margin-bottom: 24px; }
  .hero-cta { font-size: 14px; padding: 10px 24px; gap: 6px; }
  .hero-cta .icon { width: 16px; height: 16px; }
}

/* Desktop (1024px+) — compact height, text fits in ~360px tall banner */
@media (min-width: 1024px) {
  .hero-overlay { padding: 24px 40px; width: 48%; }
  .hero-title { font-size: 28px; margin-bottom: 6px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 10px; }
  .hero-highlight-item { font-size: 14px; gap: 6px; padding: 2px 0; }
  .hero-highlight-item svg { width: 16px; height: 16px; }
  .hero-highlights { margin-bottom: 24px; }
  .hero-cta { font-size: 14px; padding: 10px 28px; gap: 6px; }
  .hero-cta .icon { width: 16px; height: 16px; }
}

/* Form below hero image */
.hero-form-section {
  max-width: var(--max-w); margin: 0 auto;
  padding: 20px 16px;
}
@media (min-width: 1024px) {
  .hero-section { display: flex; align-items: stretch; }
  .hero-img-wrap { flex: 1; min-width: 0; max-height: 360px; }
  .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .hero-form-section { width: 380px; flex-shrink: 0; display: flex; align-items: center; padding: 24px; }
}

/* --- Lead Form --- */
.lead-form {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 2px solid var(--gray-200);
}
@media (min-width: 768px) { .lead-form { padding: 32px; } }
.lead-form-title {
  font-size: 20px; font-weight: 700; text-align: center;
  color: var(--gray-800); margin-bottom: 24px;
}
@media (min-width: 768px) { .lead-form-title { font-size: 24px; } }
.lead-form .form-group { margin-bottom: 16px; }
.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-300);
  border-radius: 8px; font-size: 16px; outline: none; transition: border-color 0.2s;
}
.lead-form input:focus { border-color: var(--brand-blue); }
.lead-form .form-error { color: #ef4444; font-size: 14px; text-align: center; margin-bottom: 12px; }
.lead-form .btn-submit {
  width: 100%; border-radius: 9999px; height: 48px; font-weight: 700;
  font-size: 16px; border: 2px solid var(--gray-800); background: #fff;
  color: var(--gray-800); cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.lead-form .btn-submit:hover { background: var(--gray-800); color: #fff; }
.lead-form .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.lead-form-success {
  text-align: center; padding: 32px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 2px solid var(--gray-200);
}
.lead-form-success h3 { font-size: 20px; font-weight: 700; color: var(--gray-800); margin: 16px 0 8px; }
.lead-form-success p { color: var(--gray-600); margin-bottom: 16px; }
.lead-form-success .btn-reset {
  background: none; border: none; color: var(--gray-600); cursor: pointer;
  font-size: 14px; text-decoration: underline;
}

/* --- Stats Bar --- */
.stats-bar { background: linear-gradient(135deg, #1a4a6e, #1a5276); padding: 16px 0; }
.stats-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
@media (min-width: 768px) {
  .stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.3); }
}
.stat-item svg { color: rgba(255,255,255,0.8); margin: 0 auto 4px; }
.stat-value {
  font-size: 28px; font-weight: 800; color: #fff;
}
@media (min-width: 768px) { .stat-value { font-size: 36px; } }
.stat-label { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 4px; }
@media (min-width: 768px) { .stat-label { font-size: 16px; } }

/* Fade-in animation */
.stat-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stat-item.visible { opacity: 1; transform: translateY(0); }

/* --- Info Section --- */
.info-section { padding: 28px 0; background: #fff; }
@media (min-width: 768px) { .info-section { padding: 40px 0; } }
.info-blocks { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.info-block { border-radius: 16px; padding: 24px; margin-bottom: 40px; }
@media (min-width: 768px) { .info-block { padding: 40px; margin-bottom: 56px; } }
.info-block:last-child { margin-bottom: 0; }
.info-block h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
@media (min-width: 768px) { .info-block h2 { font-size: 28px; } }
.info-block .info-desc { color: var(--gray-600); margin-bottom: 24px; line-height: 1.7; }
.info-items { display: flex; flex-direction: column; gap: 12px; }
.info-items.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .info-items.grid-2 { grid-template-columns: repeat(2, 1fr); } }
.info-item { display: flex; align-items: center; gap: 12px; }
.info-item svg { color: var(--brand-blue); flex-shrink: 0; }
.info-item span { color: var(--gray-700); font-weight: 500; }

/* --- Cost Calculator --- */
.cost-calculator { padding: 28px 0; background: var(--brand-light-cream); }
@media (min-width: 768px) { .cost-calculator { padding: 40px 0; } }
.cost-calc-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
@media (min-width: 768px) { .cost-calc-inner { flex-direction: row; } }
.cost-calc-text { flex: 1; text-align: center; }
@media (min-width: 768px) { .cost-calc-text { text-align: left; } }
.cost-calc-text h2 { font-size: 28px; font-weight: 700; color: var(--gray-900); }
@media (min-width: 768px) { .cost-calc-text h2 { font-size: 36px; } }
.cost-calc-text .gold { color: var(--brand-gold); font-weight: 800; }
.cost-calc-form { width: 100%; flex-shrink: 0; }
@media (min-width: 768px) { .cost-calc-form { width: 420px; } }

/* --- Consult Section --- */
.consult-section { padding: 28px 0; background: #fff; }
@media (min-width: 768px) { .consult-section { padding: 40px 0; } }
.consult-blocks { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.consult-block { border-radius: 16px; padding: 24px; margin-bottom: 40px; }
@media (min-width: 768px) { .consult-block { padding: 40px; margin-bottom: 56px; } }
.consult-block:last-child { margin-bottom: 0; }
.consult-block h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; }
@media (min-width: 768px) { .consult-block h2 { font-size: 28px; } }

/* --- Trust Badges --- */
.trust-badges { padding: 20px 0; background: var(--brand-light-blue); }
@media (min-width: 768px) { .trust-badges { padding: 32px 0; } }
.trust-badges-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 24px;
}
@media (min-width: 768px) { .trust-badges-inner { flex-direction: row; gap: 48px; } }
.trust-badge {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 16px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex: 1; min-width: 0;
}
@media (max-width: 767px) { .trust-badge { width: 100%; } }
.trust-badge-rating { display: flex; align-items: center; gap: 4px; }
.trust-badge-rating .star { color: #facc15; fill: #facc15; }
.trust-badge-rating .rating-value { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.trust-badge-label { font-weight: 600; color: var(--gray-800); }
.trust-badge-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.badge-tag {
  display: inline-block; background: var(--gray-100); color: var(--gray-600);
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-top: 4px;
}

/* --- Advantage Section --- */
.advantage-section { padding: 28px 0; background: #fff; }
@media (min-width: 768px) { .advantage-section { padding: 40px 0; } }
.advantage-title { font-size: 24px; font-weight: 700; text-align: center; color: var(--gray-900); margin-bottom: 32px; }
@media (min-width: 768px) { .advantage-title { font-size: 28px; } }
.advantage-title .gold { color: var(--brand-gold); }
.advantage-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .advantage-grid { grid-template-columns: repeat(3, 1fr); } }
.advantage-card {
  text-align: center; padding: 24px; border-radius: 12px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.advantage-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.advantage-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-light-cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.advantage-icon svg { color: var(--brand-gold); }
.advantage-card h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.advantage-card p { color: var(--gray-600); }

/* --- Mid-Page CTA --- */
.mid-page-cta { padding: 28px 0; background: #fff; }
@media (min-width: 768px) { .mid-page-cta { padding: 36px 0; } }
.mid-cta-inner {
  max-width: 640px; margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
@media (min-width: 640px) { .mid-cta-inner { flex-direction: row; justify-content: center; } }

/* --- Carousel (Doctors & Locations) --- */
.carousel-section { padding: 28px 0; }
@media (min-width: 768px) { .carousel-section { padding: 36px 0; } }
.carousel-section.bg-gray { background: var(--gray-50); }
.carousel-section.bg-white { background: #fff; }
.carousel-header {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
}
.carousel-header h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 24px; }
@media (min-width: 768px) { .carousel-header h2 { font-size: 28px; } }
.carousel-wrapper {
  position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
}
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 12px 4px 20px; -ms-overflow-style: none; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; will-change: scroll-position;
  scroll-snap-type: x proximity;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .carousel-track { gap: 24px; padding: 12px 52px 20px; scroll-behavior: smooth; } }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1px solid var(--gray-200); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: all 0.2s;
}
@media (min-width: 768px) { .carousel-btn { display: flex; } }
.carousel-btn:hover { background: var(--gray-50); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.carousel-btn.left { left: 8px; }
.carousel-btn.right { right: 8px; }

/* Doctor cards — uses pre-designed Mob images (278x499) */
.doctor-card {
  flex-shrink: 0; width: 200px; border-radius: 16px; overflow: hidden;
  background: #f3f9ff; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s; scroll-snap-align: start;
}
@media (min-width: 768px) { .doctor-card { width: 220px; } }
.doctor-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.14); transform: translateY(-4px); }
.doctor-card img { width: 100%; height: auto; display: block; }

/* Location cards — uses pre-designed Mob images (278x427) */
.location-card {
  flex-shrink: 0; width: 220px; border-radius: 16px; overflow: hidden;
  background: #f3f9ff; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s; scroll-snap-align: start;
}
@media (min-width: 768px) { .location-card { width: 240px; } }
.location-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.14); transform: translateY(-4px); }
.location-card img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .doctor-card, .location-card { transition: none; }
  .doctor-card:hover, .location-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); transform: none; }
}

/* --- FAQ Accordion --- */
.faq-section { padding: 28px 0; background: #fff; }
@media (min-width: 768px) { .faq-section { padding: 40px 0; } }
.faq-inner { max-width: 768px; margin: 0 auto; padding: 0 16px; }
.faq-title {
  font-size: 24px; font-weight: 700; text-align: center;
  color: var(--gray-900); margin-bottom: 32px;
}
@media (min-width: 768px) { .faq-title { font-size: 28px; } }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 0; text-align: left; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.faq-question span { font-size: 16px; font-weight: 600; color: var(--gray-800); flex: 1; }
@media (min-width: 768px) { .faq-question span { font-size: 18px; } }
.faq-question .faq-toggle {
  width: 24px; height: 24px; position: relative; flex-shrink: 0;
}
.faq-question .faq-toggle::before,
.faq-question .faq-toggle::after {
  content: ''; position: absolute; background: var(--gray-600);
  transition: transform 0.3s ease;
}
.faq-question .faq-toggle::before {
  width: 16px; height: 2px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-question .faq-toggle::after {
  width: 2px; height: 16px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 20px; color: var(--gray-600); line-height: 1.7; }

/* --- CTA Banner --- */
.cta-banner { padding: 28px 0; background: linear-gradient(135deg, #1a5276, #0e3a5c); }
@media (min-width: 768px) { .cta-banner { padding: 36px 0; } }
.cta-banner-inner { max-width: 640px; margin: 0 auto; padding: 0 16px; text-align: center; }
.cta-banner h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; }
@media (min-width: 768px) { .cta-banner h2 { font-size: 28px; } }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 32px; }
.cta-banner-buttons {
  display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* --- Locations Footer --- */
.locations-footer { padding: 28px 0; background: #fff; }
@media (min-width: 768px) { .locations-footer { padding: 36px 0; } }
.locations-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.locations-footer h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 24px; }
@media (min-width: 768px) { .locations-footer h2 { font-size: 28px; } }
.location-state { margin-bottom: 16px; font-size: 14px; color: var(--gray-700); line-height: 1.7; }
@media (min-width: 768px) { .location-state { font-size: 16px; } }
.location-state strong { color: var(--gray-900); }
.footer-divider { border-top: 1px solid var(--gray-200); margin-top: 32px; padding-top: 24px; }
.footer-copyright { font-weight: 600; color: var(--gray-800); font-size: 14px; }
.footer-disclaimer { margin-top: 16px; font-size: 12px; color: var(--gray-500); }
.footer-disclaimer strong { color: var(--gray-700); }

/* --- Floating Mobile CTA --- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  border-top: 1px solid var(--gray-200); padding: 12px;
  display: flex; gap: 8px;
}
@media (min-width: 768px) { .mobile-cta { display: none; } }
.mobile-cta a { flex: 1; }
.mobile-cta .btn { width: 100%; padding: 12px; font-size: 14px; }

/* Add bottom padding to body so content isn't hidden behind mobile CTA */
@media (max-width: 767px) { body { padding-bottom: 70px; } }

/* --- Appointment Popup Modal --- */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 9999;
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; padding: 32px 24px;
  width: 100%; max-width: 400px; position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15); border: 2px solid var(--brand-blue);
  animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--gray-500); padding: 4px; line-height: 1;
}
.modal-close:hover { color: var(--gray-800); }
.modal-close svg { width: 24px; height: 24px; }
.modal-title {
  font-size: 20px; font-weight: 700; color: var(--brand-blue);
  text-align: center; margin-bottom: 8px;
}
.modal-subtitle {
  font-size: 14px; color: var(--gray-500); text-align: center; margin-bottom: 24px;
}
.modal-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-300);
}
.modal-divider span {
  font-size: 13px; font-weight: 600; color: var(--gray-500);
}
.modal-form .form-group { margin-bottom: 16px; }
.modal-form input[type="text"],
.modal-form input[type="tel"] {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-300);
  border-radius: 8px; font-size: 16px; outline: none; transition: border-color 0.2s;
}
.modal-form input:focus { border-color: var(--brand-blue); }
.modal-form .form-error { color: #ef4444; font-size: 14px; text-align: center; margin-bottom: 12px; display: none; }
.modal-form .btn-submit {
  width: 100%; border-radius: 9999px; height: 48px; font-weight: 700;
  font-size: 16px; border: 2px solid var(--brand-blue); background: #fff;
  color: var(--brand-blue); cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-form .btn-submit:hover { background: var(--brand-blue); color: #fff; }
.modal-form .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
@media (min-width: 768px) {
  .modal-box { padding: 40px 32px; }
  .modal-title { font-size: 24px; }
}

/* --- Phone ring animation --- */
@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50% { transform: rotate(-8deg); }
  20%, 40% { transform: rotate(8deg); }
  60% { transform: rotate(0deg); }
}
.phone-ring { animation: phoneRing 1.5s ease-in-out infinite; }

/* --- Call Button Pulse Effect --- */
@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 155, 60, 0.6); }
  50% { box-shadow: 0 0 20px 8px rgba(196, 155, 60, 0.55); }
}
@keyframes callPulseBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 82, 118, 0.6); }
  50% { box-shadow: 0 0 20px 8px rgba(26, 82, 118, 0.55); }
}
.call-pulse { animation: callPulse 2s ease-in-out infinite; }
.call-pulse-blue { animation: callPulseBlue 2s ease-in-out infinite; }

/* --- Comparison Table --- */
/* ── Comparison Table ── */
.comparison-table-section { padding: 36px 0; background: #fff; }

.ct-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 16px;
}
.ct-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--brand-blue);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Column headers row */
.ct-header-row {
  display: flex;
  align-items: flex-end;
  padding: 24px 0 16px;
  gap: 12px;
}
.ct-label-spacer { flex: 0 0 28%; min-width: 140px; }
.ct-col-header {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
  padding: 0 8px;
}
.ct-col-highlight {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Body rows */
.ct-body { border-top: 1px solid #e8e8e8; }

.ct-row {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
.ct-row:last-child { border-bottom: none; }

.ct-row-label {
  flex: 0 0 28%;
  min-width: 140px;
  font-weight: 700;
  font-size: 15px;
  color: #222;
  padding-left: 4px;
}

.ct-value-col {
  flex: 1;
  text-align: center;
}

/* Pill-shaped value badges */
.ct-pill {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  min-width: 140px;
  text-align: center;
}
.ct-pill-normal {
  background: #f0f0f0;
  color: #444;
}
.ct-pill-highlight {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .ct-title { font-size: 22px; }
  .ct-header-row { gap: 8px; padding: 16px 0 12px; }
  .ct-label-spacer { flex: 0 0 30%; min-width: 100px; }
  .ct-col-header { font-size: 13px; }
  .ct-row { padding: 12px 0; gap: 8px; }
  .ct-row-label { flex: 0 0 30%; min-width: 100px; font-size: 13px; }
  .ct-pill { padding: 8px 12px; font-size: 12px; min-width: 90px; border-radius: 20px; }
}
