/* ==========================================================================
   APEX / SAISHREE EYE HOSPITAL - COMPLETE MASTER RESPONSIVE STYLESHEET
   100% Fully Responsive for All Devices:
   - Ultra-Wide & Desktop (> 1360px)
   - Laptops & Scaled Screens (1121px - 1360px)
   - Tablets & Small Laptops (769px - 1120px)
   - Phablets & Large Mobiles (481px - 768px)
   - Standard & Small Smartphones (320px - 480px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE MOBILE SAFEGUARDS
   -------------------------------------------------------------------------- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/*main, section, header, footer, .container, .container-narrow {*/
/*  width: 100% !important;*/
/*  max-width: 100% !important;*/
/*  box-sizing: border-box !important;*/
/*}*/




main, section, header, footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.container {
  width: 100% !important;
  max-width: 1280px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

.container-narrow {
  width: 100% !important;
  max-width: 960px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* Ensure no media or embeds ever force horizontal overflow */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100% !important;
  border: 0;
}

/* Minimum Accessible Touch Target for Mobile Buttons & Form Elements */
button, input, select, textarea, .btn, .nav-link, .m-bar-item {
  touch-action: manipulation;
}

/* Fluid Typography Safeguards for All Headings */
h1, .hero-title,
[style*="font-size: 3rem"],
[style*="font-size: 3.4rem"] {
  font-size: clamp(1.85rem, 5.5vw, 3.2rem) !important;
  line-height: 1.22 !important;
  word-break: break-word;
}

h2, .section-title,
[style*="font-size: 2.2rem"],
[style*="font-size: 2rem"],
[style*="font-size: 2.35rem"] {
  font-size: clamp(1.45rem, 4.2vw, 2.2rem) !important;
  line-height: 1.28 !important;
  word-break: break-word;
}

h3, [style*="font-size: 1.8rem"] {
  font-size: clamp(1.2rem, 3.5vw, 1.75rem) !important;
  line-height: 1.3 !important;
}

/* Page Banner Generic Container Responsiveness */
.page-banner-section,
section[style*="radial-gradient(circle at 80% 50%"] {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 !important;
}

/* Container Padding Scaling */
.container, .container-narrow {
  width: 100%;
  padding-inline: clamp(1rem, 3.5vw, 1.5rem) !important;
}

/* Responsive Grid Helper Classes */
.card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.75rem !important;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* --------------------------------------------------------------------------
   2. NAVBAR & BRAND LOGO PROTECTION (Never wrap or squish)
   -------------------------------------------------------------------------- */
.logo {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  gap: 0.75rem !important;
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.logo-title {
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
}

/* Never show drawer close header on desktop */
.drawer-header {
  display: none !important;
}

/* Laptop and Medium Desktop Optimization (1121px - 1360px) */
@media (min-width: 1121px) and (max-width: 1360px) {
  .logo .logo-img-wrapper {
    height: 62px !important;
    width: 62px !important;
  }
  .nav-menu {
    gap: 0.25rem !important;
  }
  .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
  }
  .nav-actions .btn-primary {
    padding: 0.55rem 1.15rem !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE BOTTOM ACTION BAR (Native App Feel on Handhelds)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom)) 0.75rem;
  z-index: 1000;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35);
}

.m-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  max-width: 500px;
  margin: 0 auto;
}

.m-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.2rem;
  padding: 0.4rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.m-bar-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.m-bar-item.active,
.m-bar-item:hover {
  color: var(--accent-glow);
}

.m-bar-item.highlight {
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* --------------------------------------------------------------------------
   4. TABLET & COMPACT DESKTOP BREAKPOINT (max-width: 1120px)
   Activates Hamburger Drawer Navigation cleanly so navbar never collides
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {

  /* --- Top Bar Adjustments --- */
  .top-bar-content {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
  }
  .top-bar-left, .top-bar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
  }

  /* --- Navbar & Mobile Hamburger Drawer --- */
  .navbar {
    padding: 0.75rem 0;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    color: #0f172a;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-toggle:hover {
    background: #e2e8f0;
    color: var(--primary);
  }

  .mobile-toggle svg {
    width: 24px;
    height: 24px;
  }

  /* Slide-in Mobile Drawer Navigation */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -105% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.25rem 1.25rem 2rem 1.25rem !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45) !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1200 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.4rem !important;
    display: flex !important;
  }

  .nav-menu.open {
    right: 0 !important;
  }

  .mobile-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
  }

  .drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .drawer-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    justify-content: space-between;
    color: #1e293b;
    font-weight: 600;
  }

  .nav-link:hover, .nav-link.active {
    background: #f0f9ff;
    color: var(--primary);
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
    margin: 0.25rem 0 0.5rem 0.75rem !important;
    padding: 0.5rem !important;
    border-radius: var(--radius-sm) !important;
    display: none !important;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block !important;
  }

  .nav-item.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Overlay Backdrop for Mobile Menu */
  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 25, 0.65);
    z-index: 1050;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .menu-backdrop.open {
    display: block !important;
  }

  /* Compact Navbar Action */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-actions .btn-primary {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }

  /* --- Hero Section Tablet --- */
  .hero-section {
    padding: 3.5rem 0 4.5rem 0;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center;
  }

  .hero-content {
    max-width: 100% !important;
    margin: 0 auto;
  }

  .hero-cta-group,
  .hero-features-strip {
    justify-content: center !important;
  }

  .hero-3d-visual {
    height: 380px !important;
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }

  .fcard-1 { left: 4% !important; top: 4% !important; }
  .fcard-2 { right: 4% !important; bottom: 4% !important; }

  /* --- Quick Booking Bar Tablet --- */
  /* --- Quick Bar Mobile Compact Redesign (50% Height Reduction) --- */
  .quick-booking-bar {
    margin-top: -1.25rem !important;
    margin-bottom: 2rem !important;
    padding: 0 0.5rem !important;
  }

  .quick-bar-inner {
    grid-template-columns: 1fr 1fr !important;
    padding: 1rem 0.85rem !important;
    gap: 0.65rem !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1) !important;
  }

  .quick-bar-field {
    border-right: none !important;
    border-bottom: none !important;
    padding: 0.4rem 0.5rem !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
  }

  .quick-bar-field:nth-child(1),
  .quick-bar-field:nth-child(2) {
    grid-column: span 1 !important;
  }

  .quick-bar-field:nth-child(3),
  .quick-bar-field:nth-child(4) {
    grid-column: span 1 !important;
    padding: 0.35rem 0.5rem !important;
    background: #f1f5f9 !important;
  }

  .quick-bar-label {
    font-size: 0.68rem !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 0.15rem !important;
  }

  .quick-bar-select {
    font-size: 0.82rem !important;
    width: 100% !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .quick-bar-input,
  .quick-bar-field:nth-child(4) span {
    font-size: 0.76rem !important;
  }

  #quickBarSubmitBtn,
  .quick-bar-inner > button,
  .quick-bar-inner > div:last-child {
    grid-column: span 2 !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
  }

  #quickBarSubmitBtn {
    padding: 0.72rem !important;
    font-size: 0.92rem !important;
    border-radius: 9999px !important;
  }

  /* --- Universal 2-Column Split Grids Override --- */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  .split-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Reset swapped ordering in Technology showcases on tablet */
  div[style*="order: 2"],
  div[style*="order: 1"] {
    order: 0 !important;
  }

  /* Disease Page Emergency Banner border */
  [style*="border-left: 1px solid rgba(255,255,255,0.1)"] {
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-left: 0 !important;
    padding-top: 1.75rem !important;
    margin-top: 1.25rem !important;
  }

  /* --- Vision Simulator Tablet --- */
  .vision-simulator-box {
    grid-template-columns: 1fr !important;
  }

  .sim-viewport {
    min-height: 360px !important;
  }

  /* --- 4-Card and Stats Grids --- */
  .card-grid-4,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* --- Footer Tablet --- */
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE PHONE BREAKPOINT (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  .container, .container-narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 1rem !important;
    box-sizing: border-box !important;
  }

  section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Space at bottom for fixed mobile navigation bar */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-bar {
    display: block !important;
  }

  /* Hide top strip on handhelds for clutter-free header */
  .top-bar {
    display: none !important;
  }

  .navbar {
    padding: 0.65rem 0;
  }

  .logo img {
    height: 44px !important;
    width: 44px !important;
  }

  .logo-title {
    font-size: 1.15rem !important;
  }

  .logo-tagline {
    font-size: 0.68rem !important;
  }

  /* In navbar, hide the bulky button; action is in bottom bar */
  .nav-actions .btn-primary {
    display: none !important;
  }

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

  .hero-subtitle {
    font-size: 0.98rem !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-features-strip {
    gap: 1.25rem !important;
    padding-top: 1.25rem !important;
  }

  .hero-feat-item {
    font-size: 0.82rem;
  }

  .hero-3d-visual {
    height: 310px !important;
  }

  .floating-3d-card {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.72rem !important;
  }

  .fcard-1 {
    top: 2% !important;
    left: 2% !important;
  }

  .fcard-2 {
    bottom: 2% !important;
    right: 2% !important;
  }

  .fcard-3 {
    display: none !important;
  }
  /* --- Quick Bar Mobile --- */
  .quick-booking-bar {
    margin-top: -1.5rem !important;
    margin-bottom: 2.5rem !important;
  }

  .quick-bar-inner {
    grid-template-columns: 1fr !important;
    padding: 1.25rem 1rem !important;
    gap: 0.85rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .quick-bar-field {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.65rem !important;
  }

  #quickBarSubmitBtn,
  .quick-bar-inner > button,
  .quick-bar-inner > .btn {
    grid-column: span 1 !important;
    width: 100% !important;
    padding: 0.9rem !important;
    font-size: 1rem !important;
  }

  /* --- Category Filter Pills: Touch-Swipeable Horizontal Strip --- */
  .category-filter-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.4rem 0.5rem 0.85rem 0.5rem !important;
    gap: 0.5rem !important;
    margin-bottom: 1.75rem !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  .category-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.84rem !important;
  }

  /* --- Vision Simulator Mobile --- */
  .sim-viewport {
    min-height: 260px !important;
    max-height: 300px !important;
  }

  .sim-controls {
    padding: 1.5rem 1.15rem !important;
  }

  .sim-controls h4 {
    font-size: 1.15rem !important;
  }

  .sim-condition-btn {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
  }

  /* --- Global Button Mobile Wrapping & Overflow Safeguard --- */
  .btn, .btn-lg, .btn-secondary, .btn-primary, .btn-glow {
    white-space: normal !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }

  /* --- Card Grids Mobile: Touch-Swipeable Horizontal Track --- */
  .card-grid,
  .card-grid-4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.85rem !important;
    padding-bottom: 1.25rem !important;
    padding-top: 0.25rem !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin: 0 !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  .card-grid::-webkit-scrollbar,
  .card-grid-4::-webkit-scrollbar {
    display: none !important;
  }

  .card-grid > .card-3d,
  .card-grid > .doctor-card,
  .card-grid > .treatment-card,
  .card-grid > .blog-card {
    flex: 0 0 calc(100% - 44px) !important;
    width: calc(100% - 44px) !important;
    max-width: 320px !important;
    min-width: 250px !important;
    scroll-snap-align: start !important;
    border-radius: var(--radius-lg) !important;
    box-sizing: border-box !important;
  }

  .card-grid-4 > .card-3d {
    flex: 0 0 calc(100% - 50px) !important;
    width: calc(100% - 50px) !important;
    max-width: 285px !important;
    min-width: 235px !important;
    scroll-snap-align: start !important;
    border-radius: var(--radius-lg) !important;
    box-sizing: border-box !important;
  }

  /* --- Compact Card-3D Mobile --- */
  .card-grid > .card-3d {
    padding: 1.25rem 1.15rem !important;
  }
  .card-grid > .card-3d .card-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.65rem !important;
  }
  .card-grid > .card-3d .card-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.35rem !important;
  }
  .card-grid > .card-3d .card-text {
    font-size: 0.82rem !important;
    line-height: 1.48 !important;
    margin-bottom: 0.65rem !important;
  }
  .card-grid > .card-3d ul {
    gap: 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  .card-grid > .card-3d ul li {
    font-size: 0.78rem !important;
  }
  .card-grid > .card-3d .card-link {
    font-size: 0.82rem !important;
    padding-top: 0.5rem !important;
  }

  /* --- Doctor Cards Mobile --- */
  /* --- Doctor Cards Mobile Compact --- */
  section:has(.doctor-card),
  .doctors-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
  }

  .doctor-img-wrap {
    height: 180px !important;
  }

  .doctor-body {
    padding: 0.85rem 1rem !important;
  }

  .doctor-name {
    font-size: 1.1rem !important;
    margin-bottom: 0.15rem !important;
  }

  .doctor-qualifications {
    font-size: 0.75rem !important;
  }

  .doctor-meta-grid {
    gap: 0.35rem !important;
    padding: 0.35rem 0 !important;
    margin-bottom: 0.65rem !important;
  }

  .doctor-card-footer {
    margin-top: 0.5rem !important;
  }

  .doctor-card-footer .btn {
    width: 100% !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.82rem !important;
    border-radius: 9999px !important;
  }

  /* --- Stats Strip Mobile --- */
  .stats-strip {
    padding: 3rem 0 !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem 1rem !important;
  }

  .stat-number {
    font-size: clamp(2rem, 7vw, 2.75rem) !important;
  }

  .stat-title {
    font-size: 0.92rem !important;
  }

  .stat-sub {
    font-size: 0.78rem !important;
  }

  /* --- TPA Insurance Grid Mobile --- */
  .tpa-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .tpa-card {
    padding: 1.1rem 0.75rem !important;
  }

  .tpa-card h5 {
    font-size: 0.85rem !important;
  }

  /* --- Contact Page Mobile --- */
  #generalEnquiryForm .form-row,
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  #generalEnquiryForm [style*="display: flex; gap: 1rem"] {
    flex-direction: column !important;
  }

  #generalEnquiryForm .btn {
    width: 100% !important;
  }

  /* Form Container padding on mobile */
  div[style*="padding: 2.5rem"] {
    padding: 1.5rem 1.15rem !important;
  }

  /* WhatsApp Direct Card in Contact Page */
  div[style*="background: linear-gradient(135deg, #10b981"] {
    flex-direction: column !important;
    text-align: center;
    gap: 1rem !important;
    padding: 1.25rem !important;
  }

  div[style*="background: linear-gradient(135deg, #10b981"] .btn {
    width: 100% !important;
  }

  /* --- Section Spacing Mobile --- */
  .py-5 {
    padding-block: 3.25rem !important;
  }
  .py-4 {
    padding-block: 2.5rem !important;
  }

  /* --- Floating WhatsApp Widget Mobile --- */
  .floating-whatsapp {
    bottom: calc(4.75rem + env(safe-area-inset-bottom)) !important;
    right: 1rem !important;
  }

  .whatsapp-btn {
    width: 52px !important;
    height: 52px !important;
  }

  .whatsapp-btn svg {
    width: 28px !important;
    height: 28px !important;
  }

  .whatsapp-popup {
    display: none !important;
  }

  /* --- Footer Mobile --- */
  .footer {
    padding-top: 3.5rem !important;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.25rem !important;
    padding: 1.5rem 0 !important;
  }

  .footer-socials {
    justify-content: center !important;
  }

  .footer-accreditations {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  /* --- Booking Modal & Wizard Mobile --- */
  .modal-overlay {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .booking-modal-container {
    max-height: 94vh !important;
    max-height: 94dvh !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    width: 100% !important;
  }

  .booking-modal-header {
    padding: 1rem 1.15rem !important;
  }

  .bm-header-info h3 {
    font-size: 1.15rem !important;
  }

  .bm-header-info p {
    font-size: 0.78rem !important;
  }

  .wizard-stepper {
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
  }

  .wizard-step span.step-text {
    display: none !important;
  }

  .wizard-body {
    padding: 1.25rem 1.15rem !important;
  }

  .dept-selector-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .dept-card-option {
    padding: 0.85rem 0.5rem !important;
  }

  .dept-card-option h6 {
    font-size: 0.82rem !important;
  }

  .consult-type-cards {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .slot-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .time-slot-btn {
    padding: 0.55rem 0.35rem !important;
    font-size: 0.8rem !important;
  }

  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .upi-qr-display {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .wizard-footer {
    padding: 1rem 1.15rem !important;
  }
}

/* --------------------------------------------------------------------------
   6. ULTRA-COMPACT MOBILE PHONES (max-width: 480px & 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

  .section-tag {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.75rem !important;
  }

  .quick-booking-bar {
    margin-top: 0.5rem !important;
  }

  div[style*="position: absolute; bottom: -1.5rem"] {
    position: static !important;
    margin-top: 1rem !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
    box-shadow: var(--shadow-sm) !important;
  }

  div[style*="display: flex; gap: 1.5rem; background: #f8fafc"] {
    gap: 0.85rem !important;
    padding: 1.15rem 1rem !important;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  div[style*="padding: 3.5rem 2.5rem"],
  div[style*="padding: 3rem 2.5rem"] {
    padding: 1.75rem 1.15rem !important;
    border-radius: var(--radius-lg) !important;
  }

  div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;"] {
    gap: 0.65rem !important;
  }

  #bookingModal [style*="display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap"] {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  #bookingModal [style*="display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap"] .btn {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   7. PRINT STYLESHEET
   -------------------------------------------------------------------------- */
@media print {
  .top-bar,
  .header,
  .mobile-bottom-bar,
  .floating-whatsapp,
  .wizard-stepper,
  .wizard-footer,
  .modal-close-btn,
  .footer,
  #printVoucherBtn,
  #voucherWaBtn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
  }

  .modal-overlay {
    position: static !important;
    background: white !important;
    padding: 0 !important;
  }

  .booking-modal-container {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
  }

  .voucher-printable-card {
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
}



