/* Meteor Elite: apply.html only. Builds on site.css (forms, options, scale, progress, steps).
   V3: everything follows the section hue. main.apply gets .hue-platinum when question 1 is Platinum,
   so the progress bar, selected answers, focus rings and buttons turn black (gold labels). Gold and Not sure stay gold. */

.apply { position: relative; padding-block: 20px 64px; }
@media (min-width: 900px) { .apply { padding-block: 48px 112px; } }

.apply__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .apply__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; } }
.apply__main { width: 100%; max-width: 640px; min-width: 0; }

.apply__title { margin: 0 0 14px; }

/* Progress */
.apply-progress { margin-bottom: 26px; }
.apply-progress .progress__meta { margin-bottom: 9px; }
.apply-progress__time { color: var(--dim); font-size: 12.5px; }
[data-current="consent"] .apply-progress__time,
[data-current="details"] .apply-progress__time { visibility: hidden; }

/* Questions */
.step__q { scroll-margin-top: 24px; }
.step__q:focus, .step__q:focus-visible { outline: none; }
.step__q + .options, .step__q + .scale, .step__q + .field { margin-top: 22px; }
.step.is-active.is-back { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Budget question: price line above the question, same words as the brief.
   One tier: its price in the hue text. Not sure: Gold price in gold text, Platinum price near-black. */
.step__lead { margin: 0 0 12px; font-size: 18px; line-height: 1.45; color: var(--muted); }
.step__lead strong { color: var(--hue-text); font-weight: 700; white-space: nowrap; }
.step__lead .text-gold { color: var(--gold-text); }
.step__lead .text-platinum { color: var(--text); }
@media (min-width: 900px) { .step__lead { font-size: 20px; } }

/* Number key hints on option cards, desktop only */
.option__key { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 600px) {
  .options .option__body { padding-right: 56px; }
  .option__key {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
    border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2);
    font-size: 12px; font-weight: 600; color: var(--dim); line-height: 1;
  }
  .option input:checked + .option__body .option__key { border-color: var(--hue-line); color: var(--hue-text); }
}
.tier-opt__price { font-variant-numeric: tabular-nums; }
/* Question 1: the Not sure row lines its text up with the Gold and Platinum tier rows above it */
.step[data-step="offer"] .option__body:not(.tier-opt) { padding-left: 50px; }

/* Textarea step */
.step[data-step="heldBack"] .textarea { min-height: 112px; }

/* Commitment scale */
.scale__item span { font-variant-numeric: tabular-nums; }
.scale__ends { padding-inline: 2px; }

/* Consent card */
.check--card {
  align-items: center; padding: 16px 18px; min-height: 64px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface);
  font-size: 16.5px; font-weight: 500; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.check--card:hover { border-color: var(--hover-bd); }
.check--card:has(input:checked) { border-color: var(--hue-strong); box-shadow: 0 0 0 1px var(--hue-strong) inset; background: linear-gradient(0deg, var(--hue-soft), var(--hue-soft)), var(--surface); }
.check--card + .error-text { margin-top: 10px; }


/* Errors under a question */
.step__err { margin: 12px 0 0; }

/* Nav */
.apply-form .step__nav { margin-top: 28px; }
.apply-form .step__nav .btn--ghost { min-height: 58px; padding-inline: 10px; }
.apply-form .step__nav .btn--primary { max-width: 340px; white-space: nowrap; }
@media (max-width: 359px) { .apply-form .step__nav .btn--primary { padding-inline: 20px; } }
.apply-wide { display: none; }
@media (min-width: 440px) { .apply-wide { display: inline; } }
.apply-kbd { display: none; margin: 14px 0 0; text-align: right; }
@media (hover: hover) and (pointer: fine) and (min-width: 600px) { .apply-kbd { display: block; } }
.apply-submit-note { text-align: center; margin-top: 12px; }
@media (min-width: 600px) { .apply-submit-note { text-align: right; } }
[data-current="consent"] .apply-kbd { display: none; }
[data-current="details"] .apply-kbd__num, [data-current="heldBack"] .apply-kbd__num { display: none; }

/* Tally embed (when links.tally.formId is set) */
.apply-tally iframe { display: block; width: 100%; min-height: 480px; border: 0; }

/* Desktop aside */
.apply-aside { position: sticky; top: 32px; display: grid; gap: 16px; }
.apply-aside__photo { aspect-ratio: 1 / 1; }
.apply-aside__photo img { object-position: 50% 35%; }
.apply-aside__card { padding: 24px; }
.apply-aside__card .eyebrow { margin-bottom: 14px; }
.apply-next { list-style: none; counter-reset: next; display: grid; gap: 14px; margin: 0 0 18px; }
.apply-next li { counter-increment: next; position: relative; padding-left: 40px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.apply-next li strong { color: var(--text); }
.apply-next li::before {
  content: counter(next, decimal-leading-zero); position: absolute; left: 0; top: -3px;
  font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; color: var(--hue-strong); -webkit-text-stroke: 0;
}


/* V6: square photo cut with Tikhon centred */
.apply-aside__photo img { object-position: 50% 50%; }

/* the health-information tick under the medical question (shown once something other than N/A is typed) */
.med-consent { margin-top: 14px; }
