/* ==========================================================================
   Contact page — form + contact block layout and input styling.
   ========================================================================== */

.contact-layout {
  display: grid;
  gap: var(--s6);
}
/* Grid items default to min-width:auto — long unbreakable tokens (the email
   address) would otherwise force the column past a 375px viewport. */
.contact-layout > * { min-width: 0; }
.contact-block { overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.contact-form-wrap h2,
.contact-block h2 { margin-bottom: var(--s3); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-top: var(--s4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-field label {
  font-weight: 700;
  font-size: .95rem;
}

.form-field input,
.form-field textarea {
  min-height: 48px;
  padding: var(--s3);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.4;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--cool);
  outline-offset: 2px;
  border-color: var(--cool);
}

.contact-form .btn { align-self: flex-start; }

.form-demo-note {
  font-size: .9rem;
  color: var(--ink);
  margin: 0;
}

.form-status {
  font-weight: 700;
  color: var(--cool-deep);
  background: var(--sand-deep);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  margin: 0;
}

/* .surface (main.css) supplies border + radius; this overrides the fill. */
.contact-block {
  background: var(--sand-deep);
  border-color: var(--sand-deep);
  padding: var(--s5);
}

/* The shared contact grid goes two-up on the home page, but this copy sits in
   a narrow sidebar column — keep it single-column so the numbers never wrap. */
.contact-block .contact-strip__grid { grid-template-columns: 1fr; }

.contact-block__tel a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cool-deep);
}

/* .divider-top (main.css) supplies the rule + padding; this recolors it. */
.contact-block__area {
  margin: var(--s4) 0 0;
  border-top-color: var(--white);
}
