.contact-section {
  padding: 42px 0 64px;
}

.contact-intro {
  max-width: 800px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-page .contact-heading {
  margin: 0 0 26px;
  font-size: 28px;
  line-height: 1.2;
}

.contact-form,
.contact-layout > * {
  min-width: 0;
}

.contact-form {
  position: relative;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.contact-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.contact-field label {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.contact-field label span {
  font-weight: 400;
  color: var(--muted);
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #a9afb3;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-field :is(input, textarea):focus-visible {
  outline: 2px solid var(--red-800);
  outline-offset: 2px;
}

.contact-field [aria-invalid="true"] {
  border-color: var(--red-800);
}

.contact-field-error {
  color: var(--red-800);
  font-size: 14px;
  line-height: 1.4;
}

.contact-field-error:empty {
  display: none;
}

.contact-notice {
  padding: 14px 16px;
  margin-bottom: 24px;
  border-left: 4px solid;
  font-size: 16px;
  line-height: 1.5;
}

.contact-notice--error {
  border-color: var(--red-800);
  background: #fff0f1;
}

.contact-notice--success {
  border-color: #27633b;
  background: #edf7ef;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form altcha-widget {
  display: block;
  margin-top: 26px;
  max-width: 100%;
  --altcha-color-primary: #b50e29;
  --altcha-border-radius: 4px;
}

.contact-submit {
  margin-top: 24px;
  min-height: 48px;
  min-width: 170px;
}

.contact-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.contact-details {
  padding-left: 32px;
  border-left: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

.contact-details address {
  font-style: normal;
}

.contact-details a {
  color: var(--red-800);
  font-weight: 700;
  text-underline-offset: 3px;
}

.contact-details > * + * {
  margin-top: 20px;
}

.contact-details h3 {
  margin-top: 30px;
  font-size: 22px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .contact-details {
    padding: 30px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-page .contact-heading {
    font-size: 25px;
  }
}
