/* apply.css — application form + calendar (SPEC-v3 §1) */

.apply {
  --ap-err: #F2866B;
  --ap-line: rgba(192, 138, 62, .3);
  --ap-line-hi: rgba(217, 163, 91, .6);
  --ap-small: max(.875rem, var(--fs-small)); /* reading text never below 14 px */
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: var(--s-7) auto 0;
  /* notch beyond the gutter */
  padding-inline: max(0px, env(safe-area-inset-left, 0px) - var(--gutter)) max(0px, env(safe-area-inset-right, 0px) - var(--gutter));
  text-align: left;
  scroll-margin-top: 8px;
}
.apply [hidden] { display: none !important; }
html:not(.js) .ap-card, html:not(.js) .ap-phases { display: none; }
.ap-ns { text-align: center; }

/* ---------- phases: two marks joined by a carved line ---------- */
.ap-phases {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 25rem;
  margin: 0 auto var(--s-5);
}
.ap-phase {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .7em;
  text-align: center;
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-eyebrow);
  line-height: 1.3; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-400);
  transition: color var(--d-m) var(--ease-warm);
}
.ap-phase + .ap-phase::before {
  content: ""; position: absolute; top: 4px; right: calc(50% + 16px); width: calc(100% - 32px); height: 1px;
  background: linear-gradient(90deg, rgba(192, 138, 62, .2), rgba(192, 138, 62, .6), rgba(192, 138, 62, .2));
}
.ap-phase__mark {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  border: 1.5px solid currentColor;
  transition: background-color var(--d-m) var(--ease-warm), box-shadow var(--d-m) var(--ease-warm);
}
.ap-phase.is-active { color: var(--pig-ochre-lt); text-shadow: var(--legible-shadow); }
.ap-phase.is-active .ap-phase__mark {
  border-color: var(--fire-8); background: var(--fire-7);
  box-shadow: 0 0 10px 1px rgba(240, 122, 34, .7);
}
.ap-phase.is-done { color: var(--bone-400); }
.ap-phase.is-done .ap-phase__mark { background: var(--pig-ochre); border-color: var(--pig-ochre); }

/* ---------- the slab ---------- */
.ap-card {
  position: relative;
  display: grid;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(240, 122, 34, .08), rgba(240, 122, 34, 0) 70%),
    var(--grad-slab);
  border: 1px solid rgba(192, 138, 62, .24);
  border-radius: var(--r-slab);
  box-shadow: var(--sh-slab);
  isolation: isolate;
  overflow: clip;
}
.ap-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url("/assets/img/rock/rock-slab.webp") center / 400px 400px;
  mix-blend-mode: multiply; opacity: .28;
}
.ap-card::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 163, 58, 0), rgba(246, 163, 58, .65), rgba(246, 163, 58, 0));
}
.ap-half { position: relative; min-width: 0; }
.ap-half--form { padding: var(--s-5) var(--s-4) var(--s-6); }
.ap-half--cal {
  padding: var(--s-6) var(--s-4) var(--s-6);
  box-shadow: inset 0 1px 0 rgba(5, 3, 2, .75), inset 0 2px 0 rgba(249, 198, 107, .07);
}

/* ---------- form head ---------- */
.ap-head { margin-bottom: var(--s-4); }
.ap-badge { margin-bottom: var(--s-3); }
.ap-badge span {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .95em;
  border: 1px solid rgba(192, 138, 62, .5); border-radius: var(--r-pill);
  background: rgba(192, 138, 62, .08);
  font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pig-ochre-lt);
}
.ap-badge b { font-weight: 500; display: inline-block; min-width: .7em; text-align: center; color: var(--fire-8); }
.ap-bar { position: relative; height: 2px; border-radius: 2px; background: rgba(192, 138, 62, .16); }
.ap-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  transform-origin: 0 50%; transform: scaleX(.2);
  background: linear-gradient(90deg, var(--pig-ochre), var(--fire-7));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(240, 122, 34, .55);
}
.ap-intro {
  margin-bottom: var(--s-5);
  font-size: var(--ap-small); line-height: 1.5; color: var(--bone-400); text-wrap: pretty;
}
.ap-intro strong { font-weight: 500; color: var(--bone-100); }

/* ---------- steps ---------- */
.ap-steps { position: relative; }
.ap-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ap-q {
  display: block; width: 100%; padding: 0; margin-bottom: var(--s-4);
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 380;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--bone-100); text-wrap: balance;
}
.ap-q__text { display: block; text-shadow: 0 1px 0 rgba(5, 3, 2, .9); }
.ap-sub {
  margin: calc(var(--s-2) * -1) 0 var(--s-4);
  font-size: var(--ap-small); font-style: italic; line-height: 1.45; color: var(--bone-400);
}

/* ---------- fields: floating labels ---------- */
.ap-field { position: relative; margin-bottom: var(--s-3); }
.ap-input {
  display: block; width: 100%; min-width: 0; height: 56px; padding: 22px var(--s-4) 6px;
  background: rgba(10, 7, 6, .72);
  border: 1px solid var(--ap-line); border-radius: var(--r-s);
  box-shadow: inset 0 2px 6px rgba(5, 3, 2, .6);
  color: var(--bone-100); font: inherit; font-size: 1rem; line-height: 1.3;
  caret-color: var(--fire-7);
  transition: border-color var(--d-xs) var(--ease-stroke), background-color var(--d-xs) var(--ease-stroke);
  -webkit-appearance: none; appearance: none;
}
.ap-input:hover { border-color: var(--ap-line-hi); }
.ap-input:focus-visible { border-color: var(--fire-7); background: var(--stone-950); }
.ap-label {
  position: absolute; left: calc(var(--s-4) + 1px); top: 0; height: 56px;
  display: flex; align-items: center;
  color: var(--bone-400); font-size: 1rem; line-height: 1;
  pointer-events: none; transform-origin: 0 50%;
  transition: transform var(--d-s) var(--ease-reveal), color var(--d-s) var(--ease-warm);
}
.ap-input:focus + .ap-label,
.ap-input:not(:placeholder-shown) + .ap-label {
  transform: translateY(-11px) scale(.76);
  color: var(--pig-ochre-lt);
  letter-spacing: .02em;
}
.ap-input--area {
  height: auto; min-height: 7rem; padding: var(--s-3) var(--s-4) 2rem;
  resize: none; line-height: 1.5;
}
.ap-input--area::placeholder { color: var(--bone-400); opacity: 1; }
.ap-area { position: relative; }
.ap-count {
  position: absolute; right: var(--s-3); bottom: .45rem;
  font-size: .8125rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--bone-400); pointer-events: none;
}
.ap-count.is-full { color: var(--pig-ochre-lt); }
.ap-input[aria-invalid="true"], .ap-options.is-invalid .ap-opt { border-color: var(--ap-err); }

.ap-err { margin: 0; font-size: var(--ap-small); line-height: 1.35; color: var(--ap-err); }
.ap-err:not(:empty) { margin-top: var(--s-2); }
.ap-err--form { text-align: center; }
.ap-err--form:not(:empty) { margin: var(--s-3) 0 0; }

/* phone: country select + national number */
.ap-phone { display: flex; gap: var(--s-2); }
.ap-cc {
  position: relative; flex: none; width: 6.9rem; height: 56px;
  background: rgba(10, 7, 6, .72);
  border: 1px solid var(--ap-line); border-radius: var(--r-s);
  box-shadow: inset 0 2px 6px rgba(5, 3, 2, .6);
  transition: border-color var(--d-xs) var(--ease-stroke);
}
.ap-cc:hover { border-color: var(--ap-line-hi); }
.ap-cc:focus-within { border-color: var(--fire-7); outline: 2px solid var(--fire-8); outline-offset: 3px; box-shadow: var(--focus-ring); }
.ap-cc__face { position: absolute; inset: 0; display: flex; align-items: center; gap: .4em; padding: 0 var(--s-3); color: var(--bone-100); pointer-events: none; }
.ap-cc__flag { font-size: 1.2rem; line-height: 1; font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", var(--font-body), sans-serif; }
.ap-cc__dial { font-size: 1rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ap-cc__chev {
  margin-left: auto; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid var(--pig-ochre-lt); border-bottom: 1.5px solid var(--pig-ochre-lt);
  transform: translateY(-2px) rotate(45deg);
}
.ap-cc__select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; font-size: 1rem;
  background: var(--stone-900); color: var(--bone-100);
}
.ap-cc__select:focus-visible { outline: none; box-shadow: none; }
.ap-cc__select option, .ap-select__el option { background: var(--stone-850); color: var(--bone-100); }
.ap-tel { position: relative; flex: 1 1 auto; min-width: 0; }

/* honeypot: off-screen, never focusable */
.ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- radio steps: large role=radio buttons ---------- */
.ap-options { display: grid; gap: var(--s-2); }
.ap-opt {
  display: flex; align-items: center; gap: .85em; width: 100%;
  min-height: 54px; padding: .55em 1.2em;
  border: 1px solid var(--ap-line); border-radius: var(--r-pill);
  background: rgba(10, 7, 6, .5);
  color: var(--bone-200); font-size: 1rem; line-height: 1.3; text-align: left;
  cursor: pointer;
  transition: border-color var(--d-xs) var(--ease-stroke), background-color var(--d-xs) var(--ease-stroke), color var(--d-xs) var(--ease-stroke), box-shadow var(--d-xs) var(--ease-stroke);
}
.ap-opt__ring {
  position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(217, 163, 91, .6);
  transition: border-color var(--d-xs) var(--ease-stroke);
}
.ap-opt__ring::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--fire-7); box-shadow: 0 0 8px rgba(246, 163, 58, .8);
  transform: scale(0); transition: transform var(--d-s) var(--ease-pop);
}
.ap-opt__txt { font-variant-numeric: tabular-nums; }
.ap-opt:hover { border-color: var(--fire-7); background: rgba(240, 122, 34, .09); color: var(--bone-100); }
.ap-opt[aria-checked="true"] {
  border-color: var(--fire-6); color: var(--fire-10);
  background: linear-gradient(180deg, rgba(240, 122, 34, .22), rgba(163, 38, 14, .18));
  box-shadow: 0 0 24px -8px rgba(240, 122, 34, .7);
}
.ap-opt[aria-checked="true"] .ap-opt__ring { border-color: var(--fire-8); }
.ap-opt[aria-checked="true"] .ap-opt__ring::after { transform: scale(1); }

/* ---------- actions ---------- */
.ap-actions { display: flex; flex-direction: column-reverse; align-items: stretch; gap: var(--s-2); margin-top: var(--s-5); }
.ap-next { width: 100%; }
.ap-next:disabled { cursor: progress; filter: saturate(.7) brightness(.85); transform: none; }
.ap-back {
  align-self: center; min-height: 44px; padding: 0 var(--s-4);
  background: none; border: 0; border-radius: var(--r-pill);
  color: var(--bone-400); font-size: var(--ap-small); letter-spacing: .03em; cursor: pointer;
  transition: color var(--d-xs) var(--ease-stroke);
}
.ap-back:hover, .ap-back:focus-visible { color: var(--fire-8); }
.ap-back:disabled { opacity: .5; cursor: default; }
.ap-consent {
  margin-top: var(--s-4);
  font-size: var(--ap-small); line-height: 1.45; color: var(--bone-400); text-align: center; text-wrap: pretty;
}
.ap-consent + .ap-actions { margin-top: var(--s-3); }
.ap-consent a, .ap-alt__wa { color: var(--fire-8); text-underline-offset: .18em; }

/* failure: retry + WhatsApp */
.ap-alt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1) var(--s-4);
  margin: var(--s-2) 0 0; font-size: var(--ap-small);
}
.ap-alt__retry {
  min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--pig-ochre); border-radius: var(--r-pill);
  background: none; color: var(--bone-100); font: inherit; cursor: pointer;
}
.ap-alt__retry:hover { border-color: var(--fire-7); background: rgba(240, 122, 34, .1); }
.ap-alt__wa { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- approved ---------- */
.ap-approved {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s-4) 0 var(--s-2); text-align: center;
}
.ap-approved__flame { width: 46px; height: auto; margin-bottom: var(--s-4); overflow: visible; filter: drop-shadow(0 0 14px rgba(240, 122, 34, .65)); }
.ap-fl--outer { fill: var(--fire-5); }
.ap-fl--inner { fill: var(--fire-8); }
.ap-approved__badge {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .32em 1em; margin-bottom: var(--s-3);
  border: 1px solid rgba(246, 163, 58, .55); border-radius: var(--r-pill);
  background: rgba(240, 122, 34, .1);
  font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fire-8);
}
.ap-approved__title {
  font-size: var(--fs-h2); font-weight: 360; line-height: 1.06; letter-spacing: -.012em;
  background: var(--grad-fire-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .08em;
  filter: var(--display-glow);
}

/* ---------- calendar ---------- */
.ap-cal { position: relative; }
.ap-cal__glow {
  position: absolute; inset: -40px -20px; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 50% at 50% 35%, rgba(240, 122, 34, .16), rgba(163, 38, 14, .06) 45%, rgba(5, 3, 2, 0) 75%);
}
.ap-cal__head { text-align: center; margin-bottom: var(--s-4); }
.ap-cal__len {
  margin-bottom: var(--s-3);
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--pig-ochre-lt);
}
.ap-cal__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.ap-cal__month {
  flex: 1; min-width: 0;
  font-size: var(--fs-h3); font-weight: 400; line-height: 1.2; color: var(--bone-100);
}
.ap-cal__month::first-letter { text-transform: uppercase; }
.ap-cal__arrow {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ap-line); border-radius: 50%;
  background: rgba(10, 7, 6, .4); color: var(--pig-ochre-lt); cursor: pointer;
  transition: border-color var(--d-xs) var(--ease-stroke), background-color var(--d-xs) var(--ease-stroke), opacity var(--d-xs);
}
.ap-cal__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-cal__arrow:hover:not(:disabled) { border-color: var(--fire-7); background: rgba(240, 122, 34, .1); }
.ap-cal__arrow:disabled { opacity: .3; cursor: default; }
.ap-cal__week, .ap-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ap-cal__week { margin-bottom: var(--s-2); }
.ap-cal__week span {
  text-align: center; font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-400);
}
.ap-day {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1; width: 100%; max-height: 52px; padding: 0;
  border: 1px solid transparent; border-radius: var(--r-s);
  background: none; color: var(--bone-600);
  font-size: .9375rem; line-height: 1; font-variant-numeric: tabular-nums;
}
button.ap-day { cursor: pointer; }
.ap-day:disabled { opacity: .45; cursor: default; }
.ap-day--blank { visibility: hidden; }
.ap-day.is-today { color: var(--bone-200); background: linear-gradient(var(--bone-400), var(--bone-400)) 50% calc(100% - 7px) / 40% 1px no-repeat; }
/* invisible hit area up to 44 px (within the gap) */
button.ap-day::before { content: ""; position: absolute; inset: max(-2px, min(0px, (100% - 44px) / 2)); }
.ap-day.has-slots {
  color: var(--bone-100);
  background: rgba(240, 122, 34, .09);
  border-color: rgba(246, 163, 58, .3);
  transition: border-color var(--d-xs) var(--ease-stroke), background-color var(--d-xs) var(--ease-stroke), color var(--d-xs);
}
.ap-day.has-slots::after {
  content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--fire-7); box-shadow: 0 0 6px rgba(246, 163, 58, .9);
}
.ap-day.has-slots:hover { border-color: var(--fire-7); background: rgba(240, 122, 34, .18); }
.ap-day[aria-pressed="true"] {
  background-image: var(--grad-btn); border-color: var(--fire-8); color: var(--ink-on-fire); font-weight: 500;
  box-shadow: 0 0 18px -4px rgba(240, 122, 34, .7);
}
.ap-day[aria-pressed="true"]::after { background: var(--ink-on-fire); box-shadow: none; }
.ap-cal__status { min-height: 1.4em; margin: var(--s-3) 0 0; font-size: var(--ap-small); color: var(--bone-400); text-align: center; }
.ap-cal__status:empty { min-height: 0; margin: 0; }

.ap-cal__tz { display: flex; flex-direction: column; gap: var(--s-1); margin-top: var(--s-4); }
.ap-cal__tzlabel { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-400); }
.ap-select { position: relative; display: flex; align-items: center; }
.ap-select .ap-cc__chev { position: absolute; right: var(--s-4); pointer-events: none; }
.ap-select__el {
  width: 100%; height: 46px; padding: 0 2.5rem 0 var(--s-4);
  background: rgba(10, 7, 6, .72); color: var(--bone-100);
  border: 1px solid var(--ap-line); border-radius: var(--r-s);
  font: inherit; font-size: .9375rem; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.ap-select__el:hover { border-color: var(--ap-line-hi); }

.ap-cal__times { margin-top: var(--s-5); }
.ap-cal__pick { margin-bottom: var(--s-3); font-size: var(--ap-small); color: var(--bone-400); }
.ap-cal__pick span { color: var(--bone-100); }
.ap-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.ap-slot {
  height: 46px; padding: 0 var(--s-3);
  border: 1px solid var(--ap-line); border-radius: var(--r-pill);
  background: rgba(10, 7, 6, .5); color: var(--bone-100);
  font-size: .9375rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color var(--d-xs) var(--ease-stroke), background-color var(--d-xs) var(--ease-stroke), color var(--d-xs);
}
.ap-slot:hover { border-color: var(--fire-7); background: rgba(240, 122, 34, .1); }
.ap-slot[aria-pressed="true"] { background-image: var(--grad-btn); border-color: var(--fire-8); color: var(--ink-on-fire); font-weight: 500; }
.ap-err--cal { text-align: center; }
.ap-confirm { width: 100%; margin-top: var(--s-5); }
.ap-confirm:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; background-image: var(--grad-btn); filter: saturate(.5); }

/* locked */
.ap-card.is-locked .ap-cal { filter: blur(1.5px) brightness(.5) saturate(.45); user-select: none; }
.ap-lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
}
.ap-lock__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 42% at 50% 50%, rgba(10, 7, 6, .88), rgba(10, 7, 6, .5) 65%, rgba(10, 7, 6, .12)),
    url("/assets/img/rock/rock-wall-a.webp") 40% 50% / 900px auto;
  box-shadow: inset 0 14px 20px -12px rgba(5, 3, 2, .85), inset 0 -14px 20px -12px rgba(5, 3, 2, .6);
  opacity: .72;
}
@media (min-width: 920px) {
  .ap-lock__veil { box-shadow: inset 14px 0 20px -12px rgba(5, 3, 2, .85), inset -10px 0 20px -12px rgba(5, 3, 2, .5); }
}
.ap-lock__body { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ap-lock__icon { width: 64px; height: auto; margin-bottom: var(--s-4); overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .7)); }
.ap-lock__stone { fill: var(--stone-600); stroke: rgba(217, 163, 91, .38); stroke-width: 1; stroke-linejoin: round; }
.ap-lock__shackle { fill: none; stroke: var(--stone-500); stroke-width: 7; stroke-linecap: round; }
.ap-lock__hole { fill: var(--stone-950); }
.ap-lock__crack { fill: none; stroke: var(--fire-7); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 0 3px rgba(246, 163, 58, .9)); }
.ap-lock__crack--thin { stroke-width: 1.1; }
.ap-lock__badge {
  padding: .3em 1em; margin-bottom: var(--s-3);
  border: 1px solid rgba(138, 113, 90, .55); border-radius: var(--r-pill);
  background: rgba(10, 7, 6, .55);
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-400);
}
.ap-lock__msg { max-width: 26ch; font-size: var(--fs-body); line-height: 1.5; color: var(--bone-200); text-shadow: var(--legible-shadow); text-wrap: balance; }

/* embers from the broken lock (created by apply.js) */
.ap-ember {
  position: absolute; z-index: 3; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: radial-gradient(circle, var(--fire-9) 0 25%, var(--fire-6) 55%, rgba(217, 84, 26, 0) 75%);
  pointer-events: none;
}

/* ---------- booked ---------- */
.ap-done {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--s-4) 0;
}
.ap-done__mark { width: 64px; height: 64px; margin-bottom: var(--s-4); overflow: visible; filter: drop-shadow(0 0 12px rgba(240, 122, 34, .55)); }
.ap-done__ring { fill: rgba(240, 122, 34, .08); stroke: var(--fire-7); stroke-width: 2; }
.ap-done__check { fill: none; stroke: var(--fire-8); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ap-done__title { margin-bottom: var(--s-4); font-size: var(--fs-h3); font-weight: 400; line-height: 1.2; color: var(--bone-100); }
.ap-done__when {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 360;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2;
  background: var(--grad-fire-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .08em; text-wrap: balance;
}
.ap-done__when::first-letter { text-transform: uppercase; }
.ap-done__tz { margin-top: var(--s-1); font-size: var(--ap-small); color: var(--bone-400); }
.ap-done__next { max-width: 34ch; margin-top: var(--s-4); font-size: var(--ap-small); line-height: 1.5; color: var(--bone-200); text-wrap: pretty; }
.ap-done__mail { margin-top: var(--s-2); font-size: var(--ap-small); color: var(--bone-400); overflow-wrap: anywhere; }
.ap-done__actions { display: flex; flex-direction: column; gap: var(--s-3); width: 100%; margin-top: var(--s-5); }
.ap-done__actions .btn-ghost { height: 52px; }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  .ap-half--form { padding: var(--s-6) var(--s-6) var(--s-6); }
  .ap-half--cal { padding: var(--s-6); }
  .ap-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .ap-next { width: auto; min-width: 13rem; margin-left: auto; }
  .ap-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-consent { text-align: right; }
}

/* ---------- ≥ 920px ---------- */
@media (min-width: 920px) {
  .apply { max-width: 58rem; margin-top: var(--s-8); }
  .ap-card { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
  .ap-half--form { padding: var(--s-7) var(--s-6) var(--s-6) var(--s-7); }
  .ap-half--cal {
    padding: var(--s-7) var(--s-7) var(--s-6) var(--s-6);
    box-shadow: inset 1px 0 0 rgba(5, 3, 2, .75), inset 2px 0 0 rgba(249, 198, 107, .07);
  }
  .ap-approved { min-height: 100%; }
  .ap-done { justify-content: center; min-height: 100%; }
  .ap-done__actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .ap-done__actions > * { flex: 1 1 12rem; }
  .ap-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ap-phase, .ap-phase__mark, .ap-label, .ap-opt, .ap-opt__ring::after, .ap-input, .ap-day, .ap-slot { transition: none; }
}
html[data-reduced] .ap-label, html[data-reduced] .ap-opt__ring::after { transition: none; }

/* ---------- headline (≥ 920px: in the slab's top padding) ---------- */
.ap-headline {
  margin: 0; padding: var(--s-3) var(--s-4) 0;
  text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 360;
  font-size: .98rem; line-height: 1.25; letter-spacing: 0;
  color: var(--bone-200); text-shadow: var(--legible-shadow);
}
@media (max-width: 919.98px) {
  .ap-headline { grid-column: 1 / -1; }
  .ap-headline + .ap-half--form { padding-top: var(--s-4); }
}
@media (min-width: 920px) {
  .ap-headline { position: absolute; top: 13px; left: 0; right: 0; z-index: 3; padding: 0 var(--s-6); font-size: 1rem; pointer-events: none; }
}
