/* Overlay that holds the sign-up form (shown after the wheel spin).
   The card itself (.signup) is styled in index.css — keep the slot transparent. */
.overlay-form {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 20px;
  display: none;
}

.overlay-form .signup-slot {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 1018px) {
  .overlay-form .signup-slot {
    max-width: min(440px, 92vw);
  }
}

/* "You won" prize banner above the Sign Up title */
.signup__won {
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(249, 208, 71, 0.16) 0%,
    rgba(249, 208, 71, 0.04) 100%
  );
  border: 1px solid rgba(249, 208, 71, 0.45);
  border-radius: 12px;
  padding: 10px 14px 12px;
  margin-bottom: 16px;
}

.signup__won-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #f9d047;
}

.signup__won-prize {
  margin: 4px 0 0;
  font-family: "Poppins", var(--font-display), sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.signup__won-prize strong {
  color: #f9d047;
}

.signup__won-prize span {
  color: #59c72f;
}

.signup__won-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------- Sign-up API: errors and captcha -------------------- */

.field__error,
.form__error {
  display: none;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #ff6b6b;
}

.field__error--visible,
.form__error--visible {
  display: block;
}

.form__error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.1);
  text-align: center;
}

.captcha {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.captcha:not(:empty) {
  min-height: 65px;
}

.submit--loading {
  opacity: 0.65;
  pointer-events: none;
}
