/* Packages modal — Happy / Happier / Happiest, opened from the header "Book a Party" link */

.packages-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 4rem 1.5rem;
}

.packages-modal.is-open {
  display: flex;
}

.packages-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(6px);
}

.packages-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  background: var(--ink, #0a0a0a);
  border: 2px solid var(--cyan, #00acdc);
  border-radius: 24px;
  padding: 3rem 2.2rem 2.4rem;
  font-family: "Poppins", sans-serif;
  animation: packagesRise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes packagesRise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.packages-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 5; /* stay above the pink kicker banner, which otherwise paints over it */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.packages-modal__close:hover {
  background: var(--pink, #ee2a7b);
  border-color: var(--pink, #ee2a7b);
}

.packages-modal__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.packages-modal__kicker {
  display: inline-block;
  background: var(--pink, #ee2a7b);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

.packages-modal__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.9rem;
}

.packages-modal__title em {
  font-style: normal;
  color: var(--cyan, #00acdc);
}

.packages-modal__sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.packages-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}

/* Corporate modal — four tiers (Silver / Gold / Platinum / Custom) */
.packages-modal__grid--four {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width: 1000px) {
  .packages-modal__grid--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .packages-modal__grid--four { grid-template-columns: 1fr; }
}

.package-card {
  position: relative;
  background: #141414;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.package-card--popular {
  border-color: var(--yellow, #ffde59);
  transform: translateY(-10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.package-card__flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--yellow, #ffde59);
  color: var(--ink, #0a0a0a);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.package-card__name {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.package-card__price {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--cyan, #00acdc);
  margin: 0.3rem 0 0;
}

.package-card__price span {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.package-card__min {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.2rem 0 0;
}

.package-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0;
}

.package-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.package-card__list li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  padding-left: 1.1rem;
  position: relative;
}

.package-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan, #00acdc);
  font-weight: 700;
}

.package-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pink, #ee2a7b);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--cyan, #00acdc);
  transition: transform 0.15s ease;
}

.package-card__cta:hover { transform: translateY(-2px); }

/* School modal has no pricing cards, so it gets one prominent centered CTA */
.school-cta-row { text-align: center; margin-top: 2.2rem; }
.school-cta { font-size: 0.98rem; padding: 0.95rem 2.2rem; }

.packages-modal__footnote {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 2rem 0 0;
}

.packages-modal__footnote a {
  color: var(--yellow, #ffde59);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Birthday modal extras: add-ons, decor, flow/slots, activities, T&C ---- */
.pkg-extras { margin-top: 2.4rem; }

.pkg-extras__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pkg-extras__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1rem;
}

/* time slot chips */
.pkg-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pkg-slots span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 172, 220, 0.14);
  border: 1.5px solid var(--cyan, #00acdc);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

@media (max-width: 900px) {
  .packages-modal__grid { grid-template-columns: 1fr; }
  .package-card--popular { transform: none; } /* keep natural order: Happy → Happier → Happiest */
  /* top padding clears the 40px close button so the pink kicker can't collide with it */
  .packages-modal__panel { padding: 4.7rem 1.4rem 2rem; }
}

@media (max-width: 560px) {
  /* give the cards back the width the overlay/panel padding was eating */
  .packages-modal { padding: 2.5rem 0.6rem; }
  .packages-modal__panel { padding: 4.7rem 0.9rem 1.8rem; }
  .package-card { padding: 1.5rem 1.1rem; }
}
