.contact-form-section {
  background: var(--cream, #f7f2e7);
}

.contact-form-shell {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.contact-form-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.contact-form-heading h2 {
  margin: .25rem 0 .75rem;
}

.contact-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(24, 68, 44, .16);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 .8rem 2.5rem rgba(27, 45, 35, .08);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.contact-field,
.contact-field--full {
  min-width: 0;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label {
  display: block;
  margin-bottom: .45rem;
  color: var(--forest, #18442c);
  font-weight: 700;
}

.contact-field .optional {
  font-weight: 400;
  color: #506057;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.15rem;
  padding: .75rem .85rem;
  border: 1px solid #7b877f;
  border-radius: .55rem;
  background: #fff;
  color: #17251d;
  font: inherit;
}

.contact-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: .2rem solid rgba(211, 157, 51, .5);
  outline-offset: .12rem;
  border-color: var(--forest, #18442c);
}

.contact-field [aria-invalid="true"] {
  border-color: #a32424;
}

.contact-field-error {
  margin: .4rem 0 0;
  color: #8b1d1d;
  font-weight: 700;
}

.contact-form-alert {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: .65rem;
}

.contact-form-alert p:last-child,
.contact-form-alert ul:last-child {
  margin-bottom: 0;
}

.contact-form-alert--success {
  border: 1px solid #39734e;
  background: #eaf5ed;
  color: #174328;
}

.contact-form-alert--error {
  border: 1px solid #b45a5a;
  background: #fff0f0;
  color: #711919;
}

.contact-form-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .35rem;
  color: #506057;
  font-size: .92rem;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form-actions .button[disabled] {
  cursor: wait;
  opacity: .72;
}

.contact-form-privacy {
  max-width: 42rem;
  margin: 0;
  color: #43534a;
  font-size: .94rem;
}

.contact-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 42rem) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-field--full {
    grid-column: auto;
  }

  .contact-form-meta,
  .contact-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-actions .button {
    width: 100%;
  }
}
