/* Form kandidat — selalu tampil terang (keputusan pemilik). Gaya "hangat & muda" dengan warna biru ParagonCorp (logo #2058A8). Mobile-first. */
:root {
  --navy: #16357a; --brand: #2058a8; --brand-soft: #eaf1fb;
  --bg: #ffffff; --surface: #f5f7fb; --line: #dce3ee; --ink: #16213a; --muted: #5b6680;
  --err: #b42318; --err-bg: #fdecea; --on-brand: #ffffff;
  --radius: 16px;
  color-scheme: only light; /* selalu terang; "only" juga mencegah mode gelap paksa di Chrome Android */
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 680px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }

/* Bilah logo + judul pembuka */
.top { background: #ffffff; border-bottom: 1px solid #e6ebf3; padding-block: 12px; }
.logo { display: block; height: 26px; width: auto; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 100%); color: var(--on-brand);
  border-radius: 0 0 28px 28px; padding-block: 22px 26px; }
.hero h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.hero-sub { margin: 6px 0 0; opacity: .9; font-size: .95rem; }
.hero.compact { padding-block: 14px 16px; border-radius: 0 0 22px 22px; }
.hero.compact h1 { font-size: 1.15rem; }
.hero.compact .hero-sub { display: none; }
.hero.compact .pill { margin-top: 8px; }
.pill { display: inline-block; margin: 14px 0 0; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }

main { padding-block: 22px 48px; }

/* Halaman pembuka (latar terang, mengikuti contoh pemilik) */
body.mode-landing { background: #f3f6fc; }
body.mode-landing .top { background: transparent; border-bottom: 0; padding-block: 20px 0; }
body.mode-landing .logo { height: 34px; }
body.mode-landing .top .wrap { max-width: 920px; }
.landing { padding-block: 40px 56px; }
.l-wrap { max-width: 920px; }
.eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.landing h1 { margin: 0; font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em;
  color: #121a33; text-wrap: balance; }
.landing h1 em { color: var(--brand); font-style: italic; }
.l-break { white-space: nowrap; }
.l-lead { margin: 22px 0 0; font-size: 1.12rem; line-height: 1.6; color: #1d2540; max-width: 60ch; }
.l-sub { margin: 18px 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 64ch; }
.pill-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand); margin-top: 18px; }
.l-note-box { margin: 26px 0 0; background: rgba(255, 255, 255, .7); border: 1px solid #dde6f4; border-radius: var(--radius);
  padding: 18px 20px; max-width: 760px; }
.l-note-title { margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.l-note-text { margin: 6px 0 0; color: #3b4560; font-size: .95rem; line-height: 1.55; }
.flow { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.flow li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9rem; color: #3b4560; }
.flow span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft);
  color: var(--brand); font-size: .78rem; font-weight: 700; flex: none; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.facts strong { color: #121a33; }
.facts svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts a { color: var(--brand); font-weight: 600; }
@media (min-width: 680px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .facts li { padding: 0 22px; border-left: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}
.btn.l-cta { margin-top: 34px; width: 100%; max-width: 340px; }
h1 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 8px; text-wrap: balance; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; padding: 0; color: var(--navy); }
.demo { background: var(--brand-soft); color: var(--ink); padding: 8px 12px; border-radius: 12px; margin: 0 0 14px; font-size: .9rem; }

/* Isian */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .q { font-weight: 600; margin: 0; font-size: .95rem; }
.hint { color: var(--muted); margin: -2px 0 0; font-size: .86rem; }
.sub-h { font-size: 1rem; margin-top: 4px !important; padding-top: 16px; border-top: 1px solid var(--line); color: var(--navy); }
input, select { font: inherit; width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #98a2b5; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(32, 88, 168, .15); background: var(--bg); }
button:focus-visible, .suggest li:focus-visible, .choices label:focus-within { outline: 3px solid rgba(32, 88, 168, .45); outline-offset: 2px; }
input[type=file] { padding: 10px; background: var(--bg); border-style: dashed; }
.row { display: flex; gap: 8px; } .row > * { min-width: 0; }
#kodeNegara { flex: 0 0 116px; }

/* Kartu "Which best describes you right now?" */
.req { color: #c2410c; }
.req-note { margin: -6px 0 2px; }
.wajib > label:first-child::after, .wajib > .q:first-child::after { content: " *"; color: #c2410c; }
.wajib-check .check span::after { content: " *"; color: #c2410c; }
.stages { display: grid; gap: 10px; margin-top: 4px; }
.stage { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.stage input { position: absolute; opacity: 0; pointer-events: none; }
.st-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.st-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-txt { display: grid; gap: 3px; }
.st-txt strong { font-size: 1rem; color: var(--ink); }
.st-txt small { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.stage:hover { border-color: #b9c9e4; }
.stage:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.stage:has(input:focus-visible) { outline: 3px solid rgba(32, 88, 168, .45); outline-offset: 2px; }
@media (min-width: 620px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stage { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 14px; align-content: start; }
  .st-ico { width: 52px; height: 52px; }
}

/* Pilihan (radio) sebagai kartu */
.choices { display: flex; flex-wrap: wrap; gap: 8px; } .choices.col { flex-direction: column; } .choices.col label { flex: none; }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; flex: 1 1 140px; font-weight: 500; }
.choices input, .check input { width: 20px; min-height: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--brand); flex: none; }
.choices label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem; line-height: 1.5; }
.check a { color: var(--brand); font-weight: 600; }

/* Daftar kampus */
.suggest { list-style: none; margin: 0; padding: 6px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg);
  box-shadow: 0 8px 24px rgba(22, 53, 122, .10); }
.suggest li { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--brand-soft); }
.suggest small { color: var(--muted); }
.suggest .ket { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.suggest li[data-id="LN"] { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Pesan */
.err { color: var(--err); margin: 0; font-size: .86rem; font-weight: 500; } .err:empty { display: none; }
.err-box { background: var(--err-bg); color: var(--err); padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.summary { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }

/* Tombol */
.nav { display: flex; gap: 10px; margin-top: 26px; }
.btn { font: inherit; font-weight: 700; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--navy), var(--brand)); color: var(--on-brand); cursor: pointer; flex: 1;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(22, 53, 122, .22); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ulang { flex: none; justify-self: start; min-width: 200px; margin-top: 8px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#thanks, #sending, #config-error { display: grid; gap: 14px; }
#thanks h1, #sending h1, #config-error h1 { color: var(--navy); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
