/* Contact page only (proposal docs/axiom/pages/proposals/contact.md, 2026-10-22): [01] the enquiry form, [02] the three
   steps, [03] the owner's details block, [04] the shared dark panel. Every font-size is one of the owner's type-scale
   tokens (--t-*, site.css); the colours are the shared tokens, plus the one error red the proposal names. */

/* ---------- [01] Start a conversation: words and selector left, the form in a white outlined card right ---------- */
.enq {   /* the proposal's error red is the shared --err token (site.css, 6.6:1 on white) */
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; align-items: start;
}
.enq__intro { grid-column: 1 / 6; }
.enq__intro > .tag { margin-bottom: clamp(24px, 3vw, 40px); }
.enq__intro > .lead { margin-top: 20px; }
.enq__opts { margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; border: 0; min-width: 0; }
.enq__opts > legend { padding: 0; font-weight: 600; font-size: var(--t-body); line-height: 1.4; }
/* the two topics: native radios (arrow keys, Space, the group announced under its legend) drawn as the site's pills (site.css
   .pill: 44px, the 3:1 edge, hover, and the checked radio's label pressed in ink with a tick); Body size here */
.enq__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.enq__pills > input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.enq__pills > .pill { font-size: var(--t-body); cursor: pointer; }
.enq__pills > input:focus-visible + .pill { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.enq__hint { margin-top: 14px; color: var(--ink-2); max-width: 65ch; }

.enq__form { grid-column: 7 / 13; gap: clamp(20px, 2vw, 28px); padding: clamp(24px, 2.6vw, 40px); }
.field__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 28px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-weight: 600; font-size: var(--t-body); line-height: 1.4; }
.field__req { font-weight: 400; color: var(--ink-2); }
.field > input, .field > textarea {
  width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid var(--line-3); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: var(--t-body); line-height: 1.5; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s var(--ease);
}
.field > textarea { min-height: 168px; resize: vertical; }
.field > input:hover, .field > textarea:hover { border-color: var(--ink-2); }
.field > input:focus-visible, .field > textarea:focus-visible { border-color: var(--ink); outline: 2px solid var(--gold-ink); outline-offset: 2px; border-radius: var(--r-sm); }
.field > [aria-invalid="true"] { border-color: var(--err); }
.field__help { color: var(--ink-2); }
.field__err { color: var(--err); font-weight: 600; }
/* the error summary (role=alert, takes focus on submit): a count and one link per field */
.enq__summary { padding: 16px 20px; border: 1px solid var(--err); border-radius: var(--r-sm); }
.enq__summary > p { font-weight: 600; }
.enq__summary ul { margin-top: 6px; }
.enq__summary li + li { margin-top: 4px; }
.enq__summary a { color: var(--err); text-decoration: underline; text-underline-offset: 3px; }
.enq__summary a:hover { color: var(--ink); }
.enq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.enq__actions > .btn { flex: none; }
.enq__note { flex: 1 1 260px; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); max-width: 65ch; }
.enq__note a, .enq__status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.enq__status { padding: 16px 20px; border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--panel); }
.enq__status a { font-weight: 600; }

/* ---------- [02] What happens next: three numbered cards on the shared grid ---------- */
.steps .card { gap: 12px; }
.steps .card > .steps__n { font-size: var(--t-small); color: var(--ink-num); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.steps .card > .h3 { margin-top: clamp(16px, 2vw, 32px); }
.steps .card a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- [03] Contact details: dark card left, the ruled list right ---------- */
.contact__tag { margin-bottom: clamp(32px, 4vw, 56px); }
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; align-items: start; }
.contact__card { grid-column: 1 / 7; gap: 20px; padding: clamp(28px, 3vw, 48px); }
/* the address: H3 (36/30/24) so it stays one line in the card from a tablet up, H4 on a phone; at 320 the shared
   .alink--xl overflow-wrap: anywhere lets it break instead of running out of the card */
.contact__mail .alink { font-size: var(--t-h3); color: var(--on-dark); }
.contact__card .card__foot { padding-top: 20px; }
.details { grid-column: 8 / 13; }
.details > li { padding-block: 20px; border-top: 1px solid var(--line); }
.details > li:last-child { border-bottom: 1px solid var(--line); }
.details h3 { font-size: var(--t-h5); letter-spacing: -0.025em; }
.details p { margin-top: 6px; color: var(--ink-2); }
.details__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.details__links a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.details__links a:hover { border-color: var(--ink); }


@media (max-width: 1023px) {
  .enq__intro, .enq__form, .contact__card, .details { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .field__row { grid-template-columns: 1fr; }
  .contact__mail .alink { font-size: var(--t-h4); }
}
@media (max-width: 479px) {
  .enq__actions > .btn { flex: 1 1 100%; }
}
