/* ==========================================================================
   Contact page only
   ========================================================================== */

/* A shorter hero so the form is only one scroll away. */
.hero--short { min-height: 62vh; min-height: 62svh; padding-bottom: 40px; }
.hero--short .hero__media img { object-position: 50% 40%; }

.contact { padding-top: 90px; padding-bottom: 140px; }
.contact__grid { display: grid; gap: 60px; }

/* ---------- Direct contact ---------- */
.contact__intro { display: flex; flex-direction: column; gap: 40px; }
.contact__intro .statement { max-width: 560px; }
.contact__ways { border-top: 1px solid var(--color-line); }
.contact__way {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline;
  min-height: 64px; padding: 20px 0; border-bottom: 1px solid var(--color-line);
  transition: color 0.3s;
}
.contact__way .mono { font-size: var(--text-mono); letter-spacing: -0.01em; color: var(--color-muted); }
.contact__value { font-size: 18px; line-height: 1.4; }
.contact__way:hover .contact__value { color: var(--color-muted); }

/* ---------- Form ---------- */
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 18px; border-radius: var(--radius); background: #141414;
  border: 1px solid rgba(245, 245, 245, 0.08);
}
.contact-form__title { margin-bottom: 4px; }
.field-row { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: -0.01em; color: var(--color-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--color-bg); border: 1px solid var(--color-line-strong); border-radius: var(--radius);
  font-size: 16px; /* 16px stops phones zooming in when a field is tapped */
  color: var(--color-text); outline: 0;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-text); }
/* Only mark a field wrong after the person has touched it. */
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8a73; }
.field input[type="date"] { color-scheme: dark; }

.contact-form__note { font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.contact-form__submit { align-self: flex-start; min-width: 180px; }
.contact-form__submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.contact-form .form-status { margin-top: 0; }

@media (min-width: 810px) {
  .hero--short { padding-bottom: 50px; }
  .contact { padding-top: 120px; padding-bottom: 160px; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .contact__intro { position: sticky; top: calc(var(--header-h-small) + 40px); }
  .contact-form { padding: 32px; }
  .field-row { grid-template-columns: 1fr 1fr; }
}
