/* Optomech · Shared status messages for page-level lead forms (lead-form.js) */
.lead-form-error,
.lead-form-success { display: none; }
.lead-form-error.is-visible,
.lead-form-success.is-visible { display: block; }
.lead-form-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  color: #c53030;
  font-size: .88rem;
  line-height: 1.5;
}
.lead-form-error a { color: #c53030; font-weight: 700; }
.lead-form-success {
  padding: 22px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #14532d;
  text-align: center;
  line-height: 1.6;
}
.lead-form-success:focus { outline: none; }
.lead-form-success a { color: #14532d; font-weight: 700; }
/* Higher specificity + !important on colour: some pages (e.g. /vision/industries/
   .final-cta p) force light text with !important inside dark CTA bands. */
div.lead-form-success p {
  margin: 0;
  max-width: none;
  font-size: .92rem;
  color: #166534 !important;
}
div.lead-form-success p.lf-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #14532d !important;
}
form p.lf-note { color: #64748b !important; }
