/* Mirrored site: WPForms CSS variables are not inlined without WordPress */
.wpforms-container.wpforms-render-modern,
.wpforms-container-full.wpforms-render-modern {
  --wpforms-field-background-color: #ffffff;
  --wpforms-field-text-color: #333333;
  --wpforms-field-border-color: #cccccc;
}

.wpforms-container .wpforms-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  background-color: #ffffff !important;
  color: #333333 !important;
}

.wpforms-container .wpforms-form input::placeholder,
.wpforms-container .wpforms-form textarea::placeholder {
  color: rgba(51, 51, 51, 0.55);
}

/* Lead form success / error states (Searchbird submission) */
.amax-lead-form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 0.9375rem;
}

.wpforms-form .wpforms-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Thank-you modal */
body.amax-lead-modal-open {
  overflow: hidden;
}

.amax-lead-thankyou-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.amax-lead-thankyou-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.amax-lead-thankyou-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 43, 94, 0.55);
  backdrop-filter: blur(4px);
}

.amax-lead-thankyou-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.75rem 1.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(11, 43, 94, 0.25);
  text-align: center;
  font-family: "Open Sans", sans-serif;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s ease;
}

.amax-lead-thankyou-modal.is-open .amax-lead-thankyou-modal__panel {
  transform: translateY(0) scale(1);
}

.amax-lead-thankyou-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.amax-lead-thankyou-modal__close:hover {
  color: #0b2b5e;
}

.amax-lead-thankyou-modal__logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 auto 1.25rem;
}

.amax-lead-thankyou-modal__title {
  margin: 0 0 0.75rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0b2b5e;
}

.amax-lead-thankyou-modal__text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #334155;
}

.amax-lead-thankyou-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: #0b2b5e;
  color: #fff !important;
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.amax-lead-thankyou-modal__btn:hover {
  background: #08305f;
}

@media (max-width: 479px) {
  .amax-lead-thankyou-modal__panel {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .amax-lead-thankyou-modal__title {
    font-size: 1.5rem;
  }
}
