/* Contact page: intro column on the left, form card on the right. */
.contact { padding-top: 80px; padding-bottom: 112px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}
.contact__intro h1 { margin-bottom: 20px; }
.contact__intro .lead { max-width: 440px; }

.contact-card {
  background: var(--surface-soft);
  border-radius: var(--radius-hero);
  padding: clamp(24px, 5vw, 40px);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--body);
}
.field input,
.field textarea {
  width: 100%;
  font-size: var(--fs-body);
  color: var(--ink);
  padding: 13px 16px;
  border-radius: var(--radius-input);
  background: var(--white);
  border: 1px solid var(--input-line);
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--error); }
.field__error {
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}

.contact-form__submit { align-self: flex-start; }

.form-status:empty { display: none; }
.form-status {
  margin-top: -6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}
.form-status a { color: var(--error); text-decoration: underline; }

.contact-form__note {
  font-size: 13px;
  color: var(--faint);
}
.contact-form__note a { color: var(--muted); text-decoration: underline; }

/* Replaces the form after a successful send. */
.success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}
.success__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--pastel-green);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
}
.success h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.success h2:focus { outline: none; }
.success p { color: var(--body); }
.success a { margin-top: 8px; color: var(--blue); font-weight: 600; }
.success a:hover { color: var(--blue-hover); }
