/* Contact Form 7 markup wrappers — keep the prototype form layout and type. */

.contact-form .wpcf7-form-control-wrap {
  display: contents;
}

.wpcf7 form.contact-form,
form.wpcf7-form.contact-form {
  display: grid;
}

.contact-form .wpcf7-spinner {
  grid-column: 1 / -1;
  margin: 0;
}

.contact-form .wpcf7-response-output,
.contact-form .wpcf7-not-valid-tip {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}

.contact-form .wpcf7-not-valid-tip {
  color: #8a2a2a;
}

.contact-form input.wpcf7-not-valid,
.contact-form select.wpcf7-not-valid,
.contact-form textarea.wpcf7-not-valid {
  border-bottom-color: #8a2a2a;
}

.contact-form .wpcf7-submit,
.contact-form input[type="submit"],
.contact-form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Hide leftover prototype notes if any remain in editor content. */
.contact-form .form-note:empty { display: none; }

/* Invisible honeypot: keep the field in the DOM (do not use display:none). */
.contact-form {
  position: relative;
}
.contact-form .cf-hp {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
