/*
 * Career IP — intake (Q&A) page composition (Frontend Prompt #004).
 *
 * Page-specific layout only, where the foundation primitives cannot express the
 * approved composition (full-bleed intake band, response surface, arrow controls).
 * Every value resolves through a design token — no hardcoded visual values.
 * The mint→periwinkle background and the 50%-opacity input gradient come straight
 * from the tokens (--gradient-intake, --gradient-input-muted).
 */

/* ============================================================ Page band */
.intake__main {
  display: flex;
}
.intake__inner { align-items: stretch; }
/* ================================================================ Gate */
.intake__gate {
  gap: var(--space-md);
  padding-block: var(--space-xl);
}

/* ============================================================= Progress */
.intake__progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
}
.intake__progress-label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
}
.intake__progress-steps {
  display: flex;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}
.intake__progress-step {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 15%, transparent);
}
.intake__progress-step--done {
  background: var(--color-indigo);
  opacity: var(--opacity-muted);
}
.intake__progress-step--current {
  background: var(--color-indigo);
  width: 1.75rem; /* the current step reads as a pill, not just a dot */
}
.intake__progress-step--future {
  /* Owner feedback 2026-07-24: at 10% this read as effectively invisible
     against the mint/periwinkle background — a participant on Question 1
     could not tell there were 7 steps at all. Raised to a visible-but-quiet
     grey; --current/--done (indigo) still carry all the emphasis. */
  background: color-mix(in srgb, var(--color-ink) 30%, transparent);
}

/* ============================================================= Question */
.intake__question-answer {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.intake__question {
  /* League Spartan display via .display-title; large, calm, one thought. */
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 641px) {
  .intake__question { max-width: none; }
}

/* ====================================================== Response surface */
.response {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--gradient-input-muted);   /* approved input gradient @ 50% */
  box-shadow: var(--shadow-sm);
}
.response__helper {
  /* Persistent guidance remains visible without interrupting the direct
     question-to-writing relationship. It follows the field as secondary copy. */
  color: var(--color-ink);
  opacity: var(--opacity-muted);
  max-width: 70ch;
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
.response__input {
  /* Softened so the question, not the field, is the page's focal point.
     Typed text/cursor are unaffected — this is a background-only alpha, never
     `opacity` on the element itself. */
  width: 100%;
  min-height: 14rem;
  max-height: 28rem;
  resize: none;
  overflow-y: hidden;
  padding: var(--space-sm);
  border: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-white) 45%, transparent);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
.response__input::placeholder { color: var(--color-text-muted); }
.response__input:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ============================================================ Nav / arrows */
.intake__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xs);
  border-radius: var(--radius-pill);
  background: none;
  transition: opacity var(--transition-fast);
}
.arrow__img {
  width: 1.75rem;
  height: auto;
}
.arrow__img--prev { transform: scaleX(-1); }   /* mirror the chevron for "previous" */
/* Question 1 has no prior question — hidden entirely (not disabled-but-visible),
   so the layout stays a single centred Continue button rather than a dead control. */
.arrow[hidden] {
  display: none;
}

/* ================================================================ Status */
.intake__status-wrap {
  min-height: 1.5rem;
  text-align: center;
}
.intake__status-wrap .btn { margin-top: var(--space-sm); }

/* ========================================================== Responsive */
@media (max-width: 640px) {
  .response { padding: var(--space-md); }
  .response__input { min-height: 12rem; }
  /* Keep the arrow controls inline with SUBMIT on the narrowest phones. */
  .intake__nav { gap: var(--space-2xs); }
  .arrow__img { width: 1.25rem; }
}

/* Short viewports: keep the band top-aligned so controls never get clipped. */
@media (max-height: 640px) {
  .intake__main { min-height: 0; padding-block: var(--space-lg); }
}
