/*
 * Contact page — message form specific styles.
 * Uses tokens from styles.css. Page-specific rules namespaced with
 * .contact-* to avoid collisions with the home page's #contact section
 * (which uses .contact-card).
 *
 * Page padding (.single-page) and H1 (.page-h1) are system-level classes
 * defined in styles.css.
 *
 * Form anatomy (.fields, .field, .field-label, .field--invalid,
 * .field-error) is canonical and lives in styles.css. Contact scopes
 * only the form wrapper here.
 */

.contact-deck { margin-bottom: 56px; }

.contact-form { max-width: 720px; }
.contact-form .fields { margin-bottom: 32px; }

/* Inline submission error region. Replaces native alert() — appears
   below the submit button when the POST fails. role="alert" carries an
   implicit assertive live-region so SR users hear the message. */
.contact-error {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--paper-2);
  border-left: 2px solid var(--copper);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.contact-error p { margin: 0; }
.contact-error p + p { margin-top: 6px; }
.contact-error-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px !important;
  font-family: var(--font-body);
  font-size: 14px;
}
.contact-error-actions a {
  color: var(--copper);
  border-bottom: 1px solid var(--copper-tint-mid);
}
.contact-error-actions a:hover { border-color: var(--copper); }
.contact-error-or { color: var(--mid); }

/* Confirmation state — replaces the form after a successful submission.
   Visual treatment mirrors the schedule page's .sched-confirmed pattern
   for consistency between the two engagement paths. */
.contact-confirmed {
  max-width: var(--w-body);
}
.contact-confirmed-h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--ink);
}
.contact-confirmed-h2 i { color: var(--copper); font-style: italic; }
.contact-confirmed-deck {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--mid);
  margin: 0 0 32px;
}
.contact-confirmed-deck #contact-confirmed-email {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}
