/* The contact page (support.html): the privacy note's column and the email form's fields, so it
   reads as the same site. The fields are the signup's pill made a rounded box, since a message is
   several lines and a pill cannot hold them. */
.contact { max-width: 680px; margin: 0 auto; padding: 32px var(--gutter) 96px; }
.contact-top { display: flex; align-items: center; margin-bottom: 72px; }
.contact h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 20px; }
.contact .lede { font-size: 18px; margin: 0 0 44px; }
.contact-form { display: grid; gap: 18px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 8px; font: 13px/1.5 var(--mono); color: var(--fg-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hair-2);
  background: var(--card); color: var(--fg); font: 15px/1.5 var(--sans); outline: none; transition: border-color 0.2s;
}
.contact-form input, .contact-form select { height: 52px; padding-block: 0; }
.contact-form textarea { resize: vertical; min-height: 180px; }
/* The select wears the fields' box, with its own arrow drawn in the page's grey. */
.contact-form select {
  appearance: none; padding-inline-end: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
/* On a right-to-left page the arrow stands at the field's end, which is its left. */
[dir="rtl"] .contact-form select { background-position: 17px 50%, 22px 50%; }
.contact-form :is(input, select, textarea):focus { border-color: var(--accent); }
.contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* As on the signup: a wrong field is said in words; the rim only brightens, red meaning nothing here. */
.contact-form [aria-invalid="true"] { border-color: var(--fg-2); }
.contact-count { margin: -10px 0 0; text-align: end; font: 12px var(--mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
/* Off the screen rather than display:none, which some scripts know to skip. */
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-check:empty { display: none; }
.contact-send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.contact-send .btn[aria-disabled="true"] { opacity: 0.5; }
.contact .said { font: 13px/1.5 var(--mono); color: var(--fg-2); margin: 0; flex: 1 1 14em; }
.contact .said.ok { color: var(--accent); }
.contact-form.done :is(label, .contact-row, .contact-count, .contact-send .btn) { display: none; }
.contact-note { font: 12px/1.5 var(--mono); color: var(--fg-3); margin: 0; }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.contact-note a:hover { color: var(--fg-2); }
/* "Prefer email?": a quiet line under the form, and the address it paints, in the note's own mono. */
.contact-mail { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); display: grid; gap: 12px; justify-items: start; }
.contact-reveal { font: 13px/1.5 var(--mono); color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.contact-reveal:hover { color: var(--fg); text-decoration-color: var(--fg-3); }
.contact-address { display: block; max-width: 100%; }
.contact-address[hidden] { display: none; }
