/* ============================================================
   MAIA — Apply / Nomination Flow Styles
   ============================================================ */

.flow-wrap {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--black);
}

/* ── Screens ───────────────────────────────────────────────── */
.flow-screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.flow-screen.active { display: flex; }

/* Centered layout (entry, confirm screens) */
.flow-center {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 32px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* Split layout (form screens) */
.flow-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Typography ────────────────────────────────────────────── */
.flow-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.flow-heading {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.flow-heading-sm {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.flow-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}
.flow-sub-sm {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Entry Cards ───────────────────────────────────────────── */
/* Flex (not grid) so when authed users hide the "I've been nominated"
   card, the surviving "Nominate someone" card stretches to fill the
   full width instead of leaving a phantom column. */
.entry-cards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.entry-cards .entry-card { flex: 1 1 0; min-width: 0; }
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 28px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entry-card:hover {
  border-color: var(--gold-dim);
  background: var(--surface-2);
}
.entry-card-icon {
  font-size: 20px;
  color: var(--gold);
}
.entry-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}
.entry-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.entry-card-cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 8px;
}

/* ── Step Track (sidebar) ──────────────────────────────────── */
.step-track {
  position: sticky;
  top: calc(var(--nav-h) + 60px);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-track::before {
  content: '';
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Build steps dynamically via JS-free CSS attr trick — we'll use pseudo-elements per step */
.step-track[data-flow="apply"]  { --total: 5; }
.step-track[data-flow="nominate"] { --total: 3; }

.step-track .step-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.step-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.2s;
}
.step-dot.done::before  { background: var(--gold-dim); }
.step-dot.active::before { background: var(--gold); }
.step-dot-label {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.step-dot.active .step-dot-label { color: var(--white); }
.step-dot.done .step-dot-label   { color: var(--gold-dim); }

/* Connector line */
.step-dot:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 26px;
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* ── Form Elements ─────────────────────────────────────────── */
.flow-content {
  max-width: 600px;
}

.form-group {
  margin-bottom: 24px;
}
.form-group-sm  { flex: 0 0 100px; }
.form-group-grow { flex: 1; }

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-label-opt {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--border);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #444; }
.form-input:focus,
.form-textarea:focus { border-color: var(--gold-dim); }

.form-hint {
  font-size: 11px;
  color: #555;
  margin-top: 6px;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group { flex: 1; }

/* ── Pillar Select ─────────────────────────────────────────── */
.pillar-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pillar-opt {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.pillar-opt:hover { border-color: var(--gold-dim); color: var(--white); }
.pillar-opt.selected { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.05); }

/* ── Achievement Entries ───────────────────────────────────── */
.achievement-entry {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.achievement-entry:last-of-type { border-bottom: none; }
.ach-num {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding-top: 14px;
}
.ach-fields { flex: 1; }

/* ── Review Box ────────────────────────────────────────────── */
.review-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px 28px;
  margin: 32px 0;
}
.review-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.review-grid { display: flex; flex-direction: column; gap: 12px; }
.review-row  {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 13px;
}
.review-key { color: var(--muted); }
.review-val { color: var(--text); }

/* ── Nominator Note ────────────────────────────────────────── */
.nominator-note {
  background: rgba(201,168,76,0.04);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.nominator-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Actions ───────────────────────────────────────────────── */
.flow-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.btn-sm {
  padding: 11px 24px !important;
  font-size: 12px !important;
}

/* ── Confirm Screen ────────────────────────────────────────── */
.confirm-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 28px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Screen Transitions ────────────────────────────────────── */
.flow-screen {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 780px) {
  .flow-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step-track {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .step-dot::after { display: none; }
  .entry-cards { flex-direction: column; }
  .form-row { flex-direction: column; gap: 0; }
  .achievement-entry { grid-template-columns: 1fr; }
  .ach-num { display: none; }
}
