/* ==========================================================================
   JS Life Care Clinic - Main Stylesheet
   Design Tokens, Accessibility, Responsive Layout & Healthcare UI Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette - Calm, Trustworthy Healthcare Palette */
  --primary-navy: #0a2540;
  --primary-navy-dark: #06192c;
  --primary-navy-light: #16385c;
  --teal-accent: #0d9488;
  --teal-hover: #0f766e;
  --teal-light: #ccfbf1;
  --emerald-green: #059669;
  --emerald-hover: #047857;
  --emerald-light: #d1fae5;
  --cyan-highlight: #0284c7;
  --purple-highlight: #6366f1;
  --purple-light: #e0e7ff;

  /* Neutral Tones */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #cbd5e1;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(10, 37, 64, 0.12), 0 8px 10px -6px rgba(10, 37, 64, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Typography & Layout */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --container-max: 1380px;
  --header-height: 86px;
}

/* --------------------------------------------------------------------------
   2. Reset & General Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Focus Styles for Keyboard Accessibility */
:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

a:hover {
  color: var(--teal-hover);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Base Layout Components
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-surface-alt);
}

.section-bg-navy {
  background-color: var(--primary-navy);
  color: var(--text-on-dark);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--teal-light);
  color: var(--teal-hover);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag-emerald {
  background-color: var(--emerald-light);
  color: var(--emerald-hover);
}

.section-tag-purple {
  background-color: var(--purple-light);
  color: #4338ca;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-bg-navy .section-title {
  color: var(--text-on-dark);
}

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

.section-bg-navy .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* Button UI System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--teal-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
}

.btn-emerald {
  background-color: var(--emerald-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-emerald:hover {
  background-color: var(--emerald-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.btn-purple {
  background-color: var(--purple-highlight);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-purple:hover {
  background-color: #4f46e5;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

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

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-navy);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Section
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-navy), var(--teal-accent));
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.22);
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
  border: 2px solid var(--border-color);
  padding: 2px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

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

.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.8vw, 2rem);
    margin: 0 1rem;
  }
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--teal-accent);
  background-color: rgba(13, 148, 136, 0.08);
}

.nav-link.active {
  color: var(--teal-accent);
  background-color: var(--teal-light);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .header-actions .header-btn-homevisit {
    display: none;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-call-btn, .header-btn-wa {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .btn-text-wa {
    display: none;
  }
  .header-btn-wa {
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-full);
  }
}

.header-phone-dropdown {
  position: relative;
}

.phone-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 100;
}

.header-phone-dropdown:hover .phone-dropdown-menu,
.phone-dropdown-menu.active {
  display: flex;
}

.phone-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast);
}

.phone-dropdown-item:hover {
  background-color: var(--bg-surface-alt);
  color: var(--teal-accent);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  padding: 5rem 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section & Home Visit Promos
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4.5rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f4f1 50%, #f8fafc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background-color: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.hero-badge-homevisit {
  border-color: rgba(99, 102, 241, 0.3);
  color: #4338ca;
  background-color: #e0e7ff;
}

.hero-badge svg {
  color: var(--teal-accent);
}

.hero-headline {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero-headline span {
  color: var(--teal-accent);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.doctor-quick-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--teal-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.doctor-quick-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--teal-accent);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.doctor-quick-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.doctor-quick-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Appointment Form Card */
.appointment-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
}

.appointment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--teal-accent), var(--emerald-green));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.appointment-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.3rem;
}

.appointment-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-footer-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   6. Dedicated Home Visit Feature Section / Banner
   -------------------------------------------------------------------------- */
.home-visit-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.home-visit-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.home-visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .home-visit-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.home-visit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: #e0e7ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home-visit-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.home-visit-desc {
  font-size: 1.05rem;
  color: #c7d2fe;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.home-visit-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
  .home-visit-features {
    grid-template-columns: 1fr 1fr;
  }
}

.home-visit-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #ffffff;
}

.home-visit-feature-item svg {
  color: #818cf8;
  flex-shrink: 0;
}

.home-visit-action-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.home-visit-price-tag {
  font-size: 0.9rem;
  color: #e0e7ff;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   7. Health Concerns / Services Section
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 148, 136, 0.4);
}

.service-card-highlight {
  border: 2px solid var(--purple-highlight);
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.service-icon {
  width: 54px;
  height: 54px;
  background-color: var(--teal-light);
  color: var(--teal-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.service-icon-purple {
  background-color: var(--purple-light);
  color: var(--purple-highlight);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li svg {
  color: var(--emerald-green);
  flex-shrink: 0;
}

.service-action {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   8. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number-badge {
  width: 48px;
  height: 48px;
  background-color: var(--primary-navy);
  color: var(--teal-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem auto;
  border: 4px solid var(--teal-light);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--teal-accent);
}

/* --------------------------------------------------------------------------
   9. About the Doctor Section
   -------------------------------------------------------------------------- */
.doctor-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .doctor-profile-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.doctor-media-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.doctor-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background-color: var(--primary-navy);
}

.doctor-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-normal);
}

.doctor-photo-card:hover .doctor-main-img {
  transform: scale(1.02);
}

.doctor-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.7) 70%, transparent 100%);
  color: #ffffff;
  padding: 1.5rem 1.25rem 1rem 1.25rem;
}

.doctor-image-caption h4 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.doctor-image-caption p {
  font-size: 0.85rem;
  color: var(--teal-light);
  font-weight: 600;
}

/* Event Showcase Card */
.event-showcase-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.event-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.event-details {
  padding: 1rem 1.25rem;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.event-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
}

.event-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.doctor-credentials-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 576px) {
  .doctor-credentials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.credential-icon {
  width: 36px;
  height: 36px;
  background-color: var(--teal-light);
  color: var(--teal-hover);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credential-info h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.credential-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.official-bio-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--teal-accent);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.official-bio-box p {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. Testimonials & Google Reviews Styling
   -------------------------------------------------------------------------- */
.testimonials-placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .testimonials-placeholder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-placeholder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-author-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-navy), var(--teal-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.author-info p {
  font-size: 0.78rem;
  color: var(--text-light);
}

.google-g-badge {
  width: 28px;
  height: 28px;
  background-color: var(--bg-surface-alt);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #4285f4;
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-quote {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: normal;
}

.review-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-hover);
  background-color: var(--teal-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-top: auto;
}

.notice-banner {
  max-width: 760px;
  margin: 2.5rem auto 0 auto;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  background-color: transparent;
}

.faq-question:hover {
  color: var(--teal-accent);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--teal-accent);
  color: #ffffff;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   12. Contact & Footer Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-on-dark);
  margin-bottom: 0.35rem;
}

.info-details p, .info-details address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.phone-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.phone-badge:hover {
  background-color: var(--teal-accent);
  border-color: var(--teal-accent);
  color: #ffffff;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.hours-table td {
  padding: 0.45rem 0;
  color: var(--text-on-dark-muted);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #ffffff;
}

.hours-table tr {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.closed-badge {
  color: #f87171 !important;
  background-color: rgba(239, 68, 68, 0.15);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Embedded Google Map */
.map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-on-dark-muted);
}

.footer-nav a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   13. Mobile Sticky Quick Action Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0.75rem;
  z-index: 9999 !important;
  border-top: 1px solid var(--border-color);
  gap: 0.4rem;
  pointer-events: auto !important;
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  pointer-events: auto !important;
  position: relative;
  z-index: 10000 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   14. Modals & Toast Feedback Notifications
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 37, 64, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

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

.modal-content {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: background-color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #cbd5e1;
  color: var(--primary-navy);
}

.toast-notification {
  position: fixed;
  bottom: 85px;
  right: 20px;
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

@media (min-width: 992px) {
  .toast-notification {
    bottom: 25px;
  }
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--emerald-green);
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   15. Comprehensive Mobile & Tablet Responsive Enhancements
   -------------------------------------------------------------------------- */

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

.drawer-close-btn:hover {
  background-color: #cbd5e1;
  color: var(--primary-navy);
}

/* Tablet & Mobile Shared Optimizations */
@media (max-width: 991px) {
  :root {
    --header-height: 76px;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .logo-sub {
    font-size: 0.68rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }

  .hero-grid {
    gap: 2.25rem;
  }

  .appointment-card {
    padding: 1.75rem 1.35rem;
  }

  .home-visit-banner {
    padding: 2rem 1.5rem;
    margin: 2.25rem 0;
  }

  .doctor-profile-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .map-wrapper {
    min-height: 350px;
  }
}

/* Tablet Only Optimizations (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  .testimonials-placeholder-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  .how-it-works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .doctor-credentials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Smartphone Optimizations (< 767px) */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .header-container {
    padding: 0 0.85rem;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevents auto-zoom on mobile safari/chrome */
    padding: 0.78rem 0.9rem;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .doctor-quick-card {
    padding: 0.9rem 1rem;
    gap: 0.85rem;
  }

  .doctor-quick-avatar-img {
    width: 52px;
    height: 52px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .testimonials-placeholder-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .doctor-credentials-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .map-wrapper {
    min-height: 300px;
  }

  .mobile-drawer {
    width: 88%;
    max-width: 360px;
    padding: 1.75rem 1.35rem;
  }
}
