/* Support-page contact form, loaded only by support.html. */

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin-top: 24px;
}

.contact-form[hidden] {
  display: none;
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--dx-ink-soft);
  border-radius: 0;
  background: var(--dx-paper);
  color: var(--dx-ink);
  font: inherit;
}

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

.contact-hint {
  margin: 6px 0 0;
  color: var(--dx-ink-soft);
  font-size: 14px;
}

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

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

.contact-status {
  max-width: 560px;
  margin: 0;
}

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

.contact-status.is-error {
  color: var(--dx-danger-fg);
  font-weight: 650;
}

.contact-sent {
  max-width: 560px;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--dx-ink);
  background: var(--dx-bg-b);
}

.contact-sent strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.contact-sent p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.contact-form .button {
  justify-self: start;
  cursor: pointer;
}

.contact-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.page-section .contact-privacy {
  margin-top: 24px;
  max-width: 560px;
}
