/* ==========================================================================
   Eagle Valley Motors — lead form states (evm-forms.js)
   Neutral, theme-inheriting styles: only the status boxes get explicit
   color so everything else (fonts, inputs, buttons) follows the site theme.
   ========================================================================== */

/* --- in-flight ---------------------------------------------------------- */
.evm-form-busy {
  opacity: 0.65;
  pointer-events: none; /* prevent double-submits while the request is out */
}

.evm-form-busy [type="submit"] {
  cursor: wait;
}

/* --- inline error ------------------------------------------------------- */
.evm-form-error {
  margin: 0 0 1em;
  padding: 0.75em 1em;
  border: 1px solid #d9534f;
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(217, 83, 79, 0.08);
  color: #b52b27;
  font-size: 0.95em;
  line-height: 1.4;
}

/* --- thank-you (replaces the form on success) ---------------------------- */
.evm-form-success {
  padding: 1.25em 1.5em;
  border: 1px solid #4f9d69;
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(79, 157, 105, 0.08);
  color: inherit; /* inherit theme text color; only the accent is ours */
  line-height: 1.5;
}

.evm-form-success strong {
  display: block;
  margin-bottom: 0.25em;
  color: #356f49;
}

.evm-form-success p {
  margin: 0;
}
