/* Desafio dos Dados 2026 — PHP, assets locais (sem Tailwind/CDN de fontes) */
:root {
  /* Roxo institucional — Figma Landing (#40005d) */
  --vivo-purple: #40005d;
  --vivo-purple-rgb: 64, 0, 93;
  --vivo-purple-light: #5c2180;
  --vivo-purple-dark: #2d003d;
  /* Laranja marca — Figma / identidade visual (Vivo) */
  --logo-brand-orange: #ff6600;
  --logo-brand-orange-rgb: 255, 102, 0;
  --logo-brand-orange-dark: #cc5200;
  --logo-brand-orange-soft: rgba(255, 102, 0, 0.6);
  --vivo-magenta: #e6007e;
  /* Rosa «Área do professor» / CTA squad (referência visual #E91E63) */
  --acesso-squad-pink: #e91e63;
  --acesso-squad-pink-rgb: 233, 30, 99;
  --vivo-yellow: #ffd100;
  --vivo-green: #66cc33;
  --vivo-gray: #f5f5f5;
  --footer-purple: var(--vivo-purple);
  --text: #374151;
  --text-muted: #6b7280;
  --white: #fff;
  --radius: 0.75rem;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Recuo p/ conteúdo (JS define --site-header-offset em px). Fallback p/ tamanho “original” roxo+faixa branca */
  --site-header-total: 6.8cm;
  --site-header-offset: max(4.5rem, calc(7.5cm + 1.1rem));
}

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

html {
  scroll-behavior: smooth;
  /* Ancoras e scroll-into-view: não ficar por baixo do header fixo */
  scroll-padding-top: var(--site-header-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

body.page-home,
body.page-form,
body.page-thanks,
body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.acesso-squad-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 auto 1.75rem;
  max-width: 48rem;
  background: var(--vivo-gray);
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.acesso-squad-bar-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  flex: 1 1 12rem;
}

/* CTA «Já tenho squad cadastrado» — fundo rosa vibrante + texto branco (alinhado ao anexo) */
.acesso-squad-bar .btn.btn-outline {
  background: var(--acesso-squad-pink);
  border: 2px solid var(--acesso-squad-pink);
  color: var(--white);
}

.acesso-squad-bar .btn.btn-outline:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(var(--acesso-squad-pink-rgb), 0.35);
}

.acesso-squad-bar .btn.btn-outline:focus-visible {
  outline: 2px solid #c2185b;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1280px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.main-content {
  flex: 1;
}

/* Conteúdo interno: afasta o título da faixa do cabeçalho (logo Desafio + barra) */
body.page-form .main-content {
  padding-top: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled .nav-wrap {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.top-bar {
  background: var(--vivo-purple);
  color: var(--white);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 3cm;
  padding-top: 0.5cm;
  padding-bottom: 0.5cm;
  font-size: 0.875rem;
}

.top-bar-fundacao-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.95;
  text-decoration: none;
}

.top-bar-fundacao-link:hover {
  opacity: 1;
}

.top-bar-fundacao-img {
  display: block;
  height: clamp(1.85cm, 2.1vw, 2.2cm);
  width: auto;
  max-width: min(32rem, 60vw);
  min-height: 1.7cm;
  object-fit: contain;
}

@media (min-width: 640px) {
  .top-bar-fundacao-img {
    height: clamp(2.1cm, 2.4vw, 2.55cm);
    max-width: 36rem;
  }
}

.top-bar-right-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 0.9rem;
  margin-left: auto;
}

.top-bar-pense {
  display: flex;
  align-items: center;
  line-height: 0;
  background: transparent;
}

.top-bar-pense-img {
  display: block;
  height: clamp(1.48cm, 1.8vw, 1.88cm);
  width: auto;
  max-width: min(20rem, 48vw);
  min-height: 1.3cm;
  object-fit: contain;
}

@media (min-width: 640px) {
  .top-bar-pense-img {
    height: clamp(1.7cm, 2vw, 2.1cm);
    max-width: 22rem;
  }
}

.top-bar-link {
  opacity: 0.85;
  font-size: clamp(0.9rem, 0.2cm + 0.8rem, 1.1rem);
  white-space: nowrap;
}

.top-bar-link:hover {
  opacity: 1;
}

.nav-wrap {
  transition: background 0.3s;
}

/* Faixa branca + título laranja «Desafio dos Dados» (tamanho original antes da redução extra) */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 2.32cm;
  padding-top: 0.51cm;
  padding-bottom: 0.51cm;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: clamp(0.96rem, 0.2cm, 1.44rem);
}

.logo-icon {
  width: clamp(3.85rem, 1.45cm, 4.65rem);
  height: clamp(3.85rem, 1.45cm, 4.65rem);
  min-width: 3.85rem;
  min-height: 3.85rem;
  border-radius: 9999px;
  background: var(--logo-brand-orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: clamp(1.7rem, 0.6cm, 1.9rem);
  height: clamp(1.7rem, 0.6cm, 1.9rem);
}

.logo-title {
  display: block;
  font-weight: 700;
  font-size: clamp(1.1rem, 0.12cm + 0.9rem, 1.4rem);
  color: var(--logo-brand-orange-dark);
  line-height: 1.2;
}

.logo-year {
  font-size: clamp(0.76rem, 0.05cm + 0.7rem, 0.9rem);
  color: var(--logo-brand-orange-soft);
  font-weight: 600;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.nav-link:hover {
  color: var(--vivo-purple);
  background: rgba(var(--vivo-purple-rgb), 0.06);
}

.nav-cta {
  margin-left: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-magenta {
  background: var(--vivo-magenta);
  color: var(--white);
}

.btn-magenta:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(var(--vivo-purple-rgb), 0.2);
  color: var(--vivo-purple);
}

.btn-outline:hover {
  border-color: rgba(var(--vivo-purple-rgb), 0.4);
  background: rgba(var(--vivo-purple-rgb), 0.05);
}

.btn-purple {
  background: var(--vivo-purple);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--vivo-purple-light);
}

.lg-hide {
  display: flex;
}

@media (min-width: 1024px) {
  .lg-hide {
    display: none !important;
  }
}

.hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .hide-sm {
    display: inline;
  }
}

.nav-toggle {
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.5rem;
  height: 2px;
  background: #374151;
  border-radius: 1px;
}

.nav-mobile {
  background: var(--white);
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.nav-mobile-inner {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: #374151;
}

.nav-mobile-link:hover {
  color: var(--vivo-purple);
  background: rgba(var(--vivo-purple-rgb), 0.05);
}

.nav-mobile-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--vivo-purple-dark);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  display: block;
  height: clamp(2.96rem, 6.76vw, 3.97rem);
  width: auto;
  max-width: 100%;
}

.footer-logo-icon {
  background: rgba(255, 255, 255, 0.1);
}

.footer-logo-text .logo-title {
  color: var(--white);
}

.footer-logo-text .logo-year {
  color: rgba(255, 255, 255, 0.55);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Home layout */
.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--site-header-offset);
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, rgba(250, 245, 255, 0.5) 50%, rgba(253, 242, 248, 0.35) 100%);
  z-index: 0;
}

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

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 209, 0, 0.2);
  color: var(--vivo-purple);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--vivo-purple);
}

.text-gradient {
  background: linear-gradient(to right, var(--vivo-purple), #e6007e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 32rem;
  margin-bottom: 2rem;
  color: #374151;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.hero-img-wrap {
  position: relative;
}

.hero-img-ring {
  position: absolute;
  inset: -1rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(var(--vivo-purple-rgb), 0.15), rgba(230, 0, 126, 0.08));
  transform: rotate(2deg);
  z-index: 0;
}

.hero-img {
  position: relative;
  border-radius: 1rem;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(var(--vivo-purple-rgb), 0.2);
  z-index: 1;
}

.hero-float {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.hero-float-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(102, 204, 51, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vivo-green);
}

.section-stats {
  background: var(--vivo-purple);
  color: var(--white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  color: var(--vivo-yellow);
}

.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: 5rem 0;
  scroll-margin-top: calc(var(--site-header-offset) + 0.75rem);
}

.section-muted {
  background: var(--vivo-gray);
}

.section-label {
  display: inline-block;
  color: var(--vivo-magenta);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--vivo-purple);
  margin: 0 0 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
}

.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Premiação: no mobile, texto antes da imagem */
.premio-grid .premio-text {
  order: -1;
}

@media (min-width: 1024px) {
  .premio-grid .premio-text {
    order: 0;
  }
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--vivo-gray);
  border-radius: var(--radius);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(var(--vivo-purple-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vivo-purple);
  flex-shrink: 0;
}

.img-card {
  border-radius: 1rem;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.section-etapas {
  position: relative;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.section-etapas .overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--vivo-purple-rgb), 0.9);
  backdrop-filter: blur(4px);
}

.section-etapas .container {
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.etapas-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .etapas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .etapas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.etapa-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s, background 0.3s;
}

.etapa-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.etapa-step {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.etapa-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.etapa-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 209, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vivo-yellow);
}

.etapa-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.etapa-card p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.etapa-period {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vivo-yellow);
  background: rgba(255, 209, 0, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.premio-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--vivo-gray);
  border: 1px solid #f3f4f6;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.premio-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.premio-dot.gold {
  background: var(--vivo-yellow);
}
.premio-dot.silver {
  background: #d1d5db;
}
.premio-dot.bronze {
  background: #d97706;
}

.cards-2 {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .cards-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card-white {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-white h3 {
  margin: 0 0 0.75rem;
  color: var(--vivo-purple);
}

.card-white p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.card-white ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-white li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.check {
  color: var(--vivo-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.estados-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  margin-top: 3rem;
}

.estado-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(var(--vivo-purple-rgb), 0.06);
  color: var(--vivo-purple);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

.cta-purple {
  background: linear-gradient(135deg, var(--vivo-purple), var(--vivo-purple-dark));
  border-radius: 1.5rem;
  overflow: hidden;
  display: grid;
}

@media (min-width: 1024px) {
  .cta-purple {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-purple-inner {
  padding: 2.5rem;
  color: var(--white);
}

@media (min-width: 1024px) {
  .cta-purple-inner {
    padding: 3.5rem;
  }
}

.cta-purple h2 {
  color: var(--white);
}

.cta-purple .section-label {
  color: var(--vivo-yellow);
}

.cta-purple p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.125rem;
}

.cta-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-img-side {
  display: none;
  position: relative;
  min-height: 20rem;
}

@media (min-width: 1024px) {
  .cta-img-side {
    display: block;
  }
}

.cta-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-img-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(var(--vivo-purple-rgb), 0.45), transparent);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.accordion-item {
  background: var(--white);
  border: 1px solid #f3f4f6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--vivo-purple);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.accordion-trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--vivo-magenta);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger::after {
  content: "−";
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-cta-final {
  background: linear-gradient(135deg, var(--vivo-purple), var(--vivo-purple-dark), var(--vivo-purple));
  padding: 5rem 0;
  color: var(--white);
  text-align: center;
}

.section-cta-final h2 {
  color: var(--white);
}

.section-cta-final p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Páginas internas */
.page-form {
  padding-top: var(--site-header-offset);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vivo-gray);
}

.form-page-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-page-title h1 {
  color: var(--vivo-purple);
  margin: 0 0 0.5rem;
}

/* squad-acesso.php: «Área do Professor» — rosa como o link «Introduzir código» */
.page-squad-acesso .form-page-title h1.titulo-area-professor-squad-acesso {
  color: var(--vivo-magenta);
}

.page-squad-acesso .form-page-title-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.page-squad-acesso .form-page-title-sub .section-lead {
  margin-top: 0;
  margin-bottom: 0;
}

/* Subtítulo: bloco centrado na página e texto centrado (não use margin:0 inline — anula o centro) */
.form-page-title .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

.form-card {
  background: var(--vivo-gray);
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
}

/*
 * Página inscrição indisponível / em breve: as duas caixas (squad + período)
 * com a mesma largura e o mesmo recuo/padding e cantos — sobrepõe .form-card após esta regra.
 */
.inscricao-fechada-linha {
  width: 100%;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
  box-sizing: border-box;
}

.inscricao-fechada-linha > .acesso-squad-bar,
.inscricao-fechada-linha > .form-card.inscricao-fechada-msg {
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  align-self: stretch;
  box-sizing: border-box;
  padding: 1.5rem !important;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: var(--vivo-gray);
}

.inscricao-fechada-msg-text {
  margin: 0;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.inscricao-fechada-linha .acesso-squad-bar-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* Cartões simples: campo seguido de botão (ex. acesso ao squad) */
.form-card > .field + .btn {
  margin-top: 1.25rem;
}

/* Acesso ao squad — mesmo ritmo vertical que form-grid / outras páginas */
.page-squad-acesso .form-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

.page-squad-acesso .form-card > .field + .btn {
  margin-top: 0;
}

.page-squad-acesso .field > label:first-child {
  margin-bottom: 0.5rem;
}

.page-squad-acesso .field .hint {
  margin-top: 0.5rem;
}

.page-squad-acesso form.form-card + p {
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .page-squad-acesso .form-card {
    padding: 2.25rem 2rem;
  }
}

.stepper {
  margin-bottom: 2.5rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.stepper-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.stepper-line {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
}

.stepper-line-fill {
  height: 100%;
  background: var(--vivo-purple);
  transition: width 0.5s ease;
}

.stepper-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid #e5e7eb;
  background: var(--white);
  color: #9ca3af;
}

.stepper-step.is-done .stepper-circle {
  background: var(--vivo-green);
  border-color: var(--vivo-green);
  color: var(--white);
}

.stepper-step.is-active .stepper-circle {
  background: var(--vivo-purple);
  border-color: var(--vivo-purple);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--vivo-purple-rgb), 0.25);
}

.stepper-label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  color: #9ca3af;
  max-width: 5rem;
}

@media (min-width: 640px) {
  .stepper-label {
    font-size: 0.75rem;
    max-width: none;
  }
}

.stepper-step.is-active .stepper-label,
.stepper-step.is-done .stepper-label {
  color: var(--vivo-purple);
}

.form-step {
  display: none;
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .form-step {
    padding: 2.5rem;
  }
}

.form-step.is-active {
  display: block;
}

/* Títulos de etapa (Dados do Docente, etc.): respiro em relação ao stepper, no mesmo espírito do título da página */
body.page-form .form-step > h2.form-step-title {
  color: var(--vivo-purple);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Texto introdutório no formulário: largura total do cartão (sobrescreve max-width: 36rem de .section-lead) */
.form-card .form-step > .section-lead {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  box-sizing: border-box;
  text-wrap: pretty;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid .full {
  grid-column: 1 / -1;
}

/* Componente + «Outro» lado a lado; Estado e Cidade abaixo em linha completa */
.docente-componente-dual-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .docente-componente-dual-inner.docente-duo-has-outro {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.docente-componente-dual-outer .docente-componente-prim,
.docente-componente-dual-outer .docente-componente-outro-slot {
  margin-bottom: 0;
}

/* Cidade inválida para a UF (lista IBGE): borda vermelha */
#docente_cidade.campo-validacao-erro {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

#docente_cidade.campo-validacao-erro:focus {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #374151;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.field input.input-readonly,
.field input[readonly]:not([type="checkbox"]):not([type="radio"]) {
  background: #f3f4f6;
  color: #4b5563;
  cursor: default;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(var(--vivo-purple-rgb), 0.25);
  border-color: var(--vivo-purple);
}

.field input[type="checkbox"]:focus,
.field input[type="radio"]:focus {
  outline: 2px solid rgba(var(--vivo-purple-rgb), 0.35);
  outline-offset: 2px;
}

/* Linhas de declaração (checkbox + texto longo) — mesma coluna para todas */
.field.field-checkbox label.checkbox-label-row {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
}

.field.field-checkbox label.checkbox-label-row .checkbox-label-text {
  line-height: 1.55;
}

.field.field-checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0 0;
  padding: 0;
  border-radius: 0.25rem;
  accent-color: var(--vivo-purple);
  flex-shrink: 0;
}

.field.field-checkbox + .field.field-checkbox {
  margin-top: 1rem;
}

.hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.alert-box {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(var(--vivo-purple-rgb), 0.05);
  border: 1px solid rgba(var(--vivo-purple-rgb), 0.12);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.integrante-block {
  background: var(--vivo-gray);
  border: 1px solid #f3f4f6;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.integrante-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-remove {
  background: transparent;
  border: none;
  color: #f87171;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-dashed {
  width: 100%;
  padding: 1rem;
  border: 2px dashed rgba(var(--vivo-purple-rgb), 0.2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--vivo-purple);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-dashed:hover {
  border-color: rgba(var(--vivo-purple-rgb), 0.4);
  background: rgba(var(--vivo-purple-rgb), 0.04);
}

.upload-zone {
  border: 2px dashed #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
}

.upload-zone:hover {
  border-color: rgba(var(--vivo-purple-rgb), 0.3);
  background: rgba(var(--vivo-purple-rgb), 0.03);
}

/* Passo autorizações: tabela por integrante */
.autorizacao-termos-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #fff;
}

.autorizacao-termos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.autorizacao-termos-table th,
.autorizacao-termos-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.autorizacao-termos-table th {
  background: #fafafa;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.autorizacao-termos-table tbody tr:last-child th,
.autorizacao-termos-table tbody tr:last-child td {
  border-bottom: none;
}

.autorizacao-termo-col-nome {
  min-width: 8rem;
  font-weight: 500;
  color: #1f2937;
}

.autorizacao-termos-table .termo-menor-integrante-select {
  width: 100%;
  min-width: 10rem;
  max-width: 100%;
  font-size: 0.875rem;
}

.autorizacao-termos-table .autorizacao-upload-zone-row {
  min-height: 5rem;
  padding: 0.75rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

/* <label> em vez de <div>: evita bloqueio de clique programático no input escondido */
.autorizacao-termos-table label.autorizacao-upload-zone-row {
  margin: 0;
  font-weight: inherit;
}

.autorizacao-termos-table .autorizacao-file-row-list {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #374151;
}

.autorizacao-upload-wrap {
  position: relative;
}
.autorizacao-upload-wrap .autorizacao-upload-zone-row.has-file {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  font-weight: 600;
  padding-right: 2.25rem;
  padding-left: 2.25rem;
}
.autorizacao-upload-wrap .autorizacao-upload-zone-row.has-file:hover {
  background: #d1fae5;
  border-color: #059669;
}
.autorizacao-upload-filename[hidden] { display: none !important; }
.autorizacao-upload-empty[hidden] { display: none !important; }
.autorizacao-upload-filename {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  word-break: break-word;
  text-align: center;
}
.autorizacao-upload-filename::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}
.autorizacao-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.1s;
  z-index: 2;
}
.autorizacao-remove:hover { background: #b91c1c; }
.autorizacao-remove:active { transform: scale(0.92); }
.autorizacao-remove[hidden] { display: none; }
.autorizacao-termos-table .termo-menor-integrante-select.is-locked {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
  border-color: #cbd5e1;
}

.autorizacao-inputs-offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.field-autorizacao-upload {
  position: relative;
}

.file-list {
  margin-top: 1rem;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--vivo-gray);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  background: rgba(245, 245, 245, 0.8);
  border-top: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
  .form-nav {
    padding: 1.5rem 2.5rem;
  }
}

.review-block {
  background: var(--vivo-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  margin-bottom: 1.25rem;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Edição de inscrição pelo docente (área pública) */
.meu-squad-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.meu-squad-edit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.meu-squad-edit-table th,
.meu-squad-edit-table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  vertical-align: middle;
}

.meu-squad-edit-table th {
  text-align: left;
  background: rgba(var(--vivo-purple-rgb), 0.06);
  color: #374151;
  font-weight: 600;
}

.meu-squad-edit-table input,
.meu-squad-edit-table select {
  width: 100%;
  min-width: 7rem;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.8125rem;
}

.review-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--vivo-purple);
}

.link-edit {
  background: none;
  border: none;
  color: var(--vivo-magenta);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.page-thanks {
  padding-top: var(--site-header-offset);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vivo-gray);
}

.thanks-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.thanks-card {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.thanks-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: rgba(102, 204, 51, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--vivo-green);
}

.thanks-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}

@media (min-width: 640px) {
  .thanks-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.thanks-mini {
  background: var(--vivo-gray);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.page-404 {
  padding-top: var(--site-header-offset);
}

.page-404 .main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 2rem;
}

.box-404 {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 28rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.box-404 h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============== Modal de validação por IA ============== */
.ia-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.ia-modal[hidden],
.ia-modal-progress[hidden],
.ia-modal-results[hidden],
.ia-modal-footer[hidden],
.ia-modal-close[hidden] { display: none !important; }
.ia-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 0, 61, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ia-modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2.5rem);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(45, 0, 61, 0.25), 0 0 0 1px rgba(64, 0, 93, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: iaModalIn 220ms ease-out;
}
@keyframes iaModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ia-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, var(--vivo-purple) 0%, var(--vivo-purple-light) 100%);
  color: #fff;
}
.ia-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ia-modal-close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.ia-modal-close:hover { background: rgba(255,255,255,0.18); }
.ia-modal-body {
  padding: 1.5rem 1.4rem;
  overflow-y: auto;
  color: #1f2937;
}
.ia-modal-progress {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.ia-modal-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(64, 0, 93, 0.15);
  border-top-color: var(--vivo-purple);
  animation: iaSpin 0.85s linear infinite;
  flex-shrink: 0;
  margin-top: 2px;
}
@keyframes iaSpin { to { transform: rotate(360deg); } }
.ia-modal-progress-info { flex: 1; min-width: 0; }
.ia-modal-progress-status {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--vivo-purple);
  font-size: 1rem;
}
.ia-modal-progress-detail {
  margin: 0 0 0.75rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ia-modal-progress-bar {
  height: 8px;
  background: #f1e8f5;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.ia-modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vivo-purple) 0%, var(--vivo-magenta) 100%);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.ia-modal-progress-count {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ia-modal-results-lead {
  margin: 0 0 1rem;
  color: #1f2937;
  line-height: 1.5;
}
.ia-modal-results-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ia-modal-result-item {
  border: 1px solid #fecaca;
  background: #fff5f5;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.ia-modal-result-item.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.ia-modal-result-item.is-skip {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.ia-modal-result-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.3rem;
}
.ia-modal-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 99px;
  background: #b91c1c;
  color: #fff;
}
.ia-modal-result-item.is-ok .ia-modal-result-badge { background: #16a34a; }
.ia-modal-result-item.is-skip .ia-modal-result-badge { background: #64748b; }
.ia-modal-result-name { color: var(--vivo-purple); }
.ia-modal-result-reasons {
  margin: 0;
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ia-modal-result-reasons li + li { margin-top: 0.2rem; }
.ia-modal-results-help {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}
.ia-modal-footer {
  padding: 0.9rem 1.4rem 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid #f1f5f9;
  background: #fcfbfd;
}
@media (max-width: 540px) {
  .ia-modal-card { max-width: 100%; }
  .ia-modal-header { padding: 0.9rem 1.1rem; }
  .ia-modal-body { padding: 1.1rem; }
  .ia-modal-footer { padding: 0.8rem 1.1rem 1rem; }
  .ia-modal-progress { gap: 0.85rem; }
  .ia-modal-spinner { width: 36px; height: 36px; }
}

/* ============== Feedback de consistência ============== */
.consist-feedback {
  margin-top: 0.4rem;
  font-size: 0.825rem;
  line-height: 1.4;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.consist-feedback[hidden] { display: none !important; }
.consist-feedback.is-loading { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.consist-feedback.is-ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; font-weight: 600; }
.consist-feedback.is-bad { color: #b91c1c; background: #fef2f2; border-color: #fecaca; font-weight: 600; }
.consist-feedback.is-info { color: var(--vivo-purple); background: #f5edfa; border-color: #d6bce5; }
.consist-input-bad { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.consist-input-ok { border-color: #10b981 !important; }
.consist-preencher {
  margin-top: 0.5rem;
  background: var(--vivo-purple);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.consist-preencher:hover { background: var(--vivo-purple-light); }

/* ===================== Revisão da etapa 5 ===================== */
.rv-intro {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.rv-section {
  margin: 0 0 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.rv-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
.rv-section-head h3 {
  margin: 0; font-size: 0.95rem; color: var(--vivo-purple); font-weight: 700;
}
.rv-edit {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--vivo-purple);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.rv-edit:hover { text-decoration: underline; }
.rv-section-body { padding: 0.4rem 0.5rem; }
.rv-empty-section { margin: 0.3rem 0.4rem; color: #6b7280; font-size: 0.85rem; }

.rv-row {
  display: grid;
  grid-template-columns: 1.4rem auto 1fr;
  align-items: baseline;
  column-gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.rv-row + .rv-row { border-top: 1px dashed #f3f4f6; }
.rv-row.rv-subhead {
  margin-top: 0.4rem;
  background: #fafafa;
  border-radius: 6px;
}
.rv-row.rv-subhead .rv-label {
  color: var(--vivo-purple);
  font-weight: 700;
  font-size: 0.85rem;
}
.rv-row.rv-subhead .rv-value { display: none; }
.rv-row .rv-icon {
  width: 1.15rem; height: 1.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center; justify-content: center;
  align-self: center;
  background: #d1d5db; /* pendente */
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* OK: check (✓) — usamos o glifo direto, com tipografia robusta para manter legibilidade */
.rv-state-ok .rv-icon { background: #16a34a; }
.rv-state-ok .rv-icon::before {
  content: "\2713"; /* ✓ */
  display: block;
  margin-top: -0.06em;
}
/* BAD: xis (✗) */
.rv-state-bad .rv-icon { background: #ef4444; }
.rv-state-bad .rv-icon::before {
  content: "\2715"; /* ✕ */
  display: block;
  margin-top: -0.04em;
}
/* loading: spinner */
.rv-state-loading .rv-icon {
  background: transparent;
  border: 2px solid #c4b5fd; border-top-color: var(--vivo-purple);
  animation: rv-spin 0.9s linear infinite;
}
.rv-state-loading .rv-icon::before { display: none; }
@keyframes rv-spin { to { transform: rotate(360deg); } }

/* Ícone inline usado no texto introdutório */
.rv-icon-inline {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 1.05em; height: 1.05em;
  vertical-align: -0.18em;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.85em;
  font-weight: 900;
  line-height: 1;
}
.rv-icon-inline::before { content: "\2715"; }
.rv-icon-inline.rv-ok { background: #16a34a; }
.rv-icon-inline.rv-ok::before { content: "\2713"; }

.rv-row .rv-label { color: #6b7280; white-space: nowrap; }
.rv-row .rv-value { color: #111827; word-break: break-word; }
.rv-row .rv-empty { color: #9ca3af; font-style: italic; }
.rv-state-bad .rv-value { color: #991b1b; }

.rv-msg {
  grid-column: 2 / -1;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #b91c1c;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.rv-msg.is-warn { color: #92400e; }
.rv-msg .rv-warn { color: #92400e; }
.rv-fix {
  appearance: none;
  border: 1px solid #fecaca; background: #fff; color: #b91c1c;
  font-size: 0.72rem; padding: 0.18rem 0.55rem;
  border-radius: 6px; cursor: pointer; font-weight: 600;
}
.rv-fix:hover { background: #fee2e2; }

/* Progresso da IA dentro do bloco "Termos" */
.rv-ia-progress {
  margin: 0 0 0.6rem;
  padding: 0.55rem 0.75rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
}
.rv-ia-progress[hidden] { display: none !important; }
.rv-ia-status {
  font-size: 0.82rem; color: #4c1d95; font-weight: 600;
  margin-bottom: 0.35rem;
}
.rv-ia-bar {
  height: 6px; background: #e9d5ff; border-radius: 999px; overflow: hidden;
}
.rv-ia-bar > span {
  display: block; height: 100%; width: 0%;
  background: var(--vivo-purple); transition: width 0.25s ease;
}

.rv-summary {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid transparent;
}
.rv-summary .rv-summary-icon {
  width: 1.25rem; height: 1.25rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #d1d5db; flex-shrink: 0;
  color: #fff; font-weight: 900; font-size: 0.85rem; line-height: 1;
}
.rv-summary.rv-state-pending { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.rv-summary.rv-state-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.rv-summary.rv-state-ok .rv-summary-icon { background: #16a34a; }
.rv-summary.rv-state-ok .rv-summary-icon::before { content: "\2713"; }
.rv-summary.rv-state-bad { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.rv-summary.rv-state-bad .rv-summary-icon { background: #ef4444; }
.rv-summary.rv-state-bad .rv-summary-icon::before { content: "\2715"; }

#btn-submit:disabled,
#btn-submit.is-disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}

#btn-submit.is-enviando {
  display: inline-flex; align-items: center; gap: 0.55rem;
  opacity: 1; cursor: progress; pointer-events: none;
}
#btn-submit.is-enviando .btn-spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rv-spin 0.8s linear infinite;
}
