/* ============================================================
   FPGAjobs — the job submission flow.

   The submit / extract / review / pay path used to be Bootstrap 4 cards on a
   full-width grid, with the posting shown as a bordered card that no longer
   matches the board (the listing became a row — see layout.css). This is the
   shared chrome that brings the flow onto the same surface as the rest of the
   site: a narrow column, a step tracker, and the posting previewed as the row
   it will actually be.

   Colour comes from the active skin's custom properties (silicon / terminal),
   so this file has no palette of its own.
   ============================================================ */

.submit-flow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.submit-flow-head {
  text-align: center;
  margin: 1.5rem 0 1.75rem;
}
.submit-flow-head h1 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.submit-flow-head p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin: 0;
}
.submit-flow-head .flow-tier {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}
.submit-flow-head .flow-tier strong { color: var(--fg-default); }

/* The step tracker: one pill per step, the current one accented, the done ones
   filled, the rest quiet. Read left to right, it answers "how much is left". */
.step-track {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 1rem 0 1.75rem;
}
.step-track span {
  height: 4px;
  width: 44px;
  border-radius: 999px;
  background: var(--border-muted);
}
.step-track span.done { background: var(--fg-subtle); }
.step-track span.now  { background: var(--accent-blue); }

/* A single surface for the flow's content — same treatment as .card, without
   the header/body split every step was nesting three deep. */
.flow-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 1.5rem;
}
.flow-panel + .flow-panel { margin-top: 1.25rem; }

.flow-panel h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* Form rows in the flow. The old templates used `.fieldWrapper my-3` and bare
   `label_tag`; this gives every step the same rhythm. */
.flow-field { margin-bottom: 1rem; }
.flow-field label,
.flow-field .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--fg-default);
  margin-bottom: 0.3rem;
}
.flow-field .helptext,
.flow-field .form-text {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  margin-top: 0.3rem;
}
.flow-field ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 0.35rem;
  color: var(--accent-red);
  font-size: 0.82rem;
}

.flow-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.flow-actions .btn { min-width: 8rem; }
.flow-actions--end { justify-content: flex-end; }

/* The posting, previewed as the row it will be on the board. `.job-row` and its
   children are defined in layout.css; this only frames the single-row preview
   and labels it. */
.flow-preview {
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  overflow: hidden;
}
.flow-preview-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  background: var(--bg-primary);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-muted);
}
.flow-preview .job-list { padding: 0.25rem 0.5rem; }
.flow-preview .job-row { cursor: default; }

/* The description, shown the way the posting page shows it. */
.flow-desc {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg-muted);
}
.flow-desc h1, .flow-desc h2, .flow-desc h3 {
  color: var(--fg-default);
  font-size: 1rem;
  margin: 1.1rem 0 0.4rem;
}
.flow-desc ul { padding-left: 1.2rem; }

.flow-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  margin: 0;
}
.flow-meta dt { color: var(--fg-subtle); }
.flow-meta dd { margin: 0; color: var(--fg-default); word-break: break-word; }

/* The upgrade nudge on a free post — an aside, not an interruption. */
.flow-upsell {
  margin-top: 1.25rem;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
}
.flow-upsell strong { color: var(--fg-default); }

.submit-flow-alt {
  text-align: center;
  font-size: 0.88rem;
  color: var(--fg-subtle);
  margin-top: 1.25rem;
}
