/* ============================================
   PREMIUM HEALTHCARE LAB BOOKING LANDING PAGE
   Design System: White + Blue Accent
   ============================================ */

/* CSS Variables - Premium Design System */
:root {
  --white: #e8eef5;
  --primary-blue: #2d9cdb;
  --primary-blue-dark: #23a7ff;
  --primary-blue-light: #5baed9;
  --light-blue: #cce5f5;
  --very-light-blue: #d9ebf5;
  --deep-blue: #091d2b;
  --dark-blue: #e5f0f8;
  --text-primary: #1a1a2e;
  --text-secondary: #3d3d4f;
  --text-muted: #6b6b7d;
  --border: #a3b5c9;
  --border-light: #bcc9d9;
  --gradient-blue: linear-gradient(135deg, #2d9cdb 0%, #1a7ab8 100%);
  --gradient-light: linear-gradient(180deg, #d9ebf5 0%, #cce5f5 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 50px;
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--light-blue);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
  }
}

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

/* ============================================
   SECTION 1: HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, #2f90d4 0%, #eef8ff 100%);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle grid pattern */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-container {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 60;
  overflow: visible;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-blue);
}

.hero-container .hero-title {
  color: var(--dark-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-container .hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   HERO SEARCH - PROFESSIONAL UNIQUE REDESIGN
   ============================================ */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 40;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
}

/* Unified Search Bar Card */
.search-main-bar {
  background: #ffffff;
  border-radius: 20px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(9, 29, 43, 0.12);
  border: 1px solid rgba(45, 156, 219, 0.1);
  transition: all 0.3s ease;
  overflow: visible;
}

.search-main-bar--no-cta .location-field-main::after {
  display: none;
}

.search-main-bar:focus-within {
  box-shadow: 0 12px 40px rgba(9, 29, 43, 0.18);
  border-color: var(--primary-blue);
}

/* Search Field */
.search-field-main {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 1rem 1.25rem;
  gap: 0.75rem;
  min-width: 0;
  position: relative;
}

.search-field-main::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(163, 181, 201, 0.4), transparent);
}

.search-field-main i {
  color: var(--primary-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-field-main .search-input {
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
  color: var(--deep-blue);
  font-family: var(--font-primary);
  background: transparent;
  font-weight: 500;
}

.search-field-main .search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Live test suggestions (doctor-search like) */
.lab-home .lab-home-search-suggest {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  top: calc(100% + 0.45rem);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid rgba(45, 156, 219, 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(9, 29, 43, 0.24);
  max-height: 360px;
  overflow-y: auto;
  z-index: 2500;
  padding: 0.25rem;
}

.hero-badges {
  position: relative;
  z-index: 5;
}

.lab-home .lab-home-search-suggest__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 0.72rem 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 181, 201, 0.18);
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lab-home .lab-home-search-suggest__item:last-child {
  border-bottom: none;
}

.lab-home .lab-home-search-suggest__item:hover {
  background: #eaf5ff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(45, 156, 219, 0.16);
}

.lab-home .lab-home-search-suggest__title {
  color: var(--deep-blue);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.lab-home .lab-home-search-suggest__meta {
  grid-column: 1 / 2;
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.lab-home .lab-home-search-suggest__price {
  grid-column: 2 / 3;
  grid-row: 1;
  align-self: center;
  color: #0e7ec8;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Location Field */
.location-field-main {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: 0.75rem;
  min-width: 180px;
  position: relative;
}

.location-field-main::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(163, 181, 201, 0.4), transparent);
}

.location-field-main i {
  color: var(--primary-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.location-field-main .location-select {
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--deep-blue);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-primary);
  width: 100%;
  font-weight: 500;
}

/* Search Button */
.search-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a7ab8 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(45, 156, 219, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 156, 219, 0.4);
  background: linear-gradient(135deg, #1a7ab8 0%, #156a9e 100%);
}

/* Upload Prescription Button */
.upload-prescription-btn {
  background: linear-gradient(135deg, rgba(45, 156, 219, 0.1) 0%, rgba(91, 174, 217, 0.1) 100%);
  color: var(--primary-blue);
  border: 2px dashed rgba(45, 156, 219, 0.3);
  padding: 0.875rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-primary);
  margin-top: 0.5rem;
}

.upload-prescription-btn:hover {
  background: linear-gradient(135deg, rgba(45, 156, 219, 0.15) 0%, rgba(91, 174, 217, 0.15) 100%);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .search-main-bar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .search-field-main::after,
  .location-field-main::after {
    display: none;
  }
  
  .search-field-main {
    width: 100%;
    border-bottom: 1px solid rgba(163, 181, 201, 0.2);
    padding-bottom: 1rem;
  }
  
  .location-field-main {
    width: 100%;
    border-bottom: 1px solid rgba(163, 181, 201, 0.2);
    padding-bottom: 1rem;
  }
  
  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

/* Keep suggestions clean: hide badges while search dropdown is open */
.hero-content.lab-home-search-open .hero-badges {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
  transition: var(--transition-normal);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.25);
  border-color: var(--primary-blue);
}

.hero-badge i {
  color: var(--primary-blue);
  font-size: 1rem;
}

.lab-home .hero-badge--nabl .hero-badge__nabl-logo {
  height: 1.25rem;
  width: auto;
  max-height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hero-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-blue);
}

/* ============================================
   SECTION 2: OUR LAB PARTNERS
   ============================================ */
.our-lab-partners,
.trust-badges {
  padding: 4rem 1.5rem;
  background: #FFFFFF;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.our-lab-partners .section-title {
  color: var(--dark-blue);
}

.our-lab-partners .section-subtitle {
  color: var(--text-secondary);
}

.partner-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 150px;
  min-width: 150px;
  /* min-height: 182px; */
  transition: var(--transition-smooth);
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue-light);
}

.partner-icon {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-icon i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.partner-icon .partner-logo {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.partner-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.partner-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.view-more-container {
  text-align: center;
  margin-top: 2rem;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.view-more-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.view-more-btn i {
  font-size: 0.85rem;
  transition: var(--transition-normal);
}

.view-more-btn:hover i {
  transform: translateX(4px);
}

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

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Home partners: force full-width logo rendering inside card */
.lab-home .partners-grid .partner-card .partner-icon {
  height: 88px;
}
.lab-home .partners-grid .partner-card .partner-icon .partner-logo,
.lab-home .partners-grid .partner-card .partner-logo {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .lab-home .partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
  }

  .lab-home .partners-grid .partner-card {
    width: 100%;
    min-width: 0;
    padding: 0.85rem !important;
  }

  .lab-home .partners-grid .partner-card .partner-icon {
    height: 64px;
    margin-bottom: 0.7rem;
  }

  .lab-home .partners-grid .partner-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
}

/* ============================================
   SECTION 3: POPULAR LAB TESTS
   ============================================ */
.popular-tests {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #EEF8FF 0%, #FFFFFF 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Title styling for dark backgrounds */
.testimonial-section .section-title {
  color: #000000;
}

.testimonial-section .section-subtitle {
  color: var(--text-secondary);
}

.health-packages {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #EEF8FF 0%, #FFFFFF 100%);
}

/* Title styling for light blue backgrounds */
.health-packages .section-title,
.popular-tests .section-title,
.trust-row-section .section-title {
  color: #000000;
}

.health-packages .section-subtitle,
.popular-tests .section-subtitle,
.trust-row-section .section-subtitle {
  color: var(--text-secondary);
}

.how-it-works .section-title,
.faq-section .section-title {
  color: #000000;
}

.how-it-works .section-subtitle,
.faq-section .section-subtitle {
  color: var(--text-secondary);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.package-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lab-badge i {
  font-size: 0.85rem;
}

.package-includes {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.package-includes li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
}

.package-includes li i {
  color: #22C55E;
  font-size: 0.65rem;
}

.package-details {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: var(--light-blue);
  border-radius: var(--radius-sm);
}

.package-details span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

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

.package-card.featured {
  border: 2px solid var(--primary-blue);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-blue);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.discount-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #DCFCE7;
  color: #166534;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.package-icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: var(--transition-normal);
}

.package-card:hover .package-icon {
  background: var(--primary-blue);
  transform: scale(1.1);
}

.package-icon i {
  color: var(--primary-blue);
  font-size: 1.25rem;
  transition: var(--transition-normal);
}

.package-card:hover .package-icon i {
  color: var(--white);
}

.package-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.package-tests {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.original-price {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.savings {
  font-size: 0.8rem;
  color: #166534;
  font-weight: 600;
  background: #DCFCE7;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.package-btn {
  width: 100%;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-primary);
}

.package-btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   SECTION 4: POPULAR LAB TESTS (new-lab-design card layout)
   Scoped to .lab-home so compare/booking .test-card is unchanged.
   ============================================ */
.lab-home .popular-tests {
  background: linear-gradient(180deg, #eef5fb 0%, #f8fbfe 45%, #ffffff 100%);
}

.lab-home .popular-tests .tests-grid,
.lab-home .popular-tests .tests-grid.lab-pop-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  /* Cards height = content; avoids flex “margin-top:auto” stretching a huge gap in the row */
  align-items: start;
}

/* Search (or API) can leave a single card: without this, one 1fr column stretches to full 1180px */
.lab-home .popular-tests .tests-grid.lab-pop-tests-grid:has(> .test-card:only-child) {
  max-width: min(420px, 100%);
}

.lab-home .popular-tests .test-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(45, 156, 219, 0.14);
  transition: var(--transition-smooth);
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Full-card link to compare/detail; action buttons sit above (z-index) */
.lab-home .popular-tests .test-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
  text-decoration: none;
}

.lab-home .popular-tests .test-card-cover-link:focus-visible {
  outline: 2px solid #2185d0;
  outline-offset: 3px;
}

.lab-home .popular-tests .test-card:hover {
  border-color: rgba(45, 156, 219, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

.lab-home .popular-tests .test-card-top {
  width: 100%;
  box-sizing: border-box;
  padding: 1.25rem 1.35rem 1.35rem;
  margin: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #2185d0 0%, #1a6bb8 100%);
  color: var(--white);
  box-shadow: none;
}

.lab-home .popular-tests .test-card-chip-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.lab-home .popular-tests .test-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-home .popular-tests .test-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

.lab-home .popular-tests .test-copy {
  min-width: 0;
}

.lab-home .popular-tests .test-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lab-home .popular-tests .test-card-top .test-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.4;
}

.lab-home .popular-tests .test-card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: min(58%, 280px);
}

.lab-home .popular-tests .test-card-lab-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

/* MRP + sale + OFF on one wrapped row (right-aligned) */
.lab-home .popular-tests .test-price-cluster {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.lab-home .popular-tests .test-price-amounts {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.45rem 0.6rem;
}

.lab-home .popular-tests .test-card-lab-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

/* Wide logos (Redcliffe etc.): on white chip */
.lab-home .popular-tests .test-card-lab-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: 118px;
  max-height: 30px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  background: #ffffff;
  padding: 0 2px 0 0;
  border-radius: 4px;
}

.lab-home .popular-tests .test-card-lab-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0c4a6e;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

@media (max-width: 400px) {
  .lab-home .popular-tests .test-card-lab-name {
    white-space: normal;
    max-width: 100%;
  }
}

.lab-home .popular-tests .test-price-old {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: line-through;
  letter-spacing: 0.03em;
}

.lab-home .popular-tests .test-price-amounts .test-price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lab-home .popular-tests .test-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: #28a745;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.lab-home .popular-tests .test-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.25rem 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.lab-home .popular-tests .test-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.lab-home .popular-tests .test-meta-item .test-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c8797;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.lab-home .popular-tests .test-meta-item .test-icon i {
  font-size: 1rem;
  color: inherit;
}

.lab-home .popular-tests .test-meta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.lab-home .popular-tests .test-meta-soft {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
}

.lab-home .popular-tests .test-meta-strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.lab-home .popular-tests .test-meta-item--includes .test-meta-soft--full {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Parameters: one line (number + “parameters included”), aligned with icon */
.lab-home .popular-tests .test-meta-item--includes {
  align-items: center;
}

.lab-home .popular-tests .test-meta-copy--includes {
  gap: 0;
}

.lab-home .popular-tests .test-meta-includes-line {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: normal;
}

.lab-home .popular-tests .test-meta-includes-num {
  font-weight: 800;
  color: var(--primary-blue);
  font-variant-numeric: tabular-nums;
}

.lab-home .popular-tests .test-meta-includes-rest {
  font-weight: 600;
  color: var(--text-secondary);
}

.lab-home .popular-tests .test-actions {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0.35rem 1.25rem 1.2rem;
  box-sizing: border-box;
}

.lab-home .popular-tests .test-actions-inline {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  justify-content: space-between;
}

.lab-home .popular-tests .test-actions-inline .test-btn {
  flex: 1;
  width: auto;
  min-height: 46px;
  margin: 0;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  letter-spacing: 0.02em;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition-normal);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lab-home .popular-tests .test-actions-inline .test-btn-add-cart {
  background: linear-gradient(135deg, #2185d0 0%, #1a6bb8 100%);
  color: var(--white);
  border: 1.5px solid transparent;
  box-shadow: 0 8px 18px rgba(33, 133, 208, 0.28);
}

.lab-home .popular-tests .test-actions-inline .test-btn-add-cart:hover {
  filter: brightness(1.05);
}

.lab-home .popular-tests .test-actions-inline .details-btn {
  border: 1.5px solid #2185d0;
  color: #2185d0;
  background: #ffffff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.lab-home .popular-tests .test-actions-inline .details-btn:hover {
  background: #f0f7ff;
}

@media (max-width: 768px) {
  .lab-home .popular-tests .tests-grid,
  .lab-home .popular-tests .tests-grid.lab-pop-tests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .lab-home .popular-tests .tests-grid,
  .lab-home .popular-tests .tests-grid.lab-pop-tests-grid {
    gap: 1rem;
  }

  .lab-home .popular-tests .test-card {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  }

  .lab-home .popular-tests .test-card-top {
    padding: 0.92rem 0.95rem 1rem;
    border-radius: 16px 16px 0 0;
  }

  .lab-home .popular-tests .test-card-chip-row {
    margin-bottom: 0.42rem;
  }

  .lab-home .popular-tests .test-card-chip {
    min-width: 44px;
    font-size: 0.62rem;
    padding: 0.18rem 0.55rem;
  }

  .lab-home .popular-tests .test-card-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.56rem;
    margin-bottom: 0;
    text-align: left;
  }

  .lab-home .popular-tests .test-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }

  .lab-home .popular-tests .test-copy {
    width: 100%;
    text-align: left;
  }

  .lab-home .popular-tests .test-card-top .test-desc {
    font-size: 0.72rem;
    line-height: 1.3;
    opacity: 0.88;
  }

  .lab-home .popular-tests .test-card-price-block {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .lab-home .popular-tests .test-price-cluster,
  .lab-home .popular-tests .test-price-amounts {
    justify-content: flex-start;
  }

  .lab-home .popular-tests .test-price-cluster {
    gap: 0.3rem 0.46rem;
  }

  .lab-home .popular-tests .test-price-old {
    font-size: 0.9rem;
  }

  .lab-home .popular-tests .test-price-amounts .test-price {
    font-size: 1.72rem;
    line-height: 1;
  }

  .lab-home .popular-tests .test-discount {
    font-size: 0.66rem;
    padding: 0.24rem 0.46rem;
  }

  .lab-home .popular-tests .test-card-lab-line {
    justify-content: flex-start;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
  }

  .lab-home .popular-tests .test-card-lab-wrap {
    justify-content: flex-start;
    margin-top: 0.3rem;
  }

  .lab-home .popular-tests .test-card-lab-logo {
    height: 22px;
    max-width: 98px;
    max-height: 24px;
    object-position: left center;
    padding-right: 0;
  }

  .lab-home .popular-tests .test-meta-row {
    gap: 0.72rem;
    padding: 0.9rem 0.95rem 0.5rem;
  }

  .lab-home .popular-tests .test-meta-item {
    gap: 0.55rem;
    padding: 0.15rem 0;
  }

  .lab-home .popular-tests .test-meta-item .test-icon {
    width: 34px;
    height: 34px;
  }

  .lab-home .popular-tests .test-meta-soft {
    font-size: 0.72rem;
  }

  .lab-home .popular-tests .test-meta-strong,
  .lab-home .popular-tests .test-meta-includes-line {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .lab-home .popular-tests .test-actions {
    padding: 0.45rem 0.95rem 1rem;
  }

  .lab-home .popular-tests .test-actions-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .lab-home .popular-tests .test-actions-inline .test-btn {
    min-height: 44px;
    font-size: 0.72rem;
    border-radius: 11px;
    padding: 0 0.55rem;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .lab-home .popular-tests .test-actions-inline {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SECTION 5: SOCIAL PROOF BAR (TRUST ROW)
   ============================================ */
.trust-row-section {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-row-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0;
}

.trust-row-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

.trust-row-item i {
  color: var(--gold);
  font-size: 1rem;
}

.trust-row-item span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-row-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}
/* ============================================
   SECTION 5: HOW IT WORKS (PROFESSIONAL REDESIGN)
   ============================================ */
.how-it-works {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 156, 219, 0.2), transparent);
}

.how-it-works .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--deep-blue);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.how-it-works .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 80px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-blue) 0%, 
    var(--primary-blue-light) 50%, 
    var(--primary-blue) 100%);
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(9, 29, 43, 0.08);
  border: 1px solid rgba(163, 181, 201, 0.15);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(9, 29, 43, 0.12);
  border-color: var(--primary-blue);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a7ab8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(45, 156, 219, 0.4);
  z-index: 2;
}

.step-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e1f0fc 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

.step-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover .step-icon {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a7ab8 100%);
  transform: scale(1.05);
  border-color: transparent;
}

.step-card:hover .step-icon::before {
  opacity: 1;
}

.step-icon i {
  color: var(--primary-blue);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.step-card:hover .step-icon i {
  color: white;
  transform: scale(1.1);
}

.step-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.step-price {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(45, 156, 219, 0.1) 0%, rgba(91, 174, 217, 0.1) 100%);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.step-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a7ab8 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  box-shadow: 0 4px 15px rgba(45, 156, 219, 0.3);
}

.step-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 156, 219, 0.4);
  background: linear-gradient(135deg, #1a7ab8 0%, #156a9e 100%);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .steps-grid::before {
    display: none;
  }
  
  .step-number {
    top: 1rem;
    left: auto;
    right: 1rem;
    transform: none;
  }
}

@media (max-width: 600px) {
  .how-it-works {
    padding: 4rem 1rem;
  }
  
  .how-it-works .section-title {
    font-size: 2rem;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   SECTION 6: TESTIMONIAL (GLASSMORPHISM)
   ============================================ */
.testimonial-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #EEF8FF 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue-light);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card .user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card .user-avatar i {
  color: var(--white);
  font-size: 1.25rem;
}

.testimonial-card .user-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-card .user-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.testimonial-card .user-rating i {
  color: #F59E0B;
  font-size: 0.85rem;
}

.testimonial-card .testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: normal;
}

.testimonial-benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

.testimonial-benefit i {
  font-size: 0.85rem;
}

.user-avatar i {
  color: var(--white);
  font-size: 1.5rem;
}

.user-info {
  text-align: left;
}

.user-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.user-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.user-rating i {
  color: var(--gold);
  font-size: 0.875rem;
}

.user-rating span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.carousel-dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}

/* ============================================
   SECTION 8: FAQ SECTION (scoped to .lab-home — unscoped .faq-* broke booking page FAQ)
   ============================================ */
.lab-home .faq-section {
  padding: 5rem 1.5rem;
  background: #FFFFFF;
}

.lab-home .faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.lab-home .faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.lab-home .faq-item:hover {
  box-shadow: var(--shadow-md);
}

.lab-home .faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.lab-home .faq-question:hover {
  color: var(--primary-blue);
}

.lab-home .faq-question i:first-child {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.lab-home .faq-icon {
  margin-left: auto;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.lab-home .faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.lab-home .faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.lab-home .faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 200px;
}

.lab-home .faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================
   SECTION 9: UPLOAD PRESCRIPTION SECTION
   ============================================ */
.upload-prescription-section {
  padding: 5rem 1.5rem;
  background: #F8FBFF;
}

.upload-section-container {
  max-width: 700px;
  margin: 0 auto;
}

.upload-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.upload-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.upload-icon-box {
  width: 56px;
  height: 56px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-icon-box i {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.upload-header-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-header-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.upload-dropzone {
  border: 2px dashed #CBD5F5;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: var(--light-blue);
  transition: var(--transition-normal);
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--primary-blue);
  background: #DBEAFE;
}

.upload-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.upload-icon i {
  color: var(--primary-blue);
  font-size: 1.75rem;
}

.upload-dropzone h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-dropzone p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.browse-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-primary);
}

.browse-btn:hover {
  background: var(--primary-blue-dark);
}

.upload-formats {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Upload Success State */
.upload-success {
  text-align: center;
  padding: 2rem;
}

.upload-success .success-icon {
  width: 80px;
  height: 80px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.upload-success .success-icon i {
  color: #166534;
  font-size: 2.5rem;
}

.upload-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.get-price-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.get-price-btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .upload-card {
    padding: 1.5rem;
  }
  
  .upload-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .get-price-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   UPLOAD PRESCRIPTION MODAL (Popup)
   ============================================ */
.upload-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

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

.upload-modal-container {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.modal-close:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.upload-modal-content {
  text-align: center;
}

.modal-icon-box {
  width: 64px;
  height: 64px;
  background: var(--light-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon-box i {
  color: var(--primary-blue);
  font-size: 1.75rem;
}

.upload-modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-modal-content > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.upload-dropzone-modal {
  border: 2px dashed #CBD5F5;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  background: var(--light-blue);
  transition: var(--transition-normal);
  cursor: pointer;
}

.upload-dropzone-modal:hover,
.upload-dropzone-modal.drag-over {
  border-color: var(--primary-blue);
  background: #DBEAFE;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-icon-circle {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon-circle i {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.upload-dropzone-modal h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-dropzone-modal p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.browse-btn-modal {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-primary);
}

.browse-btn-modal:hover {
  background: var(--primary-blue-dark);
}

.formats-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Modal Success State */
.upload-success-modal {
  padding: 1rem;
}

.upload-success-modal .success-icon-modal {
  width: 72px;
  height: 72px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.upload-success-modal .success-icon-modal i {
  color: #166534;
  font-size: 2rem;
}

.upload-success-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-success-modal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.get-price-btn-modal {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.get-price-btn-modal:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
}

/* Prescription image crop (Cropper.js) — above upload modal */
.rx-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.65);
  box-sizing: border-box;
}

.rx-crop-panel {
  background: var(--white);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  padding: 1rem 1rem 1.25rem;
  box-sizing: border-box;
}

.rx-crop-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  text-align: center;
}

.rx-crop-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  text-align: center;
}

.rx-crop-stage {
  flex: 1;
  min-height: 200px;
  max-height: min(58vh, 420px);
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

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

.rx-crop-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.rx-crop-btn {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.rx-crop-btn--secondary {
  background: var(--light-blue);
  color: var(--text-primary);
}

.rx-crop-btn--secondary:hover {
  background: #dbeafe;
}

.rx-crop-btn--primary {
  background: var(--primary-blue);
  color: var(--white);
}

.rx-crop-btn--primary:hover:not(:disabled) {
  background: var(--primary-blue-dark);
}

.rx-crop-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   LAB SELECTION MODAL STYLES
   ============================================ */
.lab-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.lab-modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.lab-modal-content h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
}

.lab-modal-content > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.lab-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lab-option-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lab-option-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lab-option-card.selected {
  border-color: var(--primary-blue);
  background: var(--light-blue);
}

.lab-option-icon {
  width: 100%;
  height: 56px;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0.25rem;
}

.lab-option-icon i {
  font-size: 1.25rem;
  color: var(--primary-blue);
}

.lab-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lab-option-card h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.lab-rating {
  font-size: 0.85rem;
  color: #F59E0B;
}

.lab-rating i {
  margin-right: 0.25rem;
}

/* ============================================
   DETAILS FORM MODAL STYLES
   ============================================ */
.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.details-modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.1rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.details-modal-content h2 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
}

.details-modal-content > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 0.85rem;
}

.details-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

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

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

.selected-lab-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  margin-bottom: 0.55rem;
}

.selected-lab-preview__label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.selected-lab-preview__chip {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 0.28rem 0.55rem;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.selected-lab-preview__chip img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-details-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  margin-top: 0.5rem;
}

.submit-details-btn:hover {
  background: var(--primary-blue-dark);
}

/* ============================================
   ORDER SUCCESS MODAL STYLES
   ============================================ */
.order-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.order-success-modal-overlay.active {
  display: flex;
}

.order-success-modal-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.order-success-icon {
  width: 80px;
  height: 80px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.order-success-icon i {
  font-size: 2.5rem;
  color: #166534;
}

.order-success-content h2 {
  font-size: 1.75rem;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.order-success-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.order-info-box {
  background: var(--light-blue);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.order-info-box i {
  color: var(--primary-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.order-info-box span {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.close-success-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-success-btn:hover {
  background: var(--primary-blue-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .upload-modal-container {
    padding: 1.5rem;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem 2rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-container {
    padding: 2rem 1.5rem;
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 0.5rem;
  }

  .search-input-wrapper,
  .location-wrapper {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1.05rem;
    width: 100%;
  }

  .hero-badge {
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.42rem 0.38rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.12);
  }

  .hero-badge span {
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
  }

  .hero-badge i {
    font-size: 0.8rem;
  }

  .lab-home .hero-badge--nabl .hero-badge__nabl-logo {
    height: 0.92rem;
    max-height: 15px;
  }

  .badge-card {
    min-width: 160px;
    padding: 1rem;
  }

  .packages-grid,
  .tests-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .final-cta-section {
    padding: 3rem 1.5rem;
  }

  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .package-card,
  .test-card,
  .step-card {
    padding: 1.25rem;
  }

  .step-number {
    font-size: 3rem;
  }
}

/* Quickobook integration overrides */
.lab-home {
  width: 100%;
}

.lab-home .hero-section,
.lab-home .trust-badges,
.lab-home .popular-tests,
.lab-home .health-packages,
.lab-home .how-it-works,
.lab-home .testimonial-section,
.lab-home .faq-section {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* FAQ on lab home — override assets/css/lab.css (display:none on .faq-answer, flat list .faq-item) + match design (2 cols, pills, blue ? chip) */
.lab-home .faq-section .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 1rem 1.5rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .lab-home .faq-section .faq-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

.lab-home .faq-section .faq-item {
  border-bottom: none;
  padding: 0;
  margin: 0;
  background: #eff6ff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}

.lab-home .faq-section .faq-item:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.lab-home .faq-section .faq-question {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.lab-home .faq-section .faq-question:hover {
  color: var(--text-primary);
}

.lab-home .faq-section .faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  font-family: var(--font-primary), system-ui, sans-serif;
}

.lab-home .faq-section .faq-q-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.lab-home .faq-section .faq-question .faq-icon {
  margin-left: auto;
  color: #64748b;
  font-size: 0.85rem;
}

.lab-home .faq-section .faq-question i.faq-icon {
  color: #64748b;
}

/* lab.css sets .faq-answer { display: none } — must reset so max-height accordion works */
.lab-home .faq-section .faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.lab-home .faq-section .faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.1rem;
}

.lab-home .faq-section .faq-answer p {
  margin: 0;
  padding-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.lab-home .faq-section .faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.lab-home .tests-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 .5rem;
}

/* Health packages — match design template (lab badge + discount row, includes list, details bar, savings) */
.lab-home .lab-home-packages-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 .5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  justify-items: center;
  gap: 1.5rem;
}

/* Show first 6 packages; rest revealed via .lab-packages-expanded (View More) */
.lab-home .lab-home-packages-grid:not(.lab-packages-expanded) .lab-home-package-card--extra {
  display: none !important;
}

.lab-home .lab-home-package-card,
a.lab-home-package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  cursor: pointer;
}

.lab-home .lab-home-package-card .package-card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.lab-home .lab-home-package-card .package-card-cover-link:focus-visible {
  outline: 2px solid #2d9cdb;
  outline-offset: 3px;
}

.lab-home .package-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.lab-home .package-card-header .lab-badge {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

/* Partner lab logo in package card header (replaces text name) */
.lab-home .package-card-header .lab-badge.lab-badge--logo {
  max-width: 100%;
  justify-content: flex-start;
  padding: 0.45rem 0.75rem;
  min-height: 2.25rem;
}

.lab-home .package-card-header .lab-badge .lab-badge__logo {
  display: block;
  height: 75px;
  width: auto;
  max-width: min(140px, 100%);
  object-fit: contain;
  object-position: left center;
}

/* % OFF badge — same visual language as popular test cards (.test-discount), inline with price row */
.lab-home .lab-home-package-card .package-price-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.lab-home .lab-home-package-card .package-price-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.65rem;
}

.lab-home .lab-home-package-card .package-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: #28a745;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Override lab.css: 60px circle → template 48px rounded square; icon + title block left-aligned like design */
.lab-home .lab-home-package-card .package-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 0.75rem;
  align-self: flex-start;
  border-radius: var(--radius-md);
  background: var(--light-blue);
  font-size: inherit;
  flex-shrink: 0;
}

.lab-home .lab-home-package-card .package-icon i {
  font-size: 1.25rem;
  color: var(--primary-blue);
}

.lab-home .lab-home-package-card .package-icon--has-img {
  padding: 4px;
  overflow: hidden;
}

.lab-home .lab-home-package-card .package-icon--has-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.lab-home .lab-home-package-card:hover .package-icon {
  transform: none;
  background: var(--primary-blue);
}

.lab-home .lab-home-package-card:hover .package-icon i {
  color: var(--white);
}

.lab-home .lab-home-package-card:hover .package-icon--has-img {
  background: #dff0fb;
  box-shadow: inset 0 0 0 1px rgba(45, 156, 219, 0.2);
}

.lab-home .lab-home-package-card:hover .package-icon--has-img img {
  opacity: 0.96;
}

.lab-home .lab-home-package-card h3 {
  text-align: left;
  width: 100%;
}

.lab-home .lab-home-package-card .package-tests {
  text-align: left;
  margin-bottom: 0.75rem;
  width: 100%;
}

/* lab.css .package-card .package-price span { line-through on ALL spans } — reset then only strike MRP */
.lab-home .lab-home-package-card .package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.lab-home .lab-home-package-card .package-price span {
  text-decoration: none;
}

.lab-home .lab-home-package-card .package-price .original-price {
  margin-right: auto;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.lab-home .lab-home-package-card .package-price .current-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.lab-home .lab-home-package-card .package-price .savings {
  font-size: 0.8rem;
}

/* <span class="package-btn"> is inline — lab.css ignores it; force full-width centered CTA like template */
.lab-home .lab-home-package-card .package-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  text-align: center;
  border: none;
  font: inherit;
  text-decoration: none;
}

.lab-home .lab-home-package-card .package-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.lab-home .lab-home-package-card .package-details span {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.7rem;
}

@media (max-width: 360px) {
  .lab-home .lab-home-package-card .package-details {
    flex-wrap: wrap;
  }
}

.lab-home .view-more-container,
.lab-home .lab-pop-view-all-wrap {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* lab.css sets .view-more-btn { width:100% } — reset on lab home so template pill is content-sized + centered */
.lab-home .view-more-container .view-more-btn,
.lab-home .lab-pop-view-all-wrap .view-more-btn,
.lab-home .lab-pop-view-all-btn {
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
  cursor: pointer;
}

.lab-pop-view-all-wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* ============================================
   COMPARE PAGE (category/test-price) — match lab home visual system
   ============================================ */
.lab-compare-page.lab-home {
  width: 100%;
  max-width: none;
}

.lab-compare-page .lab-compare-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

.lab-compare-page .test-summary {
  position: sticky;
  top: 76px;
  align-self: start;
}

.lab-compare-page .test-summary h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.lab-compare-page .test-summary > div {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.lab-compare-page .test-summary .test-card {
  box-shadow: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.lab-compare-page .test-summary h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lab-compare-page .test-summary h4 i {
  color: var(--primary-blue);
}

.lab-compare-page .test-faq-section .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lab-compare-page .test-faq-section details.faq-item {
  background: #eff6ff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

.lab-compare-page .test-faq-section details.faq-item[open] {
  background: #ffffff;
  border-color: rgba(45, 156, 219, 0.35);
  box-shadow: 0 8px 22px rgba(9, 29, 43, 0.08);
}

.lab-compare-page .test-faq-section summary.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.lab-compare-page .test-faq-section summary.faq-question::-webkit-details-marker {
  display: none;
}

.lab-compare-page .test-faq-section summary.faq-question span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.lab-compare-page .test-faq-section summary.faq-question i {
  color: #64748b;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.lab-compare-page .test-faq-section details.faq-item[open] summary.faq-question i {
  transform: rotate(180deg);
}

.lab-compare-page .test-faq-section .faq-answer {
  padding: 0 1rem 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lab-compare-page .test-faq-section .faq-answer p {
  margin: 0;
}

.lab-compare-page .test-faq-section summary.faq-question:focus {
  outline: none;
}

.lab-compare-page .test-faq-section summary.faq-question:focus-visible {
  outline: 3px solid rgba(45, 156, 219, 0.25);
  outline-offset: 2px;
  border-radius: 12px;
}

.lab-compare-page .lab-compare-right {
  min-width: 0;
}

.lab-compare-page .lab-compare-header {
  text-align: left;
  margin-bottom: 1.25rem;
}

.lab-compare-page .lab-compare-header .section-title {
  margin-bottom: 0.35rem;
}

.lab-compare-page .lab-compare-header .section-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.lab-compare-page .lab-compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.lab-compare-page .lab-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #0b3a5a;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
}

.lab-compare-page .lab-meta-pill i {
  color: var(--primary-blue);
}

/* Package highlights pills (left summary) */
.lab-package-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.25rem;
}

.lab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  background: #eff6ff;
  border: 1px solid #e2e8f0;
  color: #0b3a5a;
}

.lab-pill i { color: var(--primary-blue); }

.lab-pill--ok {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.22);
  color: #14532d;
}

.lab-pill--warn {
  background: rgba(220,38,38,0.10);
  border-color: rgba(220,38,38,0.18);
  color: #7f1d1d;
}

/* Package detail page: compact left summary; tests/params/FAQ in right column */
.lab-package-page .lab-compare-layout {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 2rem;
}

.lab-package-page .lab-compare-right .lab-compare-grid {
  max-width: none;
  margin: 0;
}

.lab-package-pre-test {
  margin-top: 0.5rem;
}

.lab-package-pre-test h4 {
  margin-top: 0.35rem;
}

.lab-package-summary-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.lab-package-summary-cta__btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-blue), #1688c3);
  color: #fff;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(45, 156, 219, 0.35);
  transition: filter 0.2s, box-shadow 0.2s;
}

.lab-package-summary-cta__btn:hover {
  filter: brightness(1.05);
}

.lab-package-summary-cta__link {
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
}

.lab-package-summary-cta__link:hover {
  text-decoration: underline;
}

.lab-package-detail-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.lab-package-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.15rem 1.2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.lab-package-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), #0dcaf0);
  opacity: 0.85;
}

.lab-package-panel__head {
  margin-bottom: 0.85rem;
}

.lab-package-panel__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.lab-package-panel__head h3 i {
  color: var(--primary-blue);
}

.lab-package-panel__count {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95em;
}

.lab-package-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.lab-package-tests-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.15rem;
}

.lab-package-tests-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b3a5a;
  line-height: 1.45;
}

.lab-package-tests-grid li i {
  color: #16a34a;
  font-size: 0.72rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lab-package-tests-grid {
    grid-template-columns: 1fr;
  }
}

.lab-package-page .lab-package-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lab-package-page .lab-package-faq details.faq-item {
  background: #eff6ff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

.lab-package-page .lab-package-faq details.faq-item[open] {
  background: #ffffff;
  border-color: rgba(45, 156, 219, 0.35);
  box-shadow: 0 8px 22px rgba(9, 29, 43, 0.08);
}

.lab-package-page .lab-package-faq summary.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.lab-package-page .lab-package-faq summary.faq-question::-webkit-details-marker {
  display: none;
}

.lab-package-page .lab-package-faq .faq-answer {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Beautiful empty state on package page */
.lab-empty-state {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}

.lab-empty-state__card {
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(9, 29, 43, 0.10);
  padding: 1.6rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

.lab-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45,156,219,0.18), rgba(13,202,240,0.18));
  border: 1px solid rgba(45,156,219,0.25);
}

.lab-empty-state__icon i {
  font-size: 1.6rem;
  color: var(--primary-blue);
}

.lab-empty-state__title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}

.lab-empty-state__text {
  margin: 0 auto 1rem;
  max-width: 44ch;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
}

.lab-empty-state__cta {
  width: min(320px, 100%);
  margin: 0.25rem auto 0.75rem;
  border-radius: 14px !important;
}

.lab-empty-state__link {
  display: inline-flex;
  justify-content: center;
  font-weight: 900;
  color: var(--primary-blue);
  text-decoration: none;
}

.lab-empty-state__link:hover {
  text-decoration: underline;
}

.lab-compare-hero {
  position: relative;
  padding: 4rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, #2f90d4 0%, #eef8ff 100%);
  overflow: hidden;
}

.lab-compare-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Package page hero: add subtle glow blobs */
.lab-package-page .lab-compare-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 220px at 20% 30%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(520px 200px at 80% 35%, rgba(13,202,240,0.22), transparent 60%),
    radial-gradient(520px 220px at 50% 100%, rgba(45,156,219,0.22), transparent 60%);
  opacity: 0.9;
}

.lab-compare-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.lab-compare-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lab-compare-back:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.lab-compare-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  font-family: var(--font-primary);
  line-height: 1.2;
}

.lab-compare-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 500;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.lab-compare-results {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
}

.lab-compare-page .lab-compare-results .section-header {
  margin-bottom: 2.25rem;
}

.lab-compare-page .lab-compare-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}

.lab-compare-page .lab-compare-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  margin: 0;
  min-height: 320px;
}

.lab-compare-page .lab-compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue-light);
}

.lab-compare-card__top {
  text-align: center;
  margin-bottom: 1rem;
}

.lab-compare-page .lab-compare-card__logo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  margin: 0 auto 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  padding: 8px;
}

.lab-compare-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  font-family: var(--font-primary);
}

.lab-compare-page .lab-compare-card__details {
  margin-bottom: 1rem;
  gap: 0.45rem;
}

.lab-compare-page .lab-compare-card__details .detail-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.lab-compare-page .lab-compare-card__details .detail-item i {
  color: var(--primary-blue);
}

.lab-compare-page .lab-compare-card__price {
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.lab-compare-page .lab-compare-card__price .original-price {
  opacity: 0.75;
}

.lab-compare-page .lab-compare-card__price .discounted-price {
  color: var(--primary-blue);
  font-size: 1.45rem;
  font-weight: 700;
}

.lab-compare-page .lab-compare-card__price .original-price {
  font-size: 0.88rem;
}

.lab-compare-page .lab-compare-card__price .discount {
  background: rgba(45, 156, 219, 0.12);
  color: #0f766e;
  font-weight: 600;
}

.lab-compare-page .lab-compare-card__cta {
  margin-top: auto;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--gradient-blue);
  color: #ffffff !important;
  font-weight: 600;
  font-family: var(--font-primary);
  border: none;
  box-shadow: 0 4px 14px rgba(45, 156, 219, 0.35);
  transition: var(--transition-normal);
}

/* Cart in hero toolbar (compare / package) — no extra full-width row */
.lab-compare-hero__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto 1.1rem;
  text-align: left;
}

.lab-compare-hero__toolbar .lab-compare-back {
  margin-bottom: 0;
}

.lab-cart-hero-link {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lab-cart-hero-link:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

/* Lab home: cart top-right inside hero */
.lab-hero-toolbar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0 0 0.75rem;
}

/* Cart / booking: one compact row with actions (no empty strip) */
.lab-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lab-inline-actions .back-btn {
  margin-bottom: 0 !important;
}

.lab-inline-actions__spacer {
  flex: 1;
  min-width: 0;
}

.lab-cart-inline-chip {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--text-primary, #0b3a5a) !important;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lab-cart-inline-chip:hover {
  border-color: rgba(45, 156, 219, 0.45);
  box-shadow: 0 4px 12px rgba(45, 156, 219, 0.15);
  color: var(--primary-blue, #2d9cdb) !important;
}

.lab-cart-inline-chip[aria-current="page"] {
  cursor: default;
  border-color: rgba(45, 156, 219, 0.35);
  background: rgba(239, 246, 255, 0.95);
}

.lab-compare-page .lab-compare-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lab-compare-page .lab-compare-card__actions .lab-compare-card__cta {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(45, 156, 219, 0.3);
  min-height: 42px;
}

.lab-compare-page .lab-compare-card__actions a.lab-compare-card__cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lab-home .lab-home-package-card .lab-package-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: auto;
}

.lab-home .lab-home-package-card .package-btn--secondary {
  background: #ffffff;
  border: 1.5px solid #2d9cdb;
  color: #2d9cdb;
}

.lab-home .lab-home-package-card .package-btn--secondary:hover {
  background: #f0f8ff;
  color: #2d9cdb;
}

.lab-home .lab-home-package-card .lab-package-card-actions .package-btn {
  flex: 1 1 0;
  min-height: 54px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.7rem 0.8rem;
  text-align: center;
}

@media (max-width: 768px) {
  .lab-home .lab-home-package-card .lab-package-card-actions {
    flex-direction: column;
  }
}

.lab-compare-page .lab-compare-card__cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(45, 156, 219, 0.45);
  color: #ffffff !important;
}

.lab-compare-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

@media (max-width: 576px) {
  .lab-compare-hero {
    padding: 3rem 1rem 2.75rem;
  }

  .lab-compare-page .lab-compare-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .lab-compare-page .test-summary {
    position: static;
    top: auto;
  }

  .lab-compare-page .test-summary > div {
    padding: 0.9rem;
  }

  .lab-compare-page .lab-meta-pill {
    font-size: 0.82rem;
  }

  .lab-compare-page .lab-compare-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 992px) and (min-width: 577px) {
  .lab-compare-page .lab-compare-layout {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 1.5rem;
  }
}
