/* ═══════════════════════════════════════════════════════
   MEDLINK CLINIC — xstyle.css
   Main stylesheet for index.html + shared utilities
   Teal color scheme matching landing.html
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────── */
:root {
  /* Teal palette (matches landing.html) */
  --teal:         #5bc0b5;
  --teal-light:   #7dd3c9;
  --teal-pale:    #c8eeeb;
  --teal-soft:    #edfaf8;
  --teal-dark:    #4a9d96;
  --teal-deep:    #357870;

  /* Warm / neutral */
  --warm:         #f7f4f0;
  --warm-mid:     #ece7e0;
  --warm-text:    #50372c;
  --warm-muted:   #7a6355;
  --sand:         #fdf8f3;
  --cream:        #f5fffe;
  --white:        #ffffff;

  /* Accent */
  --rose:         #e8a598;
  --amber:        #d4a853;

  /* Radii */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(74,157,150,0.08);
  --shadow:     0 6px 28px rgba(74,157,150,0.12);
  --shadow-lg:  0 16px 48px rgba(74,157,150,0.18);

  /* Gradients */
  --grad:       linear-gradient(135deg, #7dd3c9 0%, #5bc0b5 50%, #4a9d96 100%);
  --grad-rev:   linear-gradient(135deg, #4a9d96 0%, #5bc0b5 50%, #7dd3c9 100%);
  --grad-hero:  linear-gradient(160deg, #357870 0%, #4a9d96 30%, #5bc0b5 65%, #7dd3c9 100%);

  /* Legacy aliases used by other pages */
  --primary-color:   #7dd3c9;
  --secondary-color: #5bc0b5;
  --accent-color:    #4a9d96;
  --text-dark:       #50372c;
  --bg-gradient:     var(--grad);
}

/* ─────────────────────────────────────
   RESET & BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--warm-text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ─────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────── */
.font-serif { font-family: 'Lora', Georgia, serif; }
h1, h2, h3 { font-family: 'Lora', Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: '';
  display: block; width: 22px; height: 2px;
  background: var(--teal-dark); border-radius: 2px;
}

/* ─────────────────────────────────────
   SKIP LINK
───────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 20px; z-index: 9999;
  background: var(--teal-dark); color: #fff; padding: 10px 18px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 10px; }

/* ─────────────────────────────────────
   NAVBAR
───────────────────────────────────── */
.navbar-custom {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
.navbar-custom.scrolled {
  background: rgba(245,255,254,0.96);
  backdrop-filter: blur(16px);
  padding: 11px 5%;
  box-shadow: 0 2px 20px rgba(74,157,150,0.12);
  border-bottom: 1px solid rgba(91,192,181,0.18);
}

.nav-brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  font-family: 'Lora', serif; font-weight: 700; font-size: 1.18rem;
  color: #fff;
  transition: color 0.4s;
}
.navbar-custom.scrolled .nav-brand { color: var(--warm-text); }

.nav-logo {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  object-fit: cover; background: rgba(255,255,255,0.15);
  transition: border-color 0.4s;
}
.navbar-custom.scrolled .nav-logo { border-color: var(--teal-pale); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.88); text-decoration: none;
  padding: 7px 14px; border-radius: 50px;
  transition: all 0.25s;
}
.navbar-custom.scrolled .nav-links a { color: var(--warm-muted); }
.nav-links a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.navbar-custom.scrolled .nav-links a:hover { background: var(--teal-soft); color: var(--teal-deep); }

.btn-nav-login {
  border: 1.5px solid rgba(255,255,255,0.5) !important;
  color: rgba(255,255,255,0.95) !important;
}
.navbar-custom.scrolled .btn-nav-login {
  border-color: var(--teal-light) !important;
  color: var(--teal-deep) !important;
}
.btn-nav-signup {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
.navbar-custom.scrolled .btn-nav-signup {
  background: var(--teal-dark) !important;
  color: #fff !important;
}

/* Patient dropdown */
.patient-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.28); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.patient-dropdown {
  border: none !important; border-radius: 18px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px !important; min-width: 240px !important;
  margin-top: 10px !important; overflow: hidden;
  border: 1px solid rgba(91,192,181,0.18) !important;
}
.dropdown-header-custom {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 10px;
}
.dh-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.dh-name { font-weight: 700; font-size: 0.9rem; color: var(--warm-text); }
.dh-email { font-size: 0.73rem; color: var(--warm-muted); }
.patient-dropdown .dropdown-item {
  border-radius: 10px !important; padding: 9px 12px !important;
  font-size: 0.875rem !important; font-weight: 500 !important;
  color: var(--warm-text) !important; transition: background 0.2s !important;
}
.patient-dropdown .dropdown-item:hover { background: var(--teal-soft) !important; color: var(--teal-deep) !important; }
.patient-dropdown .dropdown-item.text-danger { color: #c0392b !important; }
.patient-dropdown .dropdown-item.text-danger:hover { background: #fdf2f2 !important; }
.patient-dropdown .dropdown-divider { margin: 4px 8px !important; border-color: var(--teal-pale) !important; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.3s;
}
.navbar-custom.scrolled .hamburger span { background: var(--warm-text); }

/* Mobile drawer */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(53,120,112,0.3); z-index: 1100;
  backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed; top: 0; right: -320px; bottom: 0;
  width: 300px; background: var(--cream); z-index: 1200;
  padding: 28px 24px; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { right: 0; }
.drawer-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; cursor: pointer;
  color: var(--warm-muted); font-size: 1.1rem; padding: 6px;
}
.drawer-brand {
  font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--warm-text); margin-bottom: 28px; display: flex;
  align-items: center; gap: 10px;
}
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a {
  padding: 11px 14px; border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 500;
  color: var(--warm-muted); text-decoration: none;
  transition: all 0.2s;
}
.drawer-links a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.drawer-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.drawer-btn-login {
  text-align: center; padding: 11px;
  border: 1.5px solid var(--teal-light); border-radius: 50px;
  color: var(--teal-deep); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.25s;
}
.drawer-btn-login:hover { background: var(--teal-soft); }
.drawer-btn-signup {
  text-align: center; padding: 11px;
  background: var(--teal-dark); border-radius: 50px;
  color: #fff; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.25s;
}
.drawer-btn-signup:hover { background: var(--teal-deep); }

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 120px 5% 80px;
}

.hero-blob {
  position: absolute; pointer-events: none;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: rgba(255,255,255,0.07);
}
.hb1 { width: 500px; height: 500px; top: -180px; right: -120px; animation: blobDrift 18s ease-in-out infinite alternate; }
.hb2 { width: 350px; height: 350px; bottom: -100px; left: -80px; border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%; animation: blobDrift 14s ease-in-out infinite alternate-reverse; }
.hb3 { width: 200px; height: 200px; top: 28%; left: 38%; border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; animation: blobDrift 10s ease-in-out infinite alternate; }

@keyframes blobDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(20px, -15px) rotate(8deg) scale(1.05); }
  100% { transform: translate(-10px, 20px) rotate(-5deg) scale(0.97); }
}

.hero-watermark {
  position: absolute; pointer-events: none;
  opacity: 0.05; font-size: 9rem; color: #fff; font-weight: 900;
}
.hw1 { top: 8%; left: 3%; animation: drift 12s ease-in-out infinite; }
.hw2 { bottom: 15%; right: 6%; font-size: 6rem; animation: drift 9s ease-in-out infinite 2s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(6deg); }
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

/* Badge pill */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff; padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 18px; animation: fadeUp 0.7s ease both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #a3ffe8;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.75); }
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700; color: #fff; line-height: 1.12;
  margin-bottom: 18px; animation: fadeUp 0.7s ease 0.1s both;
}
.hero-title em { font-style: italic; color: #c0f0e8; }

.hero-sub {
  color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.7;
  margin-bottom: 26px; animation: fadeUp 0.7s ease 0.2s both;
  max-width: 480px;
}

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 32px; animation: fadeUp 0.7s ease 0.3s both;
}
.hero-chip-tag {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9); padding: 5px 13px;
  border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  transition: background 0.2s;
}
.hero-chip-tag:hover { background: rgba(255,255,255,0.24); }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.btn-hero-primary {
  background: #fff; color: var(--teal-deep);
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 0.92rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  color: var(--teal-deep);
}
.btn-hero-outline {
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; padding: 13px 26px; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem;
  cursor: pointer; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ── Hero visual (doctor illustration) ── */
.hero-visual {
  position: relative; display: flex; align-items: center;
  justify-content: center; animation: fadeUp 0.9s ease 0.2s both;
}

/* Orbit rings */
.orbit-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); pointer-events: none;
}
.or1 { width: 320px; height: 320px; animation: orbitSpin 35s linear infinite; }
.or2 { width: 420px; height: 420px; border-color: rgba(255,255,255,0.07); animation: orbitSpin 50s linear infinite reverse; }
.or3 { width: 520px; height: 520px; border-color: rgba(255,255,255,0.04); animation: orbitSpin 70s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.hero-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  filter: blur(32px); pointer-events: none;
  animation: glowBreath 6s ease-in-out infinite;
}
@keyframes glowBreath {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.2); opacity: 1; }
}

/* Doctor circular card */
.doc-card {
  position: relative; z-index: 2;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.38);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; transition: transform 0.4s ease;
}
.doc-card:hover { transform: translateY(-8px) scale(1.02); }
.doc-card img {
  width: 90%; height: auto; object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.22));
  transition: transform 0.4s ease;
}
.doc-card:hover img { transform: scale(1.04); }

/* Shimmer sweep on card */
.doc-shimmer {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none;
}
.doc-shimmer::after {
  content: '';
  position: absolute; top: -60%; left: -60%;
  width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: rotate(15deg);
  animation: shimmer 4.5s ease-in-out infinite 1s;
}
@keyframes shimmer {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  55%  { left: 120%; opacity: 1; }
  56%  { opacity: 0; } 100% { left: 120%; opacity: 0; }
}

/* Floating info chips */
.info-float {
  position: absolute; z-index: 4;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-radius: 16px; padding: 11px 15px;
  display: flex; align-items: center; gap: 11px;
  box-shadow: 0 8px 32px rgba(74,157,150,0.18);
  border: 1px solid rgba(255,255,255,0.9);
  white-space: nowrap;
}
.if-icon {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; flex-shrink: 0;
}
.if-icon.green { background: linear-gradient(135deg, #52c98a, #2ea86a); }
.if-icon.amber { background: linear-gradient(135deg, #f0b84a, #d4922a); }
.if-label { font-size: 0.62rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.if-val { font-size: 0.82rem; font-weight: 800; color: var(--warm-text); line-height: 1.2; margin-top: 2px; }

.if-top    { top: -14px; right: -8px; animation: floatA 3.5s ease-in-out infinite; }
.if-left   { left: -38px; top: 50%; transform: translateY(-50%); animation: floatB 4s ease-in-out infinite 0.8s; }
.if-bottom { bottom: -12px; right: 14px; animation: floatA 3.8s ease-in-out infinite 1.5s; }

/* Accent dots */
.hero-dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.hd1 { width: 12px; height: 12px; background: rgba(255,255,255,0.48); top: 12%; left: 6%; animation: dotBob 3s ease-in-out infinite; }
.hd2 { width: 8px; height: 8px; background: rgba(255,255,255,0.32); bottom: 18%; left: 12%; animation: dotBob 4s ease-in-out infinite 1s; }
.hd3 { width: 10px; height: 10px; background: rgba(255,255,255,0.38); top: 20%; right: 8%; animation: dotBob 3.5s ease-in-out infinite 0.5s; }
@keyframes dotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatB { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 8px)); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────
   STATS STRIP
───────────────────────────────────── */
.stats-strip {
  background: var(--white);
  padding: 36px 5%;
  box-shadow: 0 4px 24px rgba(74,157,150,0.07);
  border-bottom: 1px solid var(--warm-mid);
}
.stats-strip-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; align-items: center;
}
.stat-item { text-align: center; padding: 8px; }
.stat-item:not(:last-child) { border-right: 1px solid var(--warm-mid); }
.stat-num {
  font-family: 'Lora', serif;
  font-size: 2rem; font-weight: 700; color: var(--teal-dark);
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--warm-muted); margin-top: 5px; font-weight: 500; }

/* ─────────────────────────────────────
   SECTION WRAPPERS
───────────────────────────────────── */
.section { padding: 88px 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header h2 { color: var(--warm-text); }
.section-header p { color: var(--warm-muted); font-size: 1rem; margin-top: 10px; max-width: 560px; }
.section-header.center p { margin: 10px auto 0; }

.section-warm  { background: var(--warm); }
.section-cream { background: var(--cream); }
.section-teal  { background: var(--teal-soft); }

/* ─────────────────────────────────────
   SERVICES / SPECIALTIES
───────────────────────────────────── */
.spec-tabs-wrap { position: relative; margin-bottom: 44px; }
.spec-tabs-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.spec-tabs-scroll::-webkit-scrollbar { display: none; }

.spec-tab {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 50px;
  border: 1.5px solid var(--warm-mid);
  background: var(--white); color: var(--warm-muted);
  font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: all 0.22s; white-space: nowrap;
}
.spec-tab:hover { border-color: var(--teal-light); color: var(--teal-deep); background: var(--teal-soft); }
.spec-tab.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Each card wrapper */
.col-svc { transition: opacity 0.3s, transform 0.3s; }
.col-svc.hidden { display: none !important; }

/* Flip card */
.service-card {
  perspective: 1000px;
  height: 260px;
  cursor: pointer;
}
.service-card-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-card-inner { transform: rotateY(180deg); }

.service-card-front,
.service-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

/* Front face */
.service-card-front {
  background: var(--white);
  border: 1px solid var(--warm-mid);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.service-card:hover .service-card-front { box-shadow: var(--shadow); }

.svc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--teal-dark); margin-bottom: 16px;
  transition: all 0.25s;
}
.service-card:hover .svc-icon { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }

.svc-title { font-family: 'Lora', serif; font-size: 1rem; font-weight: 600; color: var(--warm-text); margin-bottom: 8px; }
.svc-desc { font-size: 0.83rem; color: var(--warm-muted); line-height: 1.6; flex: 1; }
.svc-badge {
  display: inline-block; margin-top: 12px;
  padding: 3px 11px; border-radius: 50px;
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: 0.7rem; font-weight: 700; border: 1px solid var(--teal-pale);
  align-self: flex-start;
}

/* Back face */
.service-card-back {
  background: var(--grad);
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
}
.service-card-back h4 {
  font-family: 'Lora', serif;
  color: rgba(255,255,255,0.8); font-size: 0.73rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.service-card-back ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.service-card-back ul li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: rgba(255,255,255,0.92);
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.service-card-back ul li:last-child { border-bottom: none; }
.service-card-back ul li::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: rgba(255,255,255,0.65); flex-shrink: 0;
}

.btn-book-back {
  margin-top: 16px; padding: 10px 20px;
  background: #fff; color: var(--teal-deep);
  border-radius: 50px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.85rem;
  transition: all 0.2s; align-self: flex-start;
}
.btn-book-back:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }

/* Legacy .btn-book-specialty (used in xstyle) */
.btn-book-specialty {
  background: rgba(255,255,255,0.2);
  border: 2px solid white; color: white;
  padding: 10px 20px; border-radius: 25px;
  font-weight: 600; transition: all 0.3s ease;
  margin-top: auto; backdrop-filter: blur(10px); cursor: pointer;
}
.btn-book-specialty:hover {
  background: white; color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────
   CHAT CTA
───────────────────────────────────── */
.chat-cta-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 56px; align-items: center;
}
.chat-preview {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--warm-mid);
}
.chat-doctor-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--teal-pale);
  margin-bottom: 16px;
}
.chat-doc-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.chat-doc-name { font-weight: 700; font-size: 0.9rem; color: var(--warm-text); }
.chat-doc-status { font-size: 0.72rem; color: #22c55e; font-weight: 600; }
.chat-doc-status::before { content: '●'; margin-right: 4px; font-size: 0.55rem; }
.chat-bubble-doc {
  background: var(--teal-soft);
  border-radius: 16px 16px 16px 4px;
  padding: 11px 15px; font-size: 0.84rem;
  color: var(--warm-text); margin-bottom: 12px;
  border: 1px solid var(--teal-pale); display: inline-block;
}
.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.chat-quick-btn {
  border: 1.5px solid var(--teal-light);
  border-radius: 20px; padding: 5px 13px;
  font-size: 0.76rem; font-weight: 600; color: var(--teal-deep);
  background: none; cursor: pointer; transition: all 0.2s;
}
.chat-quick-btn:hover { background: var(--teal-soft); }
.chat-bubble-user {
  background: var(--teal-dark);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 15px; font-size: 0.84rem; color: #fff;
  text-align: right; margin-left: 40px; display: block;
}
.chat-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.chat-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.87rem; font-weight: 500; color: var(--warm-muted);
}
.chat-feat-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--teal-soft); border: 1px solid var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark); font-size: 0.75rem; flex-shrink: 0;
}

/* ─────────────────────────────────────
   BOOKING SECTION
───────────────────────────────────── */
.booking-section {
  background: var(--grad);
  padding: 88px 5%; position: relative; overflow: hidden;
}
.booking-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.booking-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.booking-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 52px; align-items: start;
}
.booking-info h2 { color: #fff; font-family: 'Lora', serif; }
.booking-info p { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-top: 12px; line-height: 1.7; }

.booking-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.booking-perk {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.92); font-size: 0.9rem; font-weight: 500;
}
.perk-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}

.booking-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.booking-form-wrap h3 {
  font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 600;
  color: var(--warm-text); margin-bottom: 24px;
}

/* Form fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--warm-muted); letter-spacing: 0.3px; margin-bottom: 6px;
  text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--warm-mid);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.9rem; font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--warm-text); background: var(--sand);
  transition: all 0.22s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91,192,181,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: #b0b8b5; }
.form-text { font-size: 0.73rem; color: var(--warm-muted); margin-top: 4px; }
.form-textarea { resize: vertical; min-height: 88px; }

.form-check-label { font-size: 0.83rem; color: var(--warm-muted); }
.form-check-label a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.form-check-label a:hover { text-decoration: underline; }
.form-check-input:checked { background-color: var(--teal-dark); border-color: var(--teal-dark); }

/* Existing Bootstrap form-select/form-control teal focus */
.form-control:focus, .form-select:focus {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 0.2rem rgba(91,192,181,0.2);
}
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235bc0b5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 12px;
  border: 2px solid rgba(91,192,181,0.3); border-radius: 8px; padding: 12px 16px;
  transition: all 0.3s ease;
}

.btn-submit {
  width: 100%; padding: 14px;
  background: var(--grad); border: none; border-radius: 50px;
  color: #fff; font-weight: 700; font-size: 0.95rem;
  font-family: 'DM Sans', 'Segoe UI', sans-serif; cursor: pointer;
  transition: all 0.25s; margin-top: 4px;
  box-shadow: 0 4px 16px rgba(91,192,181,0.35);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,192,181,0.45); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-check-appt {
  width: 100%; padding: 12px;
  background: none; border: 1.5px solid var(--teal-light);
  border-radius: 50px; color: var(--teal-deep);
  font-weight: 600; font-size: 0.9rem;
  font-family: 'DM Sans', 'Segoe UI', sans-serif; cursor: pointer;
  transition: all 0.22s; margin-top: 8px;
}
.btn-check-appt:hover { background: var(--teal-soft); }

/* ─────────────────────────────────────
   CHECK / CANCEL APPOINTMENT
───────────────────────────────────── */
#cancelAppointment {
  background: var(--teal-soft);
  padding: 40px 5%;
  display: none;
  border-top: 1px solid var(--teal-pale);
  border-bottom: 1px solid var(--teal-pale);
}
#cancelAppointment.show { display: block; }
.cancel-card {
  max-width: 680px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow); border: 1px solid var(--warm-mid); overflow: hidden;
}
.cancel-card-head {
  background: var(--grad); padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.cancel-card-head h5 { color: #fff; font-family: 'Lora', serif; margin: 0; }
.cancel-card-head .btn-close-white {
  background: none; border: none; color: rgba(255,255,255,0.75);
  font-size: 1.1rem; cursor: pointer; transition: color 0.2s;
}
.cancel-card-head .btn-close-white:hover { color: #fff; }
.cancel-card-body { padding: 28px; }

#cancelAppointment.slide-down { display: block; animation: slideDown 0.3s ease-out forwards; }
#cancelAppointment.slide-up { animation: slideUp 0.3s ease-out forwards; }
@keyframes slideDown {
  from { max-height: 0; opacity: 0; transform: translateY(-20px); }
  to   { max-height: 1000px; opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { max-height: 1000px; opacity: 1; transform: translateY(0); }
  to   { max-height: 0; opacity: 0; transform: translateY(-20px); }
}

#checkResult .alert {
  border-radius: 10px; border: none;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  background: white; border-left: 4px solid var(--teal-dark);
}
#checkResult .alert-info {
  border-left-color: var(--teal-dark);
  background: rgba(91,192,181,0.08);
}
#checkResult .appointment-item {
  background: rgba(91,192,181,0.05);
  border: 1px solid rgba(91,192,181,0.2);
  border-radius: 8px; transition: all 0.3s ease;
}
#checkResult .appointment-item:hover {
  background: rgba(91,192,181,0.1);
  box-shadow: 0 5px 15px rgba(91,192,181,0.2);
  transform: translateY(-2px);
  border-color: rgba(91,192,181,0.4);
}
#checkResult .cancel-single-btn {
  border: 2px solid #dc3545; color: #dc3545;
  font-weight: 600; transition: all 0.3s ease;
  background: white; border-radius: 20px; padding: 6px 15px;
}
#checkResult .cancel-single-btn:hover {
  background: #dc3545; color: white;
  transform: translateY(-2px); box-shadow: 0 3px 10px rgba(220,53,69,0.3);
}
#checkResult .badge.bg-success { background: linear-gradient(135deg, #28a745, #20c997) !important; }
#checkResult .badge.bg-warning { background: linear-gradient(135deg, #ffc107, #fd7e14) !important; color: #000 !important; }

.cancellation-reason {
  background: rgba(91,192,181,0.05); border: 1px solid rgba(91,192,181,0.2);
  border-radius: 8px; padding: 15px; margin-top: 10px;
}
.appointment-item { transition: all 0.3s ease; border-left: 4px solid transparent; }
.appointment-item:hover { border-left-color: var(--teal-dark); }

/* ─────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.about-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.about-icon-wrap {
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--teal-soft);
  border: 2px solid var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--teal-dark);
  box-shadow: 0 0 0 20px rgba(91,192,181,0.1), 0 0 0 40px rgba(91,192,181,0.05);
  animation: breatheIcon 6s ease-in-out infinite;
}
@keyframes breatheIcon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.about-badge {
  position: absolute; background: #fff; border-radius: 14px;
  padding: 10px 16px; box-shadow: var(--shadow);
  border: 1px solid var(--warm-mid);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--warm-text);
  white-space: nowrap;
}
.about-badge .ab-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ab1 { top: 10%; right: -20px; animation: floatA 4s ease-in-out infinite; }
.ab2 { bottom: 12%; left: -18px; animation: floatA 5s ease-in-out infinite 1s; }

.about-features { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.feature-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--warm-muted); font-weight: 500;
  background: rgba(91,192,181,0.07); padding: 10px 16px;
  border-radius: 50px; border: 1px solid rgba(91,192,181,0.18);
  transition: all 0.25s;
}
.feature-item:hover { background: rgba(91,192,181,0.13); transform: translateX(4px); }
.feature-item i { color: var(--teal-dark); font-size: 0.95rem; }
.feature-item span { color: var(--warm-text); font-weight: 500; }

/* ─────────────────────────────────────
   CONTACT SECTION
───────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1px solid var(--warm-mid);
  text-align: center; box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-pale); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--teal-soft); border: 1px solid var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--teal-dark); margin: 0 auto 16px;
}
.contact-card h3 { font-family: 'Lora', serif; font-size: 1rem; color: var(--warm-text); margin-bottom: 8px; }
.contact-card p { font-size: 0.88rem; color: var(--warm-muted); }
.contact-card a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer { background: var(--warm-text); padding: 52px 5% 28px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 700;
  color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer-brand-desc { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.fsocial {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: 0.85rem;
  text-decoration: none; transition: all 0.22s;
}
.fsocial:hover { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.3); }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span, .footer-bottom a { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* Social icons (legacy) */
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border-radius: 50%; color: white; text-decoration: none;
  transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.2);
}
.social-icon:hover { background: rgba(255,255,255,0.2); color: white; transform: translateY(-2px); border-color: rgba(255,255,255,0.4); }

/* ─────────────────────────────────────
   WELCOME TOAST
───────────────────────────────────── */
#welcomeToast {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  background: var(--white); border: 1px solid var(--teal-pale);
  color: var(--warm-text); padding: 14px 18px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  max-width: 320px;
  transform: translateX(120%);
  transition: transform 0.45s cubic-bezier(0.175,0.885,0.32,1.275);
}
#welcomeToast.show { transform: translateX(0); }
.wt-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-soft); border: 2px solid var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: var(--teal-deep); flex-shrink: 0;
}
.wt-close { background: none; border: none; color: var(--warm-muted); cursor: pointer; font-size: 0.9rem; padding: 2px; margin-left: auto; transition: color 0.2s; }
.wt-close:hover { color: var(--warm-text); }
.wt-status { font-size: 0.75rem; color: var(--warm-muted); }

/* ─────────────────────────────────────
   MODALS
───────────────────────────────────── */
.modal-content { border-radius: var(--radius-lg) !important; border: 1px solid var(--warm-mid) !important; }
.modal-header { border-bottom-color: var(--warm-mid) !important; }
.modal-footer { border-top-color: var(--warm-mid) !important; }

/* ─────────────────────────────────────
   REVEAL ANIMATIONS
───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─────────────────────────────────────
   UTILITY BUTTONS
───────────────────────────────────── */
.btn-custom {
  background: var(--grad);
  border: none; border-radius: 50px;
  color: #fff; padding: 12px 26px;
  font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(91,192,181,0.3);
}
.btn-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,192,181,0.42); color: #fff; }

.text-primary { color: var(--teal-dark) !important; }

/* ─────────────────────────────────────
   NOTIFICATIONS & UTILITIES
───────────────────────────────────── */
.notification {
  position: fixed; top: 100px; right: 20px; max-width: 400px; z-index: 9999;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px; margin-bottom: 10px; animation: slideIn 0.3s ease-out;
}
.notification.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.notification.error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.notification.info    { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; }
.notification.warning { background: #fff3cd; border: 1px solid #ffeaa7; color: #856404; }
.notification .btn-close { background: none; border: none; font-size: 1.2rem; opacity: 0.5; cursor: pointer; }
.notification .btn-close:hover { opacity: 1; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.loading-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid #f3f3f3; border-top: 3px solid var(--teal-dark);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.is-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25) !important; }
.invalid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: 0.875em; color: #dc3545; }
.invalid-feedback.d-block { display: block; }
.success-state { border: 2px solid #28a745 !important; box-shadow: 0 0 10px rgba(40,167,69,0.3) !important; }

/* Hero booking button ripple */
#heroBookingBtn { position: relative; overflow: hidden; }
#heroBookingBtn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255,255,255,0.2);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
#heroBookingBtn:hover::before { width: 300px; height: 300px; }

/* Doctor select optgroup styling */
.form-select optgroup { font-weight: bold; color: var(--teal-dark); background-color: rgba(91,192,181,0.08); padding: 8px 12px; }
.form-select option { padding: 8px 20px; font-weight: normal; color: var(--warm-text); }

/* Loading states */
.loading-state { opacity: 0.6; pointer-events: none; position: relative; }
.loading-state::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3; border-top: 2px solid var(--teal-dark);
  border-radius: 50%; animation: spin 1s linear infinite;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-chips { justify-content: center; }
  .hero-ctas  { justify-content: center; }
  .hero-visual { margin: 0 auto; }
  .if-left { left: -15px; }

  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-cta-wrap { grid-template-columns: 1fr; }
  .chat-preview { max-width: 480px; margin: 0 auto; }
  .booking-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { margin-bottom: 24px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero visual responsive */
  .doc-card { width: 240px; height: 240px; }
  .or1 { width: 280px; height: 280px; }
  .or2 { width: 340px; height: 340px; }
  .or3 { width: 400px; height: 400px; }
  .if-left { left: -20px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--warm-mid); }
  .stat-item:nth-child(even) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-sub { font-size: 0.93rem; }
  .doc-card { width: 210px; height: 210px; }
  .or1 { width: 240px; height: 240px; }
  .or2 { width: 300px; height: 300px; }
  .or3 { display: none; }
  .if-left { display: none; }
  .service-card { height: 240px; }
}

@media (max-width: 768px) {
  .cancellation-reason { padding: 10px; }
  .appointment-item .d-flex { flex-direction: column; }
  .appointment-item .cancel-single-btn { margin-top: 10px; margin-left: 0 !important; align-self: flex-end; }
  #cancelAppointment .card-body { padding: 20px; }
  #cancelAppointment .card-header { padding: 15px 20px; }
  .about-icon { width: 140px; height: 140px; font-size: 3rem; }
}