/* ==========================================================================
   NEXAHEALTH — COMPLETE DESIGN SYSTEM & STYLESHEET (style.css)
   Digital Health Services Expert — On-Site Healthcare Platform

   TABLE OF CONTENTS:
   1. RESET, BASE & GLOBAL TYPOGRAPHY
   2. DESIGN TOKENS (CSS Variables: Colors, Radiuses, Shadows, Transitions)
   3. UTILITY CLASSES (Containers, Badges, Typography Helpers)
   4. SCROLL-REVEAL ANIMATIONS (IntersectionObserver Transitions)
   5. SITE HEADER & NAVIGATION (Glassmorphism Navbar, Logo, Actions)
   6. MOBILE NAVIGATION DRAWER (Full-screen Off-canvas Overlay)
   7. HERO SECTION & SINGLE SHOWCASE (Headline, CTAs, Showcase Card)
   8. HEALTH SCREENING PACKAGES (Basic, Advance, Customised Cards)
   9. DEMOGRAPHIC WELLNESS SEGMENTS ("Who is this for?" 5 Cards)
   10. HOW IT WORKS (6-Step Sequential Flow & Report Delivery Channels)
   11. CLINICAL SERVICES OVERVIEW (Secondary 4-Card Grid)
   12. PATIENT ACCESS PREVIEW (Homepage Quick Links)
   13. FAQ ACCORDION SECTION (Expandable Questions & Answers)
   14. CALL-TO-ACTION (CTA) BANNER (Full-width Gradient Conversion Section)
   15. SITE FOOTER (Brand Info, Disclaimer, Directory & Contacts)
   16. FLOATING WHATSAPP BUTTON (Persistent Quick Action)
   17. GLOBAL RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   18. 3-STEP BOOKING WIZARD MODAL (Wizard, Demographic Selector, Step Forms, Summary, Success)
   19. PATIENT ACCESS PORTAL PAGE (patient.html Hero & Options Grid)
   20. COMPACT PACKAGE CARDS & TESTS DETAIL MODAL
   21. CUSTOM TEST PICKER OVERLAY (32-Test Interactive Catalog & Filter System)
   ========================================================================== */


/* ==========================================================================
   SECTION 1: RESET, BASE & GLOBAL TYPOGRAPHY
   Normalizes element sizing, sets smooth scrolling behavior, and applies
   the default font stack (Inter) and light background across the entire site.
   ========================================================================== */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: var(--brand-slate);
  line-height: 1.6;
  overflow-x: hidden;
}

img { 
  max-width: 100%; 
  display: block; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

ul { 
  list-style: none; 
}

button { 
  cursor: pointer; 
  border: none; 
  background: none; 
  font-family: inherit; 
}


/* ==========================================================================
   SECTION 2: DESIGN TOKENS (CSS VARIABLES)
   Centralized design system variables defining the brand color palette,
   surface shades, border radiuses, multi-level box shadows, and transitions.
   ========================================================================== */
:root {
  /* Brand primary (NexaHealth shield / Health word — teal) */
  --blue-600: #0e6b6b;
  --blue-500: #128585;
  --blue-400: #2a9d98;
  --blue-100: #cce8e6;
  --blue-50:  #eef7f6;

  /* Logo accents */
  --brand-teal-dark: #0a5250;
  --brand-slate: #14302f;
  --brand-orange: #f2a23c;
  --brand-muted: #5f7372;

  /* Accent & Category Colors */
  --teal-500: #0e6b6b;
  --purple-500: #7c3aed;
  --green-500: #059669;
  --orange-500: #f2a23c;

  /* Neutral Dark Tones */
  --dark-900: #0f2322;
  --dark-800: #14302f;
  --dark-700: #2d4543;
  --dark-600: #5f7372;

  /* Grays & White */
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;

  /* Border Radiuses */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);

  /* Global Transition Timing */
  --transition: all .3s cubic-bezier(.4,0,.2,1);

  /* Section vertical rhythm (desktop defaults) */
  --section-pad-y: 96px;
  --section-header-mb: 48px;
  --hero-pad-top: 120px;
  --footer-pad-top: 72px;
  --footer-pad-bottom: 48px;

  /* Landing section surfaces — alternating rhythm */
  --surface-hero: linear-gradient(165deg, #dcefed 0%, #f4faf9 35%, #ffffff 62%, #f8f4ef 100%);
  --surface-packages: #f4f7f8;
  --surface-who: linear-gradient(180deg, #fff1e0 0%, #ffe4c4 55%, #fff5eb 100%);
  --surface-process: linear-gradient(180deg, #b8ddd9 0%, #d4ece9 45%, #e5f4f2 100%);
  --surface-faq: #f0f3f7;
}


/* ==========================================================================
   SECTION 3: UTILITY CLASSES
   Reusable structural wrappers, text gradient clip effects, section badges,
   and standardized section header typography.
   ========================================================================== */
.container { 
  max-width: 1180px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header { 
  text-align: center; 
  margin-bottom: var(--section-header-mb); 
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-800);
  margin-bottom: 16px;
}

.section-desc { 
  color: var(--dark-600); 
  font-size: 1.05rem; 
  max-width: 560px; 
  margin: 0 auto; 
}

/* Section rhythm — visual separation between page blocks */
section {
  position: relative;
  isolation: isolate;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue-600), var(--brand-orange));
  opacity: 0.9;
}

.cta-banner .section-header .section-title::after {
  display: none;
}


/* ==========================================================================
   SECTION 4: SCROLL-REVEAL ANIMATIONS
   Styles applied to [data-animate] elements, triggered by IntersectionObserver
   in script.js to provide smooth fade-in and slide-up transitions on scroll.
   ========================================================================== */
[data-animate] { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity .7s ease, transform .7s ease; 
}

[data-animate].is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}

[data-animate="fade-left"] { 
  transform: translateX(40px); 
}

[data-animate="fade-left"].is-visible { 
  transform: translateX(0); 
}


/* ==========================================================================
   SECTION 5: SITE HEADER & NAVIGATION
   Fixed navigation bar with semi-transparent glassmorphism background,
   brand mark and tagline, desktop navigation links, and Patient Access button.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header.scrolled { 
  box-shadow: 0 4px 20px rgba(0,0,0,.08); 
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}

.logo-wrap { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-shrink: 1;
  min-width: 0;
}

.logo-full {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
  transition: transform .25s ease, opacity .25s ease;
}

.logo-full--footer {
  height: 46px;
  max-width: min(240px, 100%);
}

.logo-wrap:hover .logo-full {
  transform: scale(1.02);
  opacity: 0.96;
}

.logo-mark { 
  flex-shrink: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}

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

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

.logo-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-800);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.logo-tagline {
  font-size: .68rem;
  font-weight: 500;
  color: var(--blue-600);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.main-nav ul { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark-700);
  transition: var(--transition);
}

.nav-link:hover, 
.nav-link.active { 
  color: var(--blue-600); 
  background: var(--blue-50); 
}

.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.btn-patient-access {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-patient-access:hover { 
  background: var(--blue-500); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 16px rgba(14,107,107,.35); 
}

.hamburger { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  padding: 4px; 
}

.hamburger span { 
  display: block; 
  width: 22px; 
  height: 2px; 
  background: var(--dark-700); 
  border-radius: 2px; 
  transition: var(--transition); 
}


/* ==========================================================================
   SECTION 6: MOBILE NAV — dropdown under header (standard app-style menu)
   ========================================================================== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: calc(64px + env(safe-area-inset-top, 0px));
  bottom: 0;
  z-index: 999;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  display: block;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

.mobile-nav-drawer {
  position: relative;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid var(--gray-200, #e2e8f0);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  max-height: min(calc(100dvh - 64px - env(safe-area-inset-top, 0px)), 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: mobileNavDrop 0.22s ease-out;
}

@keyframes mobileNavDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-main {
  padding: 0;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: block;
  color: var(--dark-800, #1e293b);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 20px;
  line-height: 1.35;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link:active {
  background: var(--blue-50, #f0fdfa);
  color: var(--blue-600, #0e6b6b);
}

.mobile-nav-cta {
  display: block;
  margin: 12px 16px 16px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 100px;
  background: var(--blue-600, #0e6b6b);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(14, 107, 107, 0.25);
}

body.mobile-nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.mobile-nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.mobile-nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   SECTION 7: HERO SECTION & SINGLE SHOWCASE
   Main above-the-fold landing section. Features ambient glow circles,
   value proposition headline, primary call-to-actions, and the single unified
   showcase image card ("Wellness for Every Stage of Life").
   ========================================================================== */
.hero {
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--hero-pad-top) 0 calc(var(--section-pad-y) + 16px);
  background: var(--surface-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(14, 107, 107, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f4f7f8' d='M0,64 C240,120 480,0 720,48 C960,96 1200,24 1440,64 L1440,120 L0,120 Z'/%3E%3C/svg%3E")
      center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-mesh {
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(14, 107, 107, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(42, 157, 152, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 65% 72%, rgba(242, 162, 60, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 12% 80%, rgba(14, 107, 107, 0.12) 0%, transparent 45%);
  filter: blur(2px);
  animation: heroMeshDrift 18s ease-in-out infinite alternate;
}

@keyframes heroMeshDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.04); }
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
}

.hero-shape {
  position: absolute;
  pointer-events: none;
}

.hero-shape--ring {
  border-radius: 50%;
  border: 1px solid rgba(14, 107, 107, 0.14);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.35);
}

.hero-shape--a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  right: -6%;
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.hero-shape--b {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  bottom: 8%;
  left: -4%;
  border-color: rgba(242, 162, 60, 0.22);
  opacity: 0.45;
  animation: float 11s ease-in-out infinite reverse;
}

.hero-shape--plus {
  width: 48px;
  height: 48px;
  opacity: 0.2;
  background:
    linear-gradient(rgba(14, 107, 107, 0.5), rgba(14, 107, 107, 0.5)) center / 2px 100% no-repeat,
    linear-gradient(rgba(14, 107, 107, 0.5), rgba(14, 107, 107, 0.5)) center / 100% 2px no-repeat;
}

.hero-shape--c {
  top: 22%;
  left: 8%;
}

.hero-shape--dot-grid {
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 107, 107, 0.11) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-mesh,
  .hero-shape--a,
  .hero-shape--b,
  .hero-circle {
    animation: none;
  }
}

/* Ambient animated background circles */
.hero-bg-circles { 
  position: absolute; 
  inset: 0; 
  pointer-events: none;
  z-index: 0;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
}

.hero-circle--1 { 
  width: 600px; height: 600px; 
  background: radial-gradient(circle, #b8e4e2, transparent); 
  top: -200px; right: -100px; 
  animation: float 8s ease-in-out infinite; 
}

.hero-circle--2 { 
  width: 400px; height: 400px; 
  background: radial-gradient(circle, #cce8e6, transparent); 
  bottom: -100px; left: -80px; 
  animation: float 10s ease-in-out infinite reverse; 
}

.hero-circle--3 { 
  width: 300px; height: 300px; 
  background: radial-gradient(circle, #fdebd0, transparent); 
  top: 40%; left: 40%; 
  animation: float 12s ease-in-out infinite; 
}

@keyframes float { 
  0%,100% { transform: translateY(0); } 
  50% { transform: translateY(-20px); } 
}

/* 2-Column Hero Grid */
.hero-grid { 
  display: grid; 
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); 
  gap: clamp(32px, 5vw, 72px); 
  align-items: center; 
  position: relative;
  z-index: 3;
}

.hero-left {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 107, 107, 0.18);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: .06em;
  margin-bottom: 22px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(14, 107, 107, 0.08);
  backdrop-filter: blur(8px);
}

.hero-badge-dot { 
  width: 8px; height: 8px; 
  background: #22c55e; 
  border-radius: 50%; 
  animation: pulse 2s infinite; 
}

@keyframes pulse { 
  0%,100% { opacity: 1; transform: scale(1); } 
  50% { opacity: .6; transform: scale(1.4); } 
}

.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.35rem, 4.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--dark-900);
  margin-bottom: 18px;
  letter-spacing: -.03em;
}

.hero-sub { 
  font-size: clamp(1rem, 1.6vw, 1.12rem); 
  color: var(--dark-600); 
  max-width: 520px; 
  margin-bottom: 28px; 
  line-height: 1.65; 
}

.hero-ctas { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-btn-secondary {
  padding: 14px 26px;
  box-shadow: 0 4px 18px rgba(14, 107, 107, 0.06);
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--dark-600);
  line-height: 1.45;
}

.hero-trust strong {
  color: var(--dark-800);
  font-weight: 600;
}

.hero-trust-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue-600);
  background: rgba(14, 107, 107, 0.12);
  margin-top: 1px;
}

/* Global Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  white-space: nowrap;
}

.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 28px rgba(37,211,102,.45); 
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--blue-600);
  border: 2px solid var(--blue-100);
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover { 
  border-color: var(--blue-600); 
  background: var(--blue-50); 
  transform: translateY(-2px); 
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline-white:hover { 
  border-color: var(--white); 
  background: rgba(255,255,255,.1); 
}

/* Hero Right: Single Showcase Body */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: min(560px, 100%);
  margin-left: auto;
  perspective: 1000px;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--dark-800);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 32px rgba(15, 35, 34, 0.12),
    0 2px 8px rgba(14, 107, 107, 0.08);
  backdrop-filter: blur(10px);
  animation: heroFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-float-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.hero-float--1 {
  top: 6%;
  left: -4%;
  animation-delay: 0s;
}

.hero-float--2 {
  bottom: 18%;
  right: -6%;
  animation-delay: 1.2s;
}

.hero-float--3 {
  top: 42%;
  right: -8%;
  animation-delay: 2.4s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-image-glow {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(242, 162, 60, 0.22), rgba(14, 107, 107, 0.32), rgba(20, 48, 47, 0.12));
  filter: blur(28px);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
  transition: opacity .4s ease, filter .4s ease;
}

.hero-image-container:hover .hero-image-glow {
  opacity: 0.95;
  filter: blur(34px);
}

.hero-image-body {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.88));
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 24px 60px rgba(10, 35, 75, 0.14),
    0 4px 16px rgba(10, 110, 189, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1);
}

.hero-image-container:hover .hero-image-body {
  transform: translateY(-5px);
  box-shadow: 
    0 32px 70px rgba(10, 35, 75, 0.20),
    0 8px 24px rgba(10, 110, 189, 0.14);
}

.hero-single-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.hero-image-container:hover .hero-single-img {
  transform: scale(1.015);
}


/* ==========================================================================
   SECTION 8: HEALTH SCREENING PACKAGES
   3-column grid displaying the core screening tiers:
   - Basic Package (9 core vitals & ECG)
   - Advance Package (17 tests total: Basic + 8 Advance tests)
   - Customised Package (32 tests catalog for institutional & bulk needs)
   ========================================================================== */
.packages-section { 
  position: relative;
  padding-block: var(--section-pad-y);
  background: var(--surface-packages);
  border-top: 6px solid rgba(14, 107, 107, 0.12);
  border-bottom: 6px solid rgba(242, 162, 60, 0.35);
}

.packages-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 107, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 107, 107, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.packages-section > .container {
  position: relative;
  z-index: 1;
}


.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.package-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.package-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-xl); 
}

.package-card--featured { 
  border-color: var(--blue-600); 
  box-shadow: 0 4px 24px rgba(14,107,107,.2); 
}

.package-featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: var(--white);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.package-card-header {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pkg-basic { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.pkg-advance { background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); }
.pkg-custom { background: linear-gradient(135deg, #faf5ff, #ede9fe); }

.pkg-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.pkg-basic .pkg-icon-wrap { background: #bbf7d0; color: #15803d; }
.pkg-advance .pkg-icon-wrap { background: #a8ddd9; color: var(--blue-600); }
.pkg-custom .pkg-icon-wrap { background: #ddd6fe; color: #6d28d9; }

.package-card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-800);
}

.pkg-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.pkg-price-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.pkg-basic .pkg-price-val {
  color: #15803d;
}

.pkg-advance .pkg-price-val {
  color: var(--blue-600);
}

.pkg-custom .pkg-price-val {
  color: #6d28d9;
  font-size: 1.35rem;
  font-weight: 700;
}

.pkg-service-fee {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-500, #64748b);
  line-height: 1.35;
}

.pkg-price-unit {
  font-size: .84rem;
  font-weight: 600;
  color: var(--dark-600);
}

.pkg-tagline { 
  font-size: .85rem; 
  color: var(--dark-600); 
}

.package-card-body { 
  padding: 24px 28px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfc 100%);
}

.advance-note { 
  font-size: .82rem; 
  font-weight: 600; 
  color: var(--blue-600); 
  margin-bottom: 12px; 
  text-transform: uppercase; 
  letter-spacing: .04em; 
}

.package-tests { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  margin-bottom: 24px; 
}

.package-tests li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--dark-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

.package-tests li::before { 
  content: '✓'; 
  color: var(--blue-600); 
  font-weight: 700; 
  flex-shrink: 0; 
}

.custom-tests-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 6px; 
}

.package-btn {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
}

.pkg-btn-basic { background: #15803d; color: var(--white); }
.pkg-btn-basic:hover { background: #166534; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(21,128,61,.3); }

.pkg-btn-advance { background: var(--blue-600); color: var(--white); }
.pkg-btn-advance:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(14,107,107,.35); }

.pkg-btn-custom { background: #6d28d9; color: var(--white); }
.pkg-btn-custom:hover { background: #5b21b6; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(109,40,217,.3); }


/* ==========================================================================
   SECTION 9: DEMOGRAPHIC WELLNESS SEGMENTS ("Who is this for?")
   5 demographic wellness cards (Corporate, Student, Senior, Family, Community).
   Each card displays an icon, description, and "Book Visit" button linked to openBookingModal().
   ========================================================================== */
.who-section { 
  position: relative;
  text-align: center;
  margin-top: 56px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding: 56px max(24px, calc(50vw - 590px)) 48px;
  border-radius: 0;
  background: var(--surface-who);
  border-top: 1px solid rgba(242, 162, 60, 0.35);
  border-bottom: 1px solid rgba(242, 162, 60, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.who-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--brand-orange), var(--blue-400));
}

.who-section::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 162, 60, 0.12), transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.who-title { 
  font-family: 'Outfit', sans-serif; 
  font-size: 1.8rem; 
  font-weight: 700; 
  color: var(--dark-800); 
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.who-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 100px;
  background: var(--brand-orange);
  opacity: 0.85;
}

.demo-cards { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 16px; 
}

.demo-card {
  padding: 24px 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--blue-600);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.demo-card:nth-child(2) { border-top-color: #15803d; }
.demo-card:nth-child(3) { border-top-color: var(--brand-orange); }
.demo-card:nth-child(4) { border-top-color: #6d28d9; }
.demo-card:nth-child(5) { border-top-color: var(--teal-500); }

.demo-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg); 
  border-color: var(--blue-100); 
}

.demo-icon { 
  font-size: 2.2rem; 
  margin-bottom: 12px; 
}

.demo-card h4 { 
  font-size: .95rem; 
  font-weight: 700; 
  color: var(--dark-800); 
  margin-bottom: 8px; 
}

.demo-card p { 
  font-size: .82rem; 
  color: var(--dark-600); 
  line-height: 1.5; 
  margin-bottom: 18px; 
  flex-grow: 1; 
}

.demo-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.demo-btn:hover { 
  background: var(--blue-600); 
  color: var(--white); 
  border-color: var(--blue-600); 
}


/* ==========================================================================
   SECTION 10: HOW IT WORKS (6-Step Sequential Flow & Report Channels)
   Dark gradient section showcasing the 6-step screening workflow:
   1. Choose Package
   2. Confirmation Call
   3. On-Site Screening
   4. Digital Reports (via e-Link SMS, Email, Patient Portal)
   5. Teleconsultation
   6. Doorstep Medicine
   ========================================================================== */
.how-it-works {
  position: relative;
  padding: var(--section-pad-y) 0;
  background: var(--surface-process);
  color: var(--dark-800);
  border-top: 6px solid var(--blue-600);
  border-bottom: 6px solid rgba(14, 107, 107, 0.25);
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
  z-index: 0;
}

.how-it-works::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 107, 107, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.how-it-works > .container {
  position: relative;
  z-index: 1;
}

.how-it-works .section-desc {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .how-it-works .section-desc {
    white-space: nowrap;
    max-width: none;
  }
}

.steps-pipeline {
  list-style: none;
  margin: 20px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  max-width: 640px;
}

.steps-pipeline li {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--white);
  border: 1px solid rgba(14, 107, 107, 0.16);
  box-shadow: 0 2px 8px rgba(14, 107, 107, 0.06);
}

.steps-pipeline li:not(:last-child)::after {
  content: '→';
  margin-left: 10px;
  color: var(--brand-orange);
  font-weight: 700;
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 40px auto 0;
  align-items: stretch;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 0;
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(14, 107, 107, 0.12);
  box-shadow:
    0 4px 20px rgba(15, 35, 34, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--brand-orange));
  opacity: 0.85;
}

.step-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 107, 107, 0.22);
  box-shadow:
    0 14px 36px rgba(14, 107, 107, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.step-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.step-number {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14, 107, 107, 0.08);
  border: 1px solid rgba(14, 107, 107, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-left: auto;
}

.step-item h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 8px;
  line-height: 1.25;
}

.step-item p {
  font-size: .875rem;
  color: var(--dark-600);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.step-arrow {
  display: none;
}

/* Report delivery icons for Step 4 */
.report-channels-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.report-ch-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 107, 107, 0.06);
  border: 1px solid rgba(14, 107, 107, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  transition: var(--transition);
}

.report-ch-icon.ch-email { color: #38bdf8; }
.report-ch-icon.ch-wa { color: #25d366; }
.report-ch-icon.ch-portal { color: #818cf8; }

.report-ch-icon:hover {
  background: rgba(14, 107, 107, 0.12);
  transform: translateY(-2px);
}

.report-ch-icon.ch-email:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
}

.report-ch-icon.ch-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
  color: #fff;
}

.report-ch-icon.ch-portal:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
  color: #fff;
}


/* ==========================================================================
   SECTION 11: CLINICAL SERVICES OVERVIEW
   4-column grid highlighting key service categories:
   - At-Home Health Checkups
   - Laboratory Tests & Diagnostics
   - Teleconsultation & Doctor Review
   - Corporate & Institutional Wellness
   ========================================================================== */
.services-section { 
  padding-block: var(--section-pad-y); 
  background: var(--gray-100); 
}

.services-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; 
}

.service-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.service-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg); 
}

.svc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.svc-icon--blue { background: #dbeafe; color: var(--blue-600); }
.svc-icon--teal { background: #cffafe; color: var(--teal-500); }
.svc-icon--purple { background: #ede9fe; color: var(--purple-500); }
.svc-icon--green { background: #d1fae5; color: var(--green-500); }

.service-card h3 { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--dark-800); 
  margin-bottom: 10px; 
}

.service-card p { 
  font-size: .88rem; 
  color: var(--dark-600); 
  line-height: 1.6; 
}


/* ==========================================================================
   SECTION 12: PATIENT ACCESS PREVIEW (Homepage Quick Links)
   Grid of patient access tiles on the landing page directing to portal features.
   ========================================================================== */
.patient-access-section { 
  padding-block: var(--section-pad-y); 
  background: var(--white); 
}

.patient-access-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

.patient-option {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  border: 2px solid transparent;
  transition: var(--transition);
  display: block;
  text-align: center;
}

.patient-option:hover { 
  border-color: var(--blue-600); 
  background: var(--blue-50); 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
}

.pa-icon { 
  font-size: 2.2rem; 
  margin-bottom: 14px; 
}

.patient-option h4 { 
  font-size: 1rem; 
  font-weight: 700; 
  color: var(--dark-800); 
  margin-bottom: 6px; 
}

.patient-option p { 
  font-size: .85rem; 
  color: var(--dark-600); 
  line-height: 1.5; 
}


/* ==========================================================================
   SECTION 13: FAQ ACCORDION SECTION
   Interactive accordion list for frequently asked questions with clean open/close
   transitions and +/- toggle indicators.
   ========================================================================== */
.faq-section { 
  position: relative;
  padding-block: var(--section-pad-y);
  background: var(--surface-faq);
  border-top: 6px solid #cbd5e1;
  border-bottom: 6px solid rgba(14, 107, 107, 0.15);
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 0% 100%, rgba(148, 163, 184, 0.15), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(14, 107, 107, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.faq-section > .container {
  position: relative;
  z-index: 1;
}

.faq-phone { 
  color: var(--blue-600); 
  font-weight: 600; 
}

.faq-list { 
  max-width: 760px; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.faq-item { 
  border-radius: var(--radius-md); 
  background: var(--white); 
  border: 1px solid var(--gray-200); 
  overflow: hidden; 
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(20, 48, 47, 0.04);
}

.faq-item:hover { 
  border-color: var(--blue-100); 
}

.faq-item:has(.faq-answer.open) {
  border-color: rgba(14, 107, 107, 0.25);
  box-shadow: 0 8px 28px rgba(14, 107, 107, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-800);
  text-align: left;
  gap: 16px;
}

.faq-question::after { 
  content: '+'; 
  font-size: 1.4rem; 
  font-weight: 300; 
  color: var(--blue-600); 
  flex-shrink: 0; 
  transition: transform .3s; 
}

.faq-question[aria-expanded="true"]::after { 
  content: '-'; 
}

.faq-answer { 
  display: none; 
  padding: 0 24px 20px; 
  color: var(--dark-600); 
  font-size: .95rem; 
  line-height: 1.7; 
}

.faq-answer.open { 
  display: block; 
}


/* ==========================================================================
   SECTION 14: CALL-TO-ACTION (CTA) BANNER
   High-contrast banner positioned before the footer to drive user conversions
   via booking modal trigger and direct phone call.
   ========================================================================== */
.cta-banner {
  padding-block: var(--section-pad-y);
  background:
    radial-gradient(circle at 15% 50%, rgba(242, 162, 60, 0.22), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(125deg, var(--blue-600) 0%, var(--brand-teal-dark) 55%, #0a5250 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid rgba(242, 162, 60, 0.45);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.cta-content { 
  position: relative; 
}

.cta-banner h2 { 
  font-family: 'Outfit', sans-serif; 
  font-size: clamp(2rem, 4vw, 3rem); 
  font-weight: 800; 
  color: var(--white); 
  margin-bottom: 16px; 
}

.cta-banner p { 
  font-size: 1.1rem; 
  color: rgba(255,255,255,.8); 
  max-width: 540px; 
  margin: 0 auto 40px; 
}

.cta-actions { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap; 
}


/* ==========================================================================
   SECTION 15: SITE FOOTER
   Global dark footer containing brand summary, emergency medical disclaimer,
   company navigation, direct contact links, and copyright statement.
   ========================================================================== */
.site-footer { 
  background:
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(14, 107, 107, 0.2), transparent 55%),
    linear-gradient(180deg, #0f2322 0%, var(--dark-900) 100%);
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr; 
  gap: 60px; 
  padding: var(--footer-pad-top) 24px var(--footer-pad-bottom); 
}

.footer-brand .logo-wrap {
  margin-bottom: 4px;
}

.footer-brand-desc { 
  font-size: .9rem; 
  color: rgba(255,255,255,.55); 
  line-height: 1.7; 
  margin-top: 20px; 
  max-width: 340px; 
}

.footer-emergency { 
  font-size: .8rem; 
  color: rgba(255,200,50,.7); 
  margin-top: 16px; 
  line-height: 1.5; 
  max-width: 340px; 
}

.footer-col h5 { 
  font-size: .8rem; 
  font-weight: 700; 
  color: rgba(255,255,255,.5); 
  letter-spacing: .1em; 
  text-transform: uppercase; 
  margin-bottom: 20px; 
}

.footer-col ul { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.footer-col ul li a { 
  font-size: .9rem; 
  color: rgba(255,255,255,.65); 
  transition: var(--transition); 
}

.footer-col ul li a:hover { 
  color: var(--white); 
}

.footer-contact-list li { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.footer-contact-list svg { 
  color: var(--blue-400); 
  flex-shrink: 0; 
}

.footer-contact-list a { 
  font-size: .88rem; 
  color: rgba(255,255,255,.65); 
  transition: var(--transition); 
  word-break: break-word; 
  overflow-wrap: anywhere; 
}

.footer-contact-list a:hover { 
  color: var(--white); 
}

.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,.08); 
}

.footer-bottom-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 20px 24px; 
}

.footer-bottom p { 
  font-size: .85rem; 
  color: rgba(255,255,255,.4); 
}

.footer-bottom-links { 
  display: flex; 
  gap: 20px; 
}

.footer-bottom-links a { 
  font-size: .85rem; 
  color: rgba(255,255,255,.4); 
  transition: var(--transition); 
}

.footer-bottom-links a:hover { 
  color: var(--white); 
}


/* ==========================================================================
   SECTION 16: FLOATING WHATSAPP BUTTON
   Persistent circular button pinned to the lower-right corner of the screen
   with gentle pulsing bounce animation for immediate patient inquiries.
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.5);
  transition: var(--transition);
  animation: wa-bounce 3s ease-in-out infinite;
}

.whatsapp-float:hover { 
  transform: scale(1.12); 
  box-shadow: 0 8px 32px rgba(37,211,102,.6); 
}

@keyframes wa-bounce { 
  0%,100% { transform: translateY(0); } 
  50% { transform: translateY(-6px); } 
}

/* Mobile sticky: WhatsApp, Call, Book */
.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 997;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(14, 107, 107, 0.14);
    box-shadow: 0 -8px 32px rgba(15, 35, 34, 0.12);
    backdrop-filter: blur(12px);
  }

  body:not(.pa-logged-in) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.booking-modal-open .mobile-action-bar {
    display: none;
  }

  .mobile-action-bar__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.1;
    text-align: center;
  }

  .mobile-action-bar__btn--wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
  }

  .mobile-action-bar__btn--call {
    background: var(--white);
    color: var(--blue-600);
    border-color: rgba(14, 107, 107, 0.22);
  }

  .mobile-action-bar__btn--book {
    background: linear-gradient(135deg, var(--blue-600), var(--brand-teal-dark));
    color: #fff;
    font-size: 0.65rem;
  }

  .whatsapp-float {
    display: none;
  }
}


/* ==========================================================================
   SECTION 17: GLOBAL RESPONSIVE BREAKPOINTS
   Media queries adapting layout columns, font sizes, and container paddings
   for tablet (1024px, 768px) and mobile smartphone (480px) viewports.
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 72px;
    --section-header-mb: 40px;
    --hero-pad-top: 104px;
    --footer-pad-top: 64px;
    --footer-pad-bottom: 40px;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .hero-left { text-align: center; max-width: none; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { align-items: center; max-width: 340px; margin: 0 auto; text-align: left; }
  .hero-image-container { max-width: min(520px, 100%); margin: 0 auto; }
  .hero-float--1 { left: 2%; top: 4%; }
  .hero-float--2 { right: 2%; bottom: 12%; }
  .hero-float--3 { right: 4%; top: 38%; }
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: min(540px, 100%);
    margin: 0 auto 72px;
  }
  .demo-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 18px;
    max-width: 100%;
  }
  .step-item { padding: 20px 18px 18px; }
  .patient-access-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .pa-hero-inner { transform: none; }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 56px;
    --section-header-mb: 36px;
    --hero-pad-top: 96px;
    --footer-pad-top: 56px;
    --footer-pad-bottom: 36px;
  }

  .container { padding-left: 20px; padding-right: 20px; }
  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .main-nav { display: none; }
  .header-inner { height: 64px; gap: 10px; }
  .logo-full--header {
    height: 40px;
    max-width: min(190px, 52vw);
  }
  .header-actions .btn-patient-access { display: none; }
  .header-actions { gap: 4px; flex-shrink: 0; }
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }
  body.mobile-nav-open .site-header {
    z-index: 1001;
  }
  .hero {
    min-height: auto;
  }
  .hero-image-container { max-width: min(440px, 100%); margin: 0 auto; }
  .hero-image-body { padding: 6px; border-radius: 18px; }
  .hero-single-img { border-radius: 13px; }
  .hero-circle--1 { width: 320px; height: 320px; top: -120px; right: -80px; }
  .hero-circle--2 { width: 260px; height: 260px; }
  .hero-circle--3 { display: none; }
  .demo-cards { grid-template-columns: 1fr; }
  .demo-card { padding: 28px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .patient-access-grid { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .step-item { padding: 18px 16px 16px; }
  .pa-hero { min-height: 240px; }
  .pa-hero-sub { max-width: none; }
  .pa-option-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 24px 20px;
  }
  .pa-option-arrow { align-self: flex-end; }
  .faq-question { padding: 18px 18px; font-size: .95rem; gap: 12px; }
  .faq-answer { padding: 0 18px 18px; font-size: .92rem; }
  .footer-inner { padding: var(--footer-pad-top) 20px var(--footer-pad-bottom); gap: 32px; }
  .footer-brand-desc,
  .footer-emergency { max-width: none; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .tests-overlay {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    align-items: center;
  }
  .tests-modal {
    max-width: 100%;
    max-height: min(92dvh, 720px);
    border-radius: var(--radius-lg);
  }
  .tests-modal--wide { max-width: 100%; }
  .tests-modal-list,
  .tests-modal-list.tests-modal-list--single {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 8px;
  }
  .tests-modal-list li {
    padding: 12px 14px;
    font-size: 0.875rem;
  }
  .tests-modal-header {
    padding: 20px 48px 12px 16px;
  }
  .tests-modal-header h3 { font-size: 1.2rem; }
  .tests-modal-body {
    padding: 10px 10px 6px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .tests-modal-footer {
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  }
  .tests-close {
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    width: 40px;
    height: 40px;
  }
  .tests-book-btn {
    min-height: 48px;
    font-size: 0.92rem;
  }
  .summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .summary-label { padding-top: 0; }
  .booking-progress { margin-bottom: 22px; }
  .progress-step span { font-size: .65rem; max-width: 72px; line-height: 1.25; }
  .prog-line { margin: 0 4px 22px; }
  .whatsapp-float {
    bottom: max(18px, env(safe-area-inset-bottom, 0px) + 12px);
    right: max(18px, env(safe-area-inset-right, 0px) + 12px);
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-y: 48px;
    --section-header-mb: 32px;
    --hero-pad-top: 88px;
    --footer-pad-top: 48px;
    --footer-pad-bottom: 32px;
  }

  .container { padding-left: 16px; padding-right: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .btn-book-visit,
  .hero-btn-secondary { width: 100%; justify-content: center; }
  .hero-float { display: none; }
  .hero-image-container { max-width: 100%; margin: 0 auto; }
  .hero-image-body { padding: 5px; border-radius: 16px; }
  .hero-single-img { border-radius: 11px; }
  .package-card-header { padding: 26px 22px 20px; }
  .package-card-body { padding: 20px 22px 24px; }
  .pkg-actions { flex-direction: column; }
  .pkg-more-btn,
  .package-card-body .package-btn { width: 100%; text-align: center; }
  .steps-flow { grid-template-columns: 1fr; }
  .who-title { font-size: 1.45rem; margin-bottom: 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline-white { width: 100%; justify-content: center; }
  .booking-modal {
    padding: 24px 16px 20px;
    border-radius: var(--radius-lg);
    max-height: 94vh;
  }
  .booking-close { top: 12px; right: 12px; }
  .booking-step-title { font-size: 1.28rem; }
  .booking-nav { flex-wrap: wrap; }
  .btn-next,
  .btn-back,
  .btn-submit { width: 100%; text-align: center; justify-content: center; margin-left: 0; }
  .radio-pill-group { flex-direction: column; }
  .custom-picker-title-row { flex-direction: column; align-items: flex-start; }
  .cart-badge-wrap { margin-top: 0; width: 100%; }
  .cart-badge { justify-content: center; width: 100%; }
  .custom-tests-grid { grid-template-columns: 1fr; }
  .custom-proceed-btn { width: 100%; text-align: center; }
  .cart-summary { white-space: normal; text-align: center; }
  .mobile-nav-link { font-size: 0.98rem; padding: 15px 18px; }
  .tests-overlay { padding: 8px; }
  .tests-modal { max-height: 94dvh; border-radius: 16px; }
  .tests-modal-header { padding: 18px 44px 10px 14px; }
  .tests-modal-body { padding: 8px 6px 4px 14px; }
  .tests-modal-footer { padding: 10px 14px max(14px, env(safe-area-inset-bottom)); }
  .tests-modal-fee { font-size: 0.75rem; margin-bottom: 10px; }
}

@media (max-width: 360px) {
  .logo-full--header {
    height: 36px;
    max-width: min(168px, 46vw);
  }
  .btn-patient-access { padding: 9px 12px; font-size: .78rem; }
  .progress-step span { display: none; }
  .prog-line { margin-bottom: 0; }
}


/* ==========================================================================
   SECTION 18: 3-STEP BOOKING WIZARD MODAL
   Complete styling for the on-site screening booking modal:
   - Backdrop blur overlay & animated slide-up container
   - Progress bar (Steps 1, 2, 3 with connector lines)
   - Step 1: 3x2 demographic category selector bar & 6 dynamic fieldsets
   - Form inputs, floating focus states, validation error highlights
   - Step 2: Package selector cards with active border glow
   - Step 3: Dynamic confirmation summary with demographic pill & test chips
   - Step 4: Success confirmation dialog
   ========================================================================== */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 35, 34, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn .25s ease;
}

.booking-overlay.active { 
  display: flex; 
}

@keyframes overlayIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

.booking-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(14, 107, 107, 0.12);
  box-shadow:
    0 24px 64px rgba(15, 35, 34, 0.22),
    0 8px 24px rgba(14, 107, 107, 0.08);
  width: 100%;
  max-width: 580px;
  padding: 28px 28px 24px;
  position: relative;
  animation: modalSlideUp .35s cubic-bezier(.4,0,.2,1);
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-100) transparent;
}

.booking-modal::-webkit-scrollbar {
  width: 6px;
}

.booking-modal::-webkit-scrollbar-thumb {
  background: var(--blue-100);
  border-radius: 100px;
}

.booking-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--brand-orange));
  pointer-events: none;
}

@keyframes modalSlideUp { 
  from { opacity: 0; transform: translateY(40px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.booking-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark-600);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.booking-close:hover { 
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-600);
}

/* Wizard Step Progress Bar */
.booking-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 14px 12px 10px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fafcfc 100%);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.prog-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}

.progress-step.active .prog-dot { 
  background: var(--blue-600); 
  color: var(--white); 
}

.progress-step.done .prog-dot { 
  background: #22c55e; 
  color: var(--white); 
}

.progress-step span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-align: center;
  transition: var(--transition);
}

.progress-step.active span { 
  color: var(--blue-600); 
}

.progress-step.done span { 
  color: #16a34a; 
}

.prog-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background .4s;
}

.prog-line.done { 
  background: #22c55e; 
}

/* Step Container Visibility */
.booking-step { 
  display: flex; 
  flex-direction: column; 
}

.booking-step.hidden { 
  display: none; 
}

.booking-step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-800);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.booking-step-sub { 
  font-size: .875rem; 
  color: var(--brand-muted); 
  margin-bottom: 18px;
  line-height: 1.55;
}

.booking-custom-hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--blue-600);
  background: rgba(14, 107, 107, 0.08);
  border: 1px solid rgba(14, 107, 107, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  margin: -8px 0 16px;
}

.booking-custom-hint.hidden {
  display: none;
}

/* 3x2 Demographic Category Selector Bar */
.booking-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: #f8fafb;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 107, 107, 0.1);
}

.btype-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dark-700);
  font-size: .84rem;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btype-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-600);
}

.btype-btn.active {
  background: var(--white);
  color: var(--blue-600);
  border-color: rgba(14, 107, 107, 0.25);
  box-shadow: 0 2px 10px rgba(14, 107, 107, 0.12);
  font-weight: 700;
}

.btype-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* Demographic Fieldsets (Self, Family, Senior, Corporate, Student, Community) */
.btype-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: btypeFadeIn .22s ease-out;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid rgba(14, 107, 107, 0.12);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btype-fields.hidden {
  display: none;
}

@keyframes btypeFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .booking-type-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .btype-btn {
    font-size: .8rem;
    padding: 8px 6px;
  }
}

/* Form Controls & Input Styling */
.booking-form { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
}

.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.form-group label { 
  font-size: .8rem; 
  font-weight: 600; 
  color: var(--dark-700);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid rgba(14, 107, 107, 0.16);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--dark-800);
  background: #fafcfc;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
  resize: vertical;
}

.form-group textarea {
  min-height: 96px;
  line-height: 1.5;
}

/* Booking address: starts compact, grows when Google fills a long line */
.form-group textarea[id$='-address'] {
  min-height: 46px;
  overflow-y: hidden;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
  opacity: 1;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(14, 107, 107, 0.28);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus { 
  border-color: var(--blue-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(14, 107, 107, 0.14);
}

.form-group input.error,
.form-group textarea.error { 
  border-color: #ef4444;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.req { 
  color: #ef4444; 
}

.form-error { 
  font-size: .78rem; 
  color: #ef4444; 
  min-height: 16px; 
}

/* Radio Pill Group (e.g., Care Attendant Support) */
.radio-pill-group {
  display: flex;
  gap: 12px;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.radio-pill:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.radio-pill input[type="radio"] {
  accent-color: var(--blue-600);
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
}

.radio-pill:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(14, 107, 107, 0.1);
}

.radio-pill-text {
  font-size: .92rem;
  font-weight: 600;
  color: var(--dark-800);
}

.radio-pill:has(input:checked) .radio-pill-text {
  color: var(--blue-600);
  font-weight: 700;
}

/* Step 2: Package Selection Radio Cards */
.pkg-select-grid { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  margin-bottom: 8px; 
}

.pkg-select-card { 
  display: block; 
  cursor: pointer; 
}

.pkg-select-card input[type="radio"] { 
  display: none; 
}

.pkg-select-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(14, 107, 107, 0.14);
  background: #fafcfc;
  transition: var(--transition);
}

.pkg-select-card input:checked + .pkg-select-inner {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(14,107,107,.1);
}

.pkg-select-inner:hover { 
  border-color: var(--blue-400); 
  background: var(--blue-50); 
}

.pkg-sel-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pkg-sel-green { background: #d1fae5; color: #15803d; }
.pkg-sel-blue  { background: var(--blue-100); color: var(--blue-600); }
.pkg-sel-purple{ background: #ede9fe; color: #6d28d9; }

.pkg-select-inner h4 { 
  font-size: .95rem; 
  font-weight: 700; 
  color: var(--dark-800); 
  margin-bottom: 4px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.pkg-select-inner p { 
  font-size: .82rem; 
  color: var(--dark-600); 
  line-height: 1.5; 
}

.popular-tag {
  font-size: .7rem;
  font-weight: 700;
  background: var(--blue-600);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Wizard Navigation Buttons */
.booking-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  gap: 12px;
  border-top: 1px solid rgba(14, 107, 107, 0.1);
}

.btn-next {
  padding: 12px 26px;
  min-height: 46px;
  background: linear-gradient(135deg, var(--blue-600), var(--brand-teal-dark));
  color: var(--white);
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(14, 107, 107, 0.25);
}

.btn-next:hover { 
  background: var(--blue-500); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 16px rgba(14,107,107,.35); 
}

.btn-back {
  padding: 12px 20px;
  min-height: 46px;
  background: var(--white);
  color: var(--dark-600);
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover { 
  background: var(--gray-200); 
}

.btn-submit {
  padding: 12px 26px;
  min-height: 46px;
  background: linear-gradient(135deg, var(--blue-600), var(--brand-teal-dark));
  color: var(--white);
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(14, 107, 107, 0.3);
}

.btn-submit:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(14, 107, 107, 0.38);
}

.btn-next:disabled,
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Step 3: Dynamic Booking Summary Display */
.booking-otp-panel {
  margin: 20px 0 8px;
  padding: 18px 20px;
  border-radius: var(--radius-lg, 14px);
  background: linear-gradient(135deg, rgba(14, 107, 107, 0.06), rgba(42, 157, 152, 0.04));
  border: 1px solid rgba(14, 107, 107, 0.15);
}

.booking-otp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--dark-800);
}

.booking-otp-sub {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--dark-600);
  line-height: 1.45;
}

.booking-otp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.booking-otp-input {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 200px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.booking-otp-send {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
}

#booking-otp-panel .form-error {
  margin-top: 10px;
  margin-bottom: 0;
}

#booking-step-3 {
  width: 100%;
}

.booking-summary {
  width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(14, 107, 107, 0.16);
  box-shadow: 0 10px 32px rgba(14, 107, 107, 0.1);
  overflow: hidden;
}

.summary-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 107, 107, 0.08);
  border: 1px solid rgba(14, 107, 107, 0.18);
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--blue-600);
  font-size: .84rem;
  font-weight: 700;
  width: fit-content;
  margin: 16px 18px 0;
}

.summary-rows {
  padding: 8px 18px 14px;
  width: 100%;
  box-sizing: border-box;
}

.summary-type-icon {
  font-size: 1rem;
  line-height: 1;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(108px, 36%) 1fr;
  gap: 10px 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(14, 107, 107, 0.08);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row--package {
  margin-top: 4px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(14, 107, 107, 0.07);
  border-bottom: none;
}

.summary-row--address {
  align-items: start;
}

.summary-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--dark-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: 3px;
}

.summary-value {
  font-size: .9375rem;
  color: var(--dark-900);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.summary-value--address {
  font-weight: 500;
  line-height: 1.5;
}

.summary-address-meta {
  display: block;
  margin-top: 4px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue-600);
}

.summary-value--package {
  font-weight: 800;
  color: var(--blue-600);
  font-size: 1rem;
}

.booking-note { 
  width: 100%;
  box-sizing: border-box;
  font-size: .8125rem; 
  color: var(--dark-700); 
  line-height: 1.55; 
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--brand-orange);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 4px;
}

/* Success Confirmation State */
.booking-success-icon { 
  font-size: 3.5rem; 
  text-align: center; 
  margin-bottom: 12px; 
}

/* Hero Book Visit Button */
.btn-book-visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--blue-600), var(--brand-teal-dark));
  color: var(--white);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(14, 107, 107, .35);
  font-family: inherit;
}

.btn-book-visit:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 28px rgba(14, 107, 107, .45); 
}

/* CTA Primary Button Override for Booking */
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--blue-600);
  font-family: inherit;
  border: none;
}

.cta-banner .btn-primary:hover { 
  background: var(--gray-100); 
  transform: translateY(-2px); 
}


/* ==========================================================================
   SECTION 19: PATIENT ACCESS PORTAL PAGE (patient.html)
   Styles for the standalone patient portal:
   - Portal hero banner with left-aligned title and radial ambient glow
   - 2-column portal options grid (Previous History, E-Prescription, Buy Medicine,
     Speak to Doctor, and full-width Book a Visit)
   ========================================================================== */
.pa-hero {
  min-height: 280px;
  background: linear-gradient(145deg, var(--dark-900) 0%, #162033 100%);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--hero-pad-top) - 8px) 0 calc(var(--section-pad-y) * 0.65);
  position: relative;
  overflow: hidden;
}

.pa-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,107,107,.35), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.pa-hero-inner {
  position: relative;
  transform: translateX(-50px);
}

.pa-hero-left { 
  text-align: left; 
}

.pa-hero-left .pa-hero-title,
.pa-hero-left .pa-hero-sub { 
  text-align: left; 
}

.pa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pa-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}

.pa-hero-sub { 
  font-size: 1.05rem; 
  color: rgba(255,255,255,.65); 
  max-width: 520px; 
}

.pa-options-section { 
  padding-block: var(--section-pad-y);
  background:
    linear-gradient(180deg, #eef7f6 0%, #f3f4f6 100%);
  border-top: 1px solid rgba(14, 107, 107, 0.08);
}

.pa-options-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(14, 107, 107, 0.06), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(242, 162, 60, 0.05), transparent 35%);
  pointer-events: none;
}

.pa-options-section > .container {
  position: relative;
  z-index: 1;
}

.pa-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pa-option-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.pa-option-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

#pa-home-visit {
  grid-column: 1 / -1;
}

.pa-option-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa-icon--blue   { background: #dbeafe; color: var(--blue-600); }
.pa-icon--teal   { background: #cffafe; color: var(--teal-500); }
.pa-icon--purple { background: #ede9fe; color: var(--purple-500); }
.pa-icon--green  { background: #d1fae5; color: var(--green-500); }
.pa-icon--orange { background: #ffedd5; color: var(--orange-500); }
.pa-icon--indigo { background: #e0e7ff; color: #4338ca; }

.pa-option-content { 
  flex: 1; 
}

.pa-option-content h3 { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--dark-800); 
  margin-bottom: 6px; 
}

.pa-option-content p { 
  font-size: .88rem; 
  color: var(--dark-600); 
  line-height: 1.5; 
}

.pa-option-arrow { 
  color: var(--gray-400); 
  font-size: 1.2rem; 
  transition: var(--transition); 
  flex-shrink: 0; 
}

.pa-option-card:hover .pa-option-arrow { 
  color: var(--blue-600); 
  transform: translateX(4px); 
}

.active-page { 
  background: var(--blue-500) !important; 
}


/* ==========================================================================
   SECTION 20: COMPACT PACKAGE CARDS & TESTS DETAIL MODAL
   Styles for package card action buttons ("More Details" and "Book Now"),
   and the tests detail popup modal that lists all diagnostics in a package.
   ========================================================================== */
.pkg-count {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 20px;
}

.pkg-count-sub { 
  font-size: .82rem; 
  color: var(--dark-600); 
  font-weight: 400; 
}

.pkg-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pkg-more-btn {
  flex: 1;
  padding: 11px 16px;
  border: 2px solid var(--blue-100);
  border-radius: 100px;
  background: var(--white);
  color: var(--blue-600);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pkg-more-btn:hover { 
  border-color: var(--blue-600); 
  background: var(--blue-50); 
}

.package-card-body .package-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 11px 22px;
}

/* Tests Detail Modal Popup */
.tests-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10,20,40,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn .2s ease;
}

.tests-overlay.active { 
  display: flex; 
}

body.tests-modal-open {
  overflow: hidden;
  touch-action: none;
}

body.tests-modal-open .mobile-action-bar {
  display: none;
}

.tests-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  overflow: hidden;
  position: relative;
  animation: modalSlideUp .3s cubic-bezier(.4,0,.2,1);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tests-modal--wide {
  max-width: min(680px, 96vw);
}

.tests-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--dark-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.tests-close:hover { 
  background: var(--gray-200); 
}

.tests-modal-header {
  flex-shrink: 0;
  padding: 28px 48px 16px 28px;
  border-bottom: 1px solid var(--gray-200);
}

.tests-modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-800);
  margin-bottom: 6px;
  line-height: 1.25;
  padding-right: 8px;
}

.tests-modal-header p {
  font-size: .875rem;
  color: var(--dark-600);
  margin: 0;
}

.tests-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 16px 20px 8px 28px;
}

.tests-modal-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 8px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  align-items: start;
}

.tests-modal-list.tests-modal-list--single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.tests-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--dark-700);
  padding: 10px 12px;
  margin: 0;
  background: var(--gray-50, #f8fafc);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}

.tests-modal-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--blue-600);
  flex-shrink: 0;
}

.tests-modal-item-text {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.tests-modal-footer {
  flex-shrink: 0;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(to top, var(--white) 85%, rgba(255, 255, 255, 0.98));
}

.tests-modal-fee {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-600);
  text-align: center;
}

.tests-book-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 100px;
  background: var(--blue-600);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.tests-book-btn:hover { 
  background: var(--blue-500); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 16px rgba(14,107,107,.35); 
}

.tests-modal--basic .tests-modal-list li::before {
  background: #15803d;
}

.tests-modal--advance .tests-modal-list li::before {
  background: #0e6b6b;
}

.tests-modal--custom .tests-modal-list li::before {
  background: #6d28d9;
}

@media (max-width: 768px) {
  .pa-options-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-modal { padding: 28px 20px 24px; }
}


/* ==========================================================================
   SECTION 21: CUSTOM TEST PICKER OVERLAY (32-Test Interactive Catalog)
   Comprehensive diagnostic test selection modal:
   - Dark header with live selected counter badge
   - Category filter pills (All, Vitals, Blood, Clinical Devices, Other)
   - 3-column interactive card grid with custom checkboxes and active highlights
   - Step 3 summary selected tests chip wrapper with "Edit Tests" button
   - Sticky bottom footer with live cart summary text and "Proceed to Book" button
   ========================================================================== */
.custom-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(5, 15, 35, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: overlayIn .25s ease;
}

.custom-picker-overlay.active { 
  display: flex; 
}

.custom-picker-modal {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  width: 100%;
  max-width: 780px;
  margin: auto;
  overflow: hidden;
  animation: modalSlideUp .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}

.custom-picker-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none; cursor: pointer;
  font-size: 1rem; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.custom-picker-close:hover { 
  background: rgba(255,255,255,.3); 
}

.custom-picker-header {
  background: linear-gradient(135deg, var(--dark-900), #162033);
  padding: 36px 36px 24px;
  position: relative;
}

.custom-picker-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.custom-picker-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.custom-picker-sub { 
  font-size: .9rem; 
  color: rgba(255,255,255,.6); 
}

.cart-badge-wrap { 
  flex-shrink: 0; 
  margin-top: 4px; 
}

.cart-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}

#cart-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: #60d3ff;
}

/* Category Filter Pills */
.custom-picker-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cpf-btn {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.cpf-btn:hover { 
  border-color: rgba(255,255,255,.6); 
  color: var(--white); 
}

.cpf-btn.active { 
  background: var(--white); 
  color: var(--dark-900); 
  border-color: var(--white); 
}

/* 3-Column Test Checkbox Grid */
.custom-tests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 28px 36px;
  overflow-y: auto;
  max-height: 400px;
}

.test-check-card { 
  display: block; 
  cursor: pointer; 
}

.test-check-card input[type="checkbox"] { 
  display: none; 
}

.test-check-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  transition: all .18s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.test-check-inner:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.test-check-card input:checked + .test-check-inner {
  border-color: var(--blue-600);
  background: #eff8ff;
  box-shadow: 0 0 0 1px var(--blue-600);
}

.test-check-inner span {
  font-size: .88rem;
  color: var(--dark-700);
  font-weight: 500;
  line-height: 1.3;
}

.test-check-card input:checked + .test-check-inner span {
  color: var(--blue-600);
  font-weight: 600;
}

.test-check-card[data-hidden="true"] { 
  display: none; 
}

/* Step 3: Selected Custom Tests Chips Display */
.summary-tests-wrap {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.summary-tests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.summary-tests-count {
  font-size: .84rem;
  font-weight: 700;
  color: var(--dark-800);
}

.summary-edit-tests-btn {
  background: transparent;
  border: none;
  color: var(--blue-600);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: inherit;
  transition: var(--transition);
}

.summary-edit-tests-btn:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.summary-tests-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.summary-test-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid #bfdbfe;
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Custom Test Picker Sticky Footer */
.custom-picker-footer {
  padding: 20px 36px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  position: sticky;
  bottom: 0;
}

.cart-summary {
  font-size: .85rem;
  color: var(--dark-600);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-proceed-btn {
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--blue-600), var(--brand-teal-dark));
  color: var(--white);
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.custom-proceed-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(14,107,107,.4); 
}

.custom-proceed-btn:disabled { 
  opacity: .5; 
  cursor: not-allowed; 
  transform: none; 
}

@media (max-width: 640px) {
  .custom-tests-grid { grid-template-columns: 1fr 1fr; padding: 20px; gap: 8px; }
  .custom-picker-header { padding: 28px 20px 18px; }
  .custom-picker-footer { padding: 16px 20px; flex-direction: column; align-items: stretch; }
  .custom-picker-title { font-size: 1.3rem; }
  .custom-picker-filters { gap: 6px; }
  .cpf-btn { padding: 8px 14px; font-size: .8rem; }
}

/* Touch devices: keep layout stable (no hover lift on cards) */
@media (hover: none) and (pointer: coarse) {
  .package-card:hover,
  .demo-card:hover,
  .step-item:hover,
  .pa-option-card:hover,
  .service-card:hover {
    transform: none;
  }
  .whatsapp-float:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .custom-tests-grid { grid-template-columns: 1fr; }
}

/* —— Portals: patient OTP, staff table, Places —— */
.hidden { display: none !important; }

.portal-login-section {
  padding-block: var(--section-pad-y);
  background: var(--white);
}

.portal-login-card {
  max-width: 440px;
  margin-inline: auto;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14, 107, 107, 0.12);
}

.portal-login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-800);
}

.portal-login-sub {
  font-size: 0.92rem;
  color: var(--dark-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

.portal-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.portal-form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-700);
}

.portal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.portal-error {
  color: #b91c1c;
  font-size: 0.88rem;
  min-height: 1.25em;
}

.portal-dev-hint {
  font-size: 0.82rem;
  color: var(--teal-600, #0e6b6b);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.portal-btn {
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.portal-btn--outline {
  background: transparent;
  border: 2px solid var(--teal-600, #0e6b6b);
  color: var(--teal-600, #0e6b6b);
}

.pa-dashboard-bar {
  background: #0e6b6b;
  color: var(--white);
  padding: 16px 0;
}

.pa-dashboard-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pa-dashboard-welcome {
  font-weight: 700;
  font-size: 1.05rem;
}

.pa-dashboard-stats {
  font-size: 0.88rem;
  opacity: 0.85;
}

.pa-grid--locked .pa-option-card:not(#pa-home-visit) {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.2);
}

.pa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pa-modal-overlay.active {
  display: flex;
}

.pa-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.pa-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-600);
}

.pa-modal-empty {
  color: var(--dark-600);
  line-height: 1.55;
}

.pa-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pa-modal-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.places-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.places-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
}

.places-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: none;
  font-size: 0.88rem;
  cursor: pointer;
}

.places-item--muted {
  cursor: default;
  font-size: 0.82rem;
  color: var(--slate-600, #475569);
  background: var(--slate-50, #f8fafc);
}

.places-item--muted:hover {
  background: var(--slate-50, #f8fafc);
}

.places-item:hover {
  background: #eef7f6;
}

.staff-hero {
  padding: 48px 0 24px;
  background: linear-gradient(135deg, #0e6b6b 0%, #134e4a 100%);
  color: var(--white);
}

.staff-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

.staff-hero-sub {
  margin-top: 10px;
  opacity: 0.85;
  max-width: 520px;
}

.staff-app {
  padding-block: var(--section-pad-y);
}

.staff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.staff-table th,
.staff-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.staff-table th {
  background: #f3f4f6;
  font-weight: 600;
}

.staff-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #e5e7eb;
}

.staff-status--confirmed { background: #d1fae5; color: #065f46; }
.staff-status--submitted { background: #dbeafe; color: #1e40af; }
.staff-status--cancelled { background: #fee2e2; color: #991b1b; }

.staff-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #0e6b6b;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-btn--outline {
  background: transparent;
  border: 1px solid #0e6b6b;
  color: #0e6b6b;
}

.staff-actions {
  white-space: nowrap;
}

/* Patient dashboard app shell */
body.pa-logged-in {
  min-height: 100vh;
  padding-top: 72px;
  background: #f0f4f3;
  display: flex;
  flex-direction: column;
}

body.pa-logged-in .site-header {
  border-bottom: 1px solid rgba(14, 107, 107, 0.12);
}

body.pa-logged-in .pa-hero,
body.pa-logged-in .portal-login-section,
body.pa-logged-in .site-footer,
body.pa-logged-in .whatsapp-float {
  display: none !important;
}

.pa-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 72px);
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  background: #f0f4f3;
  position: relative;
  overflow: hidden;
}

.pa-app-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 80;
}

.pa-app-backdrop.is-visible {
  display: block;
}

.pa-sidebar {
  background: #0c5c5c;
  color: #ecfdf5;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 90;
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
}

.pa-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
}

.pa-sidebar-profile:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f2a23c;
  color: #1f2937;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pa-sidebar-profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pa-sidebar-profile-text strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pa-sidebar-profile-text span {
  font-size: 0.78rem;
  opacity: 0.82;
}

.pa-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  flex: 1;
}

.pa-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pa-nav-item:hover,
.pa-nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pa-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pa-nav-dot--teal { background: #5eead4; }
.pa-nav-dot--blue { background: #93c5fd; }
.pa-nav-dot--green { background: #6ee7b7; }
.pa-nav-dot--orange { background: #fdba74; }
.pa-nav-dot--indigo { background: #a5b4fc; }

.pa-sidebar-foot {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.pa-sidebar-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-decoration: none;
}

.pa-sidebar-link:hover {
  color: #fff;
}

.pa-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.pa-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pa-menu-toggle {
  display: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

.pa-topbar-titles {
  flex: 1;
  min-width: 160px;
}

.pa-topbar-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0e6b6b;
  font-weight: 600;
  margin-bottom: 2px;
}

.pa-topbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.pa-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pa-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pa-btn--accent {
  background: #f2a23c;
  color: #1f2937;
}

.pa-btn--accent:hover {
  filter: brightness(1.05);
}

.pa-btn--ghost {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.pa-main-scroll {
  padding: 20px 28px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.pa-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.pa-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.pa-field-hint {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

.pa-profile-success {
  color: #047857;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 8px;
}

.pa-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.pa-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pa-stat-card--highlight {
  border-color: rgba(14, 107, 107, 0.25);
  background: linear-gradient(145deg, #fff 0%, #eef7f6 100%);
}

.pa-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pa-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0e6b6b;
  line-height: 1.1;
  margin: 6px 0 4px;
}

.pa-stat-value--sm {
  font-size: 1.15rem;
  font-weight: 700;
}

.pa-stat-hint,
.pa-stat-link {
  font-size: 0.82rem;
  color: #6b7280;
}

.pa-stat-link {
  color: #0e6b6b;
  font-weight: 600;
  text-decoration: none;
}

.pa-dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pa-panel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 18px 20px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pa-panel--compact {
  margin-bottom: 8px;
}

.pa-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pa-panel-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.pa-panel-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

.pa-text-btn {
  border: none;
  background: none;
  color: #0e6b6b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.pa-table-wrap {
  overflow-x: auto;
}

.pa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.pa-table th,
.pa-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.pa-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.pa-table-empty {
  color: #6b7280;
  padding: 20px 8px !important;
}

.pa-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #e5e7eb;
  color: #374151;
}

.pa-badge--confirmed { background: #d1fae5; color: #065f46; }
.pa-badge--submitted { background: #dbeafe; color: #1e40af; }
.pa-badge--cancelled { background: #fee2e2; color: #991b1b; }

.pa-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pa-activity-item {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.pa-activity-item strong {
  display: block;
  font-size: 0.9rem;
  color: #111827;
}

.pa-activity-item span {
  font-size: 0.82rem;
  color: #6b7280;
}

.pa-activity-empty,
.pa-empty {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pa-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pa-detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.pa-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pa-quick-card {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pa-quick-card:hover {
  border-color: #0e6b6b;
  box-shadow: 0 4px 12px rgba(14, 107, 107, 0.08);
}

.pa-quick-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: #111827;
}

.pa-quick-card span {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .pa-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pa-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pa-app {
    grid-template-columns: 1fr;
  }
  .pa-sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    height: calc(100vh - 72px);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.15);
  }
  .pa-sidebar.is-open {
    transform: translateX(0);
  }
  .pa-menu-toggle {
    display: inline-flex;
  }
  .pa-topbar-actions .pa-btn--accent {
    display: none;
  }
}

@media (max-width: 640px) {
  .pa-main-scroll {
    padding: 16px;
  }
  .pa-stat-grid,
  .pa-quick-grid,
  .pa-profile-form-grid {
    grid-template-columns: 1fr;
  }
  .pa-topbar {
    padding: 0 16px;
  }
}

/* Staff dashboard (reuses patient app shell) */
body.st-logged-in {
  min-height: 100vh;
  padding-top: 0;
  background: #e8f0ef;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(14, 107, 107, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(242, 162, 60, 0.1) 0%, transparent 38%),
    linear-gradient(180deg, #eef5f4 0%, #e8f0ef 100%);
  display: flex;
  flex-direction: column;
}

body.st-logged-in .site-header,
body.st-logged-in .staff-hero,
body.st-logged-in .portal-login-section {
  display: none !important;
}

body.st-logged-in .pa-app {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body.st-logged-in .pa-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(14, 107, 107, 0.08);
}

body.st-logged-in .st-sidebar .pa-avatar {
  background: linear-gradient(135deg, #f2a23c 0%, #fbbf24 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.st-welcome {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(125deg, #0e6b6b 0%, #0c5c5c 48%, #134e4a 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(14, 107, 107, 0.22);
}

.st-welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.st-welcome-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}

.st-welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.st-welcome-sub {
  font-size: 0.92rem;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

.st-welcome-accent {
  position: absolute;
  right: -20px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 162, 60, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.st-stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.st-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.st-stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.st-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.st-stat-icon--teal { background: #ccfbf1; color: #0f766e; }
.st-stat-icon--blue { background: #dbeafe; color: #1d4ed8; }
.st-stat-icon--green { background: #d1fae5; color: #047857; }
.st-stat-icon--gold { background: #ffedd5; color: #c2410c; }

.st-stat-card--total .pa-stat-value { color: #0e6b6b; }
.st-stat-card--pending .pa-stat-value { color: #1d4ed8; }
.st-stat-card--confirmed .pa-stat-value { color: #047857; }
.st-stat-card--today .pa-stat-value { color: #c2410c; }

.st-panel-sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 2px;
  font-weight: 500;
}

.st-panel--list,
.st-panel--detail {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.st-panel--detail {
  background: linear-gradient(180deg, #fff 0%, #fafcfb 100%);
}

.st-detail-panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
}

.st-search-wrap {
  flex: 1;
  min-width: 160px;
  position: relative;
  display: flex;
  align-items: center;
}

.st-search-icon {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  pointer-events: none;
  display: flex;
}

.st-search-input {
  width: 100%;
  padding-left: 40px !important;
  border-radius: 10px !important;
  border-color: #e5e7eb !important;
  background: #f9fafb;
}

.st-search-input:focus {
  background: #fff;
  border-color: #0e6b6b !important;
  box-shadow: 0 0 0 3px rgba(14, 107, 107, 0.12);
}

.st-filter-select {
  border-radius: 10px;
  background: #f9fafb;
}

.st-table-wrap {
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #fafafa;
}

.st-enquiry-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f4f6;
  padding: 12px 10px;
}

.st-enquiry-table tbody td {
  padding: 12px 10px;
  vertical-align: middle;
}

.st-enquiry-table tbody td small {
  color: #6b7280;
  font-size: 0.78rem;
}

.st-row--selected td {
  background: #ecfdf5;
}

.st-row--selected td:first-child {
  box-shadow: inset 3px 0 0 #0e6b6b;
}

.st-detail-empty {
  text-align: center;
  padding: 48px 24px 56px;
  color: #6b7280;
}

.st-detail-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #eef7f6;
  color: #0e6b6b;
  margin-bottom: 16px;
}

.st-detail-empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.st-detail-empty-text {
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

.st-detail-head {
  padding: 16px;
  margin: 0 -4px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.st-price-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid rgba(14, 107, 107, 0.15);
}

.st-price-card h4 {
  margin-bottom: 10px;
  color: #0f766e;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-detail-section--pricing {
  border-top: none;
  padding-top: 4px;
}

.st-detail-dl--pricing .st-detail-row {
  border-bottom-color: rgba(14, 107, 107, 0.08);
}

.st-detail-dl--pricing .st-detail-row dd {
  font-weight: 700;
  color: #0e6b6b;
}

.st-refresh-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.staff-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(14, 107, 107, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.staff-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 107, 107, 0.25);
}

.staff-btn--outline {
  box-shadow: none;
}

.pa-badge--scheduled { background: #ede9fe; color: #5b21b6; }
.pa-badge--completed { background: #ecfccb; color: #3f6212; }

.st-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.08);
}

.st-master-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.st-master-detail--single {
  grid-template-columns: 1fr;
}

.st-list-panel,
.st-detail-panel {
  min-height: 420px;
}

.st-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.st-search {
  flex: 1;
  min-width: 160px;
}

.st-filter-select {
  max-width: 180px;
}

.st-table-wrap {
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
}

.st-row {
  cursor: pointer;
}

.st-row:hover td {
  background: #f0fdfa;
}

.st-row--selected td {
  background: #ccfbf1;
}

.st-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.st-detail-ref {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #0e6b6b;
  margin-bottom: 6px;
}

.st-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.st-detail-dl {
  margin: 0 0 16px;
}

.st-detail-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 42%) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.88rem;
  align-items: start;
}

.st-detail-row dt {
  font-weight: 600;
  color: #6b7280;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.st-detail-row dd {
  margin: 0;
  color: #111827;
  min-width: 0;
  line-height: 1.45;
  word-break: break-word;
}

.st-detail-dl--pricing .st-detail-row:last-child {
  border-bottom: none;
}

.st-detail-section--pricing .st-detail-dl {
  margin-bottom: 0;
}

.st-detail-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.st-detail-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #374151;
}

.st-address {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
}

.st-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-chip {
  display: inline-block;
  padding: 6px 10px;
  background: #eef7f6;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #0e6b6b;
}

@media (max-width: 1024px) {
  .st-master-detail {
    grid-template-columns: 1fr;
  }
}

.st-pkg-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.st-pkg-active {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.st-config-runtime-title {
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.pa-nav-dot--orange { background: #fdba74; }

@media (max-width: 768px) {
  .st-pkg-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.st-logged-in .pa-sidebar {
    top: 0;
    height: 100vh;
  }
}

@media (max-width: 640px) {
  .st-welcome {
    padding: 18px 18px;
  }
}

/* Staff enquiry detail popup */
.st-enquiry-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(15, 35, 34, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn 0.22s ease;
}

.st-enquiry-overlay[hidden] {
  display: none !important;
}

body.st-enquiry-modal-open {
  overflow: hidden;
}

.st-enquiry-modal {
  position: relative;
  width: 100%;
  max-width: min(640px, 96vw);
  max-height: min(88vh, 820px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.st-enquiry-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.st-enquiry-close:hover {
  background: #e5e7eb;
}

.st-enquiry-modal-body {
  padding: 22px 22px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.st-enquiry-modal-body .st-detail-head {
  margin-top: 8px;
  padding-right: 44px;
}

.st-master-detail--single .st-table-wrap {
  max-height: min(560px, calc(100vh - 420px));
}
