/* Contact Form 7 result states, shared by every form on the site (the product
   quote form, the contact block, /request-a-quote/). Enqueued only where a
   form is, by inc/contact-form-7.php. Field styling stays with each form's
   own stylesheet; this file owns only what happens after Submit. */

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--wop-border-strong);
  border-left-width: 4px;
  border-radius: var(--wop-radius);
  background: var(--wop-card-bg);
  color: var(--wop-text);
  font-size: .95rem;
  line-height: 1.5;
}
.wpcf7 form .wpcf7-response-output:focus { outline: none; }

/* Sent: the message replaces the form. Leaving emptied fields above a small
   note read as "nothing happened" — the live complaint. `.wop-sent` is set
   by inc/contact-form-7.php and, unlike CF7's own `.sent`, does not flicker
   off while CF7 resets the fields. */
.wpcf7 form.wop-sent > :not(.wpcf7-response-output) { display: none; }
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.wop-sent .wpcf7-response-output {
  margin-top: 0;
  padding: 18px 20px;
  border-color: #2f7d4a;
  background: #eef7f1;
  color: #1d4d2e;
  font-weight: 600;
}

/* Something to fix: the fields stay, the message says what. */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #b7791f;
  background: #fff8eb;
  color: #5c3d0e;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: #b42318;
  background: #fef3f2;
  color: #7a1a13;
}
