/* Tipografia e reset básico */
* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #1d2330;
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  * {
    max-width: 100%;
  }
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
}

.container {
  width: 100%;
  max-width: 1120px; /* mais estreito como no print */
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  main.container {
    padding: 14px 0 20px !important;
    max-width: 100vw;
    overflow-x: hidden;
  }
  h2, h3 {
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  main {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Header */
.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: 56px; /* altura menor como no print */
}
@media (max-width: 768px) {
  .header-inner {
    gap: 8px;
    min-height: auto;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
  }
  .brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    flex: 0 0 auto;
  }
  .brand img { height: 24px; }
  .main-nav {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
  }
  .main-nav ul {
    gap: 8px;
    font-size: 11px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .header-cta {
    display: none;
  }
  .header-cta .btn {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
  }
}
.main-nav { flex: 1; min-width: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }

.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; }
@media (max-width: 768px) {
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
}

.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; }
@media (max-width: 768px) {
  .main-nav ul {
    flex-wrap: wrap;
  }
  .main-nav a {
    white-space: normal;
    word-break: break-word;
  }
}
.main-nav .has-caret a::after {
  content: "\25BE"; /* triângulo para baixo */
  margin-left: 6px;
  font-size: 10px;
}

.header-cta { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 12px; white-space: nowrap; line-height: 1; border: none; cursor: pointer; }
.btn-green { background: #12c488; color: #fff; box-shadow: 0 2px 8px rgba(18,196,136,0.22); }
.btn-blue { background:#0ea5e9; color:#fff; }
.btn-secondary { background:#e5e7eb; color:#111827; }
.btn-green:hover { filter: brightness(0.95); }
@media (max-width: 768px) {
  .btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }
}

/* Hero / Conteúdo principal */
.hero { padding: 40px 0 20px; }
.hero-logos { display: flex; justify-content: center; margin-bottom: 6px; }
.hero-logos img { height: 16px; width: auto; display: block; }
.home .hero-logos img { height: 28px; }
.home .brand img { height: 50px; }
.hero h1 {
  text-align: center;
  font-size: 26px;
  line-height: 1.25;
  color: #233b6e; /* azul mais próximo do print */
  margin: 8px 0 10px;
  font-weight: 700;
  letter-spacing: .3px;
}
.subtitle { text-align: center; color: #5b6575; max-width: 980px; margin: 0 auto 34px; font-size: 14px; }

.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; }

.card-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.card {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 10px;
  background: #f1f4f8; /* cinza claro do print */
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(18, 29, 52, 0.03);
}
.card a { color: #2b3e52; text-decoration: none; font-weight: 600; }
.card a:hover { text-decoration: underline; }

.icon { width: 22px; height: 22px; border-radius: 50%; background: transparent; display: inline-block; position: relative; border: 2px solid #7d8796; }
.icon::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; background: #7d8796; border-radius: 50%; }
.icon.search::after { content: ""; position: absolute; width: 8px; height: 2px; background: #7d8796; right: -6px; bottom: -2px; transform: rotate(45deg); border-radius: 2px; }
.icon.file::before, .icon.doc::before { width: 10px; height: 10px; border-radius: 2px; background: transparent; border: 2px solid #7d8796; }


/* Footer */
.site-footer { background: #f6f8fb; border-top: 1px solid #e7ebf0; margin-top: 40px; }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; }
.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; }
.policy-links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.policy-links a { color: #2b62bd; text-decoration: none; }
.policy-links a:hover { text-decoration: underline; }

.did-you-know { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e0e6ee; color: #4b5666; }
.did-you-know strong { display: block; margin-bottom: 8px; color: #2b3e52; }

.social { margin-top: 14px; display: flex; gap: 12px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: #e3eaf5; color: #27405a; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }

/* Utilidades */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* FAQ */
.faq-hero { padding: 28px 0 24px; }
.faq-title { text-align: center; color: #233b6e; font-size: 22px; margin: 8px 0 6px; }
.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;
}
.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; }
.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; }
.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); }
.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; }
.lead { color: #2b3e52; }
.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; }
.dot-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: #2b3e52; }
.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) */
.wizard-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: center; }
.wizard-steps li { text-align: center; font-size: 12px; color: #8a96a8; position: relative; padding-top: 34px; }
.wizard-steps li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cfd8e3; background: #fff; }
.wizard-steps li.active { color: #2b3e52; font-weight: 700; }
.wizard-steps li.active::before { border-color: #1aa06f; background: linear-gradient(#1aa06f,#1aa06f); }
@media (max-width: 768px) {
  .wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px 8px;
    padding: 0;
    margin-bottom: 12px;
  }
  .wizard-steps li {
    font-size: 10px;
    padding-top: 26px;
    word-break: break-word;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .wizard-steps li::before {
    width: 18px;
    height: 18px;
  }
}

.form-card { background: #fff; border: 1px solid #e7ecf3; border-radius: 12px; padding: 18px; box-shadow: 0 2px 6px rgba(18,29,52,.04); }
.grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .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; }
.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%; }
@media (max-width: 768px) {
  .aocp-ribbon {
    padding: 12px 14px;
  }
  .aocp-title {
    font-size: 16px;
    line-height: 1.3;
  }
  .aocp-desc {
    font-size: 12px;
    line-height: 1.4;
  }
  .aocp-edital {
    font-size: 12px;
  }
}

.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; }
.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; }
@media (max-width: 768px) {
  .confirm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .confirm-grid > div {
    font-size: 13px;
  }
}
.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; padding: 16px; overflow-y: auto; }
.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: 90vh; overflow-y: auto; }
.modal-card h3 { margin: 0 0 8px; font-size: 18px; }
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .modal-card {
    width: 100%;
    max-width: 100vw;
    padding: 20px 16px;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin: 0;
    text-align: left;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .modal-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
    flex-shrink: 0;
  }
  .modal-card p {
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    flex-shrink: 0;
  }
  .modal-card > div {
    display: grid;
    gap: 12px;
    flex: 1;
    min-height: 0;
  }
  .modal-card #pixContent {
    overflow-y: visible;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    flex: 1;
    min-height: 0;
  }
  .modal-card #pixContent > div {
    overflow-y: visible;
    overflow-x: hidden;
    max-height: none;
    width: 100%;
    max-width: 100%;
  }
  .modal-card button {
    flex-shrink: 0;
  }
}
.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; }
@media (max-width: 768px) {
  .accordion-header {
    padding: 10px 12px;
    font-size: 13px;
  }
  .accordion-body {
    padding: 10px 12px;
  }
}

/* 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; font-size: 12px; overflow-wrap: break-word; max-width: 100%; }

/* Tracking Styles */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.btn-small { padding: 6px 10px; border-radius: 8px; background: #0ea5e9; color: #fff; border: none; cursor: pointer; font-size: 12px; }
.btn-small:hover { filter: brightness(0.95); }
@media (max-width: 768px) {
  .pix-code {
    font-size: 11px;
    padding: 8px;
    line-height: 1.4;
  }
  .btn-small {
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    margin-top: 8px;
  }
  /* Ajustes para alertas e textos no modal mobile */
  .modal-card div[style*="background: #fef3c7"] {
    padding: 10px !important;
    margin-top: 10px !important;
  }
  .modal-card div[style*="background: #fef3c7"] p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  .modal-card div[style*="background: #fef3c7"] strong {
    font-size: 12px !important;
  }
  .modal-card img[alt="QR Code PIX"] {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}


