:root {
  --bg: #ffe4f4;
  --accent: #9b0057;
  --accent-dark: #7a0045;
  --text: #32101f;
  --muted: #6d4357;
  --surface: #fff8fd;
  --border: #eec7dc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background-color: #9b0057;
  background-image: url("/images/banner4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

body.enroll-bg-form {
  background-image: url("/images/banner4.png");
}

body.enroll-bg-thanks {
  background-image: url("/images/banner.png");
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(155, 0, 87, 0.65);
}

.enroll-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 40px) 16px;
}

.enroll-card {
  width: min(820px, 92vw);
  background: var(--surface);
  border: 1px solid #f2d4e4;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(110, 16, 67, 0.14);
  padding: 24px 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#enrollFormSection {
  width: min(680px, 100%);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #efc9de;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fff;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 14px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
}

.enroll-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
}

.warning-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ffc5d8;
  background: #ffeaf3;
  color: #7e123f;
  font-size: 14px;
}

.enroll-form {
  display: grid;
  gap: 8px;
}

.enroll-form label {
  margin-top: 0;
  margin-bottom: 2px;
}

label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: inherit;
}

.enroll-form input,
.enroll-form textarea,
.enroll-form select {
  padding: 12px 14px;
}

input[readonly] {
  background: #fef1f8;
  font-weight: 700;
  color: var(--accent);
}

#subject[readonly] {
  cursor: not-allowed;
  opacity: 0.95;
}

.field-hint {
  margin: 2px 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(155, 0, 87, 0.2);
  outline-offset: 1px;
  border-color: var(--accent);
}

button[type="submit"] {
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(155, 0, 87, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.enroll-form button {
  padding: 14px 18px;
  border-radius: 999px;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

button[type="submit"]:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 14px;
  color: var(--accent);
}

.form-status.is-error {
  color: #ab1b4f;
}

.thankyou-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 8px 4px;
}

.thankyou-wrap::before,
.thankyou-wrap::after {
  content: "";
  position: absolute;
  inset: -8% -4%;
  pointer-events: none;
  z-index: -1;
}

.thankyou-wrap::before {
  background:
    radial-gradient(36% 40% at 14% 16%, rgba(155, 0, 87, 0.18), transparent 70%),
    radial-gradient(34% 38% at 90% 10%, rgba(255, 132, 194, 0.22), transparent 72%),
    radial-gradient(44% 42% at 50% 92%, rgba(155, 0, 87, 0.12), transparent 74%);
  filter: blur(12px);
}

.thankyou-wrap::after {
  background:
    radial-gradient(circle at 9% 20%, rgba(255, 255, 255, 0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 18% 78%, rgba(255, 210, 236, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 10%, rgba(155, 0, 87, 0.3) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 14%, rgba(255, 255, 255, 0.8) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 80%, rgba(255, 210, 236, 0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 28%, rgba(155, 0, 87, 0.22) 0 2px, transparent 3px);
  opacity: 0.7;
}

.thankyou-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 42px 34px 34px;
  border-radius: 28px;
  border: 1px solid rgba(155, 0, 87, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 252, 0.96)),
    radial-gradient(circle at top right, rgba(255, 215, 240, 0.45), transparent 45%);
  text-align: center;
  box-shadow:
    0 28px 70px rgba(111, 20, 66, 0.2),
    0 10px 24px rgba(111, 20, 66, 0.12);
}

.thankyou-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #efc9de;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.thankyou-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, #ffd8ed 0%, #ffbfe1 42%, #f58dc0 100%);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.7),
    0 14px 30px rgba(155, 0, 87, 0.24);
}

.thankyou-icon svg {
  width: 58px;
  height: 58px;
  overflow: visible;
}

.thankyou-icon circle {
  fill: rgba(255, 255, 255, 0.88);
  stroke: #c12379;
  stroke-width: 2.6;
}

.thankyou-icon path {
  fill: none;
  stroke: #9b0057;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thankyou-title {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.14;
}

.thankyou-body {
  margin: 0 0 18px !important;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.72;
}

.thankyou-emphasis {
  color: #5f1d43;
  font-weight: 700;
}

.thankyou-bottom {
  margin: 0 0 24px !important;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--accent) !important;
}

@media (min-width: 1024px) {
  .enroll-card {
    width: clamp(760px, 70vw, 860px);
    max-height: calc(100vh - 72px);
  }

  #enrollFormSection {
    width: min(760px, 100%);
  }

  .thankyou-card {
    max-width: 760px;
  }
}

.thankyou-cta {
  border: none;
  border-radius: 999px;
  min-width: 240px;
  min-height: 52px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #9b0057 0%, #c51e78 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(155, 0, 87, 0.3),
    0 0 0 0 rgba(155, 0, 87, 0.2);
  transition: transform 180ms ease, box-shadow 220ms ease, filter 180ms ease;
}

.thankyou-cta:hover,
.thankyou-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    0 18px 36px rgba(155, 0, 87, 0.34),
    0 0 0 8px rgba(155, 0, 87, 0.12);
}

.thankyou-cta:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(155, 0, 87, 0.24);
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .enroll-layout {
    padding: 24px 12px;
  }

  .enroll-card {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .thankyou-card {
    padding: 34px 20px 28px;
    border-radius: 22px;
  }

  .thankyou-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }

  .thankyou-icon svg {
    width: 48px;
    height: 48px;
  }

  .thankyou-cta {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .enroll-card {
    width: 94vw;
    padding: 20px 16px;
  }
}

/* ===== ENROLL FORM: SMALLER + NO INNER SCROLL ===== */

/* Let the PAGE scroll (not the card) */
html, body { height: auto; }

body{
  margin: 0;
  min-height: 100vh;
  display: block;            /* remove forced center that can cause inner scroll */
  padding: 24px 16px;
}

/* Center card using margin auto instead */
.enroll-layout{
  width: 100%;
}

.enroll-card,
.enrollCard,
.thankyou-wrap,
.thankyouCard,
.thankyou-card{
  width: min(92vw, 760px);   /* smaller */
  margin: 0 auto;            /* centered */
  max-height: none;          /* remove height limit */
  overflow: visible;         /* IMPORTANT: no inner scrollbar */
  border-radius: 22px;
}

/* tighter padding */
.enroll-card,
.enrollCard{
  padding: 22px 22px;
}

/* smaller title */
.enroll-card h1,
.enrollCard h1{
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.12;
}

/* tighter field spacing */
.enroll-card label,
.enrollCard label{
  margin-top: 10px;
  font-size: 13px;
}

.enroll-card input,
.enroll-card select,
.enrollCard input,
.enrollCard select{
  padding: 10px 12px;
  font-size: 14px;
}

.enroll-card textarea,
.enrollCard textarea{
  min-height: 110px;         /* reduce textarea height */
  padding: 10px 12px;
  font-size: 14px;
}

/* smaller button */
.enroll-card button,
.enrollCard button,
.thankyou-wrap button,
.thankyouCard button{
  padding: 12px 16px;
  font-size: 14px;
}

/* Mobile still comfy */
@media (max-width: 560px){
  body{ padding: 18px 12px; }
  .enroll-card, .enrollCard, .thankyou-wrap, .thankyouCard, .thankyou-card{
    width: 96vw;
    border-radius: 18px;
  }
  .enroll-card, .enrollCard{ padding: 18px 14px; }
  .enroll-card textarea, .enrollCard textarea{ min-height: 96px; }
}

/* ===== ENROLL FORM: COMPACT MODE (smaller card) ===== */

/* Let the PAGE scroll (not the card) */
html, body { height: auto; }

body{
  margin: 0;
  min-height: 100vh;
  display: block;
  padding: 24px 16px;
}

/* Center card and make it smaller */
.enroll-card,
.enrollCard,
.thankyou-wrap,
.thankyouCard{
  width: min(92vw, 640px) !important;
  margin: 0 auto !important;
  max-height: none !important;
  overflow: visible !important;   /* remove inner scroll */
  border-radius: 20px !important;
}

/* tighter padding */
.enroll-card,
.enrollCard{
  padding: 18px 18px !important;
}

/* smaller heading */
.enroll-card h1,
.enrollCard h1{
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.12 !important;
  margin: 10px 0 8px !important;
}

/* smaller paragraph */
.enroll-card p,
.enrollCard p{
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* tighter labels + spacing */
.enroll-card label,
.enrollCard label{
  font-size: 12.5px !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}

/* compact inputs */
.enroll-card input,
.enroll-card select,
.enrollCard input,
.enrollCard select{
  padding: 9px 11px !important;
  font-size: 13.5px !important;
  border-radius: 12px !important;
}

/* compact textarea */
.enroll-card textarea,
.enrollCard textarea{
  min-height: 90px !important;
  padding: 9px 11px !important;
  font-size: 13.5px !important;
  border-radius: 12px !important;
}

/* compact button */
.enroll-card button,
.enrollCard button,
.thankyou-wrap button,
.thankyouCard button{
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  border-radius: 999px !important;
}

/* Mobile still fine */
@media (max-width: 560px){
  body{ padding: 18px 12px; }
  .enroll-card, .enrollCard, .thankyou-wrap, .thankyouCard{
    width: 94vw !important;
    border-radius: 18px !important;
  }
  .enroll-card, .enrollCard{ padding: 16px 14px !important; }
  .enroll-card textarea, .enrollCard textarea{ min-height: 84px !important; }
}

/* ===== THANK YOU: REMOVE EXTRA BACK CARD LAYER ===== */

/* Outer wrapper should NOT look like a card */
.thankyou-wrap,
#thankYouState,
.thankyouState,
.thankyou-container,
.thankyouContainer{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* The real card (inner) only */
.thankyouCard,
.thank-you,
.thank-you-card,
#thankYouCard,
.thankyou-card{
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 60px rgba(155,0,87,0.18) !important;
  border: 1px solid rgba(155,0,87,0.14) !important;
}

/* If there is an inner "frame" causing double border, remove it */
.thankyouCard::before,
.thankyouCard::after,
.thank-you::before,
.thank-you::after,
.thankyou-card::before,
.thankyou-card::after{
  content: none !important;
}

/* Safety: make sure only one layer controls width */
.thankyou-wrap{
  width: min(92vw, 640px) !important;
}

/* ===== THANK YOU: FORCE REMOVE BACK CARD LAYER (HARD OVERRIDE) ===== */

/* When thank you state is visible, strip card styles from ALL wrappers */
.enroll-layout:has(.thankyou-state:not(.hidden)),
.enroll-layout:has(#thankYouState:not(.hidden)),
.enroll-layout:has(.thankYouState:not(.hidden)) {
  /* nothing here, just enabling :has scope */
}

/* Remove "card look" from every ancestor section/article inside enroll layout */
.enroll-layout:has(.thankyou-state:not(.hidden)) section,
.enroll-layout:has(.thankyou-state:not(.hidden)) article,
.enroll-layout:has(.thankyou-state:not(.hidden)) .enroll-card,
.enroll-layout:has(.thankyou-state:not(.hidden)) .enrollCard,
.enroll-layout:has(.thankyou-state:not(.hidden)) .thankyou-wrap,
.enroll-layout:has(.thankyou-state:not(.hidden)) .thankyouWrap,
.enroll-layout:has(.thankyou-state:not(.hidden)) .thankyou-container,
.enroll-layout:has(.thankyou-state:not(.hidden)) .thankyouContainer {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

/* ALSO: kill any pseudo-element frames that can create a second card */
.enroll-layout:has(.thankyou-state:not(.hidden)) section::before,
.enroll-layout:has(.thankyou-state:not(.hidden)) section::after,
.enroll-layout:has(.thankyou-state:not(.hidden)) article::before,
.enroll-layout:has(.thankyou-state:not(.hidden)) article::after,
.enroll-layout:has(.thankyou-state:not(.hidden)) .enroll-card::before,
.enroll-layout:has(.thankyou-state:not(.hidden)) .enroll-card::after,
.enroll-layout:has(.thankyou-state:not(.hidden)) .enrollCard::before,
.enroll-layout:has(.thankyou-state:not(.hidden)) .enrollCard::after {
  content: none !important;
}

/* Re-apply premium card ONLY to the real thank you card */
.thankyou-state:not(.hidden),
#thankYouState:not(.hidden),
.thankYouState:not(.hidden),
.thankyouCard,
#thankYouCard,
.thank-you,
.thank-you-card {
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(155,0,87,0.14) !important;
  box-shadow: 0 18px 60px rgba(155,0,87,0.18) !important;
}

/* Ensure thank you card width is controlled (no weird extra layer sizing) */
.thankyou-state:not(.hidden),
#thankYouState:not(.hidden),
.thankYouState:not(.hidden),
.thankyouCard,
#thankYouCard{
  width: min(92vw, 640px) !important;
  margin: 0 auto !important;
}

.enroll-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 9999;
}

.enroll-modal__card{
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden; /* prevents inner scroll shadows leaking outside */
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

/* view toggles - THE ACTUAL FIX */
.view{
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
}
.view--hidden{ display: none !important; }
.view--active{ display: block !important; }

#enrollFormView{
  width: min(680px, 100%);
  margin-inline: auto;
}

#thankYouView{
  display: grid;
  place-items: center;
}

/* Extra safety: remove any old wrappers if they still exist */
.enroll-card,
.thankyou-card,
.thankyou-wrap,
.enroll-wrap{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ===== STACKED CARD ALIGNMENT + NO OVERLAY ===== */

body::before{
  content: none !important;
  display: none !important;
}

/* Main modal layout */
.enroll-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 9999;

  /* REMOVE BACKGROUND OVERLAY */
  background: transparent !important;
  backdrop-filter: none !important;
}

/* Container for the stacked cards */
.enroll-stack{
  position: relative;
  width: min(920px, calc(100vw - 48px));
}

/* Back card (the design layer behind) */
.enroll-stack__back{
  position: absolute;
  inset: 0;                 /* EXACT SAME SIZE */
  transform: translate(0,0) !important;  /* REMOVE OFFSETS */
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  z-index: 0;
  pointer-events: none;
}

/* Front card (actual content) */
.enroll-stack__front{
  position: relative;
  inset: 0;
  transform: translate(0,0) !important;  /* REMOVE OFFSETS */
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  z-index: 1;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

/* Safety: remove any other overlays that might still exist */
.modal-overlay,
.overlay,
.backdrop{
  display: none !important;
}

.view{
  width: 100%;
}
.view--hidden{ display: none !important; }
.view--active{ display: block !important; }

/* Remove legacy offsets/extra card styling from thank-you wrappers */
#thankYouView,
.thankyou-wrap,
.thankyou-card{
  transform: translate(0,0) !important;
}

#thankYouView{
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
}

#enrollFormView{
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
}

/* Keep only two layers: back card + front card */
.enroll-stack__front .thankyou-card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: none;
  margin: 0;
}

/* ===== RESTORE PREMIUM CENTERED ENROLL MODAL ===== */

.enroll-layout{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 9999;

  background: linear-gradient(
    135deg,
    rgba(155,0,87,0.85),
    rgba(255,0,128,0.75)
  );
  backdrop-filter: blur(10px);
}

/* MAIN CARD */
.enroll-card,
.enroll-stack__front{
  width: 100%;
  max-width: 720px;
  border-radius: 28px;
  background: #ffffff;
  padding: 36px 32px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.25);
  position: relative;
  margin: 0 auto;
}

/* THANK YOU STATE */
.thankyou-wrap{
  max-width: 640px;
  margin: auto;
}

/* REMOVE OLD STACK OFFSET IF EXISTS */
.enroll-stack__back,
.enroll-stack__front{
  transform: none !important;
  inset: auto !important;
  position: relative !important;
}

/* ===== FINAL PREMIUM ENROLL MODAL OVERRIDE ===== */

html,
body{
  height: 100%;
}

body{
  margin: 0 !important;
  padding: 0 !important;
}

/* ENROLL OVERLAY (PREMIUM GLASS) */
.enroll-layout{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 40px);
  z-index: 9999;

  /* Premium overlay */
  background:
    radial-gradient(1200px 800px at 20% 30%, rgba(255,228,244,0.25), transparent 60%),
    radial-gradient(900px 600px at 80% 70%, rgba(155,0,87,0.30), transparent 55%),
    linear-gradient(135deg, rgba(110,0,61,0.82), rgba(155,0,87,0.68));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  overflow: auto;
  animation: overlayFade 220ms ease-out both;
}

@keyframes overlayFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/* MAIN CARD */
.enroll-card{
  width: min(780px, 100%);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
  padding: clamp(22px, 2.5vw, 36px) clamp(18px, 2.8vw, 34px);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.28),
    0 10px 30px rgba(155,0,87,0.18);
  position: relative;
  border: 1px solid rgba(155,0,87,0.18);
  overflow: hidden;
  margin: 0 auto;

  /* Entrance */
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  animation: cardIn 260ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes cardIn{
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* subtle premium glow ring */
.enroll-card::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: radial-gradient(700px 220px at 40% 0%, rgba(255,90,170,0.22), transparent 60%);
  pointer-events: none;
}

.enroll-card > *{
  position: relative;
  z-index: 1;
}

/* IMPORTANT: Kill old stacked "back card" if it exists */
.enroll-stack,
.enroll-stack__back,
.enroll-stack__front{
  display: none !important;
}

/* TYPOGRAPHY (CLEANER / PREMIUM) */
.enroll-card h1,
.enroll-card .title{
  letter-spacing: -0.02em;
}

.enroll-card p,
.enroll-card .subtitle{
  color: rgba(45, 10, 26, 0.72);
}

/* INPUTS (PREMIUM FOCUS + SOFT GLOW) */
.enroll-card label{
  font-weight: 600;
  color: rgba(30, 10, 20, 0.85);
}

.enroll-card input,
.enroll-card textarea,
.enroll-card select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(155,0,87,0.20);
  background: rgba(255,255,255,0.78);
  padding: 14px 14px;
  outline: none;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.enroll-card input:focus,
.enroll-card textarea:focus,
.enroll-card select:focus{
  border-color: rgba(155,0,87,0.55);
  box-shadow:
    0 0 0 6px rgba(155,0,87,0.14),
    0 8px 22px rgba(155,0,87,0.12);
}

.enroll-card textarea{
  min-height: 120px;
  resize: vertical;
}

/* BUTTONS (PREMIUM HOVER + PRESS) */
.enroll-card button,
.enroll-card .btn{
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #9b0057, #c0006a);
  box-shadow:
    0 18px 45px rgba(155,0,87,0.28),
    0 8px 18px rgba(0,0,0,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  cursor: pointer;
}

.enroll-card button:hover,
.enroll-card .btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 22px 60px rgba(155,0,87,0.32),
    0 10px 22px rgba(0,0,0,0.20);
}

.enroll-card button:active,
.enroll-card .btn:active{
  transform: translateY(0px) scale(0.99);
}

/* THANK YOU CARD (NO BACK BORDER + CENTER PERFECT) */
.thankyou-wrap{
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.thankyou-wrap .check{
  animation: pop 260ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes pop{
  from{ transform: scale(0.92); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

/* Keep thank-you content premium without a second outer card */
.thankyou-wrap .thankyou-card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0;
  max-width: none;
}

/* view toggles */
.view{
  width: 100%;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.hidden,
.view--hidden{
  display: none !important;
}

.view--active{
  display: block !important;
}

.fadeSwap{
  animation: cardIn 220ms cubic-bezier(.2,.9,.2,1) both;
}

/* RESPONSIVE: NO INTERNAL SCROLL ON 100% ZOOM */
@media (max-height: 780px){
  .enroll-card{
    padding: 20px 18px;
  }

  .enroll-layout{
    align-items: flex-start;
  }
}

@media (max-width: 520px){
  .enroll-card{
    border-radius: 22px;
  }
}

/* --- FORCE REMOVE ANY BACKGROUND IMAGES (form + thank you) --- */
html, body {
  background-image: none !important;
}

.enroll-layout,
.enroll-page,
.enroll-root,
.enroll-wrap {
  background-image: none !important;
}

/* If you have an element that holds the background image, kill it */
.bg,
.background,
.hero-bg,
.enroll-bg,
.enroll-backdrop,
.modal-bg {
  background-image: none !important;
}

/* Keep premium gradient only on overlay */
.enroll-layout{
  background:
    radial-gradient(1200px 800px at 20% 30%, rgba(255,228,244,0.25), transparent 60%),
    radial-gradient(900px 600px at 80% 70%, rgba(155,0,87,0.30), transparent 55%),
    linear-gradient(135deg, rgba(110,0,61,0.90), rgba(155,0,87,0.75)) !important;
}

/* Optional: remove any blur-from-image effect if present */
.enroll-layout::before,
.enroll-layout::after{
  background-image: none !important;
  content: none !important;
}

/* --- ENROLL PAGE BACKGROUND (FORM + THANK YOU) --- */
html, body {
  background: #ffe4f4 !important;
  background-image: none !important;
}

.enroll-layout,
.enroll-page,
.enroll-root,
.enroll-wrap {
  background: #ffe4f4 !important;
  background-image: none !important;
}

/* if you have backdrop/bg layers, disable them */
.bg, .background, .hero-bg, .enroll-bg, .enroll-backdrop, .modal-bg,
.enroll-layout::before, .enroll-layout::after {
  background: none !important;
  background-image: none !important;
  content: none !important;
}

/* --- PREMIUM VISUAL UPGRADE (SAFE CSS ONLY) --- */

/* 1) Main card: glass panel look (layout unchanged) */
.enroll-card{
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(155, 0, 87, 0.18) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 60px rgba(155, 0, 87, 0.18) !important;
  animation: enrollCardEntrance 350ms ease-out both;
}

/* 2) Inputs: premium focus behavior */
.enroll-card input,
.enroll-card textarea,
.enroll-card select{
  border: 1px solid rgba(155, 0, 87, 0.22) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease !important;
}

.enroll-card input:focus,
.enroll-card textarea:focus,
.enroll-card select:focus{
  border-color: #9b0057 !important;
  box-shadow: 0 0 0 4px rgba(155, 0, 87, 0.14) !important;
}

/* 3) Submit button: same color family with premium depth */
#submitButton{
  background: linear-gradient(135deg, #9b0057, #ad0062) !important;
  box-shadow:
    0 12px 30px rgba(155, 0, 87, 0.24),
    0 5px 14px rgba(0, 0, 0, 0.12) !important;
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    filter 180ms ease !important;
}

#submitButton:hover{
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px rgba(155, 0, 87, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.16) !important;
}

#submitButton:active{
  transform: translateY(0);
  box-shadow:
    0 10px 24px rgba(155, 0, 87, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* 4) Subtle entrance animation */
@keyframes enrollCardEntrance{
  from{
    opacity: 0;
    transform: translateY(8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .enroll-card{
    animation: none !important;
  }
}

/* --- BRAND PILL (FORM + THANK YOU) --- */
.brand-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(155,0,87,0.18);
  box-shadow: 0 10px 30px rgba(155,0,87,0.10);
  backdrop-filter: blur(8px);
}

.brand-logo{
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
  display: block;
}

.brand-text{
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: #9b0057;
  text-transform: none;
}

/* GLOBAL SAFETY */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* MAIN LAYOUT CENTER */
.enroll-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* THANK YOU WRAPPER */
.thank-you,
.thankyou-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* CARD */
.thank-you-card,
.thankyou-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 40px;
  border-radius: 24px;
  background: #ffe4f4;
  box-shadow: 0 20px 60px rgba(180, 0, 90, 0.15);
  text-align: center;
  overflow: hidden;
}

/* REMOVE ANY TRANSFORM THAT BREAKS WIDTH */
.thank-you-card,
.thankyou-card,
.thank-you,
.thankyou-wrap {
  transform: none !important;
}

/* BUTTON CENTER */
.thankyou-cta {
  display: inline-block;
  margin-top: 20px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .thank-you-card,
  .thankyou-card {
    padding: 35px 25px;
  }
}

/* Center + balance text inside the thank you card */
.thank-you-card,
.thankyou-card {
  text-align: center;
}

/* Headline: prevent awkward "in" near edge */
.thank-you-card h1,
.thank-you-card .thankyou-title,
.thankyou-card h1,
.thankyou-card .thankyou-title {
  max-width: 520px;        /* adjust: 480–560 depende sa gusto mo */
  margin: 0 auto 14px;     /* center the text block */
  line-height: 1.15;
  letter-spacing: -0.2px;  /* optional: mas premium spacing */
  padding: 0 6px;          /* safety spacing para di dikit */
  text-wrap: balance;      /* modern browsers: better line breaks */
}

/* Body text: keep nicely centered and not too wide */
.thank-you-card p,
.thank-you-card .thankyou-subtext,
.thankyou-card p,
.thankyou-card .thankyou-subtext {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: allow more width */
@media (max-width: 520px) {
  .thank-you-card h1,
  .thank-you-card .thankyou-title,
  .thank-you-card p,
  .thank-you-card .thankyou-subtext,
  .thankyou-card h1,
  .thankyou-card .thankyou-title,
  .thankyou-card p,
  .thankyou-card .thankyou-subtext {
    max-width: 100%;
  }
}

/* --- FIX: make the card fit on 100% zoom even on small screens --- */

/* 1) Outer layout: always center, allow page to scroll (NOT the card) */
.enroll-layout,
.enroll-page,
body {
  min-height: 100vh;
}

.enroll-layout {
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* 2) Card: limit height to viewport so it won't overflow */
.enroll-card,
.enroll-container,
.form-card {
  width: min(720px, 92vw);
  max-height: calc(100vh - 48px); /* fit within screen */
  overflow: auto;                /* if super small screen, scroll here */
  border-radius: 22px;
}

/* 3) Compact spacing so it fits better at 100% */
.enroll-card h1,
.form-card h1 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 10px 0 6px;
}

.enroll-card p,
.form-card p {
  margin: 0 0 12px;
}

/* Reduce vertical gaps */
.enroll-card label,
.form-card label {
  margin-top: 10px;
  display: block;
}

.enroll-card input,
.enroll-card textarea,
.enroll-card select,
.form-card input,
.form-card textarea,
.form-card select {
  height: 44px;
  padding: 10px 14px;
}

.enroll-card textarea,
.form-card textarea {
  height: 110px; /* was too tall */
  resize: vertical;
}

/* Button not too thick */
.enroll-card button,
.form-card button {
  padding: 14px 18px;
  margin-top: 14px;
}

/* 4) Extra: when screen height is small, compact more */
@media (max-height: 760px) {
  .enroll-layout { padding: 14px 12px; }

  .enroll-card,
  .enroll-container,
  .form-card {
    max-height: calc(100vh - 28px);
  }

  .enroll-card input,
  .form-card input,
  .enroll-card select,
  .form-card select {
    height: 40px;
  }

  .enroll-card textarea,
  .form-card textarea {
    height: 90px;
  }
}

/* ===== Enroll Final Fit + Single-Card Thank You ===== */
html,
body {
  background: #ffe4f4 !important;
  background-image: none !important;
}

body::before {
  content: none !important;
  display: none !important;
}

.enroll-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #ffe4f4 !important;
  overflow: auto;
}

.enroll-card {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 22px;
  padding: clamp(18px, 2.3vw, 30px);
}

#enrollFormView,
#thankYouView {
  width: 100%;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* Ensure only one visual card layer on thank-you */
#thankYouView::before,
#thankYouView::after,
.enroll-card.is-thankyou-state #thankYouView::before,
.enroll-card.is-thankyou-state #thankYouView::after,
.enroll-card.is-thankyou-state .thankyou-wrap::before,
.enroll-card.is-thankyou-state .thankyou-wrap::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

.enroll-card.is-thankyou-state .thankyou-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: min(680px, 100%);
  margin: 0 auto;
  padding: 0;
}

.enroll-card.is-thankyou-state :is(.thankyou-title, .thankyou-body, .thankyou-bottom) {
  max-width: 560px;
  margin-inline: auto;
  padding-inline: clamp(6px, 1.4vw, 12px);
  text-wrap: balance;
}

.enroll-card :is(input, select, button, .thankyou-cta) {
  min-height: 44px;
}

.enroll-card textarea {
  min-height: 110px;
}

.enroll-card :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid rgba(155, 0, 87, 0.32);
  outline-offset: 2px;
}

/* Keep logo + brand pill aligned in both views */
.brand-pill {
  min-height: 44px;
  align-items: center;
}

.brand-logo {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

@media (max-height: 760px) {
  .enroll-layout {
    padding: 12px;
  }

  .enroll-card {
    max-height: calc(100vh - 24px);
    padding: clamp(14px, 2vw, 22px);
  }

  .enroll-card textarea {
    min-height: 92px;
  }
}

@media (max-width: 560px) {
  .enroll-card {
    width: calc(100vw - 20px);
    border-radius: 20px;
  }
}

/* ===== ENROLL SPLIT LAYOUT (INSTRUCTIONS + FORM) ===== */
body {
  padding: 0 !important;
}

.enroll-layout {
  min-height: 100vh;
  background: #ffe4f4 !important;
  padding: 36px 16px 60px !important;
  display: block !important;
}

.enroll-grid {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.enroll-side {
  position: sticky;
  top: 22px;
}

.enroll-main {
  width: 100%;
  min-width: 0;
}

.enroll-main .enroll-card,
.enroll-main .form-card,
.enroll-main form {
  width: 100% !important;
}

.enroll-main .enroll-card {
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
}

.enroll-side .box,
.enroll-side .card,
.enroll-side article {
  margin-bottom: 14px;
}

.enroll-side__box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(155, 0, 87, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  padding: 16px 16px 14px;
}

.enroll-side__title {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.05;
}

.enroll-side__box p {
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
}

.enroll-side__box p:last-child {
  margin-bottom: 0;
}

.enroll-side__note {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

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

  .enroll-side {
    position: static;
    top: auto;
  }
}

/* ===== THANK YOU STATE: HIDE LEFT COLUMN + CLEAN CARD ===== */
body.is-thankyou .enroll-side {
  display: none !important;
}

body.is-thankyou .enroll-grid {
  grid-template-columns: 1fr !important;
  max-width: 980px;
}

body.is-thankyou .enroll-main {
  max-width: 900px;
  margin: 0 auto;
}

body.is-thankyou .enroll-main .enroll-card {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.is-thankyou .thankyou-wrap,
body.is-thankyou #thankYouState,
body.is-thankyou #thankYouView {
  background: transparent !important;
}

body.is-thankyou .thankyou-wrap::before,
body.is-thankyou .thankyou-wrap::after,
body.is-thankyou .enroll-card::before,
body.is-thankyou .enroll-card::after,
body.is-thankyou .thankyou-card::before,
body.is-thankyou .thankyou-card::after {
  content: none !important;
  display: none !important;
}

body.is-thankyou .enroll-card.is-thankyou-state .thankyou-card,
body.is-thankyou .thankyou-card,
body.is-thankyou .thankyou {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  padding: 42px 34px 34px !important;
  background: #fff8fd !important;
  background-image: none !important;
  border: 1px solid rgba(155, 0, 87, 0.14) !important;
  box-shadow: 0 20px 60px rgba(155, 0, 87, 0.15) !important;
}

/* ===== FINAL ENROLL SUCCESS LAYOUT STATE ===== */
.enroll-layout {
  display: grid !important;
  grid-template-columns: 420px 1fr !important;
  gap: 28px !important;
  align-items: start !important;
  width: min(1120px, 100%) !important;
  margin: 0 auto !important;
  min-height: 100vh;
  background: #ffe4f4 !important;
  padding: 36px 16px 60px !important;
}

.enroll-left {
  width: 100%;
  position: sticky;
  top: 22px;
}

.enroll-right {
  width: 100%;
  min-width: 0;
}

.enroll-layout.is-success {
  grid-template-columns: 1fr !important;
  justify-items: center;
}

.enroll-layout.is-success .enroll-left {
  display: none !important;
}

.enroll-layout.is-success .enroll-right {
  width: min(880px, 92vw);
}

.enroll-layout.is-success .thankyou-wrap,
.enroll-layout.is-success .thankyou-card,
.enroll-layout.is-success #thankYouState {
  margin: 0 auto;
  width: 100%;
  max-width: 880px;
}

.thankyou-card {
  overflow: hidden;
}

.thankyou-wrap {
  overflow: visible;
}

.enroll-layout.is-success .thankyou-wrap,
.enroll-layout.is-success #thankYouState {
  background: transparent !important;
}

.enroll-layout.is-success .enroll-card::before,
.enroll-layout.is-success .enroll-card::after,
.enroll-layout.is-success .thankyou-card::before,
.enroll-layout.is-success .thankyou-card::after,
.enroll-layout.is-success .thankyou-wrap::before,
.enroll-layout.is-success .thankyou-wrap::after {
  content: none !important;
  display: none !important;
}

.enroll-layout.is-success .thankyou-card {
  background-image: none !important;
}

@media (max-width: 980px) {
  .enroll-layout {
    grid-template-columns: 1fr !important;
  }

  .enroll-left {
    position: static;
    top: auto;
  }
}

/* ===== THANK YOU CLASSIC PREMIUM (FINAL OVERRIDE) ===== */
.enroll-layout.is-success .enroll-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}

.enroll-layout.is-success .thankyou-wrap,
.enroll-layout.is-success #thankYouView {
  background: transparent !important;
  overflow: visible !important;
}

.enroll-layout.is-success .thankyou-wrap::before,
.enroll-layout.is-success .thankyou-wrap::after,
.enroll-layout.is-success #thankYouView::before,
.enroll-layout.is-success #thankYouView::after,
.enroll-layout.is-success #thankYouCard::before,
.enroll-layout.is-success #thankYouCard::after,
.enroll-layout.is-success .thankyou-card::before,
.enroll-layout.is-success .thankyou-card::after {
  content: none !important;
  display: none !important;
}

.enroll-layout.is-success #thankYouCard,
.enroll-layout.is-success .thankyou-card {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px) clamp(30px, 4vw, 46px) !important;
  border-radius: 30px;
  border: 1px solid rgba(155, 0, 87, 0.1) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)) !important;
  box-shadow:
    0 26px 70px rgba(155, 0, 87, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset !important;
  text-align: center;
  overflow: hidden !important;
}

.enroll-layout.is-success .thankyou-badge {
  margin: 0 auto 18px;
}

.enroll-layout.is-success .thankyou-icon {
  margin: 0 auto 22px;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.7),
    0 14px 30px rgba(155, 0, 87, 0.24),
    0 0 20px rgba(155, 0, 87, 0.18);
}

.enroll-layout.is-success .thankyou-title {
  margin: 0 auto 18px;
  max-width: 520px;
  line-height: 1.14;
  padding-inline: 8px;
  text-wrap: balance;
}

.enroll-layout.is-success .thankyou-body,
.enroll-layout.is-success .thankyou-bottom,
.enroll-layout.is-success .thank-you-body,
.enroll-layout.is-success .thank-you-bottom {
  max-width: 520px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-inline: 8px;
  text-align: center;
}

.enroll-layout.is-success .thankyou-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  width: auto !important;
  min-width: 240px;
}

@media (max-width: 560px) {
  .enroll-layout.is-success #thankYouCard,
  .enroll-layout.is-success .thankyou-card {
    max-width: 100%;
    border-radius: 24px;
    padding: 34px 20px 28px !important;
  }
}

/* =========================
   PREMIUM SPARKLE GLOW (THANK YOU)
   - No new images
   - Uses same brand/palette
   ========================= */

/* Make sure your thankyou card has position:relative + overflow:hidden already */
.thankyou-card,
#thankYouCard {
  position: relative;
  overflow: hidden;
}

/* Sparkle layer (static dots) */
.thankyou-card .sparkle-layer,
#thankYouCard .sparkle-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Add sparkle via pseudo elements so no HTML changes needed */
.thankyou-card::marker {
  content: "";
} /* harmless reset */

/* 1) Soft floating sparkles */
.enroll-layout.is-success .thankyou-card::before,
.enroll-layout.is-success #thankYouCard::before {
  content: "" !important;
  position: absolute;
  inset: -40px;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.55) 0 2px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 24% 68%, rgba(255, 255, 255, 0.4) 0 1.6px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 38% 35%, rgba(255, 255, 255, 0.32) 0 1.2px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.45) 0 2px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 74% 52%, rgba(255, 255, 255, 0.35) 0 1.4px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 86% 28%, rgba(255, 255, 255, 0.55) 0 2px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.3) 0 1.2px, rgba(255, 255, 255, 0) 3px),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.28) 0 1.2px, rgba(255, 255, 255, 0) 3px);
  filter: blur(0.2px);
  opacity: 0.75;
  transform: translateZ(0);
  animation: sparkleFloat 7.5s ease-in-out infinite;
}

/* 2) Premium shimmer sweep (very subtle accent glow using brand tones) */
.enroll-layout.is-success .thankyou-card::after,
.enroll-layout.is-success #thankYouCard::after {
  content: "" !important;
  position: absolute;
  inset: -60%;
  z-index: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(208, 23, 123, 0.1) 46%,
    rgba(161, 0, 90, 0.08) 52%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-18%) translateY(-6%) rotate(8deg);
  opacity: 0.55;
  filter: blur(2px);
  animation: shimmerSweep 6.8s ease-in-out infinite;
}

/* Keep card content above sparkles */
.thankyou-card > *,
#thankYouCard > * {
  position: relative;
  z-index: 1;
}

/* Extra glow behind check icon (optional premium pop) */
.thankyou-icon,
#thankYouCard .check-wrap {
  position: relative;
}

.thankyou-icon::after,
#thankYouCard .check-wrap::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(208, 23, 123, 0.22) 0%,
    rgba(161, 0, 90, 0.12) 40%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(8px);
  z-index: -1;
  opacity: 0.85;
}

/* Animations */
@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px) scale(1.01);
    opacity: 0.85;
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-28%) translateY(-10%) rotate(8deg);
    opacity: 0.35;
  }
  45% {
    opacity: 0.65;
  }
  100% {
    transform: translateX(26%) translateY(8%) rotate(8deg);
    opacity: 0.35;
  }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  .thankyou-card::before,
  .thankyou-card::after,
  #thankYouCard::before,
  #thankYouCard::after {
    animation: none !important;
  }
}
