/* Quadrix — Vanilla HTML/CSS */
:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e5e5e5;
  --foreground: #1a1a1a;
  --muted: #6b7280;
  --secondary: #f3f4f6;
  --primary: #1a1a1a;
  --primary-fg: #ffffff;
  --link: #0a66c2;
  --header-bg: #1a1a1a;
  --header-fg: #ffffff;
  --green: #16a013;
  --green-hover: #138a10;
  --destructive: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: var(--header-bg); color: var(--header-fg); }
.site-header .top-nav { border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-header .top-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 16px;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; font-weight: 600;
}
.site-header .top-nav-inner a {
  color: var(--header-fg); padding: 4px 8px; letter-spacing: .05em;
}
.site-header .top-nav-inner a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-header .top-nav-inner .sep { color: rgba(255,255,255,0.4); }
.site-header .brand-row {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.site-header .brand {
  display: flex; align-items: center; gap: 8px; color: var(--header-fg);
  font-family: 'Oxanium', sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: .02em;
}
.site-header .brand svg { width: 36px; height: 36px; }
.site-header .brand sup { font-size: 10px; }
.btn-candidato {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.4);
  color: var(--header-fg); padding: 8px 18px; border-radius: 9999px;
  font-size: 13px; font-weight: 500; transition: background .15s;
}
.btn-candidato:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.site-footer .footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 24px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.site-footer nav a { color: var(--link); }
.site-footer .secure {
  display: flex; align-items: center; gap: 8px; color: var(--link);
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.site-footer .secure .lock {
  background: rgba(250, 204, 21, .2); color: #ca8a04; padding: 4px;
  border-radius: 4px; width: 28px; height: 28px; display: inline-flex;
  align-items: center; justify-content: center;
}
.site-footer .copy {
  border-top: 1px solid var(--border); text-align: center;
  font-size: 12px; color: var(--muted); padding: 12px;
}

/* Container/Card */
.container { max-width: 1024px; margin: 0 auto; padding: 40px 16px; }
.card { background: var(--card); border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card-header { border-bottom: 1px solid var(--border); padding: 28px 48px; }
.card-header h1 {
  font-family: 'Oxanium', sans-serif; font-size: 32px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; margin: 0;
}
.card-body { padding: 32px 48px; }
@media (max-width: 768px) {
  .card-header, .card-body { padding: 24px; }
  .card-header h1 { font-size: 26px; }
}

/* Section tab */
.section-tab {
  display: inline-block; background: #4a4a4a; color: #fff;
  padding: 8px 24px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; border-radius: 4px;
}

/* Inicio */
.intro { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.intro img { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; }
.intro .sub { font-size: 14px; color: var(--muted); margin: 0; }
.intro h2 { font-size: 24px; font-weight: 700; margin: 4px 0 12px; line-height: 1.2; }
.intro .dates { margin: 0; font-size: 14px; }

.cta-row { display: flex; justify-content: center; margin-top: 32px; }
.btn-green {
  display: inline-block; background: var(--green); color: #fff !important;
  padding: 12px 32px; border-radius: 6px; font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
.btn-green:hover { background: var(--green-hover); text-decoration: none; }

.box-secondary {
  background: var(--secondary); padding: 32px 24px; border-radius: 6px;
  margin-top: 40px;
}
.info-list { margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; }
.info-list li { padding: 4px 0; }
.info-list.bullets li { display: flex; gap: 8px; }
.info-list.bullets li::before { content: "•"; color: var(--muted); }

.vagas-badge {
  display: flex; justify-content: center; margin-top: 40px;
}
.vagas-badge span {
  display: inline-flex; align-items: center; gap: 8px;
  background: #4a4a4a; color: #fff; padding: 8px 24px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; border-radius: 6px;
}

h3.cargo-title { font-size: 18px; font-weight: 600; margin: 24px 0 4px; }
.cargo-desc { font-size: 14px; margin: 4px 0 12px; }

table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden;
}
thead { background: var(--secondary); }
th, td { padding: 12px 16px; text-align: left; }
th { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
th.center, td.center { text-align: center; }
tbody tr { border-top: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }

.pub-list { margin: 32px 0 0; padding: 0; list-style: none; }
.pub-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.pub-list li:first-child { border-top: 0; }
.pdf-badge {
  background: rgba(220, 38, 38, .1); color: var(--destructive);
  font-size: 10px; font-weight: 700; padding: 4px 6px; border-radius: 4px;
  flex-shrink: 0;
}
.pub-list a { text-transform: uppercase; font-size: 13px; }
.pub-list .date { color: var(--muted); text-transform: none; margin-left: 6px; }

.back-row { display: flex; justify-content: flex-end; margin-top: 40px; }
.btn-back {
  display: inline-block; padding: 8px 24px; border-radius: 9999px;
  border: 1px solid var(--border); background: #fff; color: var(--foreground) !important;
  font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.btn-back:hover { background: var(--secondary); text-decoration: none; }

/* Conteúdo das páginas legais */
.prose h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.prose h4 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.prose p { margin: 8px 0; font-size: 15px; }
.prose ul { font-size: 15px; padding-left: 22px; }
.prose li { margin: 4px 0; }

/* Form Área do Candidato */
.form-card { max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-family: inherit;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.btn-primary {
  background: var(--primary); color: var(--primary-fg); border: 0;
  padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { opacity: .9; }
.note {
  background: #fef3c7; border: 1px solid #fde68a; color: #92400e;
  padding: 12px 16px; border-radius: 6px; font-size: 13px; margin: 16px 0;
}

/* ===== Área do Candidato — fluxo multi-etapas ===== */
.page-title { font-family:'Oxanium',sans-serif; font-size:24px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin:0 0 16px; }
.card-soft { background:#fff; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,.05); padding:32px; }
@media (max-width:600px){ .card-soft{ padding:20px; } }
.concurso-bar { display:flex; gap:16px; align-items:flex-start; padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid var(--border); }
.concurso-bar img { width:56px; height:56px; border-radius:6px; object-fit:contain; }
.concurso-bar .kicker { font-size:11px; text-transform:uppercase; color:var(--muted); margin:0; }
.concurso-bar .title { font-weight:600; margin:2px 0; }
.concurso-bar .dates { margin:4px 0 0; font-size:13px; color:var(--muted); }

.step .bold { font-weight:700; }
.terms-box { background:#f3f4f6; border:1px solid var(--border); border-radius:6px; padding:18px; font-size:14px; line-height:1.6; }
.terms-box p { margin:0 0 10px; }
.chk-row { display:flex; gap:8px; align-items:flex-start; font-size:14px; margin-top:16px; }
.chk-row input { margin-top:3px; }
.footer-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }
.btn-outline {
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 20px; border-radius:9999px; border:1px solid var(--border);
  background:#fff; color:var(--foreground); font-size:13px; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em; cursor:pointer;
  box-shadow:0 1px 2px rgba(0,0,0,.05); text-decoration:none;
}
.btn-outline:hover { background:var(--secondary); text-decoration:none; }
.btn-outline:disabled { opacity:.5; cursor:not-allowed; }

.lbl { display:block; font-size:13px; font-weight:600; margin:8px 0 6px; }
.inp { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:6px; font-size:14px; font-family:inherit; background:#fff; }
.inp:focus { outline:none; border-color:#777; }
.inp-md { max-width:380px; }
.small { font-size:12px; color:var(--muted); margin:6px 0 0; }

.section-bar { background:#f3f4f6; padding:8px 16px; border-radius:4px; text-align:center; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; margin:24px 0 14px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px){ .grid2{ grid-template-columns:1fr; } }
.field { margin-bottom:10px; }
.field label { display:block; font-size:13px; font-weight:600; margin-bottom:5px; }

.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; background:#f9fafb; border:1px solid var(--border); border-radius:6px; padding:16px; font-size:13px; }
@media (max-width:600px){ .info-grid{ grid-template-columns:1fr; } }
.info-cell .lbl-info { font-weight:600; margin-right:4px; }

.warn-box { background:#fffbeb; border:1px solid #fde68a; border-radius:6px; padding:14px; font-size:13px; margin-bottom:14px; }
.warn-box p { margin:0 0 8px; }
.grupo-cond { border-top:1px solid var(--border); padding:10px 0; }
.grupo-cond p { margin:0 0 6px; font-size:14px; }
.radio-row { display:flex; gap:24px; font-size:14px; margin:6px 0 8px; }
.declar-box { background:#f9fafb; border:1px solid var(--border); border-radius:6px; padding:14px; margin-top:20px; font-size:13px; }
.declar-box ul { margin:10px 0 0 24px; padding:0; }
.declar-box li { margin:4px 0; }

.success-line { color:#15803d; font-weight:600; font-size:14px; margin:0 0 10px; }
.block-title { font-size:18px; font-weight:700; text-transform:uppercase; margin:18px 0 6px; }
.resumo-list { border-top:2px solid var(--primary); padding-top:10px; font-size:14px; }
.resumo-line { padding:8px 0; border-bottom:1px solid var(--border); }

.pgto-box { border-top:2px solid var(--primary); padding-top:10px; font-size:14px; }
.metodo-row { display:flex; align-items:center; gap:12px; border:1px solid var(--border); background:#fff; border-radius:6px; padding:12px; margin-top:10px; cursor:pointer; }
.metodo-row .muted { margin-left:auto; color:var(--muted); }
.btn-primary-outline { background:#fff; color:var(--primary); border:2px solid var(--primary); padding:8px 20px; border-radius:6px; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; }
.btn-primary-outline:hover { background:rgba(0,0,0,.04); }

/* Modal PIX */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:50; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal[hidden] { display:none; }
.modal-card { background:#fff; border-radius:8px; max-width:440px; width:100%; padding:22px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.modal-head h3 { margin:0; font-size:16px; font-weight:700; text-transform:uppercase; }
.modal-head button { background:none; border:0; font-size:18px; cursor:pointer; color:var(--muted); }
.modal-state .center { text-align:center; }
.spinner { width:42px; height:42px; border:3px solid #e5e5e5; border-top-color:var(--primary); border-radius:50%; animation:spin 1s linear infinite; margin:0 auto 12px; }
@keyframes spin { to { transform:rotate(360deg); } }
.error-text { color:#b91c1c; text-align:center; margin:12px 0; }
.qr-img { width:220px; height:220px; border:1px solid var(--border); border-radius:6px; }
.mono { font-family:monospace; font-size:12px; }
.center { text-align:center; }
