/* WordPress/CF7 integration styles layered over the approved Contact source. */
.contact-form-section__form,
.contact-form-section .wpcf7,
.contact-form-section .wpcf7-form,
.contact-form__field .wpcf7-form-control-wrap {
  inline-size: 100%;
  min-inline-size: 0;
}

.contact-form-section .wpcf7-form.contact-form {
  margin: 0;
}

.contact-form-section .contact-form > p {
  inline-size: 100%;
  margin: 0;
}

.contact-form__field > p {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-form__field--message > p {
  gap: 8px;
}

.contact-form__field > p > br,
.contact-form__submit > br {
  display: none;
}

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

.contact-form__field .wpcf7-not-valid {
  border-color: #b42318;
}

.contact-form__field .wpcf7-not-valid-tip {
  display: block;
  margin-block-start: 8px;
  color: #b42318;
  font-size: 16px;
  line-height: 1.4;
}

.contact-form__submit {
  gap: 8px;
  cursor: pointer;
}

.contact-form__submit-icon {
  inline-size: 24px;
  block-size: 24px;
  background: url('../icons/contact-send.svg') center / contain no-repeat;
}

.contact-form-section .wpcf7-spinner {
  margin: 0 0 0 12px;
}

.contact-form-section .wpcf7 form .wpcf7-response-output {
  inline-size: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form-section__media {
  overflow: hidden;
  border-radius: 0;
}

.contact-form-section__image {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 32%;
}

@media only screen and (max-width: 479px) {
  .contact-form__field--message > p {
    gap: 9px;
  }

  .contact-form__submit {
    justify-content: center;
    inline-size: 100%;
  }
}
