/* Group B — /contact/ (and the base for /assessment/). Builds on the shared form components. */

/* the tall picture: label at the top, the line of type and its lead at the foot */
.page-contact .phero--split .phero__frame{padding-bottom:calc(var(--in) + 6px)}
.ct-scrim{background:linear-gradient(to top,rgba(var(--scrim),.94) 0%,rgba(var(--scrim),.78) 30%,rgba(var(--scrim),.2) 58%,rgba(var(--scrim),0) 74%,rgba(var(--scrim),.5) 100%)}
.ct-say{position:relative;z-index:2}
.ct-say .phero__h1{margin-left:-.03em}
.ct-say .lead{margin-top:24px;max-width:25rem;color:var(--on)}

/* the working panel */
.page-contact .phero__panel{padding-bottom:var(--sec-s);max-width:860px}
.page-contact .phero__panel>.crumbs{margin-bottom:clamp(28px,4vw,56px)}
.ct-h{margin-bottom:14px}
.ct-plan{margin-top:28px}
.ct-form{margin-top:36px}
/* required is the default here; the one optional field says so in words */
.ct-form .textarea{min-height:168px}
.ct-form .check span{color:var(--mu)}
.ct-form .field.is-bad .check input{box-shadow:inset 0 0 0 1.5px var(--err)}
/* the tick takes the ink of the edition (the shared .check draws the dark tick in both, so it vanishes on the light page) */
.page-contact .check input[type=checkbox]:checked{background-image:var(--i-tick)}
.ct-errs{margin-top:8px;list-style:none;padding:0}
.ct-errs li{padding:3px 0}
.ct-errs a{color:var(--tx);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--err)}
.ct-errs a:hover{text-decoration-color:currentColor}
.form-status[data-form-summary]:focus{outline:2px solid var(--err);outline-offset:3px}
.ct-send{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:10px}
.pill.is-busy{cursor:progress}
.pill.is-busy .arr{width:16px;height:16px;border:1.5px solid rgba(var(--on-rgb),.35);border-top-color:var(--on);border-radius:50%}
.pill.is-busy .arr use{display:none}
.flat .pill.is-busy .arr{border-color:var(--on);border-radius:0;width:8px;height:8px;border-width:0;background:var(--on)}

/* success */
.ct-done{margin-top:36px;padding:clamp(26px,3.4vw,44px);border-radius:var(--r-l);background:linear-gradient(180deg,var(--panel-a),var(--panel-b));box-shadow:inset 0 0 0 1px var(--line2)}
.ct-done:focus{outline:2px solid var(--mint);outline-offset:3px}
.ct-done .label{margin-bottom:26px}
.ct-done .label b{color:var(--mint)}
.ct-done .h3{font-size:clamp(1.75rem,2.8vw,2.5rem)}
.ct-done .body{margin:18px 0 0;max-width:46ch}
.ct-done .body b{color:var(--tx);font-weight:500;overflow-wrap:anywhere}
.ct-ref{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:.9375rem;line-height:1.3;color:var(--mu)}
.ct-ref b{font:500 1.0625rem/1.2 var(--mono);letter-spacing:.04em;color:var(--tx)}
.ct-done .pills{margin-top:28px}

/* other ways */
.ct-m{display:block;margin-bottom:8px}
.page-contact .rows--3 .row{align-items:center}

@media (max-width:1000px){
  .page-contact .phero--split .phero__frame{min-height:clamp(380px,62svh,520px)}
  .page-contact .phero__panel{max-width:none}
}
@media (max-width:640px){
  .ct-send .pill{width:100%}
}
