body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
}

.navbar {
  position: sticky;       /* ✅ Makes it stick */
  top: 0;                 /* ✅ Sticks to top */
  z-index: 1000;          /* ✅ Ensure it's above everything else */
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  align-items: center;
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-left img.logo {
  height: 48px;
}

.header-tagline h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-tagline p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-weight: 500;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;              /* ✅ Smaller font */
  color: #1f1f1f;
  background-color: #e1f5e1;
  padding: 4px 10px;               /* ✅ Less padding = smaller height */
  border-radius: 16px;             /* Rounded pill look */
  transition: background 0.3s ease;
}

.help-link:hover {
  background-color: #c9f1c9;
}

.whatsapp-icon {
  width: 16px;                     /* ✅ Smaller icon */
  height: 16px;
}


.help-link:hover {
  background-color: #c9f1c9;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

/* Login Link */
.login-link {
  text-decoration: none;
  color: #3A8EF6;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #e6f0ff;
  transition: background-color 0.3s ease;
}

.login-link:hover {
  background-color: #d1e4ff;
  color: #1a65c1;
}

.hero-banner {
  background: linear-gradient(to right, #3A8EF6, #63ffff);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.hero-search-bar {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-search-bar input,
.hero-search-bar select {
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  width: 295px;
}

.primary-btn {
  background: linear-gradient(to right, #3A8EF6, #63FFFF);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.primary-btn:hover {
  opacity: 0.85;
}

.gradient-btn {
  background: linear-gradient(to right, #3A8EF6, #009b9b);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gradient-btn:hover {
  opacity: 0.85;
}

/* Feature Icons and promotion text */

.top-features {
  background: #fff;
  padding: 3rem 1.5rem 2rem;
  margin-top: 0rem; /* ✅ Push it away from hero banner */
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.icon-blue {
  color: #3A8EF6;
}

.icon-green {
  color: #00b894;
}

.icon-purple {
  color: #a29bfe;
}

.icon-orange {
  color: #fd7e14;
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  width: 180px;
  text-align: center;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.feature-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.choose-tests-section {
  text-align: center;
  padding: .5rem 1.5rem 1.5rem;
  background: linear-gradient(to bottom, #ffffff, #f7f9fc);
}

.choose-tests-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
}

.choose-tests-section p {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}


/* Filter bar aligned below cards */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


.filter-bar-wrapper {
  max-width: 1200px;
  margin: 1rem auto 0.5rem;
  padding: 0 1.5rem;
}


.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.city-filter-wrapper {
  margin-left: 1rem; /* space between category and city filter on wider screens */
}

.city-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-controls label,
.city-controls label {
  display: flex;
  align-items: center;
  font-weight: 400;
  gap: 0.4rem;
  font-size: 0.7rem;
}

.filter-controls label i {
  margin-right: 4px;
  font-size: 1rem;
}

.filter-controls select,
.city-controls select {
  margin-left: 0.4rem; /* ✅ Adds gap after colon */
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 0.3px solid #ccc;
}

.test-count {
  font-size: 0.8rem;
  color: #666;
}

.test-list-section {
  padding: 1rem 0;
}

.scroll-row.flat-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: stretch; /* ✅ Ensures all cards are same height */
}




/* --- CARD STYLES --- */
.test-card-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 0;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.test-card-new:hover,
.test-card-new:focus-within {
  transform: translateY(-4px);
  border-color: #cdd9ed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.test-card-new h3 {
  margin: 0;
  font-size: 1rem;
  color: #222;
}

.category-label {
  display: inline-block;
  background-color: #8deded;
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 6px 0;
  width: fit-content;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.price-final {
  color: #2c6cd1;
  font-weight: 600;
  font-size: 1rem;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.discount {
  color: #e82561;
  font-weight: 600;
  font-size: 0.9rem;
}

.test-description,
.info-list {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  padding: 0;
  margin: 0 0 4px 0;
}


.info-list {
  list-style-type: disc;
  padding-left: 1.2rem;  /* Ensures bullet indentation */
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #444;
  text-align: left; /* 👈 Ensures left alignment */
}

.info-list li {
  margin-bottom: 2px;
}

.test-card-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 0;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


.test-card-new .card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem;
}

.test-card-new .badge {
  background-color: #f1f3f9;
  color: #3A8EF6;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.test-card-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 0;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.subtest-info {
  font-size: 11px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 2px;
  font-weight: 500;
}

.subtest-info a.view-subtests-link {
  text-decoration: underline;
  color: #007bff;
  font-weight: 500;
  cursor: pointer;
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.book-btn {
  width: 100%;
  padding: 0.6rem;
}


.load-more-section {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}


.load-more-btn {
  width: 280px;               /* ✅ Same as card */
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #3A8EF6, #00cfcf);
  color: white;
  cursor: pointer;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.load-more-btn:hover {
  opacity: 0.9;
}

.categorized-tests {
  text-align: center;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.feedback-section {
  background: #fff;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.feedback-carousel {
  display: flex;
  overflow-x: hidden; /* 🔄 hides scrollbar */
  gap: 1rem;
  margin-top: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.feedback-card {
  background-color: #f5f7fa;
  padding: 1rem;
  border-radius: 10px;
  min-width: 250px;
  scroll-snap-align: center;
  flex-shrink: 0;
  text-align: center;
}

.footer {
  background: #222;
  color: #aaa;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
}

.footer .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.left-text, .right-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.copyright-text {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin: 1rem auto;
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
}

.auth-form {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}

.auth-form h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: #222;
  text-align: center;
}

.auth-form input {
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.auth-form button {
  padding: 0.7rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Primary button: "Send OTP" */
.auth-form button:not(.cancel-btn) {
  background-color: #3A8EF6;
  color: white;
}

.auth-form button:not(.cancel-btn):hover {
  background-color: #2c6cd1;
}

/* Cancel button */
.cancel-btn {
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

.cancel-btn:hover {
  background: #f0f0f0;
}

#recaptcha-container {
  margin-top: -0.5rem;
}



.booking-summary {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#featured-section {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

#featured-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}
.featured-badge {
  background-color: gold;
  color: black;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  margin-left: 5px;
}

.test-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.star-badge {
  font-size: 1rem;
  color: #f5b301;
  vertical-align: middle;
}

/* Booking Modal Updated Styles */
.modal-content.booking-modal {
  background: #fff;
  border-radius: 10px;
  width: 95%;
  max-width: 600px;
  padding: 2rem;
  margin: 3rem auto;           /* 👈 Ensures spacing from sticky navbar */
  position: relative;
  z-index: 1100;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto; /* Ensures scroll for long content */
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.booking-modal {
  max-width: 600px;
  width: 95%;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* ✅ Center horizontally */
}


.booking-modal h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
}

.subtext {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.booking-summary-box {
  background-color: #f0f6ff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.booking-form textarea {
  resize: vertical;
  min-height: 60px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-actions button {
  min-width: 120px;
}

.info-note {
  /* font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem; */
  display: none;
}


/* Someone else booking start */
.checkbox-row-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-row-grid input[type="checkbox"] {
  transform: scale(1.1);
  margin: 0;
  cursor: pointer;
}

.checkbox-row-grid label {
  margin: 0;
  padding: 0;
  cursor: pointer;
}

/* Someone else booking stop */





.booking-confirmation {
  margin-top: 1rem;
  color: green;
  font-weight: 500;
}

.confirmation-banner,
.error-banner {
background-color: #ffe5e5;
  color: #d8000c;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.confirmation-banner {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-banner::before {
  content: "❌";
  font-size: 1rem;
}

.error-banner {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


.card-filler {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
  padding-left: 20px;
  list-style-type: disc;
}

.card-filler li {
  margin-bottom: 2px;
}

@media (max-width: 480px) {
  html,
  body {
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .nav-left {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav-right {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .logo {
    height: 36px;
  }

  .header-tagline h1 {
    font-size: 1.2rem;
    margin: 0;
  }

  .header-tagline p {
    font-size: 0.75rem;
    margin: 0;
  }

  .help-link,
  .login-link {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .hero-banner h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
    margin: 0.5rem 0;
  }

  .hero-banner p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .hero-banner input[type="text"] {
    width: 90%;
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .choose-tests-section {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
  }

  .choose-tests-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .choose-tests-section p {
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0 auto 1rem;
    line-height: 1.5;
  }

  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .filter-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
  }

  .filter-controls label,
  .city-controls label {
    font-size: 0.85rem;
  }

  .city-filter-wrapper {
    margin-left: 0;
  }

  .filter-controls select,
  .city-controls select {
    width: 100%;
  }

  .test-count {
    font-size: 0.8rem;
    color: #666;
    text-align: left;
  }

  .categorized-tests-container,
  .test-list-wrapper {
    padding: 0;
  }

  .test-card,
  .test-card-new {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    box-sizing: border-box;
  }

  .scroll-row.flat-layout {
    padding: 0;
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }

  .load-more-wrapper {
    padding: 0 0.5rem;
  }

  .load-more-btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem;
  }

  .footer {
    text-align: center;
    padding: 1rem;
  }

  .footer a {
    display: inline-block;
    margin: 0.25rem 0.5rem;
  }

  .feedback-card {
    font-size: 0.85rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    min-width: 220px; /* reduce card width slightly */
  }

  .feedback-section {
    padding: 1.5rem 1rem;
  }

  .feedback-carousel {
    gap: 0.75rem;
  }
  
  .modal-wrapper-mobile {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5); /* subtle backdrop */
    overflow-y: auto;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .modal-content.booking-modal {
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 1.2rem;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
  }

  .booking-modal {
    padding: 1.5rem 1rem;
    border-radius: 10px;
  }

}
