.contact-page .article-panel {
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-form__field {
  display: grid;
  gap: 0.5rem;
}

.contact-form__field > label {
  color: #f5f5dc;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1rem;
  text-transform: uppercase;
}

.contact-form__control {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b8860b;
  border-radius: 0;
  background: #0e0e0e;
  color: #f5f5dc;
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.875rem 0.75rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.contact-form__control:hover {
  border-bottom-color: #f7bd48;
  background: #131313;
}

.contact-form__control:focus {
  border-bottom-color: #f7bd48;
  outline: 1px solid #8b0000;
  outline-offset: 2px;
  box-shadow: inset 0 0 18px rgba(184, 134, 11, 0.08);
}

.contact-form__control[aria-invalid="true"] {
  border-bottom-color: #ffb4ab;
  outline-color: #93000a;
}

.contact-form__control--message {
  min-height: 13rem;
  resize: vertical;
}

.contact-form__help,
.contact-form__error {
  min-height: 1.25rem;
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.contact-form__help {
  color: #c8c8b0;
}

.contact-form__error {
  color: #ffb4ab;
}

.contact-form__error:empty {
  display: none;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.5rem;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: 12rem;
  border-radius: 0;
}

.contact-form__submit .material-symbols-outlined {
  font-size: 1.2rem;
}

.contact-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 1.5rem 0;
  border: 1px solid #5a403c;
  border-left-width: 4px;
  border-radius: 0;
  background: #1c1b1b;
  color: #e5e2e1;
  padding: 1rem;
}

.contact-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #f5f5dc;
  font-family: "Noto Serif", serif;
  font-size: 1.05rem;
}

.contact-notice p {
  margin: 0;
}

.contact-notice .material-symbols-outlined {
  margin-top: 0.1rem;
}

.contact-notice--success {
  border-color: #b8860b;
  box-shadow: inset 0 0 16px rgba(184, 134, 11, 0.08);
}

.contact-notice--success .material-symbols-outlined {
  color: #f7bd48;
}

.contact-notice--error {
  border-color: #93000a;
  box-shadow: inset 0 0 16px rgba(147, 0, 10, 0.12);
}

.contact-notice--error .material-symbols-outlined {
  color: #ffb4ab;
}

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

@media (max-width: 575.98px) {
  .contact-form__actions,
  .contact-form__submit {
    width: 100%;
  }
}
