/* The contact page: the heading, a few words and the address on the left, the form on the right (one column under
   900px). */

.contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; padding-top: 120px; padding-bottom: 136px; }
.contact-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact-title { max-width: 9em; }
.contact-text { font-size: 18px; max-width: 24em; }
.contact-mail { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.contact-prefer { font-size: 14px; }
.contact-mail-link { font-size: 22px; }

/* The form */
.form { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: 12px; background: var(--band); }
.form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 400; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); min-height: 52px; box-sizing: border-box; width: 100%; transition: border-color .2s; }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.opt { font-weight: 300; color: var(--muted); }
.err { font-size: 14px; font-weight: 300; color: var(--err); }
.robot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-privacy { font-size: 14px; }
.sent { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--fg); }
.sent svg { flex: 0 0 auto; margin-top: 4px; color: var(--ember); }
.sent strong { font-weight: 400; }
/* The form's notes fade and rise in when they appear (they change from hidden to shown). */
.sent, .form .err { transition: opacity .35s, translate .35s cubic-bezier(.2,.7,.2,1); }
@starting-style {
  .sent, .form .err { opacity: 0; translate: 0 6px; }
}

@media (max-width: 900px) {
  .contact { padding-top: 88px; padding-bottom: 104px; }
  .form { padding: 24px; }
}

/* Phones held upright: closer to the header, the form with less padding and a full-width send button. */
@media (max-width: 600px) {
  .contact { padding-top: 56px; padding-bottom: 80px; gap: 32px; }
  .contact-text { font-size: 16px; }
  .contact-mail-link { font-size: 17px; }
  .form { padding: 20px; gap: 20px; }
  .form-foot { flex-direction: column; align-items: stretch; }
}
