/* =========================
   StillTinnitus Webinar Modal
   ========================= */
   
   /* ===============================
   Webinar Popup Styles
================================ */



/* ==============================
   Webinar Popup (Modal) - Clean
   ============================== */

/* Overlay */
.st-webinar-overlay {
  position: fixed;
  inset: 0;
background: rgba(40, 40, 40, 0.88);
  z-index: 99998;
}

/* Modal container */
.st-webinar-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(90vw, 450px);
  max-width: 450px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);

  /* Let avatar sit outside */
  overflow: visible;

  /* Symmetric padding */
  padding: 72px 22px 18px;

  box-sizing: border-box;
  z-index: 99999;
}

/* Close button */
.st-webinar-modal .st-webinar-close {
  position: absolute;
  right: 14px;
  top: 12px;

  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;

  font-size: 34px;
  line-height: 40px;
  cursor: pointer;
  color: #787777 ;

  z-index: 3;
}

/* Top area */
.st-webinar-modal .st-webinar-top {
  display: grid;
  justify-items: center;
  row-gap: 10px;

  /* Move the whole top block up MORE (avatar further outside) */
  margin-top: -120px;
  margin-bottom: 0px;
}

/* Avatar */
.st-webinar-modal .st-webinar-photo {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  overflow: hidden;

  border: 6px solid #f2f2f2;

  position: relative;
  z-index: 4; /* above everything */
}

.st-webinar-modal .st-webinar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title */
.st-webinar-modal .st-webinar-title {
  font-size: 26px;
  font-weight: 600;
  color: #000d2d;
  text-align: center;
  line-height: 1.15;
}

/* Body */
.st-webinar-modal .st-webinar-body {
  margin-top: 8px;
  box-sizing: border-box;
}

/* Make eWebinar form truly fill the modal width (no !important) */
.st-webinar-modal form.ewebinar__RegForm {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Form background */
.st-webinar-modal .ewebinar__RegForm {
  background-color: #f2f2f2;
}
/* Popup background */
.st-webinar-modal {
  background-color: #f2f2f2;
}

/* Remove any default spacing inside the embed wrappers */
.st-webinar-modal .ewebinar__RegForm__Content,
.st-webinar-modal .ewebinar__RegForm__Footer {
  margin: 0;
  padding: 0;
}

/* Consistent spacing between fields */
.st-webinar-modal .ewebinar__RegForm__Field {
  margin-bottom: 10px;
}

/* Bullets */
.st-webinar-modal .st-webinar-bullets {
  margin-top: 14px;
  font-size: 14px;
  color: #2e2e2e;
  line-height: 1.35;
  text-align:center;
}

.st-webinar-modal .st-webinar-bullet {
  margin-top: 8px;
}

/* Lock background scroll */
body.st-webinar-lock {
  overflow: hidden;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .st-webinar-modal {
    padding: 70px 16px 14px;
  }
  .st-webinar-modal .ewebinar__RegForm__Field input {
    font-size: 15px;}
    
  .st-webinar-modal .st-webinar-title {
    font-size: 22px;
  }

  /* Keep avatar higher on mobile too */
  .st-webinar-modal .st-webinar-top {
    margin-top: -120px;
  }

  .st-webinar-modal .st-webinar-photo {
    width: 92px;
    height: 92px;
  }
}
/* Extra space below the bullet text block */
.st-webinar-bullets {
  margin-bottom: 10px;
}
/* Increase space between email field and submit button */
.st-webinar-modal .ewebinar__RegForm__Field:last-of-type {
  margin-bottom: 10px;
}
/* Make subtitle match footer text typography */
.st-webinar-subtitle {
  font-size: 14px;
  
   line-height: 1.4;
  color: #2e2e2e;
  font-weight: 400;
  margin-bottom: 10px;
  text-align: center;

}
/* Pull disclaimer text closer to the button */
.st-webinar-modal .ewebinar__RegForm__Footer {
  margin: 0;
  padding: 0;
}

.st-webinar-modal .st-webinar-bullets {
  margin-top: 0px;   /* reduce this to bring it closer */
  padding-top: 0;
}
/* Popup button hover: color only, no size change */
.st-webinar-modal .ewebinar__RegisterButton:hover {
  background-color: #0060dd;
  transform: none;
}
/* Prevent layout shift when scroll is locked (desktop scrollbar disappears) */
body.st-webinar-lock {
  overflow: hidden;
  padding-right: var(--st-scrollbar-comp, 0px);
}
/* Loading dots */
.ewebinar__RegisterButton { position: relative; }

.ewebinar__Dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ewebinar__LoadingDot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  margin: 0 0.25em;
  animation: ewebinar-loading-dot 1.2s ease-in-out infinite;
}

.ewebinar__LoadingDot:nth-child(2) { animation-delay: 0.15s; }
.ewebinar__LoadingDot:nth-child(3) { animation-delay: 0.25s; }

@keyframes ewebinar-loading-dot {
  30% { transform: translateY(-35%); opacity: 0.3; }
  60% { transform: translateY(0); opacity: 0.8; }
}
/* iOS Safari: remove yellow autofill background */
.st-webinar-modal input:-webkit-autofill,
.st-webinar-modal input:-webkit-autofill:hover,
.st-webinar-modal input:-webkit-autofill:focus,
.st-webinar-modal input:-webkit-autofill:active {
  -webkit-text-fill-color: #414141;
  box-shadow: 0 0 0 1000px #ffffff inset; /* or #f2f2f2 if you want it match popup bg */
  transition: background-color 9999s ease-out 0s;
}