/* Shared chrome for the two flow pages: /apply and /architecture.
   Sits on top of styles.css and reuses its tokens. */

.flow-body { background: var(--bg); min-height: 100vh; }

.flow-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 24px;
  background: rgba(8,9,12,.86); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) { .flow-nav { background: #0C0D11; backdrop-filter: none; } }
.flow-brand { display: inline-flex; align-items: center; gap: 10px; }
.flow-back { font-size: 14px; color: var(--faint); transition: color .15s ease; }
.flow-back:hover { color: #fff; }

.flow-progress {
  position: sticky; top: 71px; z-index: 39;
  padding: 14px 24px 12px; background: rgba(8,9,12,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.flow-progress-bar {
  max-width: 680px; margin: 0 auto; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.flow-progress-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #6FA6FF, #2F6BFF);
  border-radius: 4px; transition: width .35s cubic-bezier(.22,.61,.36,1);
}
.flow-progress-t {
  display: block; max-width: 680px; margin: 9px auto 0;
  font-size: 12px; letter-spacing: .04em; color: var(--faint);
}

.flow-main { padding: 56px 24px 120px; }
.flow-inner { max-width: 680px; margin: 0 auto; }
.flow-screen { animation: flowIn .32s ease both; }
@keyframes flowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flow-screen { animation: none; } }

.flow-h1 {
  font-size: clamp(34px, 5.4vw, 54px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.05; margin: 22px 0 22px;
}
.flow-h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -0.042em; line-height: 1.1; margin: 20px 0 18px;
}
.flow-inner .lede + .lede { margin-top: 16px; }
.flow-inner .btn { margin-top: 32px; }
.flow-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

.chip-good { border-color: rgba(75,208,126,.35); color: #8FE0AE; }
.chip-good svg { color: #4BD07E; }
.chip-warn { border-color: rgba(242,179,61,.35); color: #E8C583; }
.chip-warn svg { color: #F2B33D; }

/* ---------- question ---------- */
.q-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-lite); }
.q-title {
  font-size: clamp(24px, 3.2vw, 32px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.15; margin: 14px 0 10px;
}
.q-help { font-size: 15px; color: var(--faint); line-height: 1.55; margin-bottom: 26px; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  padding: 17px 20px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.45; letter-spacing: -0.015em; color: #D8DBE1;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.q-opt:hover { border-color: rgba(255,255,255,.2); background: var(--panel-2); }
.q-opt:active { transform: scale(.995); }
.q-opt .dot {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22); display: grid; place-items: center;
  transition: border-color .18s ease, background .18s ease;
}
.q-opt .dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: background .18s ease; }
.q-opt.sel { border-color: var(--accent); background: rgba(47,107,255,.1); color: #fff; }
.q-opt.sel .dot { border-color: var(--accent-lite); }
.q-opt.sel .dot::after { background: var(--accent-lite); }

.q-text {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  color: #fff; font: inherit; font-size: 16px; letter-spacing: -0.015em;
}
.q-text:focus { outline: none; border-color: var(--accent); background: rgba(47,107,255,.07); }
.q-text::placeholder { color: #5C6270; }

.flow-actions { display: flex; gap: 12px; margin-top: 34px; }
.flow-actions .btn { margin-top: 0; flex: 0 0 auto; }
.flow-actions .btn:last-child { margin-left: auto; }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn-wide { width: 100%; }

/* ---------- form ---------- */
.flow-form { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.flow-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--dim);
}
.flow-form input, .flow-form textarea {
  padding: 15px 17px; border-radius: 13px;
  background: var(--panel); border: 1px solid var(--line);
  color: #fff; font: inherit; font-size: 16px; letter-spacing: -0.015em;
  resize: vertical;
}
.flow-form input:focus, .flow-form textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(47,107,255,.07);
}
.flow-form input::placeholder, .flow-form textarea::placeholder { color: #5C6270; }
.flow-form .btn { margin-top: 8px; }
.flow-error {
  padding: 12px 16px; border-radius: 11px; font-size: 14px;
  background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.3); color: #FFA9A9;
}

.flow-alt {
  margin-top: 40px; padding: 28px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
}
.flow-alt h4 { margin-bottom: 10px; }
.flow-alt p { color: var(--dim); font-size: 15px; line-height: 1.55; }
.flow-alt .btn { margin-top: 22px; }

.flow-tick {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(75,208,126,.28), rgba(75,208,126,.1));
  border: 1px solid rgba(75,208,126,.4); color: #4BD07E; margin-bottom: 8px;
}
.flow-tick svg { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .flow-main { padding: 36px 20px 96px; }
  .flow-nav { padding: 14px 18px; }
  .flow-progress { top: 63px; padding: 12px 18px 10px; }
  .q-opt { padding: 15px 16px; font-size: 15px; }
  .flow-actions { gap: 10px; }
}
