/* =============================================
       BOOKING PAGE SPECIFIC STYLES
       ============================================= */

    /* Hero Section */
    .booking-hero {
      text-align: center;
      padding: 60px 20px;
      background: linear-gradient(135deg, #101f4d, #0c101a);
      border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }

    .booking-hero h1 {
      font-size: 2.5rem;
      margin: 0;
      color: var(--primary-color);
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    /* Back Button */
    .back-button-container {
      display: flex;
      justify-content: center;
      margin: 20px 0;
    }

    .back-button {
      display: inline-block;
      padding: 12px 20px;
      background-color: var(--secondary-color);
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
      transition: all 0.3s;
    }

    .back-button:hover {
      background-color: #3a5bd9;
      transform: translateY(-2px);
    }

    /* service cards */

   .services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 32px auto 80px;
  justify-content: center;
  align-items: stretch;
  padding: 0 20px;
}

.services-grid > * {
  min-width: 0;
}

.service-card:hover {
  box-shadow:
    0 0 25px rgba(79, 110, 230, 0.5),
    inset 0 0 20px rgba(79, 110, 230, 0.1);
  border-color: rgba(79, 110, 230, 0.6);
  transform: translateY(-5px);
}

    .service-card {
      background: #222;
      border-radius: 12px;
      padding: 18px 20px 28px;
      color: var(--primary-color);
      text-align: center;
      cursor: pointer;
      border: 1px solid rgba(255, 215, 0, 0.2);
      box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
      user-select: none;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 50px;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      text-decoration: none !important;
      transform: translateY(0);
       position: relative;
       z-index: 1;
       overflow: hidden;

        height: 100%;
        min-height: 700px;
        max-height: none;
    }

    /* The ribbon itself  remove this code here when sale is over*/
.sale-ribbon {
  position: absolute;
  bottom: 10px;
  right: -40px;
  background: #ffd700;       /* gold/yellow */
  color: #000;               /* black text */
  padding: 25px 65px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: rotate(-25deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

     .service-card.expanded {
     position: relative;
     grid-column: auto; 
    transform: translateY(-5px);
     z-index: 10;
    }

    .service-details {
      max-height: none;
     opacity: 1;
     overflow: hidden;
     transition: none;
      margin-top: 18px;
     text-align: left;
     }

     .service-card.expanded .service-details {
     max-height: 470px;
     opacity: 1;
      }

    .service-features {
     list-style: none;
     padding: 0;
     margin: -5px 0;
     }

     .service-features li {
     padding: 3px 0;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     font-size: 0.9em;
     line-height: 1.6;
       }

      .service-features li:last-child {
      border-bottom: none;
         }

    .service-features li.feature-section {
      padding: 16px 0 10px;
      border-bottom: none;
      color: #fff7c2;
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .service-summary {
      margin: 14px 0 0;
      color: #f4f4f4;
      line-height: 1.7;
    }

    .service-outcome {
      margin-top: 18px;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(79, 110, 230, 0.3);
      background: rgba(79, 110, 230, 0.12);
      text-align: left;
    }

    .service-outcome span {
      display: inline-block;
      color: #c6d4ff;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .service-outcome p {
      margin: 8px 0 0;
      color: #f3f7ff;
      line-height: 1.65;
      font-size: 0.92rem;
      text-align: left;
    }

/* Ensure layout stays consistent */
     .service-card .price-pill {
     margin-top: auto; /* Push price to bottom */
     transition: all 0.3s ease;
          }

    .service-card.expanded .price-pill {
    background: rgba(255, 255, 255, 0.2);
      }

    .price-pill {
      background: rgba(79, 110, 230, 0.6);
      color: #a0b7ff;
      font-weight: bold;
      padding: 15px 15px;
      border-radius: 100px;
      font-size: 1.2em;
      align-self: center;
      user-select: none;
      margin-bottom: 25px;
    }

    /* Booking Form */
    .booking-form {
      max-width: 600px;
      margin: 40px auto;
      padding: 30px;
      background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
      border-radius: 12px;
      border: 1px solid rgba(255, 215, 0, 0.1);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .service-display {
      background: rgba(79, 110, 230, 0.1);
      border-left: 3px solid var(--secondary-color);
      padding: 15px;
      margin-bottom: 25px;
      border-radius: 0 8px 8px 0;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      color: var(--primary-color);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px;
      background: #0f0f0f;
      border: 1px solid #333;
      border-radius: 8px;
      color: white;
      font-family: inherit;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--secondary-color);
      box-shadow: 0 0 0 2px rgba(79, 110, 230, 0.3);
    }

    .form-submit {
      background: var(--secondary-color);
      color: white;
      border: none;
      padding: 12px 30px;
      border-radius: 50px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s;
      display: block;
      margin: 30px auto 0;
      font-size: 1.1rem;
    }

    .form-submit:hover {
      background: #3a5bd9;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .form-submit:disabled {
      background: #555;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Terms of Service */
    .form-group.terms {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      margin-top: 30px;
    }

    .form-group.terms label {
      margin: 0;
      color: var(--primary-color);
      font-size: 0.95em;
    }

    .form-group.terms input[type="checkbox"] {
      width: auto;
      transform: scale(1.2);
      cursor: pointer;
    }

    .form-group.terms a {
      color: var(--primary-color);
      text-decoration: underline;
    }

    .form-group.terms a:visited {
      color: var(--primary-color);
    }

    .form-group.terms a:hover {
      color: var(--secondary-color);
    }

    /* Modal Styles */
    .modal {
      display: none; 
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(5px);

    }

    .modal-content {
      background: #1a1a1a;
      margin: 4% auto;
      padding: 30px;
      border: 1px solid var(--secondary-color);
      border-radius: 12px;
      width: 80%;
      max-width: 600px;
      color: white;
      position: relative;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    }

    .close {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 1.8em;
      cursor: pointer;
      color: var(--primary-color);
    }

    #accept-terms {
      background: var(--secondary-color);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 20px;
    }

    /* Footer */
/* Default: hide nav-links on small screens */

    /* =============================================
       RESPONSIVE DESIGN
       ============================================= */
    @media (max-width: 900px) {
.services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .booking-form {
        margin: 20px;
        padding: 20px;
      }
    }

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

.booking-hero h1 {
        font-size: 2rem;
      }
    }

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('../../images/whatsapp-icon.svg') no-repeat center;
}

/* terms of service scrolling */
.modal-content {
  max-height: 80vh; /* limits modal height to 80% of viewport */
  overflow-y: auto; /* makes the inside scrollable */
  scrollbar-width: thin; /* optional, for nicer look */
  scrollbar-color: var(--secondary-color) #1a1a1a; /* custom scroll colors */
}

/* Optional: style scrollbar for WebKit browsers (Chrome, Edge, Safari) */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-track {
  background: #111;
}

.booking-hero {
      background: linear-gradient(135deg, #101f4d, #0c101a);
      text-align: center;
      padding: 40px 20px;
      color: white;

    }

/* =============================================
   reCAPTCHA BADGE POSITIONING
   ============================================= */

/* Move reCAPTCHA badge higher up */
.grecaptcha-badge {
    visibility: visible !important;
    position: fixed !important;
    bottom: 30px !important;  /* Move it higher than default */
    right: 1px !important;
    z-index: 9998 !important;  /* Below your WhatsApp button */
    opacity: 1 !important;
    transform: none !important;
}

/* New Service Card Styles */
/* =============================================
   FREEBIE HORIZONTAL ROW STYLES
   ============================================= */

.freebie-horizontal-row {
  max-width: 1200px;
  margin: 40px auto 20px auto; /* Top margin, bottom margin before grid */
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.freebie-card-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
}

.freebie-card-link:focus-visible {
  outline: none;
}

.freebie-card-link:focus-visible .service-card {
  box-shadow:
    0 0 0 3px rgba(79, 110, 230, 0.45),
    0 0 25px rgba(79, 110, 230, 0.35),
    inset 0 0 20px rgba(79, 110, 230, 0.12);
}

.horizontal-card,
.service-card.horizontal-card,
.service-card.freebie-card.horizontal-card {
  min-height: 0 !important;  /* Remove min-height */
  height: auto !important;    /* Auto height */
  padding: 20px 30px !important; /* Consistent padding */
  margin-bottom: 0;
  display: flex !important;
  transform: none !important;
}

.horizontal-card:hover {
  transform: translateY(-5px) !important; /* Only lift, no scale */
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.horizontal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1 1 0px;
  min-width: 0;
}

.horizontal-left {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.horizontal-left h3 {
  margin: 0 0 10px 0 !important;  
  color: var(--primary-color, #ffd700);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

.horizontal-left p {
  margin: 5px 0 !important;
  color: #ccc;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;              /* Ensure full width */
}

.horizontal-left .service-summary {
  max-width: 44ch;
  margin-left: auto !important;
  margin-right: auto !important;
}

.service-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.42);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.22), rgba(18, 140, 126, 0.36));
  color: #e9fff0;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 2;
}

.service-inline-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 211, 102, 0.62);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.14);
}

.service-inline-cta:focus-visible {
  outline: 2px solid rgba(37, 211, 102, 0.65);
  outline-offset: 3px;
}
.horizontal-left .service-outcome {
  max-width: 46rem;
  width: 100%;
}

.horizontal-left p a {
  display: inline-block;     /* Make link behave properly */
  margin: 0;                 /* Remove any default margins */
  padding: 5px;                /* Remove any default padding */
}

.horizontal-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 150px;
}

/* Center the price pill vertically */
.horizontal-right .price-pill {
  margin: 0 !important;
  padding: 15px 45px !important;
  font-size: 1.3rem !important;
  background: rgba(37, 211, 102, 0.2) !important;
  color: #90ffb8 !important;
  border: 1px solid rgba(37, 211, 102, 0.4) !important;
  border-radius: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
}

/* Center the FREE badge */
/* Replace with this single ribbon style */
.free-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: #25D366;
  color: white;
  padding: 8px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transform: rotate(45deg);
  z-index: 10;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);

  /* Optional gradient for depth */
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.free-badge::before {
  left: 0;
  border-width: 0 15px 10px 0;
  border-color: transparent #128C7E transparent transparent;
}

.free-badge::after {
  right: 0;
  border-width: 0 0 10px 15px;
  border-color: transparent transparent transparent #128C7E;
}

/* Ensure the card allows the ribbon to show */
.service-card.freebie-card.horizontal-card {
  position: relative;
  overflow: visible !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .horizontal-content {
    flex-direction: column;
    text-align: center;
  }

  .horizontal-left {
    text-align: center;
  }

  .horizontal-right {
    justify-content: center;
    width: 100%;
  }

  .freebie-horizontal-row {
    margin: 20px auto;
  }
}

/* Adjust the services-grid to remove the freebie card */

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  margin: 24px auto 80px auto;
  padding: 0 20px;
}

/* Make sure the grid only shows 2 cards on desktop */
@media (min-width: 901px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Keep existing responsive behavior */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
}

.service-card.merged-card {
  border: 2px solid rgba(255, 215, 0, 0.6);
  background: linear-gradient(145deg, #2a2a1a, #1a1a0a);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);

}

/* Badges for new cards */

.merged-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #ffd700, #ffaa00);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Service card hover effects */
.service-card.freebie-card:hover {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.3);
}

.service-card.merged-card:hover {
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.4),
    inset 0 0 20px rgba(255, 215, 0, 0.1);

}

/* Price pill colors for new cards */
.service-card.freebie-card .price-pill {
  background: rgba(37, 211, 102, 0.3);
  color: #90ffb8;
}

.service-card.beginner-card .price-pill {
  background: rgba(79, 110, 230, 0.4);
  color: #b0c6ff;
}

.service-card.merged-card .price-pill {
  background: rgba(255, 215, 0, 0.4);
  color: #fff8cc;
}

.service-card[data-service="merged-starter-investor"] .price-pill,
.service-card[data-service="security-check"] .price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 11.75rem);
  padding: 14px 24px;
  font-size: clamp(1.65rem, 2.2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}
/* pop up window shit starts here*/
.popup-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.popup-tab {
  border: 0;
  background: transparent;
  color: #c3cee8;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1002;
  pointer-events: auto;
}

.popup-tab:hover {
  color: #fff;
}

.popup-tab.is-active {
  background: linear-gradient(135deg, #4f6ee6, #2f53dd);
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 110, 230, 0.28);
}

.popup-tab-panel[hidden] {
  display: none !important;
}

/* Quiz Card Styles */
.quiz-section-title {
  margin: 0 0 16px;
  color: #ffd700;
  font-size: 1rem;
  text-align: center;
}

.quiz-grid {
  display: grid;
  gap: 12px;
}

.quiz-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quiz-card:hover {
  transform: translateY(-2px);
}

.quiz-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quiz-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.quiz-card__title {
  font-size: 1rem;
  font-weight: 700;
}

.quiz-card__subtitle {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.quiz-card__cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
}

.quiz-card--easy {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.22), rgba(19, 128, 70, 0.36));
  border-color: rgba(37, 211, 102, 0.45);
}

.quiz-card--easy:hover {
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.16);
}

.quiz-card--medium {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(184, 136, 0, 0.34));
  border-color: rgba(255, 215, 0, 0.42);
}

.quiz-card--medium:hover {
  box-shadow: 0 12px 28px rgba(255, 215, 0, 0.14);
}

.quiz-card--hard {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.22), rgba(158, 31, 50, 0.36));
  border-color: rgba(255, 107, 107, 0.4);
}

.quiz-card--hard:hover {
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.14);
}

/* PDF Downloads Section */
.pdf-downloads {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-downloads--tabs {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.pdf-downloads h4 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.pdf-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* PDF Download Items */
.pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(79, 110, 230, 0.3);
  background: rgba(79, 110, 230, 0.15);
  transition: all 0.3s ease;
}

.pdf-item:hover {
  background: rgba(79, 110, 230, 0.25);
  border-color: rgba(79, 110, 230, 0.5);
  transform: translateY(-2px);
}

.pdf-item.mistakes {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
}

.pdf-item.mistakes:hover {
  background: rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.5);
}

.pdf-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-icon {
  font-size: 1.2em;
}

.pdf-title {
  font-size: 0.9em;
  font-weight: bold;
}

.pdf-subtitle {
  color: #a0b7ff;
  font-size: 0.8em;
  margin-top: 3px;
}

.pdf-item.mistakes .pdf-subtitle {
  color: #ffb3b3;
}

.download-badge {
  color: #25D366;
  font-weight: bold;
  font-size: 0.9em;
}

/* Card Container */
.card {
  background: #1a1e2c;
  padding: 25px;
  border-radius: 16px;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

/* NEW POPUP STYLES - Add these */
.popup-trigger {
  display: inline-block;
  background: #4f6ee6;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin: 20px;
  transition: background 0.3s ease;
}

/* Add to your CSS */
.popup-trigger,
.quiz-card,
.pdf-item,
.download-badge,
.close-popup {
  position: relative;
  z-index: 100;
  cursor: pointer;
}

/* Ensure the popup overlay itself doesn't block clicks */
.popup-overlay {
  pointer-events: auto;
}

.popup-content {
  pointer-events: auto;
}

.popup-trigger:hover {
  background: #6b8cff;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1400;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 28px;
  box-sizing: border-box;
  overflow-y: auto;
}

.popup-content {
  position: relative;
  width: min(90%, 550px);
  max-width: 550px;
  max-height: calc(100dvh - 52px);
  overflow-y: auto;
  margin: auto;
  animation: slideIn 0.3s ease;
}

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

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: white;
  color: #1a1e2c;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close-popup:hover {
  background: #ffd700;
  transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .popup-overlay {
    align-items: flex-start;
    padding-top: calc(env(safe-area-inset-top, 0px) + 28px);
    padding-right: 12px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    padding-left: 12px;
  }

  .popup-content {
    width: min(100%, 560px);
    max-height: calc(100dvh - 64px);
  }

  .close-popup {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .popup-tabs {
    display: flex;
    width: 100%;
  }

  .popup-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .quiz-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-card__cta {
    align-self: flex-start;
  }

  .close-popup {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}
/* pop up shit ends here */

/* Advanced badge for Master card */
.advanced-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ff4757);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
  z-index: 10;
}

/* Optional: Different style for a ribbon look */
.advanced-badge-ribbon {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  padding: 8px 40px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
  transform: rotate(45deg);
  z-index: 10;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.2);
}

/* For the ribbon style ends */
.advanced-badge-ribbon::before,
.advanced-badge-ribbon::after {
  content: '';
  position: absolute;
  top: 100%;
  border-style: solid;
  z-index: -1;
}

.advanced-badge-ribbon::before {
  left: 0;
  border-width: 0 15px 10px 0;
  border-color: transparent #ff4757 transparent transparent;
}

.advanced-badge-ribbon::after {
  right: 0;
  border-width: 0 0 10px 15px;
  border-color: transparent transparent transparent #ff4757;
}
