/* ============================================================
   FLi Sci Application: styles
   To match your brand, change the colors in :root below.
   ============================================================ */
:root {
  --brand: #1f3a5f;        /* primary (navy) */
  --brand-dark: #152a46;
  --accent: #f2a93b;       /* highlight (gold) */
  --accent-soft: #fff4e2;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1c2333;
  --muted: #5b6477;
  --border: #dde1ea;
  --focus: #2f6fdf;
  --error: #b42318;
  --error-soft: #fef3f2;
  --success: #1a7f4b;
  --info-soft: #eef4ff;
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 2.7rem); color: var(--brand); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; margin-top: 1.25em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header / footer */
.site-header { background: var(--brand); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand .dot { color: var(--accent); padding: 0 1px; }
.header-tag { font-size: .85rem; opacity: .85; }
.site-footer { padding: 32px 0 40px; color: var(--muted); font-size: .88rem; text-align: center; }

main { padding: 36px 16px 16px; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 .card { margin-bottom: 0; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } .card { padding: 20px 16px; } }

.hero { padding: 12px 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .6em; }
.lede { font-size: 1.12rem; color: #34405a; max-width: 62ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.hero-meta span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline span { flex: 0 0 72px; font-weight: 700; color: var(--brand); }

.start-row { margin: 28px 0 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 20px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--brand); }
.btn-lg { font-size: 1.08rem; padding: 14px 26px; }
.btn-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Notices */
.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; }
.notice-info { background: var(--info-soft); border: 1px solid #c7d7fe; }
.notice-error { background: var(--error-soft); border: 1px solid #fecdca; color: var(--error); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Progress */
.progress { margin-bottom: 18px; }
.progress ol { display: flex; list-style: none; padding: 0; margin: 0 0 10px; gap: 6px; }
.progress li { flex: 1; display: flex; align-items: center; min-width: 0; white-space: nowrap; font-size: .8rem; color: var(--muted); font-weight: 600; }
.progress li.active { color: var(--brand); }
.progress li.done { color: var(--success); }
.progress li .num { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .75rem; margin-right: 6px; }
.progress li.done .num { background: var(--success); color: #fff; border-color: var(--success); }
.progress li.active .num { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 720px) { .progress li { flex: 0 0 auto; } .progress ol { justify-content: space-between; } .progress li .label { display: none; } .progress li.active .label { display: inline; } }
.progress-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
#progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

/* Form */
.step-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); outline: none; }
.step-intro { color: var(--muted); margin-bottom: 1.5em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { grid-column: 1 / -1; margin-bottom: 26px; }
.field.half { grid-column: auto; }
@media (max-width: 600px) { .field.half { grid-column: 1 / -1; } }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { color: var(--error); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: .88rem; margin-left: 4px; }
.help { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.help p { margin: 0 0 .5em; }
.help ul { margin: 0 0 .5em; padding-left: 1.2em; }

input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(47,111,223,.18); outline-offset: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }

.choices { display: grid; gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices.inline { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
@media (max-width: 600px) { .choices.cols-2 { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #b7c0d3; }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--brand); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--brand); background: #f3f6fb; }
.other-input { margin-top: 8px; }

.counter { text-align: right; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.counter.over { color: var(--error); font-weight: 600; }
.field-error { color: var(--error); font-size: .9rem; margin: 6px 0 0; font-weight: 500; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.save-status { text-align: center; flex: 1; }

/* Review */
.review-section { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.review-head { display: flex; justify-content: space-between; align-items: center; background: #f3f5f9; padding: 10px 14px; }
.review-head h3 { margin: 0; font-size: 1rem; }
.review-section dl { margin: 0; padding: 4px 14px 10px; }
.review-section dt { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.review-section dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-section dd.empty { color: var(--muted); font-style: italic; }
.attest { margin-top: 20px; }
.attest .choice { background: var(--accent-soft); border-color: #f5d7a6; }
.privacy { margin-top: 12px; }

/* Done */
.done { text-align: center; padding: 40px 24px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.done h1 { outline: none; }

/* How it works + college note */
.steps-list { margin: 0 0 14px; padding-left: 1.2em; }
.steps-list li { margin-bottom: 8px; font-size: .96rem; }
.college-note { background: var(--accent-soft); border: 1px solid #f5d7a6; border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin: 0; }
.start-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Question preview */
.pv-top { margin-bottom: 4px; }
.tips ul { margin: 0 0 16px; padding-left: 1.2em; }
.tips li { margin-bottom: 8px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pv-card h2 { font-family: var(--font-display); color: var(--brand); font-size: 1.35rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.pv-section + .pv-section { margin-top: 28px; }
.pv-questions { padding-left: 1.6em; margin: 0; }
.pv-questions > li { margin: 18px 0 0; padding-left: 4px; break-inside: avoid; }
.pv-questions > li::marker { font-weight: 700; color: var(--brand); }
.pv-q { font-weight: 600; margin: 0 0 2px; }
.pv-tag.pv-opt { display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; vertical-align: 2px; }
.pv-hint { font-size: .85rem; color: var(--muted); margin: 0 0 6px; font-style: italic; }
.pv-help { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.pv-help p { margin: 0 0 .4em; }
.pv-help ul { margin: 0 0 .4em; padding-left: 1.2em; }
.pv-opts { list-style: none; margin: 4px 0 0; padding: 0; columns: 2; column-gap: 24px; font-size: .93rem; }
@media (max-width: 600px) { .pv-opts { columns: 1; } }
.pv-opts li { padding: 2px 0 2px 24px; position: relative; break-inside: avoid; }
.pv-opts li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 12px; border: 1.5px solid #8a93a6; }
.pv-opts.radio li::before { border-radius: 50%; }
.pv-opts.checkbox li::before { border-radius: 3px; }
.pv-lines { display: none; }

@media print {
  body { background: #fff; font-size: 11.5pt; }
  .site-header, .site-footer, .no-print, .notice, .skip { display: none !important; }
  main { padding: 0; }
  .card { border: 0; padding: 0; margin: 0 0 16px; }
  .hero { padding: 0 0 8px; }
  h1 { font-size: 20pt; }
  a { color: inherit; text-decoration: none; }
  .pv-lines { display: block; height: 7.5em; background: repeating-linear-gradient(transparent 0 1.45em, #bbb 1.45em calc(1.45em + 1px)); margin-top: 6px; }
  .pv-section { break-before: auto; }
}
