/* Two-column grid with explicit areas */
.contact-grid{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  grid-template-areas: "info form";
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

/* Make sure items can shrink inside grid */
.contact-info, .contact-form{ min-width: 0; }

.contact-info{ grid-area: info; }  /* LEFT  */
.contact-form{ grid-area: form; }  /* RIGHT */

/* Stack on small screens only */
@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "form";
  }
}

/* Optional: if something else sets direction: rtl, keep left→right order */
.contact-grid{ direction: ltr; }

/* Align labels & inputs in a neat grid */
.field{
  display: grid;
  grid-template-columns: 160px 1fr;   /* label | input */
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.field-label{ font-weight: 600; color: var(--ink); }
.field-input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  outline: none;
  background: var(--surface);
  box-shadow: var(--shadow-inset);
  font: inherit; color: var(--ink);
}
.field-input::placeholder{ color: color-mix(in srgb, var(--muted) 70%, #fff 30%); }

.error-text{
  grid-column: 2 / 3;              /* show under the input */
  color: #b00020;
  font-size: .9rem;
  min-height: 1.1em;               /* reserve space to avoid jump */
}
.field.invalid .field-input{
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(224, 0, 0, .15);
}

/* Mobile: stack label above input */
@media (max-width: 720px){
  .field{ grid-template-columns: 1fr; }
  .error-text{ grid-column: 1 / -1; }
}
