/* ========================================
   THYROCARE SERVICES — Design System & Styles
   ======================================== */

/* ---------- Google Fonts ---------- */
/* Fonts loaded via <link> in HTML for non-blocking rendering */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary - Dark Navy Blue */
  --teal-900: #0a1628;
  --teal-800: #0f1f3d;
  --teal-700: #162d57;
  --teal-600: #1e3a6e;
  --teal-500: #1e40af;
  --teal-400: #2563eb;
  --teal-100: #dbeafe;
  --teal-50: #eef3fb;

  /* Accent - Red */
  --coral-600: #dc2626;
  --coral-500: #ef4444;
  --coral-400: #f87171;
  --coral-100: #fee2e2;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #f0f2f6;
  --gray-200: #dfe3eb;
  --gray-300: #c5ccd8;
  --gray-500: #5f6d82;
  --gray-700: #334155;
  --gray-900: #111827;

  /* Semantic */
  --success: #22c55e;
  --gold: #f59e0b;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, .07);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, .10);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, .14);
  --shadow-glow: 0 0 30px rgba(30, 64, 175, .2);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: radial-gradient(circle at top, #ffffff, #f0f3f9);
  background-attachment: fixed;
  position: relative;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* Floating gradient blobs */

body::before,
body::after {
  content: "";
  position: fixed;
  /* Fixed so they stay in background while scrolling */
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  /* Reduced blur so they are less washed out */
  opacity: 0.95;
  /* Greatly increased opacity */
  animation: floatBlobs 18s infinite ease-in-out;
  z-index: -1;
  pointer-events: none;
}

/* Dark blue glow */
body::before {
  background: linear-gradient(135deg,
      #2a4a8a,
      #3b5ea8);
  top: -150px;
  left: -150px;
}

/* Navy glow */
body::after {
  background: linear-gradient(135deg,
      #1e3a6e,
      #2d5097);
  bottom: -150px;
  right: -150px;
}

/* Extra moving glow layer */
.glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg,
      #1e40af,
      #dbeafe);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  animation: floatBlobs 22s infinite ease-in-out reverse;
  top: 30%;
  left: 40%;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(80px, -60px);
  }

  50% {
    transform: translate(-60px, 80px);
  }

  75% {
    transform: translate(40px, 40px);
  }

  100% {
    transform: translate(0, 0);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

input,
textarea,
select {
  font-family: var(--font-body);
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: var(--space-xl) 0;
  /* Reduced top/bottom padding to tighten gaps between major sections like the carousel and Popular Packages */
  border: none;
  position: relative;
  z-index: 1;
}

/* Wavy scallop divider between sections */
.section-padding::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C30 0,30 0,60 10 C90 20,90 20,120 10 C150 0,150 0,180 10 C210 20,210 20,240 10 C270 0,270 0,300 10 C330 20,330 20,360 10 C390 0,390 0,420 10 C450 20,450 20,480 10 C510 0,510 0,540 10 C570 20,570 20,600 10 C630 0,630 0,660 10 C690 20,690 20,720 10 C750 0,750 0,780 10 C810 20,810 20,840 10 C870 0,870 0,900 10 C930 20,930 20,960 10 C990 0,990 0,1020 10 C1050 20,1050 20,1080 10 C1110 0,1110 0,1140 10 C1170 20,1170 20,1200 10' fill='none' stroke='%231a2a6c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: var(--teal-900);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-700);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.highlight {
  color: var(--coral-500);
}

.teal {
  color: var(--teal-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232, 88, 79, .35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 88, 79, .45);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--teal-500);
  color: var(--teal-700);
}

.btn-secondary:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--teal-700);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  /* Reduced from 80px to match 'scrolled' height */
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
  height: 64px;
  border-bottom: 1px solid rgba(223, 227, 235, 0.5);
  /* subtle gray-200 border */
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  /* Override default container width */
  padding: 0;
  /* Remove all side padding to push it to the absolute extreme edge */
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-900);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--teal-900);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
}

.nav-logo-img {
  height: 48px;
  /* Reduced base height */
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: scale(1.1);
  /* Reduced scale */
  transform-origin: left center;
  transition: filter .3s ease;
}

.navbar.scrolled .nav-logo-img {
  filter: none;
}

.footer-brand .nav-logo-img {
  filter: brightness(0) invert(1);
  height: 70px;
  max-width: none;
  margin-bottom: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
  /* Push everything to the right */
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--gray-700);
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  transform-origin: center;
}

.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
  opacity: 1;
  color: var(--teal-600);
}

/* Base icon animations */
.nav-links a:hover .nav-icon {
  animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Individual icon hover effects */

/* Home (house) */
.nav-links a[href="index.html"]:hover .nav-icon {
  animation: iconPopHome 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, iconWiggle 0.6s ease-in-out 0.4s infinite alternate;
}

/* About Us (user) */
.nav-links a[href="about.html"]:hover .nav-icon {
  animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, iconNod 0.8s ease-in-out 0.4s infinite;
}

/* Best Offers — animated rupee symbol */
.nav-rupee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  opacity: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
  transform-origin: center;
  animation: rupeeIdlePulse 2.4s ease-in-out infinite;
}

.nav-links a:hover .nav-rupee,
.nav-links a.active .nav-rupee {
  opacity: 1;
  color: var(--teal-600);
  animation: rupeeHoverBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             rupeeGlow 0.8s ease-in-out 0.4s infinite alternate;
}

@keyframes rupeeIdlePulse {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12) translateY(-1.5px);
    opacity: 1;
  }
}

@keyframes rupeeHoverBounce {
  0%   { transform: scale(1) translateY(0); }
  40%  { transform: scale(1.35) translateY(-3px); }
  100% { transform: scale(1.2) translateY(-1.5px); }
}

@keyframes rupeeGlow {
  from { transform: scale(1.2) translateY(-1.5px); filter: drop-shadow(0 0 4px rgba(33,158,188,0.5)); }
  to   { transform: scale(1.25) translateY(-3px);  filter: drop-shadow(0 0 8px rgba(33,158,188,0.8)); }
}

.nav-links a[href="services.html"]:hover .nav-icon {
  animation: iconFloat 1s ease-in-out infinite alternate;
}

/* Contact (phone) */
.nav-links a[href="contact.html"]:hover .nav-icon {
  animation: iconRing 0.5s ease-in-out infinite;
}

@keyframes iconBounce {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.15);
  }

  100% {
    transform: translateY(-2px) scale(1.1);
  }
}

@keyframes iconPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes iconPopHome {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25) translateY(-2px);
  }

  100% {
    transform: scale(1.1) translateY(-1px);
  }
}

@keyframes iconWiggle {
  0% {
    transform: scale(1.1) translateY(-1px) rotate(-3deg);
  }

  100% {
    transform: scale(1.1) translateY(-1px) rotate(3deg);
  }
}

@keyframes iconNod {

  0%,
  100% {
    transform: scale(1.1) translateY(0);
  }

  50% {
    transform: scale(1.1) translateY(-3px);
  }
}

@keyframes iconFloat {
  0% {
    transform: translateY(0) scale(1.1);
  }

  100% {
    transform: translateY(-4px) scale(1.1);
  }
}

@keyframes iconRing {

  0%,
  100% {
    transform: rotate(0deg) scale(1.1);
  }

  25% {
    transform: rotate(10deg) scale(1.1);
  }

  75% {
    transform: rotate(-10deg) scale(1.1);
  }
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 120%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, rgba(33, 158, 188, 0.3), rgba(242, 100, 25, 0.2), rgba(33, 158, 188, 0.3));
  background-size: 200% 200%;
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--coral-500));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--teal-900);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: softGlow 1.5s ease-in-out infinite alternate, bgShift 8s linear infinite;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-700);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--teal-900);
}

.nav-pincode {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 135px;
  /* Shorter width */
  margin-left: 20px;
  z-index: 10;
}

/* Elegant glowing backdrop that softly breathes */
.nav-pincode::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(33, 158, 188, 0.5), rgba(242, 100, 25, 0.4), rgba(33, 158, 188, 0.5));
  background-size: 200% 200%;
  border-radius: 30px;
  z-index: -1;
  animation: softGlow 1.5s ease-in-out infinite alternate, bgShift 8s linear infinite;
  opacity: 0.8;
  filter: blur(5px);
}

.nav-pincode .pincode-input-group {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  padding: 3px;
  border: 2px solid var(--teal-900);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-pincode .pincode-input-group:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.2), 0 8px 25px rgba(33, 158, 188, 0.15);
  transform: translateY(-2px);
}

/* Modern sweeping sheen line across the input group */
.nav-pincode .pincode-input-group::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewX(-20deg);
  animation: sweepGlass 6s infinite;
  pointer-events: none;
}

.nav-pincode .pincode-input-group input {
  padding: 6px 10px;
  /* Reduced horizontal padding */
  padding-right: 65px !important;
  /* Adjust space for smaller btn */
  font-size: 0.8rem;
  /* Reduced font size slightly */
  font-weight: 500;
  color: var(--teal-900);
  border-radius: 20px;
  /* Adjusted radius */
  border: none;
  background: transparent;
  width: 100%;
}

.nav-pincode .pincode-input-group input:focus {
  outline: none;
}

.nav-pincode .pincode-input-group input::placeholder {
  color: var(--teal-500);
  font-weight: 400;
  opacity: 0.8;
}

.nav-pincode .btn-check-pin {
  position: absolute;
  right: 4px;
  padding: 5px 10px;
  /* Smaller horizontal padding */
  border-radius: 16px;
  /* Adjusted radius */
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: white;
  font-size: 0.8rem;
  /* Smaller font on btn */
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 10px rgba(33, 158, 188, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  height: auto;
  margin: 0;
}

.nav-pincode .btn-check-pin:hover {
  background: linear-gradient(135deg, var(--coral-400), var(--coral-500));
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(242, 100, 25, 0.4);
}

@keyframes softGlow {
  from {
    opacity: 0.4;
    filter: blur(4px);
  }

  to {
    opacity: 1;
    filter: blur(7px);
  }
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes sweepGlass {
  0% {
    left: -100%;
  }

  15% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.nav-pincode .pincode-message {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  margin-top: 12px;
}

.nav-pincode .pincode-message::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1002;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 4px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1),
    opacity .2s ease,
    background .3s ease;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  margin-bottom: 5px;
}

.hamburger span:nth-child(3) {
  margin-top: 5px;
}

/* Animated X when open */
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--teal-900);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--teal-900);
}

.navbar.scrolled .hamburger span {
  background: var(--gray-700);
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 75%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px;
    gap: 0;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--gray-700) !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .25s ease, transform .25s ease, color .2s ease;
  }

  .nav-links.open a {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger link entrance */
  .nav-links.open a:nth-child(1) {
    transition-delay: .05s;
  }

  .nav-links.open a:nth-child(2) {
    transition-delay: .1s;
  }

  .nav-links.open a:nth-child(3) {
    transition-delay: .15s;
  }

  .nav-links.open a:nth-child(4) {
    transition-delay: .2s;
  }

  .nav-links.open a:nth-child(5) {
    transition-delay: .25s;
  }

  .nav-links a:hover {
    color: var(--teal-700) !important;
  }

  .nav-links a.active {
    color: var(--teal-700) !important;
    font-weight: 600;
  }

  .nav-links a.nav-cta {
    margin-top: 16px;
    border-bottom: none;
    text-align: center;
    justify-content: center;
  }

  /* Mobile Pincode Checker */
  .nav-pincode {
    width: 100%;
    margin: 20px 0 0 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .25s ease, transform .25s ease;
    transition-delay: .3s;
  }

  .nav-links.open .nav-pincode {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-pincode .pincode-input-group {
    width: 100%;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* =============================================
   3D STACKED CARD CAROUSEL
   ============================================= */
.banner-carousel {
  position: relative;
  overflow: visible;
  background: transparent;
}

/* 3D Wrapper */
.carousel-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
  padding: 40px 0;
}

.carousel-3d-stage {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
}

/* Cards */
.carousel-3d-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 85%;
  height: 100%;
  transform: translateX(-50%) scale(0.75) translateZ(-200px);
  opacity: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 1;
}

.carousel-3d-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--white);
}

/* Active card (center) */
.carousel-3d-card.active {
  transform: translateX(-50%) scale(1) translateZ(0);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 20px 60px rgba(10, 126, 140, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}

/* Previous card (left) */
.carousel-3d-card.prev {
  transform: translateX(-110%) scale(0.82) rotateY(8deg);
  opacity: 0.55;
  z-index: 3;
  filter: brightness(0.85);
  pointer-events: auto;
  cursor: pointer;
}

/* Next card (right) */
.carousel-3d-card.next {
  transform: translateX(10%) scale(0.82) rotateY(-8deg);
  opacity: 0.55;
  z-index: 3;
  filter: brightness(0.85);
  pointer-events: auto;
  cursor: pointer;
}

/* Far cards (stacked deeper behind) */
.carousel-3d-card.far-prev {
  transform: translateX(-120%) scale(0.65) rotateY(12deg);
  opacity: 0;
  z-index: 1;
}

.carousel-3d-card.far-next {
  transform: translateX(20%) scale(0.65) rotateY(-12deg);
  opacity: 0;
  z-index: 1;
}

/* Navigation Arrows — floating outside cards */
.carousel-3d-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(10, 126, 140, 0.08);
  opacity: 0;
}

.carousel-3d-wrapper:hover .carousel-3d-arrow {
  opacity: 1;
}

.carousel-3d-arrow:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(10, 126, 140, 0.25);
}

.carousel-3d-prev {
  left: -10px;
}

.carousel-3d-next {
  right: -10px;
}

/* Dot Indicators */
.carousel-3d-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-md);
  align-items: center;
}

.carousel-3d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.carousel-3d-dot.active {
  background: linear-gradient(135deg, var(--coral-500), var(--teal-400));
  width: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(232, 88, 79, 0.35);
}

.carousel-3d-dot:hover:not(.active) {
  background: var(--teal-400);
  transform: scale(1.3);
}

/* Progress Bar (below carousel) */
.banner-progress {
  width: 100%;
  max-width: 900px;
  height: 3px;
  background: var(--gray-200);
  margin: var(--space-md) auto 0;
  border-radius: 3px;
  overflow: hidden;
}

.banner-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--coral-500), var(--teal-400));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 3px;
}

/* ---- Responsive 3D Carousel ---- */
@media (max-width: 1024px) {
  .carousel-3d-wrapper {
    max-width: 700px;
    padding: 30px 0;
  }

  .carousel-3d-card {
    width: 88%;
  }

  .carousel-3d-arrow {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .carousel-3d-wrapper {
    max-width: 100%;
    padding: 20px 0;
    perspective: 800px;
  }

  .carousel-3d-card {
    width: 90%;
    border-radius: var(--radius-md);
  }

  .carousel-3d-card.prev {
    transform: translateX(-105%) scale(0.78) rotateY(5deg);
    opacity: 0.3;
  }

  .carousel-3d-card.next {
    transform: translateX(15%) scale(0.78) rotateY(-5deg);
    opacity: 0.3;
  }

  .carousel-3d-arrow {
    width: 40px;
    height: 40px;
    opacity: 1;
  }

  .carousel-3d-prev {
    left: 4px;
  }

  .carousel-3d-next {
    right: 4px;
  }

  .carousel-3d-dots {
    gap: 10px;
  }

  .carousel-3d-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-3d-dot.active {
    width: 26px;
  }
}

@media (max-width: 480px) {

  .carousel-3d-card.prev,
  .carousel-3d-card.next {
    opacity: 0;
  }

  .carousel-3d-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-3d-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 50%, var(--teal-500) 100%);
  overflow: hidden;
}

/* YouTube Video Background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 120%;
  min-height: 120%;
  transform: translate(-50%, -50%);
  border: none;
  object-fit: cover;
}

/* Dark overlay for text readability */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(6, 78, 91, 0.82) 0%,
      rgba(10, 126, 140, 0.72) 50%,
      rgba(16, 168, 184, 0.65) 100%);
}

/* Animated background particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* DNA helix decoration */
.hero-dna {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 600px;
  opacity: .1;
}

.dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
}

.dna-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  animation: dna-float 3s ease-in-out infinite;
}

@keyframes dna-float {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(60px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  flex: 1;
}

.hero-image-panel {
  flex: 0 0 340px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3), 0 0 40px rgba(46, 196, 212, .15);
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .15);
  animation: heroImgFloat 5s ease-in-out infinite;
}

@keyframes heroImgFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--teal-100);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, .15);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero h1 span {
  color: var(--coral-400);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--space-3xl);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat .label {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  margin-top: var(--space-xs);
}

/* Hero illustration */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 500px;
  height: 500px;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--white);
  animation: hero-card-float 6s ease-in-out infinite;
}

.hero-card:nth-child(1) {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.hero-card:nth-child(2) {
  top: 40%;
  right: 15%;
  animation-delay: 1.5s;
}

.hero-card:nth-child(3) {
  bottom: 10%;
  right: 5%;
  animation-delay: 3s;
}

@keyframes hero-card-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.hero-card h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-image-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-stat .number {
    font-size: 1.8rem;
  }
}

/* =============================================
   FEATURES (homepage)
   ============================================= */
.features {
  background: transparent;
}

.features-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.features-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 40px;
  /* Increased border radius for a pronounced modern curve */
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(10, 22, 40, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.features-video-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 40px;
  /* Match the wrapper's radius */
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  z-index: 10;
  pointer-events: none;
}

.features-video {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  border-radius: 40px;
  /* Match the wrapper to ensure video clips properly */
}

@media (max-width: 768px) {
  .features-video {
    aspect-ratio: 16/9;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--coral-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  background: var(--teal-50);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--gray-500);
  font-size: .95rem;
}

/* =============================================
   CORPORATE PARTNERS MARQUEE
   ============================================= */
.corporate-partners {
  background: transparent;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.cp-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--teal-800, #0a4f5c);
  text-align: center;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.01em;
}

.cp-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Smooth fade-out on edges — Arc-style */
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
}

.cp-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.cp-marquee-wrapper:hover .cp-marquee-track {
  animation-play-state: paused;
}

.cp-marquee-track img {
  height: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.35s ease, transform 0.35s ease;
  will-change: transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cp-marquee-track img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.12);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .cp-marquee-track {
    gap: 36px;
    animation-duration: 30s;
  }

  .cp-marquee-track img {
    height: 90px;
  }
}

@media (max-width: 480px) {
  .cp-marquee-track {
    gap: 28px;
    animation-duration: 25s;
  }

  .cp-marquee-track img {
    height: 70px;
  }

  .cp-heading {
    margin-bottom: var(--space-lg);
  }
}

/* =============================================
   ACCREDITATIONS
   ============================================= */
.accreditations {
  background-color: var(--teal-50);
  background-image: radial-gradient(circle at top right, rgba(10, 22, 40, 0.06) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(10, 22, 40, 0.06) 0%, transparent 50%);
  color: var(--gray-900);
  text-align: center;
  position: relative;
}

/* Hide wavy dividers on sub-pages (About, Services, Contact) and on specific homepage sections */
.page-hero~.section-padding::before,
.accreditations.section-padding::before,
.testimonials.section-padding::before {
  display: none;
}

.accreditations .section-title {
  color: var(--teal-900);
}

.accreditations .section-subtitle {
  color: var(--gray-600);
}

.accred-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.accred-badge {
  flex: 1 1 220px;
  max-width: 280px;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-bottom: 4px solid var(--teal-800);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.accred-badge:hover {
  background: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--teal-600);
}

.accred-badge .badge-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.accred-badge .badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.accred-badge .badge-icon .badge-text-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--teal-900);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.accred-badge .badge-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal-900);
}

.accred-badge .badge-desc {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* =============================================
   TESTIMONIAL CAROUSEL
   ============================================= */
.testimonials {
  background: transparent;
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--space-3xl);
  text-align: center;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
  letter-spacing: 4px;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--gray-700);
  font-style: italic;
  max-width: 650px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--teal-100);
  position: absolute;
  top: -30px;
  left: -20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--coral-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.testimonial-info h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal-900);
}

.testimonial-info span {
  font-size: .85rem;
  color: var(--gray-500);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-700);
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--teal-500);
  width: 30px;
  border-radius: 5px;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background-color: var(--coral-600);
  background-image: linear-gradient(135deg, rgba(234, 88, 12, 0.7), rgba(249, 115, 22, 0.7)), url('cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--white);
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  top: -200px;
  right: -100px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .75);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: var(--space-lg);
  font-size: .9rem;
  color: rgba(255, 255, 255, .5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, .7);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* About Content */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about-image-container {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  display: block;
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-xl);
}

@media (max-width: 992px) {
  .features-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Mission / Vision cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal-500);
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mission-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--teal-900);
  margin-bottom: var(--space-md);
}

.mission-card p {
  color: var(--gray-500);
  line-height: 1.8;
}

/* Thyrocare association */
.thyrocare-section {
  background: var(--teal-50);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

@media (max-width: 768px) {
  .thyrocare-section {
    flex-direction: column;
    text-align: center;
    padding: var(--space-2xl);
  }
}

.thyrocare-logo-placeholder {
  min-width: 150px;
  height: 150px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
}

.thyrocare-logo-placeholder .icon {
  font-size: 3rem;
}

.thyrocare-logo-placeholder .label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal-700);
  font-size: .9rem;
}

.thyrocare-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--teal-900);
  margin-bottom: var(--space-md);
}

.thyrocare-info p {
  color: var(--gray-500);
  line-height: 1.8;
}

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-header {
  padding: var(--space-xl) var(--space-xl) 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.service-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal-900);
}

.service-card-body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.service-card-body p {
  color: var(--gray-500);
  font-size: .95rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.service-tests {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-tag {
  padding: 6px 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: .82rem;
  font-weight: 500;
  border-radius: 50px;
}

.service-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.service-price .price-label {
  font-size: .85rem;
  color: var(--gray-500);
}

.service-price .price-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--coral-500);
}

.service-price .price-note {
  font-size: .8rem;
  color: var(--gray-500);
}

/* How it works */
.how-it-works {
  background: var(--teal-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 15px rgba(16, 168, 184, .3);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: .9rem;
  color: var(--gray-500);
}

/* Pricing highlight banner on services */
.pricing-highlight {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  color: var(--white);
  text-align: center;
}

.pricing-highlight h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.pricing-highlight p {
  color: rgba(255, 255, 255, .75);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.pricing-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.pricing-feature .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .2);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  color: var(--gray-500);
  font-size: .95rem;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--teal-500);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--teal-900);
  margin-bottom: var(--space-xs);
}

.contact-form>p {
  color: var(--gray-500);
  margin-bottom: var(--space-2xl);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 500px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--gray-900);
  transition: var(--transition);
  outline: none;
  background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 168, 184, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--coral-500);
}

.form-error {
  font-size: .8rem;
  color: var(--coral-500);
  display: none;
}

.form-group input.error~.form-error,
.form-group textarea.error~.form-error {
  display: block;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: var(--space-md);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--gray-500);
}

.footer h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: .9rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal-400);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: .85rem;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-3px);
}

/* =============================================
   TEST PACKAGE CARDS
   ============================================= */
.test-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .test-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .test-packages-grid {
    grid-template-columns: 1fr;
  }
}

.package-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  /* Removed overflow: hidden so the pill can pop out above */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--coral-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  z-index: 2;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.package-card:hover::before {
  transform: scaleX(1);
}

.package-card-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* Removed overflow: hidden so the absolute elements inside (like badges) can overlap the borders */
  position: relative;
  background: var(--gray-100);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.package-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.package-card:hover .package-card-img img {
  transform: scale(1.05);
  /* Will scale slightly but border radius is maintained */
}

.package-discount-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: var(--white);
  padding: 6px 20px;
  /* Slightly wider pill */
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 15px rgba(232, 88, 79, .4);
  z-index: 10;
  white-space: nowrap;
}

.package-test-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(6, 78, 91, .85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  z-index: 1;
}

.package-card-body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.package-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.package-pricing .original-price {
  font-size: .95rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.package-pricing .current-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--coral-500);
}

.package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.package-tag {
  padding: 4px 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: .78rem;
  font-weight: 500;
  border-radius: 50px;
}

.package-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
}

.package-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: .9rem;
}

.package-fasting {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.package-fasting .fasting-icon {
  font-size: 1rem;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .35s ease, transform .35s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .35s ease, transform .35s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .3s ease, transform .3s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* stagger children */
.stagger>* {
  transition-delay: calc(var(--i, 0) * .06s);
}

/* Faster reveals on mobile */
@media (max-width: 768px) {

  .reveal,
  .reveal-left,
  .reveal-right {
    transform: translateY(15px);
    transition-duration: .18s;
  }

  .reveal-left {
    transform: translateX(-15px);
  }

  .reveal-right {
    transform: translateX(15px);
  }

  .reveal-scale {
    transition-duration: .18s;
  }

  .stagger>* {
    transition-delay: calc(var(--i, 0) * .03s);
  }
}

/* =============================================
   MISC
   ============================================= */
::selection {
  background: var(--teal-400);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--teal-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-500);
}

/* Toast / success message */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--teal-700);
  color: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =============================================
   MODAL STYLES
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 24, 0.4); /* Glassy dark tint */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, backdrop-filter .3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hide background blobs when modal is open */
.modal-overlay.active~.glow,
body:has(.modal-overlay.active)::before,
body:has(.modal-overlay.active)::after {
  opacity: 0 !important;
}

.modal-container {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
  animation: modalSlideUp .35s ease forwards;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.booking-modal {
  max-width: 1100px;
  width: 95%;
  height: calc(100vh - 40px);
  max-height: 900px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

/* --- Booking modal body: side-by-side layout --- */
.booking-modal-body {
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

/* --- Image panel (left side now acting as right side) --- */
.booking-image-panel {
  flex: 0 0 auto;
  width: 450px;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  border-left: 1px solid var(--gray-200);
  position: relative;
  overflow-y: auto;
}

.zoom-container {
  flex: 0 0 auto;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  /* Aligns image to top, removing bottom gap */
  justify-content: center;
  background: var(--gray-50);
  /* Matches the panel entirely so letterboxing is invisible */
}

.booking-pkg-img {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;
  /* Forces image to stretch without white letterboxing gaps */
  transition: transform .4s cubic-bezier(.25, .46, .45, .94);
  transform-origin: center center;
  display: block;
}

.zoom-container:hover .booking-pkg-img {
  transform: scale(1.8);
}

/* Follow mouse for zoom origin */
.zoom-container:hover {
  cursor: zoom-in;
}

.booking-price-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .2rem 1rem;
  /* Removed standard padding */
  background: var(--teal-600);
  /* Solid background */
  color: var(--white);
  border-top: none;
  margin-top: -1px;
  /* Pulls it up tight to overlap any 1px whitespace */
}

.booking-price-tag .original-price {
  font-size: .9rem;
  text-decoration: line-through;
  opacity: .7;
  color: var(--white);
}

.booking-price-tag .offer-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

/* --- Form panel (right side) --- */
.booking-form-panel {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/* --- Image panel responsive --- */
@media (max-width: 768px) {
  .booking-modal-body {
    flex-direction: column;
    height: auto;
  }

  .booking-image-panel {
    flex: 0 0 auto;
    max-height: 50vh;
    border-left: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .zoom-container {
    max-height: 180px;
  }
}

.booking-tests-accordion {
  overflow-y: visible;
  padding: 0 .75rem;
  /* Removed vertical padding to eliminate empty white box */
  border-top: 1px solid var(--gray-200);
}

.accordion-item {
  border-bottom: 1px solid var(--gray-100);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal-800);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background .2s ease, color .2s ease;
  border-radius: 6px;
}

.accordion-header:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}

.accordion-chevron {
  font-size: .7rem;
  transition: transform .3s ease;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-left: .5rem;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--teal-600);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

.accordion-test-list {
  list-style: none;
  padding: 0 .5rem .5rem 1.2rem;
  margin: 0;
}

.accordion-test-list li {
  font-size: .75rem;
  color: var(--gray-600);
  padding: .2rem 0;
  position: relative;
  padding-left: .8rem;
}

.accordion-test-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal-500);
  font-weight: bold;
}

.details-modal {
  max-width: 820px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  margin: 0;
  z-index: 100;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--coral-500);
  color: white;
}

.modal-header {
  padding: 1.5rem 2rem .5rem;
  text-align: center;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin-bottom: .25rem;
}

.modal-subtitle {
  color: var(--gray-500);
  font-size: .95rem;
}

/* --- Booking form --- */
.booking-form {
  padding: 1rem 2rem 2rem;
}

.form-row {
  margin-bottom: .85rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: .3rem;
}

.booking-form input:not([type="checkbox"]),
.booking-form select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-bottom: 2px solid var(--gray-300);
  border-radius: 12px;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gray-50);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.booking-form input:not([type="checkbox"]):focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--teal-400);
  border-bottom-color: var(--teal-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 196, 212, .15), 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.booking-form input:not([type="checkbox"]).error,
.booking-form select.error {
  border-color: var(--coral-400);
  border-bottom-color: var(--coral-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, .15), 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* --- TomSelect Custom Styles for Booking Form --- */
.ts-control {
  border-radius: 12px !important;
  padding: .85rem 1.1rem !important;
  border: 1px solid var(--gray-200) !important;
  border-bottom: 2px solid var(--gray-300) !important;
  font-size: .95rem !important;
  font-family: var(--font-body) !important;
  background: var(--gray-50) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  min-height: auto !important;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--teal-400) !important;
  border-bottom-color: var(--teal-700) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 4px rgba(46, 196, 212, .15), 0 6px 16px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-2px) !important;
}

.ts-dropdown {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid var(--gray-200) !important;
  overflow: hidden !important;
  z-index: 2000 !important;
  /* Above modal */
}

.ts-dropdown .option {
  padding: 10px 14px !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .active {
  background-color: var(--teal-50) !important;
  color: var(--teal-700) !important;
}

.pincode-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.pincode-input-group input {
  width: 100%;
  padding-right: 90px !important;
}

.btn-check-pin {
  position: absolute;
  right: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  margin: 0;
  height: auto;
  z-index: 10;
}

.pincode-message {
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pincode-message.show {
  visibility: visible;
  opacity: 1;
}

.pincode-message.success {
  color: var(--success);
}

.pincode-message.error {
  color: var(--coral-600);
}

.pincode-message svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pincode-message.success svg {
  animation: tickPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pincode-message.error svg {
  animation: crossShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes tickPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes crossShake {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  25% {
    transform: translateX(-4px);
    opacity: 1;
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- Optional Additional Tests --- */
.booking-additional-tests {
  margin: 1.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.additional-tests-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.optional-test-list {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.optional-test-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  cursor: pointer;
  padding: .5rem;
  border-radius: 8px;
  transition: background .2s ease;
}

.optional-test-item:hover {
  background: var(--gray-50);
}

.native-test-cb {
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--teal-600);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transform: scale(1.15);
  transform-origin: center;
}

.addon-name {
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.4;
}

.addon-name strong {
  color: var(--teal-800);
  font-size: .9rem;
}

/* --- Booking Summary Card --- */
.booking-summary-card {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: inset 0 2px 10px rgba(37, 99, 235, 0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

.summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-900);
}

.summary-divider {
  height: 1px;
  background: var(--teal-100);
  margin: 1rem 0;
  opacity: 0.5;
}

.total-row {
  margin-bottom: 0;
  align-items: flex-end;
}

.total-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.total-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-900);
}

.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #bbf7d0;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.total-price-wrapper {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.original-total {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-bottom: -2px;
}

.final-total {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-500);
  line-height: 1;
}

.booking-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6, 78, 91, 0.2);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.booking-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 78, 91, 0.3);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
}

.booking-notes {
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 10px;
  border-left: 4px solid var(--teal-700);
}

.booking-notes p {
  font-size: .78rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: .3rem;
}

/* --- Details modal --- */
.details-content {
  padding: .5rem 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.details-category {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--gray-100);
}

.details-cat-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 2px solid var(--teal-200);
  padding-bottom: .4rem;
}

.cat-icon {
  font-size: 1rem;
}

.details-test-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}

.details-test-list li {
  font-size: .8rem;
  color: var(--gray-600);
  padding: .25rem 0;
  border-bottom: 1px dashed var(--gray-200);
  padding-left: 1rem;
  position: relative;
}

.details-test-list li:last-child {
  border-bottom: none;
}

.details-test-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal-600);
  font-weight: bold;
}

.details-footer {
  padding: 1rem 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--gray-100);
}

.details-footer .btn {
  min-width: 220px;
  border: none;
  cursor: pointer;
}

/* --- Modal responsive --- */
@media (max-width: 640px) {
  .modal-container {
    border-radius: 12px;
  }

  .modal-header {
    padding: 1rem 1.2rem .5rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .booking-form {
    padding: .8rem 1.2rem 1.5rem;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
    gap: .6rem;
  }

  .details-content {
    grid-template-columns: 1fr;
    padding: .5rem 1.2rem 1rem;
  }

  .details-footer {
    padding: .8rem 1.2rem 1.2rem;
  }
}

/* Ensure buttons in package-actions look consistent */
.package-actions button {
  font-family: var(--font-body);
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  transform: translateY(-5px) scale(1.05);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float span {
  display: flex;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--teal-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  border: none;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--teal-700);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   SWEETALERT OVERRIDES
   ============================================= */
.swal2-container {
  z-index: 10000 !important;
}

/* =============================================
   PER-BENEFICIARY ADDON TESTS
   ============================================= */
.beneficiary-addons {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--teal-50, #f0fdfa);
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--teal-100, #ccfbf1);
}

.beneficiary-addons-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-700, #0f766e);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

.beneficiary-addons .optional-test-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.beneficiary-addons .optional-test-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm, 6px);
  transition: background 0.2s ease;
  font-size: 0.82rem;
  color: var(--gray-700, #374151);
}

.beneficiary-addons .optional-test-item:hover {
  background: rgba(46, 196, 212, 0.08);
}

.beneficiary-addons .addon-test-cb {
  accent-color: var(--teal-500, #14b8a6);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.beneficiary-addons .addon-name {
  line-height: 1.3;
}

.beneficiary-addons .addon-name strong {
  color: var(--teal-700, #0f766e);
}

.beneficiary-block+.beneficiary-block {
  margin-top: 1rem;
  padding-top: 0.75rem;
}

/* =============================================
   404 ERROR PAGE
   ============================================= */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.error-page-inner {
  text-align: center;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

/* Floating Particles */
.error-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.error-particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: error-float linear infinite;
}

.error-particles span:nth-child(1) {
  width: 20px;
  height: 20px;
  background: var(--teal-400);
  top: 10%;
  left: 5%;
  animation-duration: 8s;
}

.error-particles span:nth-child(2) {
  width: 14px;
  height: 14px;
  background: var(--coral-400);
  top: 20%;
  right: 10%;
  animation-duration: 10s;
  animation-delay: 1s;
}

.error-particles span:nth-child(3) {
  width: 24px;
  height: 24px;
  background: var(--teal-500);
  bottom: 30%;
  left: 15%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.error-particles span:nth-child(4) {
  width: 10px;
  height: 10px;
  background: var(--coral-500);
  top: 50%;
  right: 20%;
  animation-duration: 7s;
  animation-delay: 0.5s;
}

.error-particles span:nth-child(5) {
  width: 18px;
  height: 18px;
  background: var(--teal-100);
  bottom: 15%;
  right: 5%;
  animation-duration: 9s;
  animation-delay: 3s;
}

.error-particles span:nth-child(6) {
  width: 12px;
  height: 12px;
  background: var(--coral-300);
  top: 35%;
  left: 80%;
  animation-duration: 11s;
  animation-delay: 1.5s;
}

.error-particles span:nth-child(7) {
  width: 16px;
  height: 16px;
  background: var(--teal-400);
  bottom: 45%;
  left: 50%;
  animation-duration: 13s;
  animation-delay: 4s;
}

.error-particles span:nth-child(8) {
  width: 8px;
  height: 8px;
  background: var(--coral-400);
  top: 65%;
  left: 25%;
  animation-duration: 6s;
  animation-delay: 2.5s;
}

@keyframes error-float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }

  25% {
    transform: translateY(-40px) rotate(90deg);
    opacity: 0.25;
  }

  50% {
    transform: translateY(-80px) rotate(180deg);
    opacity: 0.15;
  }

  75% {
    transform: translateY(-40px) rotate(270deg);
    opacity: 0.25;
  }

  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.15;
  }
}

/* Test Tube Illustration */
.error-illustration {
  margin: 0 auto var(--space-xl);
  display: flex;
  justify-content: center;
}

.test-tube {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tube-wobble 3s ease-in-out infinite;
}

@keyframes tube-wobble {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

.tube-rim {
  width: 72px;
  height: 12px;
  background: linear-gradient(180deg, #d1d5db, #9ca3af);
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 2;
  order: -1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tube-body {
  width: 56px;
  height: 120px;
  background: rgba(255, 255, 255, 0.3);
  border: 3px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.tube-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(0deg, var(--teal-500), var(--teal-400), rgba(59, 130, 246, 0.4));
  border-radius: 0 0 24px 24px;
  animation: liquid-wave 2s ease-in-out infinite;
}

@keyframes liquid-wave {

  0%,
  100% {
    height: 65%;
  }

  50% {
    height: 70%;
  }
}

.tube-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: bubble-rise linear infinite;
}

.tube-bubble.b1 {
  width: 6px;
  height: 6px;
  bottom: 10%;
  left: 30%;
  animation-duration: 2s;
}

.tube-bubble.b2 {
  width: 4px;
  height: 4px;
  bottom: 5%;
  left: 55%;
  animation-duration: 2.5s;
  animation-delay: 0.8s;
}

.tube-bubble.b3 {
  width: 5px;
  height: 5px;
  bottom: 15%;
  left: 40%;
  animation-duration: 1.8s;
  animation-delay: 1.5s;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translateY(-80px) scale(0.3);
    opacity: 0;
  }
}

/* 404 Error Code */
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-flex;
  gap: 0.05em;
}

.error-code .digit {
  background: linear-gradient(135deg, var(--teal-500), var(--coral-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: digit-float 3s ease-in-out infinite;
}

.error-code .d1 {
  animation-delay: 0s;
}

.error-code .d0 {
  animation-delay: 0.3s;
}

.error-code .d2 {
  animation-delay: 0.6s;
}

@keyframes digit-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Title & Message */
.error-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Action Buttons */
.error-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.error-actions .btn {
  padding: 14px 32px;
  font-size: .95rem;
}

/* Help Text */
.error-help {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

.error-help p {
  font-size: .9rem;
  color: var(--gray-500);
}

.error-help a {
  color: var(--teal-500);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.error-help a:hover {
  color: var(--coral-500);
}

/* Responsive */
@media (max-width: 480px) {
  .error-code {
    font-size: 5rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .tube-body {
    width: 44px;
    height: 96px;
  }

  .tube-rim {
    width: 58px;
  }
}

/* =============================================
   BOOKING FORM — STEP PROGRESS BAR
   ============================================= */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem 1.2rem;
  gap: 0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.bp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

.bp-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--gray-100);
  color: var(--gray-400);
  border: 2px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.bp-step.active .bp-circle {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--white);
  border-color: var(--teal-500);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transform: scale(1.1);
}

.bp-step.completed .bp-circle {
  background: var(--success, #22c55e);
  color: var(--white);
  border-color: var(--success, #22c55e);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.bp-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  text-align: center;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.bp-step.active .bp-label {
  color: var(--teal-700);
}

.bp-step.completed .bp-label {
  color: var(--success, #22c55e);
}

.bp-line {
  flex: 1;
  height: 3px;
  background: var(--gray-200);
  border-radius: 3px;
  margin: 0 8px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  min-width: 40px;
}

.bp-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--success, #22c55e), var(--teal-400));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bp-line.filled .bp-line-fill {
  width: 100%;
}

/* Step Containers */
.booking-step {
  display: none;
  animation: stepFadeIn 0.35s ease forwards;
}

.booking-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Step Navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  gap: 1rem;
}

.step-nav .btn {
  padding: 12px 28px;
  font-size: 0.9rem;
}

.step-nav .btn-step-next {
  margin-left: auto;
}

.step-nav .booking-submit {
  margin-left: auto;
  padding: 14px 36px;
}

@media (max-width: 480px) {
  .bp-label {
    font-size: 0.6rem;
  }

  .bp-circle {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .bp-line {
    min-width: 20px;
  }

  .step-nav .btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}

/* =============================================
   SKELETON LOADING ANIMATION
   ============================================= */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      var(--gray-100) 25%,
      var(--gray-50) 50%,
      var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
}

.skeleton-price {
  height: 100%;
  width: 100%;
  border-radius: 0;
}

.booking-pkg-img {
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.booking-pkg-img.loading {
  opacity: 0;
}

.booking-price-tag .skeleton-price-wrap {
  display: none;
  width: 100%;
  height: 28px;
}

.booking-price-tag.loading .skeleton-price-wrap {
  display: block;
}

.booking-price-tag.loading .original-price,
.booking-price-tag.loading .offer-price {
  visibility: hidden;
}

/* =============================================
   MOBILE OPTIMIZATION — TABLET (≤768px)
   ============================================= */
@media (max-width: 768px) {

  /* --- Hero Section --- */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat .number {
    font-size: 1.6rem;
  }

  .hero-stat .label {
    font-size: .78rem;
  }

  /* --- Page Hero (About, Services, Contact) --- */
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .page-hero p {
    font-size: 1rem;
  }

  /* --- Section Spacing --- */
  .section-padding {
    padding: var(--space-lg) 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: var(--space-xs);
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin: 0 auto var(--space-xl);
  }

  /* --- Services Grid --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* --- Steps Grid --- */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* --- Accreditations --- */
  .accred-grid {
    gap: var(--space-lg);
  }

  .accred-badge {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* --- Pricing Highlight --- */
  .pricing-highlight {
    padding: var(--space-2xl);
  }

  .pricing-highlight h3 {
    font-size: 1.4rem;
  }

  .pricing-features {
    gap: var(--space-md);
  }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: var(--space-xl);
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* --- CTA Banner --- */
  .cta-banner {
    padding: var(--space-2xl) 0;
  }

  /* --- Booking Modal — Full Screen, Scrollable as Whole --- */
  .booking-modal {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay {
    padding: 0;
  }

  .booking-modal-body {
    flex-direction: column;
    overflow: visible;
    height: auto;
    flex: none;
  }

  .booking-form-panel {
    overflow-y: visible;
    flex: none;
  }

  .booking-image-panel {
    width: 100%;
    max-height: 200px;
    border-left: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .zoom-container {
    max-height: 160px;
  }

  .booking-form {
    padding: 0.8rem 1.2rem 1.5rem;
  }

  .modal-header {
    padding: 1rem 1.2rem 0.5rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  /* --- Package Cards --- */
  .package-card-body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }

  .package-card-body h3 {
    font-size: 1.1rem;
  }

  .package-pricing .current-price {
    font-size: 1.3rem;
  }

  .package-actions {
    flex-direction: column;
  }

  .package-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   MOBILE OPTIMIZATION — SMALL PHONE (≤480px)
   ============================================= */
@media (max-width: 480px) {

  /* --- General --- */
  .container {
    width: 94%;
  }

  .section-padding {
    padding: var(--space-md) 0;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin: 0 auto var(--space-lg);
  }

  /* --- Navbar --- */
  .nav-logo-img {
    height: 42px;
  }

  /* --- Hero --- */
  .hero {
    padding: 90px 0 40px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
    margin-bottom: var(--space-md);
  }

  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    margin-bottom: var(--space-md);
  }

  .hero p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
  }

  .hero-buttons {
    margin-bottom: var(--space-xl);
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.92rem;
    min-height: 48px;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .hero-stat .number {
    font-size: 1.4rem;
  }

  .hero-stat .label {
    font-size: 0.72rem;
  }

  /* --- Page Hero --- */
  .page-hero {
    padding: 100px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .page-hero p {
    font-size: 0.9rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  /* --- Buttons — Touch Friendly --- */
  .btn {
    padding: 12px 24px;
    font-size: 0.92rem;
    min-height: 48px;
  }

  .nav-cta {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
  }

  /* --- Features Grid --- */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-xl);
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .feature-card h3 {
    font-size: 1.15rem;
  }

  /* --- Test Package Cards --- */
  .test-packages-grid {
    gap: var(--space-lg);
  }

  .package-card-body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .package-card-body h3 {
    font-size: 1rem;
  }

  .package-pricing .current-price {
    font-size: 1.2rem;
  }

  .package-pricing .original-price {
    font-size: 0.85rem;
  }

  .package-tags {
    gap: 4px;
    margin-bottom: var(--space-md);
  }

  .package-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .package-discount-badge {
    font-size: 0.78rem;
    padding: 5px 16px;
  }

  /* --- Services Grid --- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-header h3 {
    font-size: 1.15rem;
  }

  .service-card-body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }

  .service-card-body p {
    font-size: 0.88rem;
  }

  /* --- Steps Grid --- */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .step-card h3 {
    font-size: 1.05rem;
  }

  .step-card p {
    font-size: 0.85rem;
  }

  /* --- Accreditations --- */
  .accred-badge {
    padding: var(--space-xl) var(--space-lg);
  }

  .accred-badge .badge-icon {
    width: 80px;
    height: 80px;
    padding: 12px;
  }

  .accred-badge .badge-name {
    font-size: 1.15rem;
  }

  .accred-badge .badge-desc {
    font-size: 0.85rem;
  }

  /* --- Pricing Highlight --- */
  .pricing-highlight {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
  }

  .pricing-highlight h3 {
    font-size: 1.2rem;
  }

  .pricing-highlight p {
    font-size: 0.9rem;
  }

  .pricing-features {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .pricing-feature {
    font-size: 0.88rem;
  }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: var(--space-lg) var(--space-md);
  }

  .testimonial-text {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .testimonial-text::before {
    font-size: 3rem;
    top: -15px;
    left: -10px;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .testimonial-info h4 {
    font-size: 0.92rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* --- CTA Banner --- */
  .cta-banner {
    padding: var(--space-xl) 0;
  }

  .cta-banner h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .cta-banner p {
    font-size: 0.92rem;
  }

  /* --- Contact Page --- */
  .contact-form {
    padding: var(--space-xl);
  }

  .contact-form h3 {
    font-size: 1.3rem;
  }

  .contact-card {
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .contact-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  /* --- About Page --- */
  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.92rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .mission-card {
    padding: var(--space-xl);
  }

  .mission-card h3 {
    font-size: 1.15rem;
  }

  .thyrocare-section {
    padding: var(--space-xl);
    gap: var(--space-xl);
  }

  .thyrocare-logo-placeholder {
    min-width: 100px;
    height: 100px;
  }

  .thyrocare-info h3 {
    font-size: 1.3rem;
  }

  /* --- Footer --- */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer-brand p {
    font-size: 0.85rem;
  }

  .footer h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
  }

  .footer-brand .nav-logo-img {
    height: 50px;
  }

  /* --- Booking Modal — Full Screen Compact, Scrollable --- */
  .booking-modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay {
    padding: 0;
  }

  .booking-modal-body {
    overflow: visible;
    height: auto;
    flex: none;
  }

  .booking-form-panel {
    overflow-y: visible;
    flex: none;
  }

  .booking-image-panel {
    max-height: 150px;
  }

  .zoom-container {
    max-height: 120px;
  }

  .booking-price-tag {
    padding: 0.15rem 0.8rem;
  }

  .booking-price-tag .offer-price {
    font-size: 1.1rem;
  }

  .booking-price-tag .original-price {
    font-size: 0.8rem;
  }

  .booking-form {
    padding: 0.6rem 1rem 1.2rem;
  }

  .modal-header {
    padding: 0.8rem 1rem 0.4rem;
  }

  .modal-header h2 {
    font-size: 1.15rem;
  }

  .modal-subtitle {
    font-size: 0.82rem;
  }

  /* Form inputs — prevent iOS zoom with 16px font */
  .booking-form input:not([type="checkbox"]),
  .booking-form select {
    font-size: 16px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }

  .ts-control {
    font-size: 16px !important;
    padding: 0.75rem 0.9rem !important;
    border-radius: 10px !important;
  }

  /* --- Booking Progress Bar Compact --- */
  .booking-progress {
    padding: 0 0.3rem 0.8rem;
    margin-bottom: 0.6rem;
  }

  .bp-circle {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .bp-label {
    font-size: 0.55rem;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bp-line {
    min-width: 16px;
    margin: 0 4px;
    margin-bottom: 16px;
  }

  .step-nav {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }

  .step-nav .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* --- Booking Summary Compact --- */
  .booking-summary-card {
    padding: 1rem;
    margin: 1rem 0;
  }

  .summary-label {
    font-size: 0.82rem;
  }

  .summary-value {
    font-size: 0.9rem;
  }

  .total-label {
    font-size: 0.95rem;
  }

  .final-total {
    font-size: 1.6rem;
  }

  .savings-badge {
    font-size: 0.68rem;
    padding: 3px 10px;
  }

  /* --- Booking Submit --- */
  .booking-submit {
    padding: 0.9rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 10px;
  }

  /* --- Booking Notes --- */
  .booking-notes {
    padding: 0.8rem;
    margin-top: 0.8rem;
  }

  .booking-notes p {
    font-size: 0.72rem;
  }

  /* --- Optional Tests Compact --- */
  .additional-tests-heading {
    font-size: 0.9rem;
  }

  .optional-test-item {
    padding: 0.4rem;
  }

  .addon-name {
    font-size: 0.8rem;
  }

  .addon-name strong {
    font-size: 0.85rem;
  }

  /* --- Beneficiary Addons --- */
  .beneficiary-addons {
    padding: 0.6rem 0.8rem;
  }

  .beneficiary-addons-heading {
    font-size: 0.8rem;
  }

  /* --- Details Modal --- */
  .details-modal {
    max-width: 100%;
    border-radius: 12px;
  }

  .details-content {
    grid-template-columns: 1fr;
    padding: 0.5rem 1rem 0.8rem;
  }

  .details-cat-title {
    font-size: 0.88rem;
  }

  .details-test-list li {
    font-size: 0.75rem;
  }

  .details-footer {
    padding: 0.6rem 1rem 1rem;
  }

  .details-footer .btn {
    min-width: 180px;
    font-size: 0.88rem;
  }

  /* --- Accordion Compact --- */
  .accordion-header {
    font-size: 0.78rem;
    padding: 0.5rem 0.4rem;
  }

  .accordion-test-list li {
    font-size: 0.7rem;
  }

  /* --- WhatsApp Button — Mobile Repositioned --- */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
    font-size: 30px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }

  /* --- Scroll to Top — Mobile Repositioned --- */
  .scroll-to-top {
    width: 42px;
    height: 42px;
    bottom: 16px;
    left: 16px;
    font-size: 20px;
  }

  /* --- Toast — Full Width Mobile --- */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 80px;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  /* --- Pincode Input --- */
  .pincode-input-group input {
    padding-right: 80px !important;
  }

  .btn-check-pin {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* --- Error Page --- */
  .error-page {
    padding: 100px var(--space-md) var(--space-xl);
  }

  .error-message {
    font-size: 0.92rem;
  }
}

/* =============================================
   MODERN ROUNDED SELECT (DROPDOWNS)
   ============================================= */
select, 
.booking-form select,
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  padding-right: 2.8rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  width: 100%;
}

select:hover,
.booking-form select:hover,
.contact-form select:hover {
  border-color: var(--teal-400);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
  transform: translateY(-1px);
}

select:focus,
.booking-form select:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal-500);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
  transform: translateY(-1px);
}

/* Base custom dropdown options */
select option {
  padding: 12px;
  background: #ffffff;
  color: #334155;
  font-weight: 500;
}

/* Ensure TomSelect (used for state selection) matches the rounded modern look */
.ts-control {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
  background-color: #f8fafc !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  font-size: 1rem !important;
}

.ts-control:hover {
  border-color: var(--teal-400) !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08) !important;
}

.ts-control.focus {
  border-color: var(--teal-500) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15) !important;
}

/* Modern styling for the TomSelect dropdown menu box */
.ts-dropdown {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #cbd5e1 !important;
  overflow: hidden !important;
  margin-top: 4px !important;
}

.ts-dropdown .option {
  padding: 10px 14px !important;
  transition: background-color 0.15s ease !important;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
  background-color: var(--teal-500) !important;
  color: var(--white) !important;
}