/* Registration form: states driven by js/registration-form.js */

.reg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-form .form-group { position: relative; margin: 0; min-width: 0; }
.reg-form .form-group--wide { grid-column: 1 / -1; }

.reg-form .form-control {
  display: block;
  width: 100%;
  height: 50px;
  border: 1px solid #d7e0e8;
  border-radius: 9px;
  padding: 0 14px;
  font: 400 15px/1 "Inter", Arial, sans-serif;
  color: var(--ink, #0a2344);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.reg-form .form-control::placeholder { color: #8093a6; }
.reg-form .form-control:focus { border-color: #087cf0; box-shadow: 0 0 0 3px rgba(8, 124, 240, .14); }

.reg-form .error-message { margin: 0; font-size: 12px; line-height: 1.35; color: #fff; }
.reg-form .form-group.error .error-message:not(:empty) {
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  background-color: #e5364a;
}
.reg-form .form-group.error .form-control { border-color: #e5364a; }
.reg-form .form-group.success .form-control { border-color: #2eaa5c; }

/* Mailcheck suggestion ("¿Quisiste decir …?") */
.reg-form .form-group__emailValid-info { display: none; margin-top: 5px; font-size: 12px; color: #52677f; }
.reg-form .form-group__emailValid-btn { margin-left: 6px; color: #087cf0; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* intlTelInput with separate dial code */
.reg-form .reg-phone .iti { display: block; width: 100%; }
.reg-form .reg-phone .iti__flag-container { z-index: 3; }
.reg-form .reg-phone .iti--separate-dial-code .iti__selected-flag {
  border-radius: 9px 0 0 9px;
  background: #f3f7fb;
  border-right: 1px solid #d7e0e8;
  padding: 0 10px 0 12px;
}
.reg-form .reg-phone .iti__selected-dial-code { color: #1d3656; font-size: 15px; }
.reg-form .reg-phone .iti__country-list { z-index: 20; max-width: 300px; color: #212529; white-space: normal; font-size: 14px; }

.reg-form .register-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #087cf0, #0d91ff);
  color: #fff;
  font: 700 16px/1 "Inter", Arial, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(8, 124, 240, .28);
  transition: filter .15s ease;
}
.reg-form .register-btn:hover { filter: brightness(1.06); }
.reg-form .register-btn:disabled { opacity: .7; cursor: wait; }

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 12px;
  color: #687b8e;
  text-align: center;
}
.form-privacy svg { width: 13px; height: 13px; flex: none; }

@media (max-width: 560px) {
  .reg-form { grid-template-columns: 1fr; }
  .reg-form .form-group--wide { grid-column: auto; }
}

/* Full-screen loader while the lead is being submitted */
.submit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(4, 21, 40, .86);
}
.submit-overlay.is-active,
.submit-overlay[style*="flex"] { display: flex !important; }
.submit-overlay__spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(13, 145, 255, .25);
  border-top-color: #0d91ff;
  border-radius: 50%;
  animation: apx-spin .85s linear infinite;
}
.submit-overlay__text { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
@keyframes apx-spin { to { transform: rotate(360deg); } }
