/* Fellows Academy — Scholarship Readiness Assessment
   Palette and type follow the Fellows readiness report. */
:root {
  --navy: #1c3461;
  --navy-tint: #eaf0f8;
  --gold: #b8924f;
  --gold-soft: #c9a96e;
  --gold-text: #8a6a2f;
  --cream: #f7f4ee;
  --cream-2: #fbf8f2;
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e4dfd4;
  --field: #cfd5df;
  --error: #b42318;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--navy); }
a:hover { color: var(--gold-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(28, 52, 97, .18); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.brand img { width: 30px; height: 39px; object-fit: contain; }
.brand .sep { opacity: .6; font-weight: 400; margin: 0 6px; }
.hdr-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hdr-right:empty { display: none; }
.saved { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dfe6f2; }
.hdr-step { display: flex; align-items: center; gap: 10px; }
.hdr-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; background: var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Layout */
.container { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px 56px; outline: none; }
.footer { border-top: 1px solid var(--gold); background: var(--cream); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
h1, h2, h3 { font-family: 'Lora', Georgia, serif; color: var(--navy); margin: 0; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-text); }
.callout { background: var(--cream-2); border: 1px solid var(--gold-soft); border-radius: 4px; padding: 12px 16px; font-style: italic; font-size: 13.5px; line-height: 1.6; color: #3a3a3a; }
.req-note { margin: 0; font-size: 12px; color: var(--error); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 12px 26px; font-size: 14px; font-weight: 600; min-height: 46px; border: 1px solid var(--navy); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #142849; }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--navy-tint); }
.btn[disabled] { background: #c9ced8; border-color: #c9ced8; color: #4a4f5a; cursor: not-allowed; }
.btn-lg { padding: 14px 32px; font-size: 15px; min-height: 48px; }
.link-btn { border: 0; background: transparent; color: var(--navy); font-weight: 600; font-size: 13px; text-decoration: underline; min-height: 36px; padding: 0 6px; }

/* Welcome */
.welcome { max-width: 760px; margin: 0 auto; padding: 48px 48px 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.welcome-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.welcome-head img { width: 84px; height: 109px; object-fit: contain; margin-bottom: 8px; }
.welcome-head h1 { font-size: 38px; letter-spacing: 1px; font-weight: 700; }
.welcome-head .sub { margin: 0; font-weight: 600; font-size: 19px; color: var(--navy); }
.welcome-head .tag { margin: 0; font-weight: 600; font-size: 14px; color: var(--gold-text); }
.welcome .callout { width: 100%; font-size: 13px; }
.resume-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

.info-table { width: 100%; border: 1px solid #d8d8d8; border-radius: 4px; overflow: hidden; }
.info-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid #d8d8d8; }
.info-row:last-child { border-bottom: 0; }
.info-row > div { padding: 10px 14px; }
.info-row > div:first-child { background: var(--navy); color: #fff; font-weight: 600; }
.req-star { color: var(--error); font-weight: 600; }

/* Form layout */
.form-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sidebar { flex: 1 1 260px; max-width: 100%; padding: 22px 16px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.progress-head { padding: 0 8px 16px; border-bottom: 1px solid #ece7dc; margin-bottom: 10px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.progress-track { height: 6px; background: #ece7dc; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--gold); transition: width .25s ease; }
.steps { display: flex; flex-direction: column; gap: 2px; }
.step-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 9px 10px; min-height: 44px; background: transparent; color: var(--ink); font-weight: 500; }
.step-btn:hover { background: #f3f5f9; }
.step-btn.active { background: var(--navy-tint); color: var(--navy); font-weight: 600; }
.step-btn.skipped { color: #8a8a8a; }
.step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: #fff; color: var(--muted); border: 1px solid var(--field); }
.step-btn.active .step-num { color: var(--navy); border: 1.5px solid var(--navy); }
.step-btn.is-done .step-num { background: var(--navy); color: #fff; border-color: var(--navy); }
.step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-title { font-size: 13px; line-height: 1.35; }
.step-sub { font-size: 11px; color: var(--muted); font-weight: 400; }

.sec-head { display: flex; flex-direction: column; gap: 10px; }
.sec-head h2 { font-size: 30px; font-weight: 700; }
.alert { background: #fdf1f0; border: 1px solid #e8b4ae; border-radius: 6px; padding: 12px 16px; font-size: 14px; color: #8f1d12; }

/* Question cards */
.qcard { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; border-radius: var(--radius); }
.qcard.has-error { border-color: var(--error); }
.qhead { display: flex; flex-direction: column; gap: 4px; }
.qlabel { font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.5; }
.qlabel .req-star { margin-left: 4px; }
.help { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.err-msg { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--error); }

.input, .textarea, .select, .multi-btn {
  width: 100%; max-width: 520px; border: 1px solid var(--field); border-radius: 6px; padding: 11px 14px; font-size: 14px; background: #fff; color: var(--ink);
}
.textarea { max-width: none; line-height: 1.6; resize: vertical; }
.input:focus, .textarea:focus, .select:focus, .multi-btn:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28, 52, 97, .15); }
.input::placeholder, .textarea::placeholder { color: #8a8f99; }
.word-count { margin: 0; font-size: 12px; font-weight: 500; text-align: right; color: var(--muted); }
.word-count.ok { color: var(--navy); }

.select-wrap { position: relative; width: 100%; max-width: 520px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; min-height: 46px; cursor: pointer; }
.select.empty { color: var(--muted); }
.chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.multi { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.multi-btn { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 42px; min-height: 46px; text-align: left; }
.multi-btn.empty .multi-summary { color: var(--muted); }
.multi-btn.open { border-color: var(--navy); }
.multi-btn.open .chev { transform: translateY(-50%) rotate(180deg); }
.multi-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-hint { font-size: 12px; color: var(--muted); flex: none; }
.multi-panel { border: 1px solid var(--field); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(28, 52, 97, .12); overflow: hidden; }
.multi-list { max-height: 320px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1.4; min-height: 42px; }
.opt-row:hover { background: #f3f5f9; }
.opt-row.checked { background: var(--navy-tint); }
.opt-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex: none; }
.multi-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #ece7dc; padding: 8px 10px 8px 14px; background: var(--cream-2); font-size: 12px; color: var(--muted); }
.btn-sm { background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 8px 18px; font-size: 13px; font-weight: 600; min-height: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-tint); color: var(--navy); border-radius: 999px; padding: 2px 4px 2px 12px; font-size: 12.5px; font-weight: 500; }
.chip button { border: 0; background: transparent; color: var(--navy); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.chip button:hover { background: rgba(28, 52, 97, .1); }

.scale { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.scale-end { font-size: 13px; color: var(--muted); min-width: 110px; }
.scale-opts { display: flex; gap: 10px; }
.scale-opt { position: relative; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; font-weight: 600; font-size: 15px; background: #fff; color: var(--navy); border: 1px solid #c3cad6; }
.scale-opt:hover { background: var(--navy-tint); }
.scale-opt.checked { background: var(--navy); color: #fff; border-color: var(--navy); }
.scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.scale-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.upload { border: 1.5px dashed #c9d0dc; border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #fafbfd; }
.upload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upload-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--navy); color: var(--navy); border-radius: 6px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; background: #fff; }
.upload-btn:hover { background: var(--navy-tint); }
.upload-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-btn:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.upload-meta { font-size: 12px; color: var(--muted); }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy-tint); border-radius: 6px; padding: 8px 8px 8px 14px; font-size: 13px; color: var(--navy); }
.file-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { border: 0; background: transparent; color: var(--navy); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex: none; }
.icon-btn:hover { background: rgba(28, 52, 97, .1); }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.nav-row .step-label { font-size: 13px; color: var(--muted); }

/* Review */
.review { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.review .card { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.review h3 { font-size: 20px; }
.lead { margin: 0; font-size: 14px; line-height: 1.6; color: #4a4a4a; }
.kv { border-top: 1px solid #d8d8d8; }
.kv-row { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; border-bottom: 1px solid #e2e2e2; }
.kv-row:nth-child(even) { background: var(--navy-tint); }
.kv-row > div { padding: 9px 12px; }
.kv-row > div:first-child { font-weight: 600; color: var(--navy); }
.table-scroll { overflow-x: auto; }
.status-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.status-table th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; }
.status-table td { padding: 8px 12px; border-bottom: 1px solid #e2e2e2; }
.status-table tbody tr:nth-child(even) { background: var(--navy-tint); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--navy); color: #fff; }
.badge-warn { background: #f7ecd9; color: #7a5a1f; }
.badge-na { background: #efefef; color: #5a5a5a; }
.callout-plain { font-style: normal; }
.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }

/* Done */
.done-card { max-width: 680px; margin: 0 auto; padding: 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.done-card img { width: 64px; height: 83px; object-fit: contain; }
.done-card h2 { font-size: 30px; }
.done-card p { margin: 0; font-size: 15px; line-height: 1.7; color: #4a4a4a; max-width: 520px; }
.done-card .info-table { text-align: left; }

@media (max-width: 640px) {
  .container { padding: 24px 14px 40px; }
  .topbar-inner { padding: 10px 14px; }
  .brand { font-size: 12.5px; }
  .saved span { display: none; }
  .hdr-title { white-space: normal; font-size: 13px; }
  .welcome, .done-card { padding: 32px 20px; }
  .welcome-head h1 { font-size: 28px; }
  .info-row { grid-template-columns: 1fr; }
  .qcard { padding: 20px 18px; }
  .sec-head h2 { font-size: 24px; }
  .scale-opts { gap: 6px; }
  .scale-opt { width: 44px; height: 44px; }
  .scale-end { min-width: 0; }
  .sidebar { padding: 14px 12px 4px; }
  .sidebar .steps { display: none; }
  .progress-head { border-bottom: 0; margin-bottom: 0; }
  .form-layout { gap: 16px; }
  .review .card { padding: 20px 18px; }
  .kv-row { grid-template-columns: 1fr; }
}
