/* ============================================================
 * Contact — The Gate Review
 * The inquiry as one narrow, centred column: a short navy band for the
 * title, then each question directly above its fields.
 * ============================================================ */

.page-contact {
  --ct-error: #B3261E;   /* the one state colour: field errors */
  --ct-col: 44rem;       /* the form column, shared by the hero and the routes */
  background: var(--gr-paper);
  color: var(--gr-ink);
  font-family: var(--gr-sans);
}
.page-contact main { overflow-x: clip; }
.page-contact :where(h1, h2, p, fieldset, legend) { margin: 0; padding: 0; }
.page-contact fieldset { border: 0; min-width: 0; }

/* ============ Hero ============ */
.inquiry-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gr-navy);
  color: var(--gr-on-navy);
  padding: clamp(2rem, 5vh, 3rem) var(--gr-gutter);
}
/* the floating header sits over the hero, so the hero starts under it */
.js .inquiry-hero { padding-top: calc(77px + clamp(2rem, 5vh, 3rem)); }
.inquiry-hero__swirl {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: clamp(-100px, -4vw, -40px);
  aspect-ratio: 1;
  background: linear-gradient(225deg, var(--gr-navy-3) 0%, var(--gr-navy-2) 70%);
  -webkit-mask: url("../images/brand/bor-swirl-white.svg") center / contain no-repeat;
          mask: url("../images/brand/bor-swirl-white.svg") center / contain no-repeat;
  pointer-events: none;
}
.inquiry-hero__inner { max-width: var(--ct-col); margin: 0 auto; }
.inquiry-hero__title {
  font-family: var(--gr-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
  color: var(--gr-on-navy);
  text-wrap: balance;
  max-width: 16ch;
}

/* notices on navy: success and the tool result hand-off */
.notice {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gr-line);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gr-on-navy);
}
.notice::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; background: var(--gr-aqua); }
.notice--success { background: var(--gr-aqua); border-color: var(--gr-aqua); color: var(--gr-navy); font-weight: 600; }
.notice--success::before { background: var(--gr-navy); }
/* tool hand-off: a quiet one-line note under the title, not a boxed alert */
.notice--attached {
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0 0.55rem 0.9rem;
  border: 0;
  border-left: 2px solid var(--gr-aqua);
  color: var(--gr-on-navy-2);
}
.notice--attached::before { display: none; }
.notice--attached strong { color: var(--gr-on-navy); font-weight: 600; }

/* ============ The form ============ */
.interview { padding: clamp(2.25rem, 5vw, 3.5rem) var(--gr-gutter) clamp(3.5rem, 7vw, 5rem); }
.interview__form { max-width: var(--ct-col); margin: 0 auto; }

.ask { display: grid; gap: 0.6rem; padding: 1.4rem 0; }
.ask:not(.ask + .ask) { padding-top: 0; }
.ask + .ask { border-top: 1px solid var(--gr-rule); }
/* a fieldset's legend can't take part in grid or gap, so it floats above the content */
fieldset.ask { display: block; }
fieldset.ask > .ask__q { float: left; width: 100%; margin-bottom: 0.6rem; }
fieldset.ask > .ask__q + * { clear: both; }
fieldset.ask > .field__help { margin-bottom: 0.75rem; }

.ask__q {
  display: block;
  font-family: var(--gr-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--gr-navy);
}

/* ---------- Text fields and dropdowns ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label:not(.ask__q) { font-size: 0.88rem; font-weight: 600; color: var(--gr-ink); }
.field__req { color: var(--gr-navy-2); }
.field__opt { font-weight: 400; color: var(--gr-ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(16, 48, 74, 0.32);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--gr-ink);
  transition: border-color 180ms var(--gr-ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23032F4F' stroke-width='1.6'/%3E%3C/svg%3E") right 0.9rem center / 16px 16px no-repeat;
  cursor: pointer;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input::placeholder { color: #587286; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--gr-navy-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gr-navy-2); outline-offset: 0; border-color: var(--gr-navy-2); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--ct-error); }
.field__error { font-size: 0.84rem; font-weight: 600; color: var(--ct-error); }
.field__help { font-size: 0.92rem; line-height: 1.55; color: var(--gr-ink-2); }
.field__note { font-size: 0.84rem; line-height: 1.55; color: var(--gr-ink-2); }

/* ---------- Checkboxes: a plain list, two columns on desktop ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1.5rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--gr-ink);
  cursor: pointer;
}
.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--gr-navy-2);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  transition: background-color 180ms var(--gr-ease);
}
.check:hover input { border-color: var(--gr-navy); }
.check input:focus-visible { outline: 2px solid var(--gr-navy-2); outline-offset: 2px; }
.check input:checked {
  border-color: var(--gr-navy-2);
  background: var(--gr-navy-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.check:has(input:checked) span { color: var(--gr-navy); font-weight: 600; }

/* ---------- Send ---------- */
.ask--send { gap: 1rem; padding-bottom: 0; }
/* Optional marketing opt-in: reads as fine print, and doesn't turn bold when ticked */
.check--consent { font-size: 0.88rem; color: var(--gr-ink-2); }
.check--consent:has(input:checked) span { color: var(--gr-ink); font-weight: 400; }
.interview__send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--gr-navy-2);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 220ms var(--gr-ease);
}
.interview__send svg { transition: transform 320ms var(--gr-ease); }
.interview__send:hover { background: var(--gr-navy); }
.interview__send:hover svg { transform: translateX(4px); }
.interview__mail { font-size: 0.95rem; color: var(--gr-ink-2); }
.interview__mail a { font-weight: 700; color: var(--gr-navy-2); text-decoration: underline; text-underline-offset: 4px; }
.interview__mail a:hover { color: var(--gr-navy); }

/* ============ Other routes in ============ */
.routes { background: #fff; padding: clamp(3rem, 6vw, 4.5rem) var(--gr-gutter); }
.routes__inner {
  position: relative;
  max-width: var(--ct-col);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--gr-navy);
}
.routes__inner::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--gr-navy); }
.routes h2 {
  margin-bottom: 1rem;
  font-family: var(--gr-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  color: var(--gr-navy);
}
.routes__start p { font-size: 1rem; line-height: 1.7; color: var(--gr-ink); }
.routes__start p + p { margin-top: 0.75rem; }
.routes__start p a { color: var(--gr-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.routes__start p a:hover { text-decoration-thickness: 2px; }
.routes__links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 1.5rem; }
.routes__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gr-navy-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.routes__links a svg { transition: transform 320ms var(--gr-ease); }
.routes__links a:hover { color: var(--gr-navy); }
.routes__links a:hover svg { transform: translateX(4px); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .inquiry-hero__swirl {
    top: -6vw;
    bottom: auto;
    right: -46vw;
    width: 118vw;
  }
}

@media (max-width: 600px) {
  .fields,
  .checks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .check input,
  .interview__send svg,
  .routes__links a svg { transition: none; }
}
