/* ===== ENROLL POPUP (home page overlay form) — Diwali edition =====
   Prefix: ep-   |   Scoped to #registrationModal so the Franchise modal and other forms are untouched.
   Matches the hero theme: near-black + gold (#C9A96E), Cormorant Garamond headings, DM Sans/Poppins text. */

/* ---------- overlay ---------- */
body.ep-open .modal-backdrop{background:#05040a;opacity:.82!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ep-fx{position:fixed;inset:0;width:100vw;height:100vh;z-index:1052;pointer-events:none}

/* the white floating contact icons would sit on top of the popup */
body.ep-open .floating-icons{opacity:0!important;pointer-events:none}

/* ---------- dialog + card ---------- */
#registrationModal .modal-dialog{max-width:600px;margin:0 auto;padding:0 12px}
#registrationModal .modal-content{width:100%!important;background:transparent!important}
#registrationModal .form{position:relative;max-width:none;margin:22px auto!important;padding:26px 26px 14px;
  font-family:'DM Sans','Poppins',sans-serif;color:#FDFCF9;border-radius:20px;
  border:1px solid rgba(201,169,110,.38);
  background:
    radial-gradient(circle at 0 0,rgba(201,169,110,.20),transparent 42%),
    radial-gradient(circle at 100% 100%,rgba(255,140,40,.14),transparent 45%),
    linear-gradient(160deg,#17140d 0%,#0c0b08 100%);
  box-shadow:0 30px 70px rgba(0,0,0,.65),0 0 60px rgba(255,160,40,.14),inset 0 1px 0 rgba(253,252,249,.10)}

/* string of Diwali lights along the top edge */
.ep-lights{position:absolute;top:0;left:22px;right:22px;height:0;display:flex;justify-content:space-between;pointer-events:none;z-index:2}
.ep-lights span{width:6px;height:6px;border-radius:50%;transform:translateY(-3px);
  background:var(--c);box-shadow:0 0 9px 2px var(--c);animation:epTwinkle 1.8s ease-in-out infinite;animation-delay:calc(var(--i)*-.19s)}
.ep-lights span:nth-child(4n+1){--c:#FFC400}.ep-lights span:nth-child(4n+2){--c:#FF8A2A}
.ep-lights span:nth-child(4n+3){--c:#FF5C8A}.ep-lights span:nth-child(4n){--c:#5CFF9D}
@keyframes epTwinkle{0%,100%{opacity:.35;transform:translateY(-3px) scale(.8)}50%{opacity:1;transform:translateY(-3px) scale(1.25)}}

/* close button */
#registrationModal .close_icon{position:absolute!important;top:14px!important;right:14px!important;transform:none!important;
  width:34px;height:34px;padding:0;display:flex;align-items:center;justify-content:center;z-index:5;
  font:500 13px 'DM Sans','Poppins',sans-serif;color:#E8D5B0;background:rgba(253,252,249,.06);
  border:1px solid rgba(201,169,110,.40);transition:background .3s,color .3s,transform .3s,box-shadow .3s}
#registrationModal .close_icon:hover{background:#C9A96E;color:#0A0A08;transform:rotate(90deg)!important;box-shadow:0 0 16px rgba(201,169,110,.55)}

/* ---------- heading ---------- */
.ep-eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;margin:2px 0 6px;
  font-size:10px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:#C9A96E}
.ep-eyebrow::before,.ep-eyebrow::after{content:"";width:26px;height:1px;background:linear-gradient(to right,transparent,#C9A96E)}
.ep-eyebrow::after{transform:scaleX(-1)}
#registrationModal .form p.fs-3{margin:0!important;font-family:'Cormorant Garamond',Georgia,serif;font-size:2.2rem!important;font-weight:500!important;
  letter-spacing:-.01em;line-height:1.1;color:#FDFCF9!important}
.ep-sub{margin:4px 0 14px;font-size:12px;font-weight:300;color:rgba(253,252,249,.6);text-align:center}

/* ---------- offer banner + 2-minute timer ---------- */
.ep-offer{position:relative;display:flex;align-items:center;gap:14px;padding:13px 14px 16px;margin:0 0 18px;border-radius:14px;overflow:hidden;
  background:linear-gradient(120deg,rgba(201,169,110,.22),rgba(255,140,40,.10) 60%,rgba(201,169,110,.05));
  border:1px solid rgba(201,169,110,.5);box-shadow:0 12px 28px rgba(0,0,0,.4),0 0 26px rgba(201,169,110,.14)}
.ep-offer::before{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.14),transparent);transform:skewX(-18deg);animation:epShine 4.5s ease-in-out infinite}
@keyframes epShine{0%,55%{left:-60%}100%{left:140%}}
.ep-badge{flex:0 0 auto;width:62px;height:62px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#0A0A08;background:radial-gradient(circle at 30% 25%,#F6E7C6,#C9A96E 70%);
  box-shadow:0 0 0 3px rgba(10,10,8,.65),0 0 0 4px #E8D5B0,0 0 20px rgba(201,169,110,.55)}
.ep-badge b{font-family:'Cormorant Garamond',Georgia,serif;font-size:21px;font-weight:700;line-height:1}
.ep-badge span{font-size:9px;font-weight:700;letter-spacing:.2em;margin-top:2px}
.ep-offer-body{min-width:0;flex:1}
.ep-offer-title{font-size:14px;font-weight:600;color:#FDFCF9;line-height:1.25}
.ep-offer-sub{margin:2px 0 8px;font-size:11px;font-weight:300;color:rgba(253,252,249,.72);line-height:1.35}
.ep-timer{display:flex;align-items:center;gap:8px}
.ep-t{display:flex;flex-direction:column;align-items:center;min-width:46px;padding:4px 9px 3px;border-radius:9px;
  background:rgba(10,10,8,.72);border:1px solid rgba(201,169,110,.38)}
.ep-t b{font-family:'Cormorant Garamond',Georgia,serif;font-size:22px;font-weight:700;line-height:1.05;color:#E8D5B0;font-variant-numeric:tabular-nums}
.ep-t i{font-style:normal;font-size:8px;font-weight:500;letter-spacing:.18em;color:rgba(253,252,249,.5)}
.ep-colon{font-family:'Cormorant Garamond',Georgia,serif;font-size:22px;font-weight:700;color:#C9A96E;animation:epBlink 1s steps(1) infinite}
@keyframes epBlink{50%{opacity:.25}}
.ep-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(253,252,249,.10)}
.ep-bar span{display:block;height:100%;width:100%;background:linear-gradient(to right,#C9A96E,#FF8A2A);box-shadow:0 0 10px rgba(255,138,42,.7)}
/* last 20 seconds */
.ep-offer.is-urgent .ep-t{border-color:rgba(255,120,60,.85);animation:epUrgent .9s ease-in-out infinite}
.ep-offer.is-urgent .ep-t b{color:#FFB07A}
@keyframes epUrgent{50%{box-shadow:0 0 14px rgba(255,120,60,.65)}}
/* offer ended */
.ep-offer.is-expired{filter:grayscale(.85);opacity:.75}
.ep-offer.is-expired::before,.ep-offer.is-expired .ep-colon{animation:none}

/* ---------- fields: 2-column grid ---------- */
#registrationModal .modal-body{display:grid;grid-template-columns:1fr 1fr;column-gap:12px;padding:0!important}
#registrationModal .modal-body>.mb-3{margin:0 0 12px!important;min-width:0}
#registrationModal .modal-body>.mb-3:nth-child(1){grid-column:1;grid-row:1}
#registrationModal .modal-body>.mb-3:nth-child(2){grid-column:2;grid-row:1}
#registrationModal .modal-body>.mb-3:nth-child(3){grid-column:1;grid-row:2}
#registrationModal .modal-body>.mb-3:nth-child(5){grid-column:2;grid-row:2}
#registrationModal .modal-body>.mb-3:nth-child(4),
#registrationModal .modal-body>.mb-3:nth-child(6),
#registrationModal .modal-body>.mb-3:nth-child(7){grid-column:1 / -1}
#registrationModal .modal-body>.mb-3:nth-child(4){grid-row:3}
#registrationModal .modal-body>.mb-3:nth-child(6){grid-row:4}
#registrationModal .modal-body>.mb-3:nth-child(7){grid-row:5}
#registrationModal .modal-body>#successMessage{grid-column:1 / -1;grid-row:6;color:#E8D5B0!important}

#registrationModal .form-control,#registrationModal .form-select{height:44px;padding:0 14px;font:400 14px 'DM Sans','Poppins',sans-serif;color:#FDFCF9;
  background-color:rgba(253,252,249,.06);border:1px solid rgba(201,169,110,.28);border-radius:11px;
  transition:border-color .3s,box-shadow .3s,background-color .3s}
#registrationModal textarea.form-control{height:auto;min-height:64px;padding:11px 14px;resize:none}
#registrationModal .form-control::placeholder{color:rgba(253,252,249,.45);opacity:1}
#registrationModal .form-control:hover,#registrationModal .form-select:hover{border-color:rgba(201,169,110,.55)}
#registrationModal .form-control:focus,#registrationModal .form-select:focus{color:#FDFCF9;background-color:rgba(253,252,249,.10);
  border-color:#C9A96E;box-shadow:0 0 0 3px rgba(201,169,110,.22),0 0 18px rgba(201,169,110,.18);outline:0}
#registrationModal .form-select{padding-left:18px;padding-right:38px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23C9A96E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E")}
#registrationModal .form-select option{background:#14110b;color:#FDFCF9}
#registrationModal input[type=number]{-moz-appearance:textfield}
#registrationModal input[type=number]::-webkit-outer-spin-button,
#registrationModal input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
/* browser autofill keeps the dark look */
#registrationModal input:-webkit-autofill{-webkit-text-fill-color:#FDFCF9;box-shadow:0 0 0 40px #1b170f inset;caret-color:#FDFCF9}

/* ---------- submit button (same gold button as the hero) ---------- */
#registrationModal .modal-footer{padding:2px 0 12px!important;justify-content:center}
#registrationModal .modal-footer .btn.submit{position:relative;overflow:hidden;width:100%!important;margin:0!important;padding:14px 20px;border:0;border-radius:11px;
  font:500 12px 'DM Sans','Poppins',sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#0A0A08;
  background:linear-gradient(120deg,#C9A96E,#E8D5B0 55%,#C9A96E);background-size:200% 100%;
  box-shadow:0 10px 24px rgba(201,169,110,.28);transition:background-position .5s ease,box-shadow .3s ease,transform .25s ease}
#registrationModal .modal-footer .btn.submit::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.28);transform:translateX(-110%) skewX(-15deg);transition:transform .55s ease}
#registrationModal .modal-footer .btn.submit:hover{background-position:100% 0;color:#0A0A08;border:0;transform:translateY(-2px);box-shadow:0 14px 30px rgba(201,169,110,.45)}
#registrationModal .modal-footer .btn.submit:hover::after{transform:translateX(110%) skewX(-15deg)}
#registrationModal .modal-footer .btn.submit:active{transform:scale(.98)}

/* ---------- phones ---------- */
@media (max-width:576px){
  #registrationModal .modal-dialog{padding:0 8px}
  #registrationModal .form{padding:24px 16px 8px;margin:12px auto!important;border-radius:18px}
  #registrationModal .form p.fs-3{font-size:1.85rem!important}
  #registrationModal .modal-body{grid-template-columns:1fr}
  #registrationModal .modal-body>.mb-3,#registrationModal .modal-body>#successMessage{grid-column:1!important;grid-row:auto!important}
  .ep-offer{gap:11px;padding:12px 12px 15px}
  .ep-badge{width:54px;height:54px}.ep-badge b{font-size:18px}
  .ep-offer-title{font-size:13px}
  .ep-t{min-width:40px}.ep-t b{font-size:19px}
  .ep-eyebrow{font-size:9px;letter-spacing:.18em;padding:0 34px}
  .ep-eyebrow::before,.ep-eyebrow::after{display:none}
  #registrationModal .close_icon{top:10px!important;right:10px!important;width:30px;height:30px}
}

@media (prefers-reduced-motion:reduce){
  .ep-lights span,.ep-offer::before,.ep-colon,.ep-offer.is-urgent .ep-t{animation:none!important}
}
