/* =============================================================================
   Contact — board 9, and the form states on board 11 (#62).

   Every label sits ABOVE its field. A placeholder is only an example and is
   never the label: it disappears the moment someone types, which leaves them
   guessing what a half-filled field was for. Fields are 64px on desktop and
   56px on phone, raised navy with a #B9B6C6 border (9.6:1 on raised), so the
   field edge clears 3:1 for non-text contrast with room to spare.

   Errors are #FF8F8F (--color-error, 8.71:1 on raised), always with words and
   a bar, never colour alone.
   ========================================================================== */

.ntc-sec--contact .ntc-sec__inner { padding-block: 80px; }

.ntc-contact {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 464px);
  justify-content: space-between;
  gap: 96px;
  width: 100%;
  text-align: left;
}

.ntc-contact__main { display: flex; flex-direction: column; gap: 24px; }

/* --- The form --------------------------------------------------------------- */
.ntc-cform { display: flex; flex-direction: column; gap: 24px; margin: 0; }

html .ntc-cform__title,
html .ntc-formcard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: var(--font-weight-normal);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-white);
}

.ntc-cform__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.ntc-field { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }

.ntc-field__label {
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
}

html .ntc-field__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background: var(--color-ink-raised);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
}

html .ntc-field__input--area { min-height: 180px; resize: vertical; }
.ntc-field__input::placeholder { color: var(--color-text-muted); opacity: 1; }

html .ntc-field__input:focus-visible {
  outline: 3px solid var(--color-accent-base);
  outline-offset: 2px;
  border-color: var(--color-accent-base);
}

html .ntc-field.is-invalid .ntc-field__input { border: 2px solid var(--color-error); }

.ntc-field__error {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--color-error);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.ntc-field__error::before {
  content: "";
  flex: 0 0 6px;
  background: var(--color-error);
}

/* The topic chips are real radios wearing the chip skin. On navy the checked
   one is gold with a navy label, the same as a selected filter chip. */
.ntc-cform__interest .ntc-chiprow--radio { gap: 12px; }
.ntc-cform .ntc-chiprow .ntc-chip { min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; font-size: 16px; cursor: pointer; }
.ntc-cform .ntc-chiprow__radio:checked + .ntc-chip {
  border-color: var(--color-accent-base);
  background: var(--color-accent-base);
  color: var(--color-ink);
}
.ntc-cform .ntc-chiprow__radio:focus-visible + .ntc-chip { outline: 3px solid var(--color-accent-base); outline-offset: 4px; }

/* The honeypot: off-screen, not display:none, so a bot still fills it. */
.ntc-cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ntc-cform__send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ntc-cform__wait { margin: 0; color: var(--color-text); font-size: 16px; }

/* Sending: contact.js locks the button and swaps its label. Pressed gold, so
   it reads as busy, not broken; the navy label is still 8.63:1. */
html .ntc-btn[aria-disabled="true"] { background: var(--color-accent-press); cursor: progress; }

/* --- The error summary, and the sent and failed cards ----------------------- */
.ntc-cform__summary {
  padding: 20px 24px;
  border-left: 6px solid var(--color-error);
  background: var(--color-ink-raised);
  color: var(--color-white);
}
.ntc-cform__summary p { margin: 0 0 8px; font-weight: 600; }
.ntc-cform__summary ul { margin: 0; padding-left: 20px; }
html .ntc-cform__summary a { color: var(--color-error); }

.ntc-formcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 2px solid var(--color-accent-base);
  background: var(--color-ink-raised);
}
.ntc-formcard p { margin: 0; }
.ntc-formcard--failed { border-color: var(--color-error); }
html .ntc-formcard--sent .ntc-formcard__title { color: var(--color-accent-base); }
.ntc-formcard__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ntc-formcard:focus { outline: none; }
.ntc-cform__summary:focus { outline: none; }

/* --- The details column ---------------------------------------------------- */
.ntc-cdetails { display: flex; flex-direction: column; gap: 40px; margin: 0; }
.ntc-cdetails > div { display: flex; flex-direction: column; gap: 4px; }
.ntc-cdetails dt { margin: 0; }
.ntc-cdetails dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  color: var(--color-white);
  overflow-wrap: anywhere;
}
/* 44px tall tap targets (#87): the phone and email links measured 36px and
   the social links 22px at 390. */
html .ntc-cdetails dd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-white); text-decoration: underline; text-decoration-color: var(--color-accent-base); text-underline-offset: 6px; }
html .ntc-cdetails dd a:hover { color: var(--color-accent-base); }
.ntc-cdetails__follow dd { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 24px; }

/* --- Find us -------------------------------------------------------------- */
.ntc-sec--findus { position: relative; overflow: hidden; isolation: isolate; }
.ntc-findus__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A scrim from the left so the cream type holds over any part of the picture. */
.ntc-sec--findus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(6 3 22 / 0.92) 0%, rgb(6 3 22 / 0.75) 55%, rgb(6 3 22 / 0.45) 100%);
}
.ntc-sec--findus .ntc-sec__inner { padding-block: 160px; }
.ntc-findus { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.ntc-findus > * { margin: 0; }
html .ntc-findus__title {
  max-width: 1280px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: var(--font-weight-normal);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--color-white);
}
.ntc-findus__note { max-width: 640px; color: var(--color-white); }
.ntc-findus__credit { font-size: 14px; color: var(--color-text); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1199px) {
  .ntc-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 64px; }
  html .ntc-findus__title { font-size: 120px; }
}

@media (max-width: 1023px) {
  .ntc-contact { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  html .ntc-findus__title { font-size: 96px; }
  .ntc-sec--findus .ntc-sec__inner { padding-block: 120px; }
}

@media (max-width: 767px) {
  .ntc-sec--contact .ntc-sec__inner { padding-block: 40px; }
  .ntc-contact__main, .ntc-cform { gap: 20px; }
  html .ntc-cform__title, html .ntc-formcard__title { font-size: 40px; }
  .ntc-cform__pair { grid-template-columns: minmax(0, 1fr); }
  html .ntc-field__input { min-height: 56px; font-size: 18px; }
  html .ntc-field__input--area { min-height: 160px; }
  .ntc-cform .ntc-chiprow .ntc-chip { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .ntc-formcard { padding: 24px; }

  /* Headings centre on phone; the form and the details stay left-aligned. */
  .ntc-cdetails { gap: 24px; text-align: center; }
  .ntc-cdetails__follow dd { justify-content: center; }
  .ntc-cdetails dd { font-size: 24px; }
  .ntc-cdetails__follow dd { font-size: 20px; }

  .ntc-sec--findus .ntc-sec__inner { padding-block: 80px; }
  .ntc-findus { align-items: center; gap: 20px; text-align: center; }
  html .ntc-findus__title { font-size: 56px; }
  .ntc-sec--findus::before { background: rgb(6 3 22 / 0.8); }
}

/* contact.js scrolls the result into view; clear the fixed compact bar. */
[data-ntc-focus] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px); }
