/* ==========================================================================
   Quests V4: contact page only
   Foundation lives in css/site.css. This file holds the contact-form field
   styling and the post-submit success state. The section wrapping the
   contact grid carries .cat-social, so --cat-soft/--cat-text here resolve
   to the page's assigned category in both modes.
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--s-24);
  align-items: start;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-32); }
}

.field { display: flex; flex-direction: column; gap: var(--s-8); }

.field label {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-2);
}

.field input,
.field textarea {
  font-family: var(--font-ui);
  font-size: 1rem;
  min-height: 44px;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 16px;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:hover,
.field textarea:hover { border-color: var(--edge); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }

.contact-success { text-align: center; padding-block: var(--s-16); }
.contact-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-16);
  border-radius: 50%;
  background: var(--cat-soft);
  color: var(--cat-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
