/* Contact form (info/contact.php). Loaded in addition to info.css, which provides the page layout, .box and .contact-btn. */
.contact-form { max-width: 640px; }
.contact-form label { display: block; margin: 18px 0 6px; font-weight: 500; }
.contact-form > .hint:first-child { margin-top: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #8a8a8a;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem; /* 16px: keeps iOS Safari from zooming into the field */
  line-height: 1.4;
}
.contact-form textarea { min-height: 9.5rem; resize: vertical; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid #b52566;
  outline-offset: 2px;
}
.contact-form input[aria-invalid="true"]:not([type="checkbox"]),
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.contact-form .consent input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.contact-form .hint { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
/* Message under a field that is missing or wrong */
.contact-form .field-error { margin: 6px 0 0; font-size: .875rem; font-weight: 500; color: #b3261e; }
.contact-form label.consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 0; font-weight: 400; }
.contact-form .consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #151515; }
.contact-form .contact-btn { margin-top: 22px; padding: 12px 24px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.contact-form .contact-btn + .hint { margin-top: 14px; }
/* Spam trap: invisible for people, bots fill it in */
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Result box (sent / errors): the form jumps here, below the sticky nav */
#contact-status { scroll-margin-top: 72px; margin: 0 0 18px; }
#contact-status:focus { outline: none; }
.box.is-error { border-color: #b3261e; background: #fdf3f2; }
.box.is-success { border-color: #1a7f5a; background: #f0faf5; }
.box.is-error ul { margin: 0.4rem 0 0.2rem; }
