/* directvfr.com contact page (templates/contact.html). Uses the tokens from site.css. Amber for errors. */

.contact { max-width: 720px; }
.contact__intro { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink2); max-width: 38em; }
.contact__alt { color: var(--ink2); margin-bottom: 32px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }

.contact__errors, .contact__notice {
  background: var(--callout-bg); border: 1px solid var(--callout-border); border-left: 4px solid var(--warn);
  color: var(--callout-text); border-radius: 6px; padding: 16px 20px; margin: 0 0 28px;
}
.contact__errors ul { margin: 8px 0 0; padding-left: 1.2em; }
.contact__errors li { margin-bottom: 4px; }
.contact__errors a, .contact__notice a { color: var(--callout-text); text-decoration-thickness: 1.5px; }
.contact__notice[hidden] { display: none; }

.contact-form[hidden] { display: none; }
.contact-form { border-top: 2px solid var(--ink); padding-top: 28px; }
.field { margin: 0 0 24px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink3); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  display: block; width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 6px; padding: 10px 12px; min-height: 46px;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.field select { appearance: auto; }
.field input[type="file"] { display: block; max-width: 100%; font: inherit; font-size: 0.9375rem; color: var(--ink2); padding: 6px 0; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--tint); outline-offset: 1px; border-color: var(--tint);
}
.field__hint { margin: 6px 0 0; font-size: 0.9375rem; color: var(--ink3); }
.field__error { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--warn); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--warn); border-width: 2px; }

/* Honeypot: off screen, out of the tab order, hidden from screen readers. */
.contact-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.contact-form__send {
  font: inherit; font-weight: 700; color: #fff; background: var(--tint); border: 0; border-radius: 999px;
  padding: 12px 28px; min-height: 48px; cursor: pointer;
}
.contact-form__send:hover { background: var(--tint-hover); }
.contact-form__send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form__send[disabled] { opacity: 0.6; cursor: progress; }
.contact-form__status { margin: 0; font-size: 0.9375rem; color: var(--ink3); }
.contact-form__status.is-failed { color: var(--warn); font-weight: 700; }

.contact__privacy { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink3); }

@media (prefers-color-scheme: dark) {
  .contact-form__send { color: #0E151F; }
}
