/* Processo Seletivo CMDPII-CZS • Axoriin
   Tema institucional claro, legível e pensado primeiro para o celular. */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4477;
  --red: #b3121b;
  --red-2: #8f0e15;
  --gold: #c9a227;
  --gold-soft: #fbf3dc;
  --green: #17784a;
  --green-soft: #e5f4ec;
  --amber: #a15c00;
  --amber-soft: #fff3df;
  --danger-soft: #fdeceb;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1b2333;
  --muted: #566074;
  --line: #dde3ec;
  --focus: #2f6fed;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Montserrat", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(640px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy) 0 60%, var(--red) 60% 85%, var(--gold) 85%); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--font-title); font-size: .98rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; align-items: center; flex: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .65; cursor: wait; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(179, 18, 27, .25); }
.btn-primary:hover { background: var(--red-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: #eef2f8; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold-soft); }
.btn-danger-text { background: transparent; color: var(--red); border-color: transparent; text-decoration: underline; min-height: 44px; padding-inline: 8px; }
.btn-sm { min-height: 42px; padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .ico { font-size: 1.2em; line-height: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 420px at 85% 10%, rgba(201, 162, 39, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(179, 18, 27, .35), transparent 60%),
    linear-gradient(135deg, #071a33, var(--navy) 45%, var(--navy-2));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; padding: 56px 0 64px; }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero h1 small { display: block; font-size: .36em; letter-spacing: .14em; color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.hero p.lead { font-size: 1.18rem; color: #dbe5f3; max-width: 36em; }
.hero-crest { justify-self: center; width: min(320px, 80%); height: auto; aspect-ratio: 1 / 1; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); background: rgba(255,255,255,.96); border-radius: 50%; padding: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.1); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: #c9d6ea; font-weight: 600; font-size: .95rem; }
.hero-tags span::before { content: "✓ "; color: var(--gold); font-weight: 800; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; margin-bottom: 18px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.status-pill i { width: 10px; height: 10px; border-radius: 50%; background: #9aa6b8; }
.status-pill.abertas i { background: #34d17a; box-shadow: 0 0 0 4px rgba(52, 209, 122, .25); }
.status-pill.em_breve i { background: var(--gold); }
.status-pill.encerradas i { background: #ff7b7b; }

/* ---------- faixa de aviso ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid #ecd9a0; color: #4d3b00;
  border-radius: 14px; padding: 16px 18px; font-weight: 500;
}
.notice .ico { font-size: 1.4rem; line-height: 1.2; }
.notice.info { background: #eaf1fd; border-color: #c7d8f7; color: #18325c; }
.notice.ok { background: var(--green-soft); border-color: #b9e0c9; color: #0f4d2f; }
.notice.warn { background: var(--amber-soft); border-color: #f2d2a0; color: #5c3600; }
.notice.error { background: var(--danger-soft); border-color: #f3c3c0; color: #7a0f14; }
.notice p:last-child { margin: 0; }
.float-notice { margin-top: -30px; position: relative; z-index: 2; box-shadow: var(--shadow); }

/* ---------- seções ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* passos */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-family: var(--font-title);
}
.step .step-ico { position: absolute; top: 18px; right: 22px; font-size: 1.8rem; }
.step p { color: var(--muted); margin: 0; }

/* vagas */
.serie-card { border-top: 5px solid var(--navy); display: flex; flex-direction: column; gap: 6px; }
.serie-card:nth-child(2n) { border-top-color: var(--red); }
.serie-card .serie-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700;
  background: #eef2f8; color: var(--navy); border: 1px solid #d8e0ec;
}
.chip.gold { background: var(--gold-soft); color: #6b5200; border-color: #ecd9a0; }
.chip.green { background: var(--green-soft); color: var(--green); border-color: #b9e0c9; }
.chip.amber { background: var(--amber-soft); color: var(--amber); border-color: #f2d2a0; }
.chip.red { background: var(--danger-soft); color: var(--red); border-color: #f3c3c0; }
.chip.gray { background: #f1f2f4; color: #555e6e; border-color: #e0e3e8; }

/* cronograma */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--navy), var(--red)); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 18px 50px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { display: block; color: var(--navy); font-size: 1.05rem; }
.timeline span { color: var(--muted); font-weight: 600; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.checklist li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- formulários ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; }
.form-head { margin-bottom: 22px; }
.form-head p { color: var(--muted); margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 700; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--muted); font-size: .9rem; }
.field .help { font-size: .92rem; color: var(--muted); margin: 0; }
.field .err { font-size: .92rem; color: var(--red); font-weight: 600; margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  border: 2px solid #cfd7e3; border-radius: 12px; background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(29, 68, 119, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: #fffafa; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 96px; }
.toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 6px 12px; border-radius: 9px; border: 0; background: #eef2f8; color: var(--navy); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.choice-grid { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 2px solid #cfd7e3; border-radius: 14px; padding: 14px 16px; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--navy-3); }
.choice input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.choice b { display: block; color: var(--navy); }
.choice small { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.choice:has(input:checked) { border-color: var(--navy); background: #f2f6fc; box-shadow: 0 0 0 3px rgba(11, 37, 69, .08); }
.choice-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-inline .choice { flex: 1 1 140px; align-items: center; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; padding: 12px 0; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--navy); }

.pass-rules { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: .92rem; }
.pass-rules li { color: var(--muted); }
.pass-rules li::before { content: "○ "; }
.pass-rules li.ok { color: var(--green); font-weight: 600; }
.pass-rules li.ok::before { content: "✓ "; }

.form-msg { margin-bottom: 16px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* páginas internas */
.page-head { background: linear-gradient(135deg, #071a33, var(--navy) 60%, var(--navy-2)); color: #fff; padding: 36px 0 70px; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 4.2vw, 2.3rem); margin-bottom: 6px; }
.page-head p { color: #d2ddee; margin: 0; font-size: 1.05rem; }
.page-head .back { display: inline-flex; gap: 6px; color: #d2ddee; text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.page-head .back:hover { color: #fff; }
.page-body { margin-top: -44px; padding-bottom: 64px; position: relative; z-index: 2; }

/* wizard */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.progress div { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.progress div::before { content: ""; height: 6px; border-radius: 6px; background: #e1e6ee; }
.progress div.done::before, .progress div.current::before { background: var(--navy); }
.progress div.current { color: var(--navy); }
.wizard-step h2 { font-size: 1.35rem; }
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.review div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.review div:nth-child(odd) { background: #f8fafc; }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-weight: 600; }
.review dd { margin: 0; font-weight: 700; color: var(--text); word-break: break-word; }

/* área do responsável */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.journey div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--muted); font-size: .95rem; }
.journey div b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e9edf3; color: var(--muted); font-size: .9rem; }
.journey div.done { color: var(--green); border-color: #b9e0c9; background: #f6fcf8; }
.journey div.done b { background: var(--green); color: #fff; }
.journey div.now { color: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,37,69,.08); }
.journey div.now b { background: var(--navy); color: #fff; }

.area-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.panel-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.panel-title h2 { font-size: 1.35rem; margin: 0; }

.kid-card { border-left: 6px solid var(--navy); }
.kid-card.st-deferida { border-left-color: var(--green); }
.kid-card.st-pendente, .kid-card.st-em_analise { border-left-color: var(--amber); }
.kid-card.st-indeferida, .kid-card.st-cancelada { border-left-color: #9aa3b2; }
.kid-card + .kid-card { margin-top: 14px; }
.kid-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.kid-top h3 { margin: 0; font-size: 1.2rem; }
.kid-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.kid-info small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kid-info strong { color: var(--navy); }
.kid-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.empty { text-align: center; padding: 34px 20px; border: 2px dashed #cfd7e3; border-radius: 16px; background: #fbfcfe; }
.empty .big { font-size: 2.4rem; }

.rules { max-height: 420px; overflow: auto; padding-right: 6px; }
.rules h3 { margin-top: 1em; color: var(--navy); }
.rules h3:first-child { margin-top: 0; }
.rules ul { padding-left: 1.2em; margin: 0 0 1em; }
.rules li { margin-bottom: 6px; }

.data-list { display: grid; gap: 10px; margin: 0; }
.data-list div { display: grid; gap: 2px; }
.data-list dt { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.data-list dd { margin: 0; font-weight: 600; word-break: break-word; }

/* comprovante */
.receipt { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.receipt-head { display: flex; gap: 18px; align-items: center; border-bottom: 3px solid var(--navy); padding-bottom: 18px; margin-bottom: 20px; }
.receipt-head img { width: 76px; height: 76px; object-fit: contain; }
.receipt-head h1 { font-size: 1.35rem; margin: 0; }
.receipt-head p { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.protocol { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: #f2f6fc; border: 1px dashed var(--navy-3); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.protocol small { display: block; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.protocol strong { font-family: var(--font-title); font-size: 1.8rem; color: var(--red); letter-spacing: .04em; }
.receipt h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 22px 0 10px; }
.receipt .sign { margin-top: 26px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* rodapé */
.footer { background: #071a33; color: #b8c6dc; padding: 40px 0 28px; font-size: .95rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-family: var(--font-title); }
.footer a { color: #e3ebf7; }
.footer p { margin: 0 0 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; grid-column: 1 / -1; }

.help-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: #1f9d55; color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-weight: 600; max-width: calc(100% - 32px); }

.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #d8e0ec; border-top-color: var(--navy); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero .wrap { grid-template-columns: 1fr; padding: 34px 0 54px; gap: 8px; }
  .hero-crest { order: -1; width: 92px; padding: 8px; justify-self: start; }
  .hero h1 small { font-size: .5em; }
  .brand-text strong { font-size: .9rem; }
  .hero-actions .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .card, .form-card { padding: 20px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .kid-info { grid-template-columns: 1fr 1fr; }
  .review div { grid-template-columns: 1fr; gap: 2px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .top-actions .btn { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
  .receipt { padding: 20px; }
  .kid-actions .btn { flex: 1 1 auto; }
  .help-fab span { display: none; }
  body:has(.help-fab) { padding-bottom: 76px; }
  .help-fab { padding: 14px; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .footer, .no-print, .help-fab, .page-head { display: none !important; }
  .page-body { margin: 0; padding: 0; }
  .receipt { box-shadow: none; border: 0; padding: 0; }
  .wrap-narrow, .wrap { width: 100%; }
}
@media (max-width: 520px) { .hide-xs { display: none !important; } }

/* ===== Edital 001/2026: mapa, documentos, enquadramentos, tabelas ===== */
.mapa { width: 100%; height: 440px; border-radius: 12px; overflow: hidden; background: #e8edf4; z-index: 0; }
.mapa-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.modal-mapa { position: fixed; inset: 0; z-index: 80; background: rgba(7, 26, 51, .6); display: grid; place-items: center; padding: 16px; }
.modal-mapa > div { background: #fff; border-radius: 18px; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; }
.modal-mapa .mapa { height: min(55vh, 460px); }

.sub-box { border: 2px dashed #cfd7e3; border-radius: 14px; padding: 16px; margin: 4px 0 18px; background: #fbfcfe; }
.sub-box h3 { font-size: 1.05rem; }
.check-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid #cfd7e3; border-radius: 14px; padding: 12px 14px; background: #fff; cursor: pointer; margin-bottom: 8px; }
.check-card input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.check-card b { display: block; color: var(--navy); }
.check-card small { color: var(--muted); display: block; line-height: 1.45; }
.check-card:has(input:checked) { border-color: var(--navy); background: #f2f6fc; }
.tag-inline { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: #6b5200; margin-left: 6px; }

.doc-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.doc-item + .doc-item { margin-top: 12px; }
.doc-item.falta { border-left: 6px solid var(--amber); }
.doc-item.ok { border-left: 6px solid var(--green); }
.doc-item.opc { border-left: 6px solid #c5ccd8; }
.doc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.doc-head h3 { margin: 0; font-size: 1.05rem; }
.doc-files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.doc-files li { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #f6f8fb; border-radius: 10px; padding: 8px 12px; font-size: .93rem; flex-wrap: wrap; }
.doc-files a { font-weight: 600; word-break: break-all; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress-bar { height: 8px; border-radius: 8px; background: #e1e6ee; overflow: hidden; margin-top: 8px; }
.progress-bar span { display: block; height: 100%; background: var(--green); transition: width .3s; }

.enq-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.enq-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: #f6f8fb; font-size: .94rem; }
.enq-list li b { color: var(--navy); }
.enq-list .motivo { display: block; color: var(--muted); font-size: .9rem; }

.tabela { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.tabela th, .tabela td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.tabela th { background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; }
.tabela td:first-child, .tabela th:first-child { text-align: left; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tfoot td { background: #f2f6fc; font-weight: 800; color: var(--navy); }
.table-scroll { overflow-x: auto; border-radius: 14px; }

.acc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.acc + .acc { margin-top: 10px; }
.acc > summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 800; color: var(--navy); position: relative; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--red); }
.acc[open] > summary::after { content: "–"; }
.acc .rules { max-height: none; padding-bottom: 14px; }

.pub-list { display: grid; gap: 10px; }
.pub { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; flex-wrap: wrap; }
.pub small { color: var(--muted); font-weight: 600; }
.pub b { color: var(--navy); display: block; }

.cond-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cond-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.cond-card .pct { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; color: var(--red); }
.cond-card h3 { margin-top: 2px; }
.cond-card ul { padding-left: 1.1em; margin: 8px 0 0; color: var(--muted); }

@media (max-width: 720px) {
  .mapa { height: 360px; }
  .cond-grid { grid-template-columns: 1fr; }
  .tabela { font-size: .86rem; }
  .tabela th, .tabela td { padding: 9px 8px; }
}
@media print {
  .anexo { font-size: 11.5pt; }
}

/* ===== Acompanhamento por fases ===== */
.fases { list-style: none; margin: 0; padding: 0; position: relative; }
.fases::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; background: #d8e0ec; border-radius: 3px; }
.fase { position: relative; padding-left: 58px; margin-bottom: 14px; }
.fase-num { position: absolute; left: 0; top: 14px; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; background: #fff; border: 3px solid #c5ccd8; color: var(--muted); z-index: 1; }
.fase.concluida .fase-num { background: var(--green); border-color: var(--green); color: #fff; }
.fase.andamento .fase-num { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(179, 18, 27, .15); }
.fase.proxima .fase-num { border-color: var(--navy); color: var(--navy); }
.fase details { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.fase.andamento details { border: 2px solid var(--red); }
.fase summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.fase summary::-webkit-details-marker { display: none; }
.fase summary h3 { margin: 0; font-size: 1.12rem; }
.fase summary .datas { color: var(--muted); font-weight: 600; font-size: .9rem; }
.fase summary .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fase summary .seta { color: var(--red); font-size: 1.3rem; font-weight: 800; transition: transform .2s; }
.fase details[open] summary .seta { transform: rotate(90deg); }
.fase-corpo { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.fase-corpo .desc { color: var(--muted); margin: 12px 0; }
.etapas { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.etapas li { display: grid; grid-template-columns: minmax(130px, 210px) 1fr; gap: 10px; padding: 8px 12px; background: #f6f8fb; border-radius: 10px; font-size: .95rem; }
.etapas li b { color: var(--navy); }
.fase-docs h4 { margin: 0 0 8px; color: var(--navy); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.doc-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: #fff; flex-wrap: wrap; }
.doc-link + .doc-link { margin-top: 8px; }
.doc-link:hover { border-color: var(--navy-3); background: #f6f9fe; }
.doc-link b { color: var(--navy); }
.doc-link small { display: block; color: var(--muted); font-weight: 600; }
.doc-link .abrir { font-weight: 800; color: var(--red); white-space: nowrap; }
.novo { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; vertical-align: 2px; margin-left: 6px; }
.sem-docs { color: var(--muted); font-size: .93rem; margin: 0; }
.ultimas { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.ultimas h3 { font-size: 1.05rem; margin-bottom: 10px; }
.fase-atual-chip { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; margin: 0 0 16px 8px; }
@media (max-width: 720px) {
  .fase { padding-left: 50px; }
  .fase-num { width: 38px; height: 38px; top: 16px; font-size: .9rem; }
  .fases::before { left: 18px; }
  .etapas li { grid-template-columns: 1fr; gap: 2px; }
  .fase-atual-chip { margin-left: 0; }
}
