/* Modern CSS Reset & General Styles */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary:      #0c1f18;  /* Verde-preto muito escuro para títulos na página clara */
  --primary-mid:  #143327;  /* Verde escuro */
  --accent:       #00C896;  /* Verde esmeralda brilhante */
  --accent-dark:  #00a87e;  /* Verde esmeralda hover */
  --light:        #f4f7f5;  /* Fundo geral claro com tom esmeralda sutil */
  --surface:      #ffffff;  /* Cards, seções claras */
  --text:         #1a2e26;  /* Texto do corpo principal */
  --muted:        #5c6e66;  /* Texto secundário suave */
  --border:       #e2e9e6;  /* Bordas suaves claras */
  --error:        #EF4444;  /* Estados de erro */
  --success:      #00C896;  /* Estados de sucesso */
  --gradient-hero: radial-gradient(circle at 50% 30%, #0d2c1f 0%, #030907 80%);
  
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 60px rgba(12, 31, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--primary);
  padding: 1rem;
  z-index: 9999;
  transition: top 0.2s ease;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--primary);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #000000; /* Solid pure black */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 200, 150, 0.12);
  transition: var(--transition-normal);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background-color: #000000; /* Solid pure black */
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-svg {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-cta {
  background-color: var(--accent);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  transition: var(--transition-fast) !important;
  border: 1px solid var(--accent);
}
.nav-cta:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}
.nav-cta::after {
  display: none;
}

/* Hamburguer Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 80px);
  align-items: center;
  gap: 4rem;
}
.hero-left {
  padding: 4rem 0;
  color: #fff;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(0, 200, 150, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 200, 150, 0.2);
}
.hero-title {
  color: #fff;
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 550px;
}
.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-base);
  font-weight: 500;
}
.bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 200, 150, 0.2);
  color: var(--accent);
  border-radius: 50%;
  font-size: var(--text-xs);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  padding: 1.125rem 2.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 200, 150, 0.2);
  transition: var(--transition-normal);
}
.hero-cta:hover {
  background-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 200, 150, 0.3);
}
.hero-cta svg {
  transition: transform var(--transition-fast);
}
.hero-cta:hover svg {
  transform: translateX(4px);
}
.hero-proof {
  margin-top: 3.5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.hero-right {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.hero-right-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 37, 64, 0.5) 0%, transparent 50%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  color: #fff;
  z-index: 3;
  max-width: 260px;
  box-shadow: var(--shadow-xl);
}
.hero-badge .title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.hero-badge .desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Social Proof Stats */
.stats-section {
  background-color: var(--surface);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.stat-card {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

/* Como Funciona Section */
.como-section {
  padding: 7.5rem 0;
  background-color: var(--surface);
}
.como-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.section-title-wrapper {
  margin-bottom: 3.5rem;
}
.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--muted);
  max-width: 600px;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}
.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 24px;
  width: 2px;
  height: calc(100% - 30px);
  background-color: var(--border);
}
.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: #eef4f1;
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.step-item:hover .step-number {
  background-color: var(--accent);
  color: #030907;
  border-color: var(--accent);
}
.step-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-content p {
  font-size: var(--text-sm);
  color: var(--muted);
}
.como-right-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}

/* Formulário Section */
.form-section {
  padding: 7.5rem 0;
  background-color: #030907; /* Fundo preto/verde escuro floresta */
  position: relative;
}
.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 200, 150, 0.08) 1.5px, transparent 1.5px); /* Pontos verdes discretos */
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.form-container {
  max-width: 960px; /* Expandido para acomodar o layout dividido */
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.form-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.form-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}
.form-header p {
  color: var(--muted);
}
.form-card {
  background-color: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  padding: 3.5rem;
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.span-2 {
  grid-column: span 2;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
}
.field-label span[aria-hidden="true"] {
  color: var(--error);
}

.field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.field-wrapper input,
.field-wrapper select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(0, 200, 150, 0.2);
  border-radius: 8px;
  transition: var(--transition-fast);
  outline: none;
}
.field-wrapper select option {
  background-color: #050706; /* Fundo escuro premium para os itens da lista */
  color: #ffffff;            /* Texto branco legível */
}
.field-wrapper input:focus,
.field-wrapper select:focus {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}
.field-wrapper input[readonly] {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(0, 200, 150, 0.08);
  color: #8fa39b;
  cursor: not-allowed;
}

/* Spinner input */
.input-spinner {
  position: absolute;
  right: 1rem;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}
.cnpj-status {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: 0.25rem;
  display: block;
}
.cnpj-status:empty {
  display: none !important;
}
.cnpj-status--loading {
  color: var(--primary-mid);
}
.cnpj-status--success {
  color: var(--success);
}
.cnpj-status--error {
  color: var(--error);
}

/* LGPD Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  accent-color: var(--accent);
  margin-top: 0.2rem;
  cursor: pointer;
}
.checkbox-label {
  font-size: var(--text-sm);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.checkbox-label a {
  color: var(--primary-mid);
  text-decoration: underline;
  font-weight: 500;
}
.checkbox-label a:hover {
  color: var(--accent-dark);
}

.submit-btn {
  width: 100%;
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 200, 150, 0.1);
  margin-top: 1rem;
}
.submit-btn:hover {
  background-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 200, 150, 0.2);
}
.submit-btn:disabled {
  background-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 1rem;
}

/* Seção Sobre Nós */
.sobre-section {
  background-color: var(--surface);
  color: var(--text);
  padding: 7.5rem 0;
}
.sobre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.sobre-left img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}
.sobre-right h2 {
  color: var(--primary);
  font-size: var(--text-3xl);
  margin-bottom: 1.5rem;
}
.sobre-desc {
  font-size: var(--text-base);
  color: var(--text);
  margin-bottom: 2.5rem;
}
.sobre-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sobre-feature-item {
  display: flex;
  gap: 1.25rem;
}
.sobre-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: var(--text-lg);
}
.sobre-feat-content h3 {
  color: var(--primary);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.sobre-feat-content p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Footer */
.footer {
  background-color: #030907;
  color: rgba(255, 255, 255, 0.65);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(0, 200, 150, 0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo svg {
  height: 40px;
  margin-bottom: 1.25rem;
}
.footer-logo p {
  font-size: var(--text-sm);
  max-width: 320px;
  line-height: 1.5;
}
.footer-title {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contacts {
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contacts i {
  margin-right: 0.5rem;
  color: var(--accent); /* Cor verde esmeralda para os ícones */
  width: 16px;          /* Alinhamento horizontal uniforme */
  text-align: center;
}
.footer-contacts span {
  display: block;
}
.footer-contacts a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-contacts a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #fff;
}

/* Animations (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Form backend errors alert style */
.errors-alert {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  max-height: 110px;
  overflow-y: auto;
}
.errors-alert ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* Breakpoints */

/* Large desktop */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
  h1.hero-title { font-size: var(--text-6xl); }
}

/* Mobile & Tablet combined block */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-right {
    height: 320px;
    min-height: auto;
    order: -1;
  }
  .hero-right-img {
    clip-path: none;
    border-radius: 12px;
  }
  .hero-right::after {
    clip-path: none;
  }
  .hero-left {
    padding: 2rem 0;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  .hero-bullets {
    align-items: center;
  }
  .hero-proof {
    margin-top: 2rem;
  }
  .hero-badge {
    bottom: 1.5rem;
    left: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .como-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .como-right {
    order: -1;
  }
  
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .navbar .container {
    position: relative;
  }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: -1.5rem;
    right: -1.5rem;
    background-color: #000000;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 200, 150, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 99;
  }
  .nav-menu.nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .menu-toggle {
    display: block;
  }
  .nav-cta {
    width: 100%;
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  .hero-cta {
    width: 100%;
    justify-content: center;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .form-card {
    padding: 2rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(3, 9, 7, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .modal-overlay {
    align-items: flex-start;
  }
  .modal-content {
    margin: 2rem auto;
  }
}

.modal-content {
  background-color: #050706; /* Fundo preto premium */
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 200, 150, 0.1) 0%, transparent 60%);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 200, 150, 0.05);
  padding: 0; /* Removido preenchimento para permitir layout split sem margens */
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden; /* Garante que a imagem respeite as bordas arredondadas */
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: rgba(3, 9, 7, 0.5); /* Fundo escuro semitransparente para legibilidade sobre a imagem */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  color: #fff;
  background-color: rgba(0, 200, 150, 0.2);
  border-color: var(--accent);
}

/* Estrutura de Layout Dividido (Split) */
.modal-body-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal-layout-left {
  padding: 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#modal-lead-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 1rem;
}

.modal-step-pane {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.modal-step-pane.active {
  display: flex;
}

.modal-layout-right {
  display: none; /* Oculto por padrão em telas pequenas */
  width: 100%;
}

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

/* Responsivo para Telas Maiores (Split Layout no Desktop) */
@media (min-width: 992px) {
  .modal-content {
    max-width: 920px; /* Expandido para acomodar a imagem lateral */
    height: 620px;    /* Altura estável fixa e ligeiramente maior para acomodar campos dinâmicos */
  }
  .modal-body-layout {
    flex-direction: row;
    align-items: stretch;
    height: 100%;
  }
  .modal-layout-left {
    width: 55%;
    padding: 2rem 2.5rem;  /* Padding vertical reduzido para maximizar a área útil */
    height: 100%;
  }
  .modal-layout-right {
    display: block;
    width: 45%;
    position: relative;
    border-left: 1px solid rgba(0, 200, 150, 0.15);
  }
  .modal-side-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Stepper (Progress Indicator) */
.modal-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.modal-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 18px;
  left: 0;
  height: 2px;
  background-color: var(--accent);
  width: 0%;
  z-index: 2;
  transition: width 0.3s ease;
}

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

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #0d2c1f;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  transition: var(--transition-normal);
}

.stepper-step.active .step-dot {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 12px var(--accent);
}

.stepper-step.completed .step-dot {
  background-color: var(--primary-mid);
  border-color: var(--accent);
  color: var(--accent);
}

.step-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition-fast);
}

.stepper-step.active .step-label {
  color: #fff;
}

.stepper-step.completed .step-label {
  color: var(--accent);
}

/* Modal Form Steps */
.modal-step-pane.active {
  display: flex;
  animation: fadeInStep 0.4s ease forwards;
}

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

.modal-step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-step-desc {
  font-size: var(--text-sm);
  color: #8fa39b;
  margin-bottom: 1.25rem;
}

/* Modal Navigation Footer */
.modal-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto; /* Pushes the navigation buttons to the bottom */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.modal-btn-prev {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn-prev:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-btn-next {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.2);
}

.modal-btn-next:hover {
  background-color: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 200, 150, 0.3);
  transform: translateY(-1px);
}

.modal-btn-next:disabled {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Glassmorphism CNPJ Display */
.cnpj-confirmation-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modal form grid layout */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.modal-grid .span-2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .modal-grid .span-2 {
    grid-column: span 1;
  }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cnpj-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

.cnpj-card-body {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
}

.cnpj-card-details {
  font-size: var(--text-xs);
  color: #8fa39b;
  display: flex;
  gap: 1rem;
}

/* CTA Card replacing the page form */
.page-cta-card {
  background-color: #050706; /* Fundo preto premium */
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 200, 150, 0.1) 0%, transparent 60%);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 0;
  display: flex;
  flex-direction: column; /* Imagem no topo por padrão (mobile) */
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

.page-cta-img-wrapper {
  width: 100%;
  height: 240px;
}

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

.page-cta-content {
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cta-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.page-cta-desc {
  color: #8fa39b;
  margin-bottom: 2.5rem;
  font-size: var(--text-base);
  max-width: 580px;
}

@media (min-width: 992px) {
  .page-cta-card {
    flex-direction: row-reverse; /* Conteúdo à esquerda, Imagem à direita no desktop */
    align-items: stretch;
    height: 380px;
  }
  .page-cta-img-wrapper {
    width: 45%;
    height: 100%;
    border-left: 1px solid rgba(0, 200, 150, 0.15);
  }
  .page-cta-content {
    width: 55%;
    padding: 3rem 4rem;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
  }
}

.page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  padding: 1.125rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 200, 150, 0.2);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
}

.page-cta-btn:hover {
  background-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 200, 150, 0.3);
}

.page-cta-btn svg {
  transition: transform var(--transition-fast);
}

.page-cta-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .modal-layout-left {
    padding: 1.5rem;
  }
  .modal-stepper {
    margin-bottom: 1.5rem;
  }
  .step-label {
    display: none; /* Hide labels on mobile to save space */
  }
  .modal-btn-prev, .modal-btn-next {
    padding: 0.75rem 1.25rem;
    font-size: var(--text-sm);
  }
}

