/* ========================================
   🎨 BISCOITOS MANÁ - DESIGN SYSTEM B2B
   Mobile-First | Modern | Performance-Optimized
   ======================================== */

/* ===== 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
  /* Cores Principais */
  --color-primary: #BF2024;
  --color-primary-dark: #A01B1E;
  --color-secondary: #FFC700;
  --color-secondary-light: #FFD60A;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #BF2024 0%, #E63946 50%, #FF6B6B 100%);
  --gradient-secondary: linear-gradient(135deg, #FFC700 0%, #FFD60A 50%, #FFE566 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(191, 32, 36, 0.9) 0%, rgba(191, 32, 36, 0.7) 100%);
  --gradient-transition: linear-gradient(180deg, #BF2024 0%, #D84315 30%, #FF6F00 60%, #FFC700 100%);
  --gradient-card-subtle: linear-gradient(135deg, rgba(255, 199, 0, 0.05) 0%, rgba(255, 199, 0, 0.02) 100%);
  
  /* Cores de Apoio */
  --color-text-primary: #2D2D2D;
  --color-text-secondary: #6B6B6B;
  --color-bg-light: #F5F5F5;
  --color-bg-white: #FFFFFF;
  --color-border: #E0E0E0;
  
  /* Feedback Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  /* Sombras (Depth System) */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.24);
  --shadow-cta: 0 8px 24px rgba(255, 199, 0, 0.35);
  --shadow-cta-hover: 0 12px 32px rgba(255, 199, 0, 0.5);
  --shadow-primary: 0 8px 24px rgba(191, 32, 36, 0.35);
  --shadow-primary-hover: 0 12px 32px rgba(191, 32, 36, 0.5);
  
  /* Espaçamentos */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;
  
  /* Transições */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Tipografia */
  --font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== 2. RESET E BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  line-height: 1.6;
  background: var(--color-bg-white);
  overflow-x: hidden;
}

/* Acessibilidade: Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 3. SISTEMA DE TIPOGRAFIA RESPONSIVA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

/* Mobile (320px-767px) */
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
body { font-size: 16px; line-height: 1.6; }
small { font-size: 14px; }

/* Tablet (768px-1023px) */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 28px; }
  body { font-size: 18px; }
  small { font-size: 16px; }
}

/* ===== 4. UTILITÁRIOS GLOBAIS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Animação Reveal (Scroll Trigger) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 5. HERO SECTION - MOBILE-FIRST ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  overflow: hidden;
  background: var(--color-primary);
}

/* Background com Parallax */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(''); /* Será definido inline ou via JS */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: contrast(110%);
  z-index: 1;
}

/* Overlay Gradiente */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-bg-white);
  max-width: 800px;
  padding: 0 var(--space-md);
}

/* Hero Logo */
.hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: var(--space-lg);
  animation: fadeScaleUp 0.8s var(--ease-spring) forwards;
}

@media (min-width: 768px) {
  .hero-logo {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    width: 300px;
  }
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  animation: fadeUpBounce 0.6s var(--ease-spring) forwards;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-md);
  line-height: 1.5;
  animation: fadeUp 0.6s var(--ease-smooth) 0.2s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.6s var(--ease-smooth) 0.3s forwards;
  opacity: 0;
}

/* CTA Button com Micro-interações */
.cta-button {
  display: inline-block;
  background: var(--gradient-secondary);
  color: var(--color-text-primary);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.hero .cta-button {
  animation: scaleUp 0.6s var(--ease-spring) 0.4s forwards, pulse 3s ease-in-out 2s infinite;
  opacity: 0;
}

.cta-button:hover,
.cta-button:active {
  transform: scale(1.05);
  box-shadow: var(--shadow-cta-hover);
}

/* Ripple Effect */
.cta-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s, opacity 0.3s;
}

.cta-button:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* ===== 6. SEÇÃO "PARCERIA SÉRIA" - Cards com Ícones ===== */
.why-section {
  padding: var(--space-xxl) 0;
  background: var(--color-bg-white);
}

.why-section .container {
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.why-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  text-align: left;
}

.why-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  transition: all var(--transition-base);
  text-align: left;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(191, 32, 36, 0.15);
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
  animation: iconRotate 0.6s var(--ease-spring);
}

.why-icon i {
  color: #FFFFFF;
}

.why-text {
  flex: 1;
}

.why-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.why-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Stagger Animation */
.why-card:nth-child(1) { animation-delay: 0ms; }
.why-card:nth-child(2) { animation-delay: 100ms; }
.why-card:nth-child(3) { animation-delay: 200ms; }
.why-card:nth-child(4) { animation-delay: 300ms; }
.why-card:nth-child(5) { animation-delay: 400ms; }
.why-card:nth-child(6) { animation-delay: 500ms; }

/* ===== 7. SEÇÃO ESTATÍSTICAS - Counter Animation ===== */
.stats-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-light) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

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

.stat-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--color-bg-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
}

.stat-value {
  font-size: 48px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
  /* Counter animation será adicionada via JS */
}

.stat-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== 8. SEÇÃO CASES - Carrossel Mobile ===== */
.cases-section {
  padding: var(--space-xxl) 0;
  background: var(--color-bg-white);
}

.cases-carousel {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  margin-top: var(--space-xl);
  padding: var(--space-sm) 0 var(--space-xl) 0;
}

.cases-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.case-card {
  flex: 0 0 85%;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Aspas decorativas */
.case-card::before {
  content: '"';
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: 64px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
}

.case-testimonial {
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-top: var(--space-xl);
}

.case-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.case-location {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Indicadores de navegação (dots) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-base);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--gradient-primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== 9. FORMULÁRIO - Design Moderno ===== */
.form-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.form-section .section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.form-section .container {
  max-width: 800px;
}

.distributor-form {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-lg);
}

@media (min-width: 480px) {
  .distributor-form {
    padding: var(--space-md);
    border-radius: var(--radius-xl);
  }
}

@media (min-width: 768px) {
  .distributor-form {
    padding: var(--space-xl);
    border-radius: var(--radius-xxl);
  }
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-white);
  border-radius: var(--radius-xxl);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .form-container {
    padding: var(--space-xl);
  }
}

.form-block {
  margin-bottom: var(--space-xl);
}

.form-block-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.form-block-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient-transition);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.form-block-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Fieldset e Legend */
.form-block {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.form-block legend {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  width: 100%;
}

.form-block.critical-block {
  background: linear-gradient(135deg, rgba(255, 199, 0, 0.08) 0%, rgba(255, 199, 0, 0.03) 100%);
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .form-block.critical-block {
    padding: var(--space-lg);
  }
}

.form-block.critical-block legend {
  border-bottom: none;
  margin-bottom: var(--space-sm);
  font-size: 16px;
  color: var(--color-secondary);
  background: var(--color-text-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Form Row - Grid para campos lado a lado */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

/* Input Fields com Floating Label */
.form-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

/* Inputs nativos do HTML */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(191, 32, 36, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* Select com seta customizada */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23BF2024' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Floating Label */
.form-label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--color-text-secondary);
  font-size: 16px;
  transition: all var(--transition-fast);
  pointer-events: none;
  background: var(--color-bg-white);
  padding: 0 4px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-select:focus + .form-label,
.form-select:not([value=""]) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  top: -8px;
  left: 12px;
  font-size: 12px;
  color: var(--color-primary);
}

/* Campos Críticos de Qualificação */
.form-group-critical {
  background: rgba(255, 199, 0, 0.1);
  border: 2px solid var(--color-secondary);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .form-group-critical {
    padding: var(--space-md);
  }
}

.form-group-critical label {
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .form-group-critical label {
    font-size: 16px;
  }
}

/* Radio Buttons Customizados */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

@media (min-width: 480px) {
  .radio-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

.radio-option {
  flex: 1;
  min-width: 100%;
}

@media (min-width: 480px) {
  .radio-option {
    min-width: 140px;
  }
}

/* Radio label tradicional (label > input + span) */
.radio-group > label.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  background: var(--color-bg-white);
  font-size: 14px;
  flex: 1;
  min-width: 80px;
  justify-content: center;
}

@media (min-width: 768px) {
  .radio-group > label.radio-label {
    padding: 12px 16px;
    font-size: 15px;
  }
}

.radio-group > label.radio-label:hover {
  border-color: var(--color-primary);
  background: rgba(191, 32, 36, 0.05);
}

.radio-group > label.radio-label:has(input:checked) {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-sm);
}

.radio-group > label.radio-label input[type="radio"] {
  accent-color: var(--color-primary);
}

/* Radio option (div > input + label) */
.radio-option .radio-input {
  position: absolute;
  opacity: 0;
}

.radio-option .radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  background: var(--color-bg-white);
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  min-height: 48px;
}

@media (min-width: 768px) {
  .radio-option .radio-label {
    padding: 14px 16px;
    font-size: 15px;
  }
}

.radio-option .radio-label:hover {
  border-color: var(--color-primary);
  background: rgba(191, 32, 36, 0.05);
}

.radio-option .radio-input:checked + .radio-label {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Mensagem de Feedback (Pedido Mínimo Não) */
.feedback-message {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--color-warning);
  border-left: 4px solid var(--color-warning);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  animation: fadeIn var(--transition-base) forwards;
}

.feedback-message p {
  font-size: 13px;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .feedback-message p {
    font-size: 14px;
  }
}

/* Select Dropdown Customizado */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23BF2024' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Botão de Envio */
.submit-button {
  width: 100%;
  height: 56px;
  background: var(--gradient-primary);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.submit-button:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: var(--shadow-primary-hover);
}

.submit-button:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading State */
.submit-button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Success State */
.submit-button.success {
  background: var(--color-success);
}

/* ===== 10. FOOTER ===== */
.footer {
  background: var(--color-text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 var(--space-md);
}

/* Footer Logo */
.footer-logo-wrapper {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.footer-logo {
  width: 200px;
  height: auto;
  opacity: 0.95;
  transition: opacity var(--transition-base);
}

.footer-logo:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .footer-logo {
    width: 240px;
  }
}

.footer-top {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.footer-top h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-top p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.footer-col h4 {
  color: var(--color-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-start;
  }
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-secondary);
  color: var(--color-text-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== 11. KEYFRAMES ANIMATIONS ===== */
@keyframes fadeUpBounce {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes scaleUp {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg) scale(0);
    opacity: 0;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ===== 12. SKELETON LOADING STATES ===== */
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== 13. MODAL/TOAST NOTIFICATIONS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: var(--color-bg-white);
  border-radius: var(--radius-xxl);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s var(--ease-spring) forwards;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 28px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--color-primary);
  background: rgba(191, 32, 36, 0.1);
}

.modal-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
}

.modal-icon.success {
  color: var(--color-success);
}

.modal-icon.warning {
  color: var(--color-warning);
}

.modal-icon.error {
  color: var(--color-error);
}

.modal-title {
  font-size: 24px;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.modal-button {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-primary-hover);
}

/* ===== 14. RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 768px) {
  .why-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .cases-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    overflow-x: visible;
  }
  
  .case-card {
    flex: none;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
}

/* ===== 15. PRINT STYLES ===== */
@media print {
  .hero, .form-section {
    display: none;
  }
}

/* ===== 16. ESTILOS COMPLEMENTARES ===== */
.why-intro, .why-closing, .stats-closing {
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: var(--space-lg) auto;
}

/* CTA centralizado nas seções */
.why-section .cta-button,
.stats-section .cta-button {
  display: inline-block;
  margin: var(--space-lg) auto 0;
}

/* Stats section centralização */
.stats-section .container {
  text-align: center;
}

/* Cases section centralização */
.cases-section .container {
  text-align: center;
}

.cases-section .cases-carousel {
  text-align: left;
}

.form-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.form-actions {
  margin-top: var(--space-xl);
  text-align: center;
}

.form-disclaimer {
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.form-disclaimer a {
  color: var(--color-primary);
  text-decoration: underline;
}

.required {
  color: var(--color-error);
}

/* Estilos para inputs em estado de erro */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  animation: shake 0.4s;
}

/* Touch/Hover improvements para mobile */
@media (hover: none) and (pointer: coarse) {
  .cta-button,
  .submit-button,
  .modal-button {
    min-height: 48px; /* Mínimo recomendado para touch */
  }
  
  .radio-label {
    min-height: 48px;
  }
}
