/* ==========================================================================
   Happy Points & Dynamic Level Enrollment System Styles
   SmartSteps After-School Hub — Shraddha International Pre-Schools
   ========================================================================== */

/* ---------- Navbar Happy Points & Login Widget ---------- */
.hp-nav-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  vertical-align: middle;
}

.hp-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(131, 67, 242, 0.18), rgba(236, 64, 122, 0.18));
  border: 1.5px solid rgba(131, 67, 242, 0.45);
  color: #ffffff !important;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  text-decoration: none !important;
}

.hp-badge-btn:hover {
  background: linear-gradient(135deg, rgba(131, 67, 242, 0.35), rgba(236, 64, 122, 0.35));
  border-color: #8343f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(131, 67, 242, 0.35);
}

.hp-badge-btn .hp-star {
  color: #fbbf24;
  font-size: 15px;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
  animation: hpPulse 2s infinite ease-in-out;
}

@keyframes hpPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.hp-badge-btn .hp-count {
  font-weight: 800;
  color: #fde047;
}

.hp-login-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.hp-login-btn:hover {
  background: #ffffff;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Happy Points Toast Notification ---------- */
.hp-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.hp-toast {
  pointer-events: auto;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1.5px solid #8343f2;
  border-radius: 16px;
  padding: 14px 20px;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5), 0 0 20px rgba(131, 67, 242, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 420px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-toast.is-show {
  transform: translateY(0);
  opacity: 1;
}

.hp-toast-icon {
  font-size: 28px;
  background: rgba(251, 191, 36, 0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.hp-toast-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.hp-toast-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 2px 0 0;
}

.hp-toast-pts {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  color: #fde047;
  white-space: nowrap;
}

/* ---------- Global Modal Overlays ---------- */
.hp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.hp-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.hp-modal-card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  position: relative;
  transform: scale(0.94) translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

.hp-modal-backdrop.is-open .hp-modal-card {
  transform: scale(1) translateY(0);
}

.hp-modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border-radius: 24px 24px 0 0;
}

.hp-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}

.hp-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hp-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hp-modal-body {
  padding: 28px;
}

/* ---------- 3-Stage Stepper Header ---------- */
.hp-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  position: relative;
}

.hp-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.hp-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.hp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.25s ease;
}

.hp-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.hp-step-item.is-active .hp-step-num {
  background: #8343f2;
  border-color: #8343f2;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(131, 67, 242, 0.45);
}

.hp-step-item.is-active .hp-step-label {
  color: #8343f2;
  font-weight: 700;
}

.hp-step-item.is-done .hp-step-num {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.hp-step-item.is-done .hp-step-label {
  color: #10b981;
}

/* ---------- Level & Duration Selection Cards ---------- */
.hp-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.hp-option-card {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}

.hp-option-card:hover {
  border-color: #c084fc;
  background: #faf5ff;
}

.hp-option-card.is-selected {
  border-color: #8343f2;
  background: #f5f3ff;
  box-shadow: 0 4px 12px rgba(131, 67, 242, 0.15);
}

.hp-option-card .hp-opt-title {
  font-weight: 800;
  font-size: 14.5px;
  color: #0f172a;
  margin-bottom: 4px;
}

.hp-option-card .hp-opt-sub {
  font-size: 11.5px;
  color: #64748b;
}

.hp-option-card .hp-opt-price {
  font-size: 15px;
  font-weight: 800;
  color: #8343f2;
  margin-top: 6px;
}

.hp-option-card .hp-opt-badge {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ---------- Form Fields in Stage 2 ---------- */
.hp-form-group {
  margin-bottom: 16px;
}

.hp-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.hp-form-group input,
.hp-form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.hp-form-group input:focus,
.hp-form-group select:focus {
  border-color: #8343f2;
  box-shadow: 0 0 0 3px rgba(131, 67, 242, 0.15);
}

/* ---------- Stage 3 Order & Happy Points Redemption ---------- */
.hp-summary-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.hp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
  color: #475569;
}

.hp-summary-row.is-total {
  border-top: 1.5px dashed #cbd5e1;
  margin-top: 10px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.hp-redeem-card {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1.5px solid #e879f9;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hp-redeem-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-redeem-info .hp-icon {
  font-size: 24px;
  color: #c026d3;
}

.hp-redeem-info strong {
  display: block;
  font-size: 14px;
  color: #701a75;
}

.hp-redeem-info span {
  font-size: 12px;
  color: #86198f;
}

.hp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.hp-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 26px;
}

.hp-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .hp-slider {
  background-color: #c026d3;
}

input:checked + .hp-slider:before {
  transform: translateX(22px);
}

/* Modal Actions */
.hp-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.hp-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}

.hp-btn-back {
  background: #f1f5f9;
  color: #475569;
}

.hp-btn-back:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hp-btn-primary {
  background: linear-gradient(135deg, #8343f2 0%, #653ce3 100%);
  color: #ffffff;
  flex: 1;
  box-shadow: 0 4px 14px rgba(131, 67, 242, 0.35);
}

.hp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(131, 67, 242, 0.45);
}

/* Level pill interactive cursor in page */
.human-pill {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.human-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* ==================================================================
   Sold-out tier, add-on summary rows, and the bundle offer box
   ================================================================== */

/* a batch that is full should look closed, not clickable */
.hp-option-card.is-soldout {
    cursor: not-allowed;
    background: #FEF2F2;
    border-color: #FCA5A5;
    opacity: .92;
}
.hp-option-card.is-soldout .hp-opt-title,
.hp-option-card.is-soldout .hp-opt-price { color: #991B1B; }
.hp-option-card.is-soldout .hp-opt-price { text-decoration: line-through; }
.hp-option-card.is-soldout .hp-opt-sub { color: #B91C1C; }
.hp-option-card.is-soldout:hover { transform: none; box-shadow: none; }

.hp-opt-badge-full {
    background: #DC2626 !important;
    color: #fff !important;
    display: inline-flex; align-items: center; gap: 5px;
}

/* remove-the-add-on control inside the bill */
.hp-addon-remove {
    border: 0; background: transparent; cursor: pointer;
    color: #94a3b8; font-size: 17px; line-height: 1; margin-left: 7px; padding: 0 3px;
}
.hp-addon-remove:hover { color: #DC2626; }

/* ------------------------------------------------------------------
   Bundle offer — sits over the Review & Pay step
   ------------------------------------------------------------------ */

/* fixed, so it does not depend on an ancestor being positioned */
.hp-cs {
    position: fixed; inset: 0; z-index: 2200;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.hp-cs.is-open { display: flex; }
.hp-cs-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px);
    animation: hp-cs-fade .25s ease;
}
@keyframes hp-cs-fade { from { opacity: 0 } to { opacity: 1 } }

.hp-cs-box {
    position: relative; width: 100%; max-width: 420px; text-align: center;
    padding: 34px 28px 26px; border-radius: 24px; overflow: hidden;
    background: linear-gradient(160deg, #FFFFFF 0%, #F6F2FF 100%);
    border: 2px solid #D9CBFA;
    box-shadow: 0 28px 70px rgba(49, 26, 94, .32);
    animation: hp-cs-pop .42s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes hp-cs-pop {
    from { opacity: 0; transform: translateY(22px) scale(.92); }
    to   { opacity: 1; transform: none; }
}

/* corner ribbon carrying the headline discount */
.hp-cs-ribbon {
    position: absolute; top: 20px; right: -42px; width: 164px;
    transform: rotate(38deg);
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    color: #fff; padding: 7px 0; text-align: center;
    font-family: var(--font-family-1, "Montserrat", sans-serif);
    font-size: 12.5px; font-weight: 900; letter-spacing: .06em;
    box-shadow: 0 5px 14px rgba(234, 88, 12, .4);
}
.hp-cs-ribbon span { font-size: 14px; }

.hp-cs-spark {
    position: absolute; color: #C4B5FD; font-size: 15px; pointer-events: none;
    animation: hp-cs-twinkle 2.6s ease-in-out infinite;
}
.hp-cs-spark-1 { top: 54px; left: 26px; }
.hp-cs-spark-2 { top: 108px; right: 32px; animation-delay: .7s; }
.hp-cs-spark-3 { bottom: 92px; left: 36px; animation-delay: 1.4s; }
@keyframes hp-cs-twinkle {
    0%, 100% { opacity: .25; transform: scale(.85); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

.hp-cs-gift { font-size: 46px; line-height: 1; animation: hp-cs-bob 3s ease-in-out infinite; }
@keyframes hp-cs-bob { 0%,100% { transform: translateY(-4px) } 50% { transform: translateY(5px) } }

.hp-cs-heading {
    font-family: var(--font-family-1, "Montserrat", sans-serif);
    font-size: 24px; font-weight: 900; color: #1E1B33; margin: 14px 0 8px;
}
.hp-cs-lead { font-size: 14px; line-height: 1.65; color: #5B5470; margin: 0 0 20px; }

.hp-cs-card {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 18px; border-radius: 15px; text-align: left;
    background: #fff; border: 1.5px solid #E6DEF9;
}
.hp-cs-card-left strong {
    display: block; font-family: var(--font-family-1, "Montserrat", sans-serif);
    font-size: 16px; font-weight: 800; color: #1E1B33;
}
.hp-cs-card-left span { display: block; font-size: 12px; color: #6B6484; margin-top: 3px; }
.hp-cs-card-right { text-align: right; white-space: nowrap; }
.hp-cs-was { display: block; font-size: 13px; color: #9CA3AF; text-decoration: line-through; }
.hp-cs-now {
    display: block; font-family: var(--font-family-1, "Montserrat", sans-serif);
    font-size: 21px; font-weight: 900; color: #7C3AED;
}
.hp-cs-save {
    margin: 12px 0 20px; padding: 8px 14px; border-radius: 999px; display: inline-block;
    background: #DCFCE7; color: #15803D;
    font-size: 12.5px; font-weight: 800;
}

.hp-cs-accept {
    width: 100%; padding: 15px; border: 0; border-radius: 13px; cursor: pointer;
    background: linear-gradient(135deg, #8343F2, #653CE3); color: #fff;
    font-family: var(--font-family-1, "Montserrat", sans-serif);
    font-size: 15px; font-weight: 800;
    box-shadow: 0 10px 26px rgba(131, 67, 242, .36);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hp-cs-accept:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(131, 67, 242, .46); }

.hp-cs-skip {
    width: 100%; margin-top: 10px; padding: 11px; border: 0; background: transparent;
    color: #6B6484; cursor: pointer;
    font-family: var(--font-family-1, "Montserrat", sans-serif);
    font-size: 13.5px; font-weight: 700;
}
.hp-cs-skip:hover { color: #1E1B33; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .hp-cs-box, .hp-cs-backdrop, .hp-cs-gift, .hp-cs-spark { animation: none !important; }
}
@media (max-width: 420px) {
    .hp-cs-box { padding: 28px 20px 22px; }
    .hp-cs-heading { font-size: 21px; }
    .hp-cs-card { flex-direction: column; align-items: flex-start; }
    .hp-cs-card-right { text-align: left; }
}

/* ---------------------------------------------------------------------
   The plan the parent picked on the page, shown once at the top of the
   details step. Read-only on purpose: prices are listed on the page, and
   this is only a confirmation of what was clicked.
   --------------------------------------------------------------------- */
.hp-chosen {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1.5px solid #ddd6fe;
    background: linear-gradient(135deg, #f6f2ff 0%, #eef2ff 100%);
}
.hp-chosen-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hp-chosen-act {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6D4AA8;
}
.hp-chosen-plan {
    font-size: 16px;
    font-weight: 800;
    color: #16103a;
    line-height: 1.3;
}
.hp-chosen-term {
    font-size: 12.5px;
    color: #4b4668;
}
.hp-chosen-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.hp-chosen-price {
    font-size: 24px;
    font-weight: 900;
    color: #16103a;
    white-space: nowrap;
}
.hp-chosen-price small {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b4668;
    margin-left: 3px;
}
.hp-chosen-change {
    border: none;
    background: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #6D4AA8;
    text-decoration: underline;
    cursor: pointer;
}
.hp-chosen-change:hover { color: #4c2f80; }

@media (max-width: 520px) {
    .hp-chosen { flex-direction: column; align-items: flex-start; }
    .hp-chosen-side { align-items: flex-start; }
}
