/* Compositions for the core AEZZE pages: the form pages, 404. */

/* --- the form pages: a blue ask on the left, the form on the right ---------- */
.ask-page { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.apply { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; }
.apply-title [data-role-title] { color: var(--paper); display: block; }
@media (max-width: 860px) { .apply { grid-template-columns: 1fr; } }
.enquire-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; }
.enquire-grid .section-title { margin: 0 0 12px; }
@media (max-width: 860px) { .enquire-grid { grid-template-columns: 1fr; } }
.role-pick { border: 0 !important; padding: 0 !important; margin: 0; min-width: 0; }
.role-pick legend { margin-bottom: 10px; }
.role-pick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: var(--rule); border-top: var(--rule); }
.role-pick label { position: relative; display: grid; place-items: center; min-height: 56px; padding: 10px 8px; border-right: var(--rule); border-bottom: var(--rule); cursor: pointer; background: var(--paper); transition: var(--flip); text-align: center; }
.role-pick label:hover { background: var(--paper-low); }
.role-pick label:has(input:checked) { background: var(--ink); color: var(--paper); }
.role-pick label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -7px; }
.role-pick input { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.role-pick .role-name { font-size: clamp(.95rem, 1.4vw, 1.1rem); line-height: 1; }
@media (max-width: 480px) { .role-pick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.after-role { display: grid; gap: 20px; }
.rate-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 480px) { .rate-row { grid-template-columns: 1fr; } }

/* --- 404: a frame that failed to register -------------------------------- */
.lost { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-block: clamp(40px, 8vw, 96px); }
.lost-frame { position: relative; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; border: var(--rule); border-style: dashed; justify-self: center; }
.lost-frame::before {
  content: ""; position: absolute; inset: 14%; border: var(--rule); background: var(--hatch);
  transform: translate(9%, -7%); mix-blend-mode: multiply;
}
.lost-frame::after {
  content: "FRAME 404 · NOT FOUND"; position: absolute; left: -4px; bottom: -34px;
  font: 700 .6875rem/1 var(--label); letter-spacing: .12em;
}
.lost-reg { position: absolute; width: 44px; height: 44px; border: var(--rule); border-radius: 50%; }
.lost-reg::before, .lost-reg::after { content: ""; position: absolute; background: var(--ink); }
.lost-reg::before { left: 50%; top: -14px; bottom: -14px; width: var(--rule-w); transform: translateX(-50%); }
.lost-reg::after { top: 50%; left: -14px; right: -14px; height: var(--rule-w); transform: translateY(-50%); }
.lost-reg--a { top: -24px; left: -24px; }
.lost-reg--b { bottom: -24px; right: -24px; transform: translate(10px, -6px); border-color: var(--blue); }
.lost-reg--b::before, .lost-reg--b::after { background: var(--blue); }
.lost-actions { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; }
.lost-actions .btn + .btn { margin-left: calc(var(--rule-w) * -1); }
@media (max-width: 760px) { .lost { grid-template-columns: 1fr; row-gap: 64px; } .lost-frame { max-width: 240px; order: -1; margin-top: 16px; } }

/* --- the ask: a solid ink panel beside each form, pointing into it --------- */
.ask-panel {
  display: grid; align-content: space-between; gap: 32px; min-height: clamp(260px, 30vw, 420px);
  background: var(--blue); color: var(--paper); padding: clamp(22px, 3vw, 40px);
}
.ask-panel h1, .ask-panel h2 { color: var(--paper); font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0; }
.ask-arrow { width: clamp(64px, 7vw, 96px); fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: square; }
@media (min-width: 861px) { .ask-panel { position: sticky; top: 24px; } }
@media (max-width: 860px) { .ask-panel { min-height: 0; gap: 20px; } .ask-arrow { transform: rotate(90deg); width: 56px; } }

.step:first-child { border-top: 0; padding-top: 0; }
