.contact-section {
  box-sizing: border-box;
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: clamp(2.25rem, 5.8vw, 3.625rem) 1.125rem clamp(3rem, 8vw, 5rem);
  color: #fff;
}

.contact-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 1rem;
}

.contact-section h1 {
  margin: 0;
  font: inherit;
  font-size: 1.375rem;
}

.contact-section a {
  color: inherit;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.contact-form {
  width: min(100%, 300px);
  margin-top: clamp(2.25rem, 7.8vw, 4.875rem);
  font: 0.875rem/1.4 Arial, sans-serif;
}

.contact-field {
  display: grid;
  gap: 0.4375rem;
  margin-bottom: clamp(1.5rem, 4.5vw, 2.625rem);
}

.contact-field > input,
.contact-field > textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid #c3c3c3;
  border-radius: 0;
  padding: 0.5625rem 0.625rem;
  background: #fff;
  color: #111;
  font: inherit;
}

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

.contact-field > :is(input, textarea)::placeholder {
  color: #666;
  opacity: 1;
}

.contact-opt-in {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.5rem;
  cursor: pointer;
}

.contact-opt-in input {
  margin: 0;
}

.contact-message {
  margin-bottom: 0.625rem;
}

.contact-submit {
  min-height: 2.25rem;
  border: 1px solid #999;
  border-radius: 0;
  padding: 0.4375rem 0.9375rem;
  background: #ededed;
  color: #111;
  font: inherit;
  cursor: pointer;
}

.contact-submit:hover {
  background: #fff;
}

.contact-section :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.contact-thanks p {
  margin: 0.625rem 0 1.5rem;
}

@media (min-width: 640px) {
  .contact-form {
    margin-left: 1.6875rem;
  }
}
