/* ========================================
   Instituto AOCP – SESA/AP
   Reset, Tipografia & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #1d2330;
  background: #f5f7fb;
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header – sticky branco, borda inferior
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e7ebf0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { display: block; height: 28px; width: auto; }
.home .brand img { height: 50px; }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav a {
  color: #2c3443;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1;
  transition: color .2s;
}
.main-nav a:hover { color: #1a8d6f; }

.has-caret a::after {
  content: "\25BE";
  margin-left: 6px;
  font-size: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
  color: #2c3443;
}

.header-cta { margin-left: auto; flex-shrink: 0; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: filter .2s;
}
.btn-green { background: #12c488; color: #fff; box-shadow: 0 2px 8px rgba(18,196,136,0.22); }
.btn-green:hover { filter: brightness(0.92); }
.btn-blue { background: #0ea5e9; color: #fff; }
.btn-secondary { background: #e5e7eb; color: #111827; }

/* ========================================
   Hero – fundo cinza, brasão centralizado
   ======================================== */
.hero { padding: 48px 0 28px; }

.hero-logos {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.hero-logos img {
  height: 100px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.hero h1 {
  text-align: center;
  font-size: 26px;
  line-height: 1.25;
  color: #233b6e;
  margin: 12px 0 14px;
  font-weight: 700;
  letter-spacing: .3px;
}

.subtitle {
  text-align: center;
  color: #5b6575;
  max-width: 980px;
  margin: 0 auto 34px;
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   Colunas – Links + Publicações
   ======================================== */
.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 960px) {
  .columns { grid-template-columns: 1fr 1fr; align-items: start; }
}

.section-title {
  font-size: 16px;
  letter-spacing: 1px;
  color: #2b3e52;
  text-align: center;
  margin: 0 0 16px;
  font-weight: 700;
}

/* Cards de publicação/link */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(18, 29, 52, 0.04);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(18, 29, 52, 0.08); }

.card a {
  color: #2b3e52;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}
.card a:hover { text-decoration: underline; color: #1a8d6f; }

/* Ícones dentro dos cards */
.icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid #7d8796;
  flex-shrink: 0;
  margin-top: 2px;
}
.icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  background: #7d8796;
  border-radius: 50%;
}
.icon.file::before, .icon.doc::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: transparent;
  border: 2px solid #7d8796;
}
.icon.link { border-color: #12c488; }
.icon.link::before { background: #12c488; }

/* ========================================
   Flutuantes – Acessibilidade + Chat
   ======================================== */
.floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 80;
}
.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #14b37d;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(20,179,125,0.35);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.chat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #21c58b;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 28px;
  box-shadow: 0 6px 16px rgba(33,197,139,0.35);
  font-weight: 600;
  transition: filter .2s;
}
.chat:hover { filter: brightness(0.92); }
.chat-icon { font-size: 18px; }
.chat-text { font-weight: 600; }

/* ========================================
   Footer – cinza claro
   ======================================== */
.site-footer {
  background: #f0f2f7;
  border-top: 1px solid #e7ebf0;
  margin-top: 40px;
}
.site-footer .container {
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .3px;
  color: #2b3e52;
}
.footer-col p {
  margin: 0;
  color: #485363;
  font-size: 13px;
  line-height: 1.5;
}
.footer-col a { color: #2b62bd; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.policy-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}
.policy-links a { color: #2b62bd; text-decoration: none; font-size: 13px; }
.policy-links a:hover { text-decoration: underline; }

.did-you-know {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e0e6ee;
  color: #4b5666;
  font-size: 13px;
}
.did-you-know strong {
  display: block;
  margin-bottom: 8px;
  color: #2b3e52;
}

.social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3eaf5;
  color: #27405a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.social a:hover {
  background: #1a8d6f;
  color: #fff;
}
.social a svg { display: block; }

/* ========================================
   Mobile – Hamburger menu
   ======================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .main-nav ul {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 18px;
    display: none;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    border-top: 1px solid #e7ecf3;
    z-index: 90;
  }
  body.nav-open .main-nav ul { display: flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .hero h1 { font-size: 20px; }
  .hero-logos img { height: 70px; }
}

/* Footer mobile */
@media (max-width: 640px) {
  .site-footer .container { padding-top: 16px; padding-bottom: 16px; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    align-items: start;
  }
  .footer-col h3 { font-size: 11px; margin-bottom: 4px; }
  .footer-col p { font-size: 11px; line-height: 1.3; margin: 0; }
  .footer-col br { display: none; }
  .policy-links a { font-size: 11px; }
}

/* ========================================
   Utilidades
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.hidden { display: none !important; }

/* ========================================
   FAQ / Atendimento ao Candidato
   ======================================== */
.faq-hero { padding: 28px 0 24px; }
.faq-title {
  text-align: center;
  color: #233b6e;
  font-size: 22px;
  margin: 8px 0 6px;
  font-weight: 700;
}
.faq-meta {
  text-align: center;
  color: #5b6575;
  margin: 0;
  font-size: 13px;
}

.faq-list {
  max-width: 1120px;
  margin: 14px auto 0;
  display: grid;
  gap: 10px;
}
.faq-item { background: #1a8d6f; border-radius: 10px; }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  color: #fff;
  font-weight: 600;
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] > summary { border-bottom: 1px solid rgba(255,255,255,0.18); }
.faq-item > summary::after {
  content: "\25BC";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 10px;
  opacity: .9;
  transition: transform .2s;
}
.faq-item[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-answer {
  padding: 14px 18px 16px;
  color: #eafbf6;
  background: #166f59;
  border-radius: 0 0 10px 10px;
}

/* ========================================
   Contato
   ======================================== */
.contact-section { padding: 28px 0 24px; }
.contact-title {
  text-align: center;
  color: #233b6e;
  font-size: 22px;
  margin: 6px 0 2px;
  font-weight: 700;
}

.form-card {
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  padding: 18px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(18,29,52,.04);
}

.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-weight: 600; color: #2b3e52; font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #1d2330;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.02);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: #1a8d6f;
  box-shadow: 0 0 0 3px rgba(26,141,111,.12);
}
.field textarea { resize: vertical; }
.actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.alert-success {
  background: #10b981;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

/* ========================================
   Quem Somos
   ======================================== */
.page-section { padding: 28px 0 8px; }
.page-title {
  text-align: center;
  color: #233b6e;
  font-size: 22px;
  margin: 10px 0 14px;
  font-weight: 700;
  letter-spacing: .5px;
}
.sub-title { color: #233b6e; font-size: 16px; margin: 18px 0 8px; font-weight: 600; }
.lead { color: #2b3e52; line-height: 1.7; }
.dot-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: grid;
  gap: 10px;
}
.dot-list li { position: relative; padding-left: 16px; color: #2b3e52; line-height: 1.6; }
.dot-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: #1a8d6f; font-weight: 700; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #213a6d;
  text-decoration: none;
  font-weight: 600;
}
.back-link::before {
  content: "\2190";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e7ecf3;
  color: #213a6d;
  font-size: 12px;
}

/* ========================================
   Wizard (Inscrição) – preservado
   ======================================== */
.wizard-steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: center;
  --step-size: 22px;
}
.wizard-steps li {
  text-align: center;
  font-size: 12px;
  color: #8a96a8;
  position: relative;
  padding-top: calc(var(--step-size) + 8px);
}
.wizard-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: var(--step-size);
  height: var(--step-size);
  border-radius: 50%;
  border: 2px solid #cfd8e3;
  background: #fff;
  box-sizing: border-box;
}
.wizard-steps li.active { color: #2b3e52; font-weight: 700; }
.wizard-steps li.active::before { border-color: #1aa06f; background: #1aa06f; }
@media (max-width: 720px) {
  .wizard-steps { grid-template-columns: repeat(6, 1fr); --step-size: 18px; }
  .wizard-steps li { padding-top: calc(var(--step-size) + 8px); font-size: 11px; }
}

.grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

/* Cabeçalho do formulário AOCP */
.aocp-ribbon { background: #f5f7fb; border: 1px solid #e6ecf2; border-radius: 10px; padding: 16px 18px; }
.aocp-title { margin: 0 0 8px; font-size: 18px; color: #2b3e52; font-weight: 700; }
.aocp-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aocp-logos { height: 22px; width: auto; display: block; }
.aocp-edital { font-weight: 700; color: #2b3e52; margin-right: 8px; }
.aocp-desc { color: #647084; font-size: 13px; flex: 1 1 100%; }

.error-text { color: #dc2626; font-size: 12px; margin: 4px 0; display: block; }

/* Confirmação */
.confirm-section { margin: 14px 0; border: 1px solid #e6ecf2; border-radius: 6px; }
.confirm-title {
  margin: 0;
  padding: 8px 10px;
  background: #f5f7fb;
  border-bottom: 1px solid #e6ecf2;
  font-size: 13px;
  color: #2b3e52;
  font-weight: 600;
}
.confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 10px; }
.confirm-grid > div { font-size: 14px; color: #1d2330; }
.confirm-grid strong { display: block; color: #475569; font-size: 12px; margin-bottom: 2px; }
.confirm-consent { margin-top: 12px; display: grid; gap: 10px; }
.consent-item { display: flex; gap: 8px; align-items: flex-start; color: #1d2330; }

/* Modal Sucesso */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: grid;
  place-items: center;
  z-index: 999;
}
.modal-card {
  background: #fff;
  padding: 22px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  text-align: center;
  width: min(92vw, 520px);
  max-height: calc(100vh - 100px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-card h3 { margin: 0 0 8px; font-size: 18px; }
.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #0ea5e9;
  margin: 8px auto 0;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Accordion (comprovante) */
.accordion { border: 1px solid #e6ecf2; border-radius: 6px; }
.accordion-item + .accordion-item { border-top: 1px solid #e6ecf2; }
.accordion-header {
  background: #f5f7fb;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.accordion-body { display: none; padding: 12px 14px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-item.open .accordion-header { background: #e9f1ff; }

/* PIX modal */
.pix-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f3f4f6;
  border: 1px dashed #9ca3af;
  padding: 10px;
  border-radius: 6px;
  word-break: break-all;
}
.btn-small {
  padding: 6px 10px;
  border-radius: 8px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn-small:hover { filter: brightness(0.95); }

/* Pagamento – bloco destacado */
.payment-box {
  border: 1px solid #e6ecf2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
  padding: 16px;
}
.payment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px;
  border-bottom: 1px solid #eef2f7;
}
.badge-pix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eefc;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  letter-spacing: .4px;
  font-size: 12px;
}
.payment-header .title { font-weight: 800; color: #1f2937; font-size: 16px; line-height: 1.1; }
.payment-header .subtitle { color: #647084; font-size: 12px; }
.amount-due {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #1f2937;
  font-size: 18px;
}
.amount-due .chip {
  background: #eef2ff;
  color: #1e3a8a;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
}
.payment-benefits { display: grid; gap: 6px; margin: 6px 0 10px; color: #2b3e52; font-size: 13px; }
.payment-benefits .row { display: flex; align-items: center; gap: 8px; }
.payment-benefits .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8eefc;
  color: #1d4ed8;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  border: none;
}
.payment-actions { display: flex; justify-content: flex-end; }
.btn-large {
  padding: 12px 18px;
  font-weight: 800;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}
.btn-large.btn-green {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37,99,235,.25);
}
.btn-large.btn-green:hover { filter: brightness(.97); }
.help-text { color: #647084; font-size: 12px; }

@media (max-width: 640px) {
  .payment-header .title { font-size: 15px; }
  .payment-header .subtitle { font-size: 11px; }
  .amount-due { font-size: 16px; }
}
