/* ============================================================
   B4B GLOBAL EDGE · Get in Touch (v2)
   Layers on top of edge.css + homepage-v2.css (secnav, .r reveals) +
   case-study-v2.css (.cs-sec/.cs-head rhythm). Reuses edge.css's
   existing .contact-grid/.contact-form/.contact-aside/.field/
   .checkline components (built for .sec-cream) rather than
   reinventing them, since the brief keeps the same fields and tone,
   just simplified. Only loaded by contact-v2.html.
   ============================================================ */

/* ============================================================
   1 · HERO · plain, light, centred — this page is short and direct,
   not a story, so it gets the same simple treatment as Find Your
   Trust Gap's copy column rather than a two-column product hero.
   ============================================================ */
.ct-hero{background:var(--cream); color:var(--ink-l); padding:clamp(8rem,16vh,11rem) 0 clamp(3.5rem,7vw,5rem); text-align:center}
/* h1's own base rule (edge.css) caps it at max-width:16ch but never
   centers that narrower box, so on a centred hero like this one it
   sits flush against the wrap's left edge instead of in the middle */
.ct-hero h1{margin-left:auto; margin-right:auto}
.ct-hero .cs-lede{color:var(--mut-l)}

/* edge.css's header assumes a dark hero sits behind its transparent
   (unscrolled) state, hard-coding the nav links, underline, burger
   and "EDGE" wordmark half of the logo to white. This hero is
   light, so — same fix as find-your-trust-gap-v2.css — dark-ink
   overrides for the unscrolled state, and the dark-logo swap. */
.hdr:not(.scrolled) .nav-links a{color:var(--ink-l)}
.hdr:not(.scrolled) .nav-links a::after{background:var(--ink-l)}
.hdr:not(.scrolled) .burger{border-color:var(--line-l)}
.hdr:not(.scrolled) .burger span{background:var(--ink-l)}
.hdr .logo{position:relative; display:flex; align-items:center; gap:.65rem}
.hdr .logo .mark-dark{position:absolute; top:0; left:0; opacity:0; pointer-events:none}
.hdr:not(.scrolled) .logo .mark:not(.mark-dark){opacity:0}
.hdr:not(.scrolled) .logo .mark-dark{opacity:1}

/* ============================================================
   2 · CONTACT · a full-bleed 50/50 split rather than the old
   two-column-within-.wrap layout: the form sits on a white panel,
   the contact details sit on the same plain white beside it (this
   was a solid dark green "sec-dark" panel, then a coloured teal-wash
   block; both read as an odd dark/heavy slab next to the plain form,
   so it's now just white like the rest of the page, with a hairline
   border as the only divider between the two halves).
   ============================================================ */
.ct-split{
  width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw;
  display:grid; grid-template-columns:1fr 1fr;
}
.ct-split-form, .ct-split-info{display:flex; align-items:center; background:var(--cream)}
.ct-split-inner{width:100%; max-width:34rem; margin-inline:auto; padding:clamp(4rem,8vw,6rem) var(--pad)}
.ct-split-info{color:var(--ink-l); border-left:1px solid var(--line-l)}
.ct-split-info .contact-aside .c-block h4{color:var(--haze)}
.ct-split-info .contact-aside .c-block a, .ct-split-info .contact-aside .c-block p{color:var(--ink-l)}
.ct-split-info .contact-aside .c-block a:hover{color:var(--teal)}

@media (max-width:900px){
  .ct-split-info{border-left:none; border-top:1px solid var(--line-l)}
}

/* each field's own outline, in the brand teal rather than edge.css's
   default hairline colour (overrides both the base and the
   .sec-cream light-section colour) */
.ct-split-form .field input,
.ct-split-form .field textarea{border:1px solid var(--teal)}
.ct-split-form .field input:focus,
.ct-split-form .field textarea:focus{border-color:var(--teal)}

.ct-success{display:none; text-align:center}
.ct-success.is-active{display:block}
.ct-success .mark{
  width:3.2rem; height:3.2rem; border-radius:50%; margin:0 auto 1.4rem; background:var(--teal);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}
.ct-success h3{font-size:var(--fs-h3); color:var(--ink-l)}
.ct-success p{margin-top:.6rem}

@media (max-width:900px){
  .ct-split{grid-template-columns:1fr}
}

/* ============================================================
   3 · NEWSLETTER · lighter than the old bordered .news card: no
   box, no background, just centred text and an inline field, the
   same restrained treatment as the "Why apply" marks elsewhere
   ============================================================ */
.ct-nl{max-width:36rem; margin:0 auto; text-align:center}
.ct-nl h3{margin-top:.8rem}
.ct-nl p{margin-top:.7rem; color:var(--mut-l)}
.ct-nl-form{display:flex; gap:.7rem; margin-top:1.6rem; flex-wrap:wrap; justify-content:center}
.ct-nl-form input{
  flex:1 1 16rem; max-width:20rem; padding:.85rem 1.1rem; border-radius:8px;
  border:1px solid var(--line-l); background:#fff; color:var(--ink-l);
  font-family:var(--body); font-size:var(--fs-copy);
}
.ct-nl-form input::placeholder{color:rgba(20,42,36,.4)}
.ct-nl-form input:focus{outline:none; border-color:var(--teal)}
.ct-nl-success{display:none; margin-top:1.6rem; color:var(--mut-l)}
.ct-nl-success.is-active{display:block}

@media (max-width:640px){
  .ct-nl-form{flex-direction:column; align-items:stretch}
  .ct-nl-form input{max-width:none}
}

/* venue enquiries land on #contact: clear the fixed header */
#contact{scroll-margin-top:88px}

/* the forms hide on success via the hidden attribute; make sure no display rule overrides it */
.contact-form[hidden], .ct-nl-form[hidden]{display:none !important}
