/* Contact page */

.c-hero {
  position: relative;
  overflow: hidden;
  padding-block: 1.75rem clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  background:
    radial-gradient(circle at 1px 1px, rgb(21 34 60 / 0.12) 1px, transparent 0) 0 0 / 24px 24px,
    var(--white);
  border-bottom: 2px solid var(--ink);
}
.c-hero .wrap { position: relative; z-index: 1; }
.tri--c1 { --size: 260px; --tri: var(--amber); right: -60px; top: 40px; transform: rotate(18deg); }
.tri--c2 { --size: 120px; --tri: var(--teal); right: 180px; top: 230px; transform: rotate(200deg); }
@media (max-width: 899px) {
  .tri--c1 { --size: 160px; right: -70px; top: 10px; opacity: 0.85; }
  .tri--c2 { display: none; }
}
.c-hero h1 {
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 13ch;
}
.c-hero__lede { margin-top: 1.5rem; font-size: var(--text-lg); color: var(--ink-2); max-width: 50ch; }

.quick { display: grid; gap: 1rem; margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
@media (min-width: 800px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  height: 100%;
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.quick__card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--c); }
.quick__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--c);
  color: var(--cf, var(--ink));
}
.quick__icon svg { width: 22px; height: 22px; }
.quick__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.quick__card strong { font: 700 var(--text-base) / 1.3 var(--font-display); overflow-wrap: anywhere; }

/* Form + offices */
.c-grid { display: grid; gap: 2rem; align-items: start; }
.c-grid > * { min-width: 0; }
@media (min-width: 1040px) { .c-grid { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; } }

.c-form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--red);
  scroll-margin-top: 100px;
}
.c-form-card h2 { font-size: var(--text-xl); margin-top: 1rem; }
.c-form { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label, .field legend { font-size: var(--text-sm); font-weight: 700; }
.req { color: var(--red-ink); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 var(--text-base) / 1.4 var(--font-body);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); box-shadow: 4px 4px 0 var(--amber); }
.field input[aria-invalid="true"] { border-color: var(--red-ink); }
.field__error { min-height: 0; font-size: var(--text-xs); font-weight: 600; color: var(--red-ink); }
.field__error:empty { display: none; }

.interests { border: 0; padding: 0; margin: 0; }
.interests legend { padding: 0; margin-bottom: 0.6rem; }
.interests__hint { margin-left: 0.35rem; font-size: var(--text-xs); font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-opt span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}
.chip-opt span::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--c);
  transform: rotate(45deg);
}
.chip-opt:hover span { border-color: var(--ink); color: var(--ink); }
.chip-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip-opt input:checked + span::before { background: var(--amber); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.c-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 0.5rem; }
.c-form__note { font-size: var(--text-xs); color: var(--ink-3); max-width: 34ch; }
.c-form__status { font-size: var(--text-sm); font-weight: 600; }
/* Stays in the accessibility tree while empty so screen readers announce the first message */
.c-form__status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.c-form__status.is-ok { padding: 0.9rem 1rem; border-radius: 12px; background: var(--teal-soft); border: 2px solid var(--teal); }
.c-form__status.is-pending { color: var(--ink-2); }
.c-form__status.is-error { padding: 0.9rem 1rem; border-radius: 12px; background: var(--red-soft); border: 2px solid var(--red); }

/* Spam trap: kept out of sight and out of the tab order */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.c-form { position: relative; }
.c-form [data-submit][aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* Result notices for plain (no-JavaScript) posts, shown via the URL fragment */
.c-notice {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 2px solid var(--c);
  background: var(--cs);
  font-size: var(--text-sm);
  scroll-margin-top: 120px;
}
.c-notice:target { display: block; }
.c-notice--ok { --c: var(--teal); --cs: var(--teal-soft); }
.c-notice--error { --c: var(--red); --cs: var(--red-soft); }

.c-offices { display: grid; gap: 1rem; }
.c-office {
  padding: 1.6rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  font-size: var(--text-sm);
}
.c-office--hq { background: var(--navy); color: var(--on-navy); }
.c-office.c-office--hq address,
.c-office.c-office--hq a { color: var(--on-navy); }
.c-office--hq :focus-visible { outline-color: var(--amber); }
.c-office__flag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--c);
  color: var(--cf, var(--ink));
  font: 700 var(--text-xs) var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.c-office h2 { font-size: var(--text-xl); margin-top: 0.85rem; }
.c-office address { font-style: normal; margin-top: 0.75rem; color: var(--ink-2); line-height: 1.55; }
.c-office ul { display: grid; gap: 0.35rem; margin-top: 1rem; }
.c-office ul a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.c-office ul a:hover { text-decoration: underline; }
.c-office ul svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; }
.c-office .link-arrow { margin-top: 1.1rem; }

.c-unsub { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.c-unsub__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.5rem;
  border-block: 2px dashed var(--line);
}
.c-unsub h2 { font-size: var(--text-lg); letter-spacing: -0.02em; }
.c-unsub p { margin-top: 0.35rem; color: var(--ink-2); font-size: var(--text-sm); max-width: 60ch; }

@media (max-width: 420px) {
  .quick__card { padding: 1.1rem; column-gap: 0.85rem; }
  .quick__card strong { font-size: 0.86rem; }
}
