:root {
  --primary: #0b3d91;
  --primary-light: #173c7b;
  --accent: #c49a4a;
  --dark: #0f2147;
  --light-bg: #f7f7f7;
  --white: #ffffff;
  --text-dark: #222222;
  --text-muted: #5f6777;
  font-family: "Inter", "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(11, 61, 145, 0.08);
  backdrop-filter: blur(12px);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand img {
  display: block;
  max-width: 180px;
  max-height: 55px;
  width: auto;
  height: auto;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(11, 61, 145, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 1.3rem;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 61, 145, 0.1);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 1;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(11, 61, 145, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(11, 61, 145, 0.25);
}

.btn-secondary {
  background: var(--light-bg);
  color: var(--text-dark);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  border-color: var(--primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Vídeo de fundo (lado a lado, sem som, loop infinito) */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Overlay escuro para garantir contraste do texto sobre o vídeo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
              rgba(11, 61, 145, 0.78) 0%,
              rgba(15, 33, 71, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Desabilita animação do vídeo para usuários que pediram menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 800;
}

.hero-section h3 {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-intro {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tagline {
  display: inline-block;
  background: rgba(196, 154, 74, 0.15);
  border: 1px solid rgba(196, 154, 74, 0.3);
  padding: 16px 28px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 20px;
}

/* Section Divider SVG */
.section-divider {
  width: 100%;
  height: 200px;
  display: block;
}

/* Sections */
section {
  padding: 100px 0;
}

section h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 24px;
  color: var(--text-dark);
  text-align: center;
}

section h3 {
  font-size: 1.4rem;
  margin: 0 0 16px;
  color: var(--primary);
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: center;
}

/* Quick Services Section */
.services-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* About Section */
.about-section {
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.about-text p {
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-history-btn {
  margin-top: 20px;
}

.about-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.08);
}

.about-card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
}

.about-card h4 + p + h4 {
  margin-top: 28px;
}

.about-card p {
  margin: 16px 0 0;
  color: var(--text-muted);
}

/* Atuacao Section */
.atuacao-section {
  background: var(--light-bg);
  padding: 100px 0;
}

/* Cursos Section */
.cursos-section {
  background: var(--light-bg);
}

/* Noticias Section */
.noticias-section {
  background: var(--light-bg);
}

/* Support Section */
.support-section {
  background: linear-gradient(135deg, #f9f7f3 0%, var(--light-bg) 100%);
}

/* CTA Center Utility */
.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(11, 61, 145, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(11, 61, 145, 0.15);
}

.card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Impact Cards */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

/* Impact Flip Cards
   ---------------------------------------------------------------
   Estrutura:
   .impact-card.flip-card (container com perspective)
     └ .flip-card-inner   (elemento que rotaciona em Y)
        ├ .flip-card-front (título visível por padrão)
        └ .flip-card-back  (texto, revelado ao virar)
*/
.impact-card.flip-card {
  background: transparent;
  padding: 0;
  perspective: 1200px;
  min-height: 220px;
  cursor: pointer;
  outline: none;
}

.impact-card.flip-card .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.impact-card.flip-card:hover .flip-card-inner,
.impact-card.flip-card:focus-visible .flip-card-inner,
.impact-card.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.impact-card.flip-card .flip-card-front,
.impact-card.flip-card .flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 40px 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 8px 24px rgba(11, 61, 145, 0.12);
}

.impact-card.flip-card .flip-card-front {
  background: var(--primary);
  color: var(--white);
  border: 2px solid transparent;
}

.impact-card.flip-card:hover .flip-card-front {
  border-color: var(--accent);
}

.impact-card.flip-card .flip-card-back {
  background: linear-gradient(135deg, var(--accent) 0%, #a8822f 100%);
  color: var(--white);
  transform: rotateY(180deg);
}

.impact-card.flip-card h4 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.impact-card.flip-card:hover h4 {
  color: var(--white);
}

.impact-card.flip-card p {
  margin: 0;
  opacity: 0.98;
  font-size: 1rem;
  line-height: 1.6;
}

/* Dica visual (ícone girando no canto do front) */
.impact-card.flip-card .flip-card-front::after {
  content: "↻";
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.7;
  transition: transform 0.4s ease;
}

.impact-card.flip-card:hover .flip-card-front::after {
  transform: rotate(180deg);
  color: var(--white);
}

/* Respeita usuários que desabilitaram animações */
@media (prefers-reduced-motion: reduce) {
  .impact-card.flip-card .flip-card-inner {
    transition: none;
  }
}

/* Events Section */
.events-section {
  background: var(--light-bg);
}

.event-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 60px auto 0;
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.08);
}

.event-card h4 {
  color: var(--primary);
  font-size: 1.6rem;
  margin: 0 0 20px;
}

.event-meta {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.event-btn {
  display: inline-block;
  margin-top: 20px;
}

/* Contact Section */
.contact-section {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.contact-box {
  background: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: 16px;
}

.contact-box h3 {
  color: var(--accent);
  margin: 0 0 24px;
}

.contact-box p {
  margin: 12px 0;
  opacity: 0.9;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

footer h4 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 1rem;
}

footer p {
  margin: 0 0 12px;
  line-height: 1.6;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

.footer-copy {
  text-align: center;
  opacity: 0.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  nav ul {
    gap: 16px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header .topbar {
    flex-direction: column;
    gap: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar {
    padding: 16px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    flex-shrink: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(280px, 92vw);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(11, 61, 145, 0.16);
    padding: 18px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
    text-align: right;
    margin: 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
  }

  nav a:not(.btn) {
    background: rgba(247, 247, 247, 0.95);
    color: var(--text-dark);
  }

  nav a.btn {
    background: var(--primary);
    color: var(--white);
  }

  .btn {
    width: 100%;
    max-width: none;
  }

  .hero-section {
    padding: 80px 0;
  }

  section {
    padding: 60px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   PÁGINA DE INSCRIÇÃO (FORMULÁRIO)
   ================================ */
.inscricao-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.inscricao-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  font-weight: 800;
}

.inscricao-hero p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.inscricao-info {
  background: rgba(196, 154, 74, 0.12);
  border: 1px solid rgba(196, 154, 74, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px auto 0;
  max-width: 720px;
  text-align: left;
}

.inscricao-info p {
  margin: 6px 0;
  font-size: 0.98rem;
  opacity: 1;
}

.inscricao-info strong {
  color: var(--accent);
}

.vagas-aviso {
  background: #fff7e6;
  border-left: 4px solid var(--accent);
  color: var(--text-dark);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 900px;
}

.vagas-aviso strong {
  color: var(--primary);
}

.form-page {
  padding: 60px 0 100px;
  background: var(--light-bg);
}

.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.08);
}

.form-section {
  padding: 32px 0;
  border-bottom: 1px solid rgba(11, 61, 145, 0.08);
}

.form-section:first-of-type {
  padding-top: 0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 0 0 8px;
  text-align: left;
}

.form-section .section-number {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.form-section-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.form-field {
  margin-bottom: 22px;
}

.form-field > label,
.form-field-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.required-mark {
  color: #d9534f;
  margin-left: 4px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.form-options.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.5;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.conditional-field {
  margin-top: 14px;
  padding: 16px 20px;
  background: #fafbfe;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
}

.conditional-field .form-field-label {
  font-size: 0.92rem;
  color: var(--primary);
}

.form-submit-wrapper {
  text-align: center;
  padding-top: 32px;
}

.form-submit-wrapper .btn {
  min-width: 260px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.consent-block {
  background: #fafbfe;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 16px;
  border-left: 3px solid var(--accent);
}

.consent-block p {
  margin: 0 0 12px;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.consent-block ul {
  margin: 8px 0 12px 20px;
  padding: 0;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .form-wrapper {
    padding: 32px 20px;
  }

  .form-section h2 {
    font-size: 1.2rem;
  }

  .form-options.inline {
    flex-direction: column;
    gap: 10px;
  }
}

/* ================================
   FEEDBACK DO FORMULÁRIO
   ================================ */
.form-alert {
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-alert--success {
  background: #e7f5ee;
  color: #1b6b3a;
  border-left: 4px solid #2e8b57;
}

.form-alert--error {
  background: #fdecea;
  color: #8a1f1a;
  border-left: 4px solid #d9534f;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.12);
}

.field-error {
  display: block;
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ================================
   BANNER E MODAL DE COOKIES (LGPD)
   ================================ */
body.no-scroll { overflow: hidden; }

#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(11, 61, 145, 0.22);
  padding: 20px 24px;
  animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__text strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner__actions .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  width: auto;
  max-width: none;
}

#cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 33, 71, 0.55);
  backdrop-filter: blur(3px);
}

.cookie-modal__content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: cookieSlideUp 0.3s ease-out;
}

.cookie-modal__content h3 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.cookie-modal__content > p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-option:hover {
  border-color: var(--primary);
  background: #fafbfe;
}

.cookie-option input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.cookie-option strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cookie-option small {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}

.cookie-modal__actions .btn {
  width: auto;
  max-width: none;
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }

  .cookie-modal__content {
    padding: 24px 20px;
  }
}

/* ================================
   PÁGINA DE POLÍTICA DE COOKIES
   ================================ */
.politica-page {
  padding: 60px 0 100px;
  background: var(--light-bg);
}

.politica-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(11, 61, 145, 0.08);
}

.politica-wrapper h1 {
  color: var(--primary);
  margin: 0 0 8px;
  font-size: 2rem;
}

.politica-wrapper .atualizado {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.politica-wrapper h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin: 32px 0 12px;
  text-align: left;
}

.politica-wrapper p,
.politica-wrapper li {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1rem;
}

.politica-wrapper ul {
  padding-left: 20px;
  margin: 12px 0 18px;
}

.politica-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.politica-wrapper th,
.politica-wrapper td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.politica-wrapper thead {
  background: var(--primary);
  color: var(--white);
}

.politica-wrapper thead th {
  border-bottom: none;
}

@media (max-width: 700px) {
  .politica-wrapper {
    padding: 32px 20px;
  }

  .politica-wrapper table,
  .politica-wrapper thead,
  .politica-wrapper tbody,
  .politica-wrapper tr,
  .politica-wrapper th,
  .politica-wrapper td {
    display: block;
  }

  .politica-wrapper thead {
    display: none;
  }

  .politica-wrapper tr {
    border-bottom: 2px solid var(--primary);
    padding: 8px 0;
    margin-bottom: 12px;
  }
}

/* ====================================================================
   WIDGET DE ACESSIBILIDADE (botão flutuante + painel)
   ==================================================================== */
#a11y-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9997;
  font-family: inherit;
}

#a11y-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 61, 145, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#a11y-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(11, 61, 145, 0.45);
}

#a11y-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  min-width: 280px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(11, 61, 145, 0.22);
  padding: 20px;
  border: 1px solid rgba(11, 61, 145, 0.1);
  animation: cookieSlideUp 0.25s ease-out;
}

#a11y-panel h3 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 1.05rem;
  text-align: left;
}

.a11y-group {
  margin-bottom: 16px;
}

.a11y-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.a11y-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.a11y-buttons button {
  flex: 1;
  min-width: 70px;
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--light-bg);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-buttons button:hover {
  border-color: var(--primary);
}

.a11y-buttons button.active {
  background: var(--primary);
  color: var(--white);
}

.a11y-reset {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-reset:hover {
  background: var(--accent);
  color: var(--white);
}

/* ====================================================================
   TAMANHOS DE FONTE (acessibilidade)
   ==================================================================== */
html[data-font="large"]  { font-size: 112.5%; }  /* 18px base */
html[data-font="xlarge"] { font-size: 125%;   }  /* 20px base */

/* ====================================================================
   TEMA ESCURO (dark)
   Fundo escuro + texto claro + acentos em dourado
   ==================================================================== */
html[data-theme="dark"] {
  --primary:       #6b97e6;
  --primary-light: #8eb1f0;
  --accent:        #e0b764;
  --dark:          #05101f;
  --light-bg:      #1a2438;
  --white:         #0f1829;
  --text-dark:     #f2f4f8;
  --text-muted:    #b7bfd1;
}

html[data-theme="dark"] body {
  background: #0f1829;
  color: #f2f4f8;
}

html[data-theme="dark"] header {
  background: rgba(15, 24, 41, 0.95);
  border-bottom: 1px solid rgba(224, 183, 100, 0.18);
}

html[data-theme="dark"] nav a {
  color: #f2f4f8;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .form-wrapper,
html[data-theme="dark"] .politica-wrapper,
html[data-theme="dark"] .inscricao-info,
html[data-theme="dark"] .vagas-aviso {
  background: #1a2438;
  color: #f2f4f8;
  border-color: rgba(224, 183, 100, 0.15);
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .about-text p,
html[data-theme="dark"] .section-intro {
  color: #cfd6e4;
}

html[data-theme="dark"] .btn-secondary {
  background: #22304a;
  color: #f2f4f8;
}

html[data-theme="dark"] footer {
  background: #05101f;
}

html[data-theme="dark"] .menu-toggle {
  background: #1a2438;
  color: var(--accent);
  border-color: rgba(224, 183, 100, 0.3);
}

html[data-theme="dark"] #cookie-banner,
html[data-theme="dark"] .cookie-modal__content,
html[data-theme="dark"] #a11y-panel {
  background: #1a2438;
  color: #f2f4f8;
  border-color: rgba(224, 183, 100, 0.18);
}

html[data-theme="dark"] .hero-overlay {
  background: linear-gradient(135deg,
              rgba(5, 16, 31, 0.88) 0%,
              rgba(0, 0, 0, 0.92) 100%);
}

/* ====================================================================
   TEMA ALTO CONTRASTE
   "Fundo branco com detalhes em azul marinho e dourado nas partes
    em que o fundo ficou cinza" — conforme feedback de acessibilidade
   ==================================================================== */
html[data-theme="contrast"] {
  --primary:       #0a2540;   /* azul marinho mais profundo */
  --primary-light: #0a2540;
  --accent:        #b8860b;   /* dourado mais profundo (DarkGoldenrod) */
  --dark:          #000000;
  --light-bg:      #ffffff;   /* ← era cinza, agora branco */
  --white:         #ffffff;
  --text-dark:     #000000;
  --text-muted:    #333333;
}

html[data-theme="contrast"] body {
  background: #ffffff;
  color: #000000;
}

/* Seções que eram cinza ganham fundo branco + borda dourada superior
   e inferior + acentos em azul marinho */
html[data-theme="contrast"] .about-section,
html[data-theme="contrast"] .atuacao-section,
html[data-theme="contrast"] .cursos-section,
html[data-theme="contrast"] .noticias-section,
html[data-theme="contrast"] .support-section,
html[data-theme="contrast"] .events-section,
html[data-theme="contrast"] .form-page,
html[data-theme="contrast"] .politica-page {
  background: #ffffff;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

html[data-theme="contrast"] .card,
html[data-theme="contrast"] .about-card,
html[data-theme="contrast"] .event-card,
html[data-theme="contrast"] .form-wrapper,
html[data-theme="contrast"] .politica-wrapper {
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.12);
}

html[data-theme="contrast"] .card h4,
html[data-theme="contrast"] .about-card h4,
html[data-theme="contrast"] section h3 {
  color: var(--primary);
}

html[data-theme="contrast"] .card p,
html[data-theme="contrast"] .about-text p,
html[data-theme="contrast"] .section-intro,
html[data-theme="contrast"] footer p,
html[data-theme="contrast"] footer a {
  color: #000000;
}

/* No alto contraste, os botões ficam azul marinho forte com texto branco */
html[data-theme="contrast"] .btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--accent);
}

html[data-theme="contrast"] .btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* Links com sublinhado para reforçar visibilidade */
html[data-theme="contrast"] a:not(.btn) {
  text-decoration: underline;
  color: var(--primary);
  font-weight: 600;
}

/* Flip cards: front branco com borda marinho/dourado */
html[data-theme="contrast"] .impact-card.flip-card .flip-card-front {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--accent);
}

html[data-theme="contrast"] .impact-card.flip-card h4 {
  color: var(--primary);
}

html[data-theme="contrast"] .impact-card.flip-card .flip-card-back {
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--accent);
}

/* Rodapé no alto contraste também inverte: branco com texto marinho */
html[data-theme="contrast"] footer {
  background: #ffffff;
  color: #000000;
  border-top: 4px solid var(--accent);
}

html[data-theme="contrast"] footer h4 {
  color: var(--primary);
}

/* Impact cards padrão (em alto contraste) */
html[data-theme="contrast"] .impact-card {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--accent);
}

/* Hero no alto contraste */
html[data-theme="contrast"] .hero-overlay {
  background: linear-gradient(135deg,
              rgba(10, 37, 64, 0.92) 0%,
              rgba(10, 37, 64, 0.95) 100%);
}

/* Section dividers (bordas em dourado separando seções) */
html[data-theme="contrast"] section {
  border-bottom: 1px solid rgba(184, 134, 11, 0.25);
}

/* Responsivo do widget */
@media (max-width: 700px) {
  #a11y-widget {
    right: 12px;
    bottom: 12px;
  }

  #a11y-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  #a11y-panel {
    min-width: 260px;
    right: -8px;
  }
}
