/* Apply now (/apply/). Owned by the apply page agent.
 * Shared pieces (.apply-card, .apply-step__*, .apply-review, .apply-employer, .apply-help) are page-prefixed.
 * The form is settled on the Centred card (round 4: .apply-form--a1). The other sections are the client's
 * chosen layouts (round 2): .apply-next--n2, .apply-faq--q1, .apply-close--c1. */

/* ------------------------------------------------------------------ Form card (all layouts) */
.page-apply .apply-card { --heading: var(--navy); border-radius: var(--r-xl); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--navy) 28%, transparent), 0 2px 6px color-mix(in srgb, var(--navy) 5%, transparent); }
.page-apply .apply-form { gap: 22px; }
.page-apply .apply-form .form-step { gap: 22px; }
.page-apply .apply-form .stepper { margin-bottom: 4px; }
.page-apply .apply-step__head { display: grid; gap: 6px; padding-bottom: 4px; }
.page-apply .apply-step__count { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill, 999px); background: var(--green-mist); color: var(--green-deep); font: 700 var(--fs-micro)/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(76, 154, 42, 0.18); }
.page-apply .apply-step__head .form-step__title { text-wrap: balance; margin: 0; }
.page-apply .apply-step__head .form-step__title:focus { outline: none; }
.page-apply .apply-step__head .form-step__title:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--green-soft); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.page-apply .apply-step__intro { color: var(--muted); margin: 0; }
.page-apply .apply-form .form-nav { padding-top: 20px; border-top: 1px solid var(--line); }
.page-apply .apply-form .form-nav .btn--primary { margin-left: auto; }
.page-apply .apply-form .form-note { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: -4px; }
.page-apply .apply-form .choices__legend { margin-bottom: 12px; }
.page-apply .apply-form .choices--pills .choice__card { min-height: 48px; }
.page-apply .apply-form .choice__card { transition: box-shadow var(--t-2), background-color var(--t-2), transform var(--t-2) var(--ease-out); }
.page-apply .apply-form .choice:hover .choice__card { transform: translateY(-1px); }
.page-apply .apply-textarea { position: relative; display: grid; }
.page-apply .apply-count { justify-self: end; margin-top: -2px; font: 600 var(--fs-micro)/1.2 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.page-apply .apply-note .notice { margin: 0; }
.page-apply [data-apply-nursery] { margin-top: -6px; }

/* Review step */
.page-apply .apply-review { display: grid; gap: 14px; }
.page-apply .apply-review__group { border-radius: var(--r-lg); background: var(--green-mist); box-shadow: inset 0 0 0 1px rgba(76, 154, 42, 0.14); padding: 18px 20px; }
.page-apply .apply-review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.page-apply .apply-review__name { display: flex; align-items: center; gap: 10px; font: 700 1rem/1.3 var(--font-body); color: var(--navy); margin: 0; }
.page-apply .apply-review__name .icon-tile { --tile-size: 32px; background: #fff; }
.page-apply .apply-review__edit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--blue-deep); font: 700 var(--fs-small)/1 var(--font-body); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow var(--t-2), background-color var(--t-2); }
.page-apply .apply-review__edit:hover { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-mist); }
.page-apply .apply-review__edit:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.page-apply .apply-review__edit .icon { width: 15px; height: 15px; }
.page-apply .apply-review dl { display: grid; gap: 8px; margin: 0; }
.page-apply .apply-review__row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; font-size: var(--fs-small); line-height: 1.45; }
.page-apply .apply-review dt { color: var(--muted); font-weight: 600; }
.page-apply .apply-review dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.page-apply .apply-review dd.is-empty { color: var(--muted); font-weight: 500; font-style: italic; }

/* Success */
.page-apply .apply-card .form-success { padding-top: clamp(20px, 3vw, 40px); }
.page-apply .apply-done { display: grid; gap: 10px; list-style: none; padding: 0; margin: 10px 0 8px; width: min(100%, 420px); text-align: left; }
.page-apply .apply-done li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: var(--green-mist); font-size: var(--fs-small); line-height: 1.4; color: var(--text); }
.page-apply .apply-done strong { display: block; color: var(--navy); font-size: 0.9375rem; }
.page-apply .apply-done .icon-tile { flex: none; }

/* Small shared bits */
.page-apply .apply-employer { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; box-shadow: var(--shadow-1); transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2); }
.page-apply .apply-employer > span:not(.icon-tile) { font-size: var(--fs-small); color: var(--muted); }
.page-apply .apply-employer strong { color: var(--navy); font-size: 0.9375rem; margin-right: 4px; }
.page-apply .apply-employer > .icon { width: 18px; height: 18px; color: var(--blue); transition: transform var(--t-2) var(--ease-out); }
.page-apply .apply-employer:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.page-apply .apply-employer:hover > .icon { transform: translateX(3px); }
.page-apply .apply-employer:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.page-apply .apply-help { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.page-apply .apply-help > .icon { flex: none; width: 20px; height: 20px; color: var(--green-strong); margin-top: 1px; }
.page-apply .apply-help a { overflow-wrap: anywhere; }
.page-apply .apply-chips { margin-top: var(--s-6); }

/* ------------------------------------------------------------------ a1 Centred card */
.apply-form--a1 { position: relative; overflow: clip; }
.apply-a1__motif { position: absolute; width: clamp(180px, 22vw, 320px); pointer-events: none; opacity: 0.9; }
.apply-a1__motif--tr { top: 90px; right: -60px; transform: rotate(18deg); }
.apply-a1__motif--bl { bottom: 12%; left: -80px; transform: rotate(-30deg) scale(0.8); }
.apply-a1__inner { position: relative; display: grid; justify-items: center; gap: clamp(32px, 4vw, 52px); }
.apply-a1__head { display: grid; justify-items: center; text-align: center; max-width: 720px; }
.apply-a1__head h1 { text-wrap: balance; }
.apply-a1__head .lead { margin-top: var(--s-5); max-width: 35.84em; }
.apply-a1__head .apply-chips { justify-content: center; }
.apply-a1__card { width: min(100%, 780px); }
.apply-a1__foot { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 780px; }
.apply-a1__foot .apply-help { text-align: left; }

@media (min-width: 1200px) {
/* The aside's pieces join the grid: the photo stays under the intro (sticky while the form grows),
     the three steps and the nursery link sit under the form, so neither column leaves a big gap. */
  

}

/* ------------------------------------------------------------------ n2 Numbered cards */
.apply-n2__cards { list-style: none; padding: 0; margin: clamp(36px, 4vw, 56px) 0 0; display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.apply-n2__card { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(26px, 2.6vw, 34px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2); }
.apply-n2__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.apply-n2__num { position: absolute; top: 6px; right: 18px; font: 700 clamp(4rem, 6vw, 5.5rem)/1 var(--font-display); color: color-mix(in srgb, var(--navy) 7%, transparent); }
.apply-n2__card .icon-tile { margin-bottom: 8px; }
.apply-n2__meta { font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.apply-n2__title { font: var(--display-weight) var(--fs-h4)/1.3 var(--font-display); color: var(--heading); text-wrap: balance; }
.apply-n2__text { color: var(--text); font-size: var(--fs-small); line-height: 1.55; }
.apply-n2__note { max-width: 760px; margin: clamp(28px, 3vw, 40px) auto 0; }

/* ------------------------------------------------------------------ q1 Split with help card (recommended) */
.apply-q1__grid { display: grid; gap: clamp(36px, 5vw, 72px); }
.apply-q1__callout { display: grid; gap: 10px; justify-items: start; margin-top: var(--s-6); padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--green-mist); box-shadow: inset 0 0 0 1px rgba(76, 154, 42, 0.14); }
.apply-q1__callout-title { font: var(--display-weight) var(--fs-h4)/1.3 var(--font-display); color: var(--heading); margin-top: 6px; }
.apply-q1__callout .btn-row { margin-top: 8px; }
.apply-q1__list { display: grid; gap: 22px; align-content: start; }
.apply-q1__more { justify-self: start; }
@media (min-width: 900px) {
  .apply-q1__grid { grid-template-columns: 0.8fr 1.2fr; }
  .apply-q1__intro { position: sticky; top: calc(var(--header-clear) + 12px); align-self: start; }
}

/* ------------------------------------------------------------------ c1 Two paths (recommended) */
.apply-c1__grid { display: grid; gap: var(--gap, 24px); }
.apply-c1__card { position: relative; overflow: clip; display: grid; gap: 12px; justify-items: start; align-content: start; padding: clamp(30px, 4vw, 56px); border-radius: var(--r-xl); min-height: clamp(320px, 30vw, 400px); }
.apply-c1__card > * { position: relative; z-index: 1; }
.apply-c1__card h2 { font-size: calc(var(--fs-h2) * 0.9); text-wrap: balance; }
.apply-c1__card p:not(.eyebrow) { max-width: 25.6em; }
.apply-c1__card .btn-row { margin-top: auto; padding-top: 12px; }
.apply-c1__card--you { background: var(--band-green); box-shadow: inset 0 0 0 1px rgba(76, 154, 42, 0.14); padding: 0; gap: 0; justify-items: stretch; }
.apply-c1__photo { position: relative; }
.apply-c1__photo .media { --ar: 16 / 10; border-radius: 0; height: 100%; }
.apply-c1__photo .media img { height: 100%; }
.apply-c1__chip { position: absolute; z-index: 2; left: 16px; bottom: 16px; }
.apply-c1__copy { display: grid; gap: 12px; justify-items: start; align-content: start; padding: clamp(28px, 3.4vw, 48px); }
.apply-c1__copy .btn-row { margin-top: 4px; padding-top: 12px; }
@media (min-width: 1200px) {
  .apply-c1__card--you { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr); }
  .apply-c1__card--nursery { align-content: center; }
  .apply-c1__photo .media { aspect-ratio: auto; position: absolute; inset: 0; }
  .apply-c1__copy { align-content: center; }
}
.apply-c1__card--nursery { background: radial-gradient(110% 90% at 100% 100%, var(--navy-soft) 0%, transparent 60%), var(--navy); box-shadow: var(--shadow-3); }
.apply-c1__card--nursery p:not(.eyebrow) { color: rgba(255, 255, 255, 0.86); }
.apply-c1__card .apply-c1__motif { position: absolute; z-index: 0; right: -8%; bottom: -16%; width: clamp(180px, 20vw, 280px); pointer-events: none; }
.apply-c1__card--you .apply-c1__motif { opacity: 0.9; }
.apply-c1__card--nursery .apply-c1__motif { opacity: 0.1; }
@media (min-width: 900px) { .apply-c1__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .apply-c1__grid { grid-template-columns: 1.4fr 1fr; } }

/* ------------------------------------------------------------------ Phones */
@media (max-width: 599px) {
  .page-apply .apply-card { padding: 22px 18px 24px; border-radius: 24px; }
  .page-apply .apply-step__head { justify-items: center; text-align: center; }
  .page-apply .apply-step__count { justify-self: center; }
  .page-apply .apply-form .form-nav { flex-direction: column-reverse; align-items: stretch; }
  .page-apply .apply-form .form-nav .btn { width: 100%; justify-content: center; margin: 0; }
  .page-apply .apply-form .form-note { justify-content: center; text-align: center; }
  .page-apply .apply-review__group { padding: 16px; }
  .page-apply .apply-review__row { grid-template-columns: 1fr; gap: 0; }
  .page-apply .apply-chips { justify-content: center; }
  .page-apply .apply-employer { padding-right: 14px; }
  .page-apply .apply-employer > span:not(.icon-tile) { text-align: left; }

  .apply-n2__card { justify-items: center; text-align: center; }

  .apply-q1__intro { text-align: center; }
  .apply-q1__callout { justify-items: center; text-align: center; }
  .apply-q1__callout .btn-row { justify-content: center; }
  .apply-q1__more { justify-self: center; }

  .apply-c1__card { justify-items: center; text-align: center; min-height: 0; }
  .apply-c1__copy { justify-items: center; padding: 28px 22px 30px; }
  .apply-c1__chip { left: 50%; translate: -50% 0; white-space: nowrap; }
  .apply-c1__card .btn-row { justify-content: center; width: 100%; }
  .apply-c1__card .btn-row .btn { width: 100%; justify-content: center; }
  
}
.page-apply [data-apply-wrap] { scroll-margin-top: calc(var(--header-clear) + 16px); }
.page-apply .apply-form .field { align-content: start; }

.page-apply .apply-q1__callout .apply-q1__callout-title + p { margin-top: 0; }

/* Review fixes */

/* q1 on phones and tablets: questions first, then the "Still wondering" card */
@media (max-width: 899px) {
  .apply-q1__intro { display: contents; }
  .apply-q1__intro .section-head { order: 0; }
  .apply-q1__list { order: 1; }
  .apply-q1__callout { order: 2; margin-top: 0; }
}

/* QA workarounds for shared pieces (see docs/requests/qa-apply-contact.md): 44px targets for the breadcrumb
   "Home" link { min-width: 44px; text-align: center; }
.page-apply .btn--sm { min-height: 44px; }
.page-apply .form-note .text-link { display: inline-flex; align-items: center; min-height: 44px; }

/* QA (qa-apply-contact): the closing band copy may shrink below its widest button { min-width: 0; }

/* [r2 qa-c] What happens next: the four pastel cards (mint, blue, sand, pink) read as soft, so they are now white
   cards with a hairline, a fine accent rule that grows on hover and blue / green icon tiles (professional palette). */
.apply-n2__card { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.apply-n2__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--primary); transform: scaleX(0.22); transform-origin: left; transition: transform var(--t-3) var(--ease-out); }
.apply-n2__card:nth-child(even)::before { background: var(--green); }
.apply-n2__card:hover::before { transform: scaleX(1); }
.apply-n2__card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.apply-n2__title + .apply-n2__text { margin-top: 0; }
@media (max-width: 599px) { .apply-n2__card::before { transform-origin: center; transform: scaleX(0.3); } }
@media (prefers-reduced-motion: reduce) { .apply-n2__card::before { transition: none; } }
