/* =========================================
   FORM VALIDATION
========================================= */

.lead-form .field.is-invalid input,
.lead-form .field.is-invalid select {
  border-color: #ba354b;
  box-shadow: 0 0 0 3px rgba(186, 53, 75, 0.11);
}

.lead-form .consent.is-invalid {
  color: #a4283d;
}

.w2w-field-error {
  display: block;
  margin-top: 7px;
  color: #a4283d;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
}

.lead-form .consent + .w2w-field-error {
  margin-top: -13px;
  margin-bottom: 18px;
}

/* =========================================
   PROCESSING MODAL
========================================= */

html.w2w-processing-open,
html.w2w-processing-open body {
  overflow: hidden;
}

.w2w-processing-overlay,
.w2w-processing-overlay *,
.w2w-processing-overlay *::before,
.w2w-processing-overlay *::after {
  box-sizing: border-box;
}

.w2w-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 21, 37, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.w2w-processing-dialog {
  width: min(470px, 100%);
  padding: 33px 33px 29px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 85px rgba(5, 12, 23, 0.34);
  text-align: center;
}

.w2w-processing-dialog:focus {
  outline: none;
}

.w2w-processing-dialog__brand {
  margin: 0 0 10px;
  color: var(--pink, #e10a63);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.w2w-processing-dialog h2 {
  margin: 0 0 25px;
  color: var(--navy, #20385d);
  font-family: var(--font-display, "Plus Jakarta Sans", Arial, sans-serif);
  font-size: clamp(1.45rem, 4vw, 1.66rem);
  line-height: 1.23;
  letter-spacing: -0.045em;
}

.w2w-loader {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 0 auto 27px;
}

.w2w-loader__ring {
  position: absolute;
  border-radius: 50%;
}

.w2w-loader__ring--outer {
  inset: 0;
  border: 2px solid #e8edf4;
  border-top-color: var(--pink, #e10a63);
  border-right-color: var(--pink, #e10a63);
  animation: w2wLoaderSpin 1.25s linear infinite;
}

.w2w-loader__ring--inner {
  inset: 12px;
  border: 2px dashed rgba(32, 56, 93, 0.2);
  border-bottom-color: var(--navy, #20385d);
  animation: w2wLoaderReverse 2s linear infinite;
}

.w2w-loader__centre {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f6;
  color: var(--pink, #e10a63);
}

.w2w-loader__centre::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(225, 10, 99, 0.15);
  animation: w2wLoaderPulse 1.4s ease-out infinite;
}

.w2w-loader__centre svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.w2w-processing-dialog__status {
  min-height: 64px;
  margin-bottom: 20px;
}

.w2w-processing-dialog__status strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy, #20385d);
  font-size: 0.98rem;
}

.w2w-processing-dialog__status p {
  margin: 0;
  color: #677486;
  font-size: 0.83rem;
  line-height: 1.55;
}

.w2w-processing-dialog__progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 22px;
}

.w2w-processing-dialog__progress span {
  width: 41px;
  height: 4px;
  border-radius: 999px;
  background: #e6eaf1;
  transition: background-color 0.28s ease;
}

.w2w-processing-dialog__progress span.is-active {
  background: var(--pink, #e10a63);
}

.w2w-processing-dialog__progress span.is-complete {
  background: var(--navy, #20385d);
}

.w2w-processing-dialog__note {
  margin: 0;
  padding: 13px 14px;
  border-radius: 10px;
  background: #f7f8fb;
  color: #697688;
  font-size: 0.76rem;
  line-height: 1.55;
}

.w2w-processing-dialog__note strong {
  color: var(--navy, #20385d);
}

@keyframes w2wLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes w2wLoaderReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes w2wLoaderPulse {
  from {
    opacity: 0.76;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.78);
  }
}

@media (max-width: 680px) {
  .w2w-processing-overlay {
    align-items: end;
    padding: 10px;
  }

  .w2w-processing-dialog {
    width: 100%;
    padding: 25px 18px 20px;
    border-radius: 18px;
  }

  .w2w-processing-dialog h2 {
    margin-bottom: 21px;
    font-size: 1.38rem;
  }

  .w2w-loader {
    width: 94px;
    height: 94px;
    margin-bottom: 21px;
  }

  .w2w-loader__centre {
    width: 47px;
    height: 47px;
  }

  .w2w-processing-dialog__progress span {
    width: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .w2w-loader__ring,
  .w2w-loader__centre::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}