/* =========================================================
   LEAD FORM VALIDATION, PRELOADER AND STATUS
   ========================================================= */

.ls-form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ls-field-error,
.ls-checkbox-error {
  display: none;
  color: #b42318;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.ls-field.is-invalid .ls-field-error,
.ls-checkbox-error:not(:empty) {
  display: block;
}

.ls-field.is-invalid input,
.ls-field.is-invalid select,
.ls-field.is-invalid textarea {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1) !important;
}

.ls-checkbox.is-invalid {
  padding: 10px;
  border: 1px solid rgba(217, 45, 32, 0.3);
  border-radius: 9px;
  background: rgba(217, 45, 32, 0.05);
}

.ls-form-status {
  display: none;
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.ls-form-status:not(:empty) {
  display: block;
}

.ls-form-status.is-error {
  border: 1px solid rgba(217, 45, 32, 0.24);
  background: #fff1f0;
  color: #9c2118;
}

.ls-button--submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.ls-processing-lead {
  overflow: hidden;
}

.ls-lead-preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  padding: 20px;

  display: grid;
  place-items: center;

  background: rgba(9, 15, 32, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.ls-lead-preloader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ls-lead-preloader__dialog {
  width: min(100%, 430px);
  padding: 36px 32px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(3, 7, 24, 0.34);

  color: #172044;
  text-align: center;

  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}

.ls-lead-preloader.is-visible .ls-lead-preloader__dialog {
  transform: translateY(0) scale(1);
}

.ls-lead-preloader__spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;

  border: 5px solid rgba(36, 47, 95, 0.12);
  border-top-color: #dd2729;
  border-radius: 50%;

  animation: lsLeadSpinner 0.85s linear infinite;
}

.ls-lead-preloader__eyebrow {
  display: block;
  margin-bottom: 8px;

  color: #dd2729;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ls-lead-preloader h2 {
  margin: 0;
  color: #172044;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.ls-lead-preloader p {
  margin: 12px auto 0;
  max-width: 310px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.ls-lead-preloader__progress {
  height: 6px;
  margin-top: 24px;
  overflow: hidden;

  border-radius: 999px;
  background: #edf1f5;
}

.ls-lead-preloader__progress span {
  display: block;
  width: 8%;
  height: 100%;

  border-radius: inherit;
  background: linear-gradient(90deg, #263b68, #dd2729);

  transition: width 0.45s ease;
}

@keyframes lsLeadSpinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .ls-lead-preloader {
    padding: 14px;
  }

  .ls-lead-preloader__dialog {
    padding: 30px 22px;
    border-radius: 17px;
  }

  .ls-lead-preloader h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-lead-preloader__spinner {
    animation-duration: 1.8s;
  }
}
