.contact-document {
  width: min(680px, calc(100% - 36px));
}

.contact-email {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

#contact-form {
  margin-top: 26px;
}

#contact-form fieldset {
  border: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
}

.contact-field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.contact-field label {
  font-size: 15px;
  font-weight: 750;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #9299a6;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.contact-field textarea {
  resize: vertical;
}

.contact-document :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

#contact-submit {
  border: 0;
}

#contact-submit:disabled {
  opacity: 0.65;
  transform: none;
  cursor: default;
}

.contact-status {
  margin: 14px 0 0;
}

.contact-status:empty {
  margin: 0;
}

.contact-status[data-state="error"] {
  color: #972e20;
}

.contact-status[data-state="success"] {
  color: #145e49;
}
