/* /contact, the one page whose whole job is making it easy to get in touch.
   Lengths are rem on the same 1920 grid as the rest of the site (design px / 16).
   Not a clone of anything on Wix, so the numbers are chosen rather than measured.

   The field styling below is this page's own. `.field` is defined separately in
   home.css, agentic.css and autobricks.css already, because the home form's
   pill-shaped inputs with the warm brown border are what Wix served and the
   newer pages are not that. Consolidating the three into components.css is
   worth doing, but it changes a pixel-guarded page and so deserves its own
   commit and its own diff run rather than riding along with a new page. */

/* ------------------------------------------------------------------ shared */

.ct-eyebrow {
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ct-h2 { font-size: var(--fs-h2-sm); }
.ct-note { margin-top: 0.75rem; font-size: var(--fs-sm); color: #5c5c5c; }

/* -------------------------------------------------------------------- hero */

.ct-hero {
  padding: 7.5rem var(--gutter) 6.5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.ct-hero__title {
  margin-top: 1.5rem;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}
.ct-hero__lead {
  max-width: 52rem;                              /* 832 */
  margin: 1.75rem auto 0;
  font-size: var(--fs-sm);
  color: rgb(255 252 248 / 82%);
}

/* -------------------------------------------------------------------- body */

.ct-main { padding: 6rem var(--gutter); background: var(--paper); }

/* The form carries the weight, so it gets the wider track. */
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 5rem;                                     /* 80 */
  align-items: start;
}

/* -------------------------------------------------------------------- form */

.ct-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.ct-form .field--wide,
.ct-form .form-error,
.ct-form .ct-form__submit { grid-column: 1 / -1; }

.ct-form .field > label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
}
.ct-form input,
.ct-form select,
.ct-form textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9b6b2;
  border-radius: 0.375rem;
}
.ct-form textarea { resize: vertical; }
/* The native arrow disappears on some platforms once a background is set, so the
   control keeps its own padding for one rather than drawing a replacement. */
.ct-form select { padding-right: 2rem; }
.ct-form input:focus-visible,
.ct-form select:focus-visible,
.ct-form textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
.ct-form [aria-invalid='true'] { border-color: #df3131; }

.ct-form__submit { justify-self: start; min-width: 14rem; }

/* -------------------------------------------------------------------- aside */

.ct-side { display: grid; gap: 1.5rem; }

.ct-card {
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid #e6e3df;
  border-radius: 0.375rem;
}
.ct-card__title { margin-top: 0.75rem; font-size: var(--fs-item); }
.ct-card p { margin-top: 0.75rem; font-size: var(--fs-sm); }
.ct-card__cta { margin-top: 1.5rem; }

.ct-steps { margin-top: 1.25rem; counter-reset: step; }
.ct-steps li {
  position: relative;
  padding-left: 2.25rem;                         /* 36 */
  margin-top: 1rem;
  font-size: var(--fs-sm);
}
.ct-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.625rem;                               /* 26 */
  height: 1.625rem;
  font-size: 0.875rem;             /* 14 */
  background: var(--lime);
  border-radius: 50%;
}

.ct-links { margin-top: 1rem; }
.ct-links li { margin-top: 0.625rem; font-size: var(--fs-sm); }
.ct-links a { text-decoration: underline; text-underline-offset: 0.2em; }
.ct-links a:hover { opacity: 0.7; }

/* --------------------------------------------------------- tablet + mobile */

@media (max-width: 999px) {
  .ct-hero { padding: 4rem var(--gutter); }
  .ct-main { padding: 4rem var(--gutter); }
  .ct-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 749px) {
  .ct-form { grid-template-columns: 1fr; margin-top: 1.75rem; }
  .ct-form__submit { width: 100%; }

  /* The mobile scale is tuned for body copy, and at this width --fs-h2-sm and
     --fs-item both land within a pixel of it, so a heading set in either stops
     looking like one. Same reason components.css overrides .pathway__name here. */
  .ct-h2 { font-size: 1.375rem; }          /* 22 */
  .ct-card__title { font-size: 1.125rem; } /* 18 */
  .ct-eyebrow { font-size: 0.8125rem; }    /* 13, a label, not body text */
}

/* The interest field is a checklist: a school asking about two programmes should be able to
   say so, and the endpoint has always taken `interest` as an array. */
.ct-form .field--checks { border: 0; padding: 0; margin: 0; }
.ct-form .field--checks legend { padding: 0; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  margin-top: 0.75rem;
}
.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.4375rem 0;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.check-grid input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2em;
  flex: none;
  accent-color: var(--ink);
}
@media (max-width: 749px) { .check-grid { grid-template-columns: 1fr; } }
