body {
  font-family: 'Sora', sans-serif;
  margin: 0;
  background-color: #f8fafc;
  color: #1f2937;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.topbar {
  background: linear-gradient(135deg, #1e40af, #0b9643);
  color: white;
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.topbar-right a {
  margin-left: 1.5rem;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.topbar-right a:hover {
  opacity: 0.85;
}

.hero {
  background: linear-gradient(135deg, #1e40af, #0b9643);
  color: white;
  padding: 3rem 1rem;
  position: relative;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  max-width: 550px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-animation {
  max-width: 500px;
  flex: 1;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 1rem;
}

.btn-primary { 
  background-color: #ea580c;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-primary:hover { 
  background-color: #d85603;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}


.servicos {
  padding: 4rem 1rem;
  background: white;
  text-align: center;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.card {
  background: #f1f5f9;
  padding: 2rem;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.card i { font-size: 2rem; color: #0b9643; margin-bottom: 1rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p  { font-size: 0.95rem; color: #475569; }

.como-funciona {
  background-color: #f8fafc;
  padding: 4rem 1rem;
  text-align: center;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.step {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.step span {
  display: block;
  background: #0b9643;
  color: white;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  font-weight: bold;
}

.analise { padding: 4rem 1rem; background-color: #dbeafe; text-align: center; }

.analise-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap-reverse;
  margin-top: 2rem;
}

.analise-form { flex: 1 1 300px; }
.analise-lottie { flex: 1 1 250px; }

.upload-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}

.upload-form input[type="file"],
.upload-form input[type="email"] {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
}

.footer {
  background-color: #1f2937;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.form-control {
  padding: 12px 14px;
  border: 1px solid #d6d9e0;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

.form-control:focus {
  border-color: #9bbcff;
  box-shadow: 0 0 0 3px rgba(80,130,255,.15);
  outline: none;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .two-cols { grid-template-columns: 1fr; }
}

.file-row { display: flex; align-items: center; gap: 12px; }

/* esconde sem quebrar o clique via label */
.visually-hidden-file{
  position:absolute; opacity:0; width:0.1px; height:0.1px; overflow:hidden;
}

.file-label {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px dashed #d6d9e0;
  background: #fff;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  transition: all .2s ease;
  gap: 8px; display: inline-flex; align-items: center;
}
.file-label:hover { border-color: #b6bbca; background: #f9fafc; }
.file-label i { font-size: 16px; }

.file-name { font-size: 14px; color: #5c6473; flex: 1; }

/* estados de erro */
.field-error { color: #c32626; margin-top: -6px; }
.is-invalid {
  border-color: #c32626 !important;
  box-shadow: 0 0 0 3px rgba(195,38,38,.12) !important;
}

/* ===== Toast ===== */
.toaster{
  position: fixed; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 5000; /* CORRIGIDO: Acima do modal que tem z-index: 3000 */
}
.toast{
  min-width: 280px; max-width: 420px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 12px 14px; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
  border-left: 6px solid transparent; animation: toastIn .18s ease-out;
}
.toast__icon{ display:flex; align-items:center; justify-content:center; font-size:18px }
.toast__title{ font-weight:700; margin:2px 0 0 }
.toast__msg{ margin:0; font-size:14px; color:#3a3a3a }
.toast__close{ background:transparent; border:0; cursor:pointer; font-size:18px; line-height:1; opacity:.6 }
.toast__bar{ height:3px; border-radius:3px; background: currentColor; opacity:.25; grid-column: 1/-1; }
.toast--success{ border-left-color:#16a34a; color:#16a34a }
.toast--error  { border-left-color:#dc2626; color:#dc2626 }
.toast--info   { border-left-color:#2563eb; color:#2563eb }
.toast--warn   { border-left-color:#d97706; color:#d97706 }
@keyframes toastIn{ from{ transform: translateY(8px); opacity:0 } to{ transform: none; opacity:1 } }

.toast.hidden{ transform: translateY(10px); opacity:0; pointer-events:none; }
.toast__content strong{ display:block; margin-bottom:.15rem; font-weight:700;}
.toast__content p{ margin:0; opacity:.9 }

/* ===== Modal Redesenhado - Compacto e Responsivo ===== */
.modal{
  position: fixed !important; 
  inset: 0 !important;
  display: none !important;
  align-items: center !important; 
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(15,23,42,.75) !important;
  z-index: 3000 !important;
  backdrop-filter: blur(6px) !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.modal[aria-hidden="false"]{ 
  display: flex !important; 
  visibility: visible !important;
  opacity: 1 !important;
  animation: modalFadeIn 0.3s ease-out !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog{
  width: min(720px, 95vw) !important;
  max-height: min(90vh, 700px) !important;
  overflow-y: auto !important;
  background: #fff !important; 
  color: #1e293b !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
  animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
  from { transform: translateY(-20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header do Modal */
.modal-header {
  padding: 24px 24px 16px !important;
  text-align: center !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.modal-header h3{ 
  margin: 0 0 8px !important; 
  font-size: 1.4rem !important; 
  font-weight: 700 !important;
  color: #0b9643 !important;
}

.modal-header p { 
  margin: 0 !important; 
  color: #64748b !important; 
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

/* Form do Modal */
.modal-form {
  padding: 20px 24px 24px !important;
}

/* Seções do Modal - Mais Compactas */
.modal-section {
  margin: 0 0 20px !important;
  padding: 16px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border-left: 3px solid #0b9643 !important;
}

.modal-section:last-of-type {
  margin-bottom: 24px !important;
}

.modal-section h4 {
  margin: 0 0 16px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.section-icon {
  font-size: 1.1rem !important;
}

/* Grid de Campos com Espaçamento Adequado */
.field-grid {
  display: grid !important;
  gap: 16px !important;
  margin: 0 !important;
}

.field-grid.grid-2 {
  grid-template-columns: 1fr 1fr !important;
}

.field-grid.grid-3 {
  grid-template-columns: 1fr 1fr 1fr !important;
}

/* Grupos de Campos com Labels - AJUSTADO */
.field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important; /* Aumentado de 6px para 8px */
  margin-bottom: 12px !important; /* Espaçamento entre field-groups */
}

.field-group.single-field {
  max-width: none !important; /* Removido centralização */
  margin: 0 0 12px 0 !important; /* Alinhado à esquerda */
}

.field-group label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin: 0 !important;
  text-align: left !important; /* Explicitamente à esquerda */
  padding-top: 4px !important; /* Espaçamento do campo acima */
}

/* Inputs Melhorados */
.modal .modal-dialog input[type="number"],
.modal .modal-dialog input[type="text"]{
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: #fff !important; 
  color: #1e293b !important;
  border: 1.5px solid #d1d5db !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.modal .modal-dialog input:focus{
  border-color: #0b9643 !important; 
  box-shadow: 0 0 0 3px rgba(11,150,67,.12) !important; 
  outline: none !important;
}

.modal .modal-dialog input:hover:not(:focus) {
  border-color: #9ca3af !important;
}

.modal .modal-dialog .is-invalid{
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important;
  background-color: #fef2f2 !important;
}

/* Campos vazios obrigatórios - DESTAQUE VERMELHO */
.modal .modal-dialog input:invalid,
.modal .modal-dialog input.required-empty {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important;
  background-color: #fef2f2 !important;
}

/* Mensagem de erro específica para cada campo */
.field-error {
  color: #dc2626 !important;
  font-size: 0.75rem !important;
  margin-top: 4px !important;
  display: block !important;
  font-weight: 500 !important;
}

/* Ações do Modal - BOTÕES FIXOS */
.modal-actions{
  position: sticky !important;
  bottom: 0 !important;
  display: flex !important; 
  gap: 12px !important; 
  justify-content: center !important; 
  margin-top: 0 !important;
  padding: 20px 24px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #fff !important; /* Fundo branco para cobrir conteúdo */
  z-index: 10 !important;
}

.modal-actions .btn {
  min-width: 110px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.modal-actions .btn-primary {
  background: #0b9643 !important;
  color: white !important;
}

.modal-actions .btn-primary:hover {
  background: #059669 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(11,150,67,.3) !important;
}

.modal-actions .btn-secondary {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #d1d5db !important;
}

.modal-actions .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #475569 !important;
  transform: translateY(-1px) !important;
}

/* ===== MENSAGENS DENTRO DO MODAL ===== */
.modal-message {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  display: none;
}

.modal-message.success {
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #15803d;
  display: block;
}

.modal-message.error {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #dc2626;
  display: block;
}

.modal-message.info {
  background: #dbeafe;
  border: 1px solid #2563eb;
  color: #1d4ed8;
  display: block;
}

/* ===== CHECKBOX DA DECLARAÇÃO ===== */
.checkbox-group {
  margin: 20px 0;
  padding: 16px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.checkbox-group.error {
  border-color: #dc2626;
  background: #fef2f2;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

input[type="checkbox"]:checked + .checkbox-custom {
  background: #16a34a;
  border-color: #16a34a;
}

input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

input[type="checkbox"] {
  display: none;
}

/* Responsividade Melhorada */
@media (max-width: 768px){
  .modal {
    padding: 12px !important;
  }
  
  .modal-dialog {
    width: 100% !important;
    max-height: 95vh !important;
    border-radius: 12px !important;
  }
  
  .modal-header {
    padding: 20px 20px 16px !important;
  }
  
  .modal-header h3 {
    font-size: 1.25rem !important;
  }
  
  .modal-form {
    padding: 16px 20px 20px !important;
  }
  
  .modal-section {
    padding: 14px !important;
    margin-bottom: 16px !important;
  }
  
  .field-grid.grid-2,
  .field-grid.grid-3 { 
    grid-template-columns: 1fr !important; 
    gap: 12px !important;
  }
  
  .modal-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .modal-actions .btn {
    width: 100% !important;
    min-width: auto !important;
  }
}

@media (max-width: 480px){
  .modal-header h3 {
    font-size: 1.1rem !important;
  }
  
  .modal-header p {
    font-size: 0.9rem !important;
  }
  
  .modal-section h4 {
    font-size: 0.95rem !important;
  }
  
  .field-group label {
    font-size: 0.8rem !important;
  }
  
  .modal .modal-dialog input {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }
}

/* ===== Barra de Ambiente (Homolog/Dev) ===== */
.env-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #dc2626 !important;
  color: white !important;
  text-align: center !important;
  padding: 8px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  z-index: 9999 !important;
  box-shadow: 0 2px 8px rgba(220,38,38,.3) !important;
}

.env-bar.hidden {
  display: none !important;
}

/* Ajuste do body quando barra está visível */
body.has-env-bar {
  padding-top: 44px !important;
}

/* Ajuste do topbar quando barra está visível */
body.has-env-bar .topbar {
  margin-top: 44px !important;
}

/* ===== MODAL MELHORADO - ADIÇÕES ===== */

/* Mensagens internas do modal */
.modal-messages {
  margin: 16px 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.modal-messages.success {
  background: #d4edda !important;
  border: 1px solid #c3e6cb !important;
  color: #155724 !important;
}

.modal-messages.error {
  background: #f8d7da !important;
  border: 1px solid #f5c6cb !important;
  color: #721c24 !important;
}

.modal-messages.warning {
  background: #fff3cd !important;
  border: 1px solid #ffeaa7 !important;
  color: #856404 !important;
}

.modal-messages.info {
  background: #d1ecf1 !important;
  border: 1px solid #bee5eb !important;
  color: #0c5460 !important;
}

/* Seção opcional */
.optional {
  font-size: 12px !important;
  color: #6c757d !important;
  font-weight: normal !important;
}

/* Seção declaração */
.modal-section.declaracao {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  border-left: 3px solid #28a745 !important;
}

.checkbox-text {
  flex: 1 !important;
  color: #333 !important;
}

.checkbox-text strong {
  color: #28a745 !important;
}

/* Responsividade do checkbox */
@media (max-width: 768px) {
  .checkbox-label {
    font-size: 13px !important;
  }
  
  .checkbox-custom {
    width: 18px !important;
    height: 18px !important;
  }
  
  .checkbox-custom::after {
    left: 5px !important;
    top: 1px !important;
    width: 5px !important;
    height: 9px !important;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #00923F; /* verde do print */
  padding: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .logo {
  height: 32px; /* ajusta o tamanho */
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: white;
  font-family: 'Sora', sans-serif;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* ===== ANIMAÇÕES ELEGANTES ===== */

/* Keyframes para animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Animação de shimmer para o header */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animação de float para partículas */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

/* Animação de pulso suave */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Classes de animação */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* Efeito shimmer no header */
.topbar {
  position: relative;
  overflow: hidden;
}

.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  pointer-events: none;
}

/* Partículas flutuantes no background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.07) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 200px 200px, 120px 120px, 180px 180px;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* Efeitos de hover sofisticados nos cards */
.card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(11, 150, 67, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(11, 150, 67, 0.1);
}

.card i {
  transition: all 0.3s ease;
}

.card:hover i {
  transform: scale(1.2) rotate(5deg);
  color: #0d7c47;
}

/* Efeitos de hover nos steps */
.step {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(11, 150, 67, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.step:hover::before {
  left: 100%;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(11, 150, 67, 0.1);
}

.step span {
  transition: all 0.3s ease;
}

.step:hover span {
  transform: scale(1.1);
  background: linear-gradient(135deg, #0b9643, #0d7c47);
  box-shadow: 0 5px 15px rgba(11, 150, 67, 0.3);
}

/* Transições suaves em todos os elementos */
* {
  transition: all 0.3s ease;
}

/* Animações específicas para botões */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(234, 88, 12, 0.4),
    0 0 0 1px rgba(234, 88, 12, 0.2);
}

/* Animações para o formulário */
.upload-form {
  animation: fadeInUp 0.8s ease-out;
}

.form-control {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(155, 188, 255, 0.2),
    0 0 0 3px rgba(80, 130, 255, 0.15);
}

/* Animação para o hero */
.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-animation {
  animation: fadeInRight 1s ease-out 0.3s both;
}

/* Animações para seções */
.servicos {
  animation: fadeInUp 0.8s ease-out;
}

.como-funciona {
  animation: fadeInUp 0.8s ease-out;
}

.analise {
  animation: fadeInUp 0.8s ease-out;
}

/* Efeito de loading suave */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Animação de entrada para elementos que aparecem no scroll */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efeito de brilho nos ícones */
/* REMOVIDO: .card i::after, .step span::after */

/* Responsividade para animações */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .card:hover, .step:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
  }
}


/* ===== SOMBRAS SOFISTICADAS ===== */

/* Sombras mais elegantes e realistas nos cards */
.card {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: none;
}

.card:hover {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(11, 150, 67, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Box-shadows com gradientes nos botões */
.btn-primary {
  box-shadow: 
    0 4px 14px 0 rgba(234, 88, 12, 0.25),
    0 2px 4px 0 rgba(234, 88, 12, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  border: none;
}

.btn-primary:hover {
  box-shadow: 
    0 8px 25px 0 rgba(234, 88, 12, 0.4),
    0 6px 12px 0 rgba(234, 88, 12, 0.25),
    0 2px 4px 0 rgba(234, 88, 12, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

/* Efeitos de elevação nos hovers para steps */
.step {
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.step:hover {
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.12),
    0 15px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(11, 150, 67, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.step span {
  box-shadow: 
    0 4px 8px 0 rgba(11, 150, 67, 0.2),
    0 2px 4px 0 rgba(11, 150, 67, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.step:hover span {
  box-shadow: 
    0 8px 16px 0 rgba(11, 150, 67, 0.3),
    0 4px 8px 0 rgba(11, 150, 67, 0.2),
    0 2px 4px 0 rgba(11, 150, 67, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

/* Sombras suaves no formulário */
.upload-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 20px 40px -12px rgba(0, 0, 0, 0.1),
    0 8px 16px -4px rgba(0, 0, 0, 0.06),
    0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.form-control {
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  box-shadow: 
    0 4px 12px 0 rgba(155, 188, 255, 0.2),
    0 2px 6px 0 rgba(155, 188, 255, 0.15),
    0 0 0 3px rgba(80, 130, 255, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.file-label {
  box-shadow: 
    0 2px 4px 0 rgba(0, 0, 0, 0.06),
    0 1px 2px 0 rgba(0, 0, 0, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.file-label:hover {
  box-shadow: 
    0 4px 8px 0 rgba(0, 0, 0, 0.1),
    0 2px 4px 0 rgba(0, 0, 0, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

/* Sombras para o header */
.topbar {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Sombras para seções */
.servicos, .como-funciona, .analise {
  position: relative;
}

.servicos::before, .como-funciona::before, .analise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Sombras para o modal */
.modal-dialog {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-section {
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px 0 rgba(0, 0, 0, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

/* Sombras para toast */
.toast {
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Sombras internas para criar profundidade */
.hero {
  box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Sombras coloridas para elementos específicos */
.card:nth-child(1):hover {
  box-shadow: 
    0 25px 50px -12px rgba(11, 150, 67, 0.15),
    0 20px 25px -5px rgba(11, 150, 67, 0.1),
    0 10px 10px -5px rgba(11, 150, 67, 0.04),
    0 0 0 1px rgba(11, 150, 67, 0.1);
}

.card:nth-child(2):hover {
  box-shadow: 
    0 25px 50px -12px rgba(59, 130, 246, 0.15),
    0 20px 25px -5px rgba(59, 130, 246, 0.1),
    0 10px 10px -5px rgba(59, 130, 246, 0.04),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

.card:nth-child(3):hover {
  box-shadow: 
    0 25px 50px -12px rgba(168, 85, 247, 0.15),
    0 20px 25px -5px rgba(168, 85, 247, 0.1),
    0 10px 10px -5px rgba(168, 85, 247, 0.04),
    0 0 0 1px rgba(168, 85, 247, 0.1);
}

.card:nth-child(4):hover {
  box-shadow: 
    0 25px 50px -12px rgba(245, 158, 11, 0.15),
    0 20px 25px -5px rgba(245, 158, 11, 0.1),
    0 10px 10px -5px rgba(245, 158, 11, 0.04),
    0 0 0 1px rgba(245, 158, 11, 0.1);
}

.card:nth-child(5):hover {
  box-shadow: 
    0 25px 50px -12px rgba(239, 68, 68, 0.15),
    0 20px 25px -5px rgba(239, 68, 68, 0.1),
    0 10px 10px -5px rgba(239, 68, 68, 0.04),
    0 0 0 1px rgba(239, 68, 68, 0.1);
}

/* Sombras responsivas */
@media (max-width: 768px) {
  .card {
    box-shadow: 
      0 2px 4px -1px rgba(0, 0, 0, 0.1),
      0 1px 2px -1px rgba(0, 0, 0, 0.06);
  }
  
  .card:hover {
    box-shadow: 
      0 15px 30px -8px rgba(0, 0, 0, 0.12),
      0 10px 15px -3px rgba(0, 0, 0, 0.08),
      0 4px 6px -2px rgba(0, 0, 0, 0.04);
  }
  
  .upload-form {
    box-shadow: 
      0 10px 20px -6px rgba(0, 0, 0, 0.08),
      0 4px 8px -2px rgba(0, 0, 0, 0.04),
      0 2px 4px -1px rgba(0, 0, 0, 0.02);
  }
}

/* Efeito de sombra dinâmica baseada na posição do mouse */
.dynamic-shadow {
  transition: box-shadow 0.3s ease;
}

.dynamic-shadow:hover {
  animation: shadowPulse 2s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% {
    box-shadow: 
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow: 
      0 20px 40px -12px rgba(0, 0, 0, 0.15),
      0 8px 16px -4px rgba(0, 0, 0, 0.1),
      0 4px 6px -1px rgba(0, 0, 0, 0.06);
  }
}


/* ===== MELHORIAS GERAIS E RESPONSIVIDADE ===== */

/* Bordas mais arredondadas */
.card {
  border-radius: 16px;
}

.step {
  border-radius: 16px;
}

.btn {
  border-radius: 12px;
}

.form-control {
  border-radius: 12px;
}

.file-label {
  border-radius: 12px;
}

.upload-form {
  border-radius: 20px;
}

.modal-dialog {
  border-radius: 20px;
}

.modal-section {
  border-radius: 16px;
}

/* Cores e contrastes aprimorados */
.hero h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: #1e293b;
  font-weight: 700;
}

.card p {
  color: #64748b;
  line-height: 1.6;
}

.step h4 {
  color: #1e293b;
  font-weight: 700;
}

.step p {
  color: #64748b;
  line-height: 1.6;
}

/* Melhor responsividade */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 1rem 2rem;
  }
  
  .cards {
    gap: 1.5rem;
  }
  
  .steps {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .cards {
    justify-content: center;
  }
  
  .steps {
    justify-content: center;
  }
  
  .topbar-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .servicos, .como-funciona, .analise {
    padding: 3rem 1rem;
  }
  
  .cards {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    width: 100%;
    max-width: 400px;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 100%;
    max-width: 350px;
  }
  
  .analise-box {
    flex-direction: column;
  }
  
  .upload-form {
    padding: 1.5rem;
  }
  
  .topbar-left {
    gap: 8px;
  }
  
  .brand-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  .step {
    padding: 1.5rem;
  }
  
  .step h4 {
    font-size: 1rem;
  }
  
  .step p {
    font-size: 0.9rem;
  }
  
  .upload-form {
    padding: 1rem;
  }
  
  .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .file-label {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .topbar {
    padding: 0.75rem 0;
  }
  
  .topbar-left img {
    height: 32px;
  }
}

/* Melhorias para acessibilidade */
.keyboard-navigation *:focus {
  outline: 2px solid #0b9643;
  outline-offset: 2px;
}

/* Melhorias para impressão */
@media print {
  .topbar, .hero, .analise {
    background: white !important;
    color: black !important;
  }
  
  .btn, .card, .step {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  
  .hero::before {
    display: none !important;
  }
}

/* Melhorias para telas de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .topbar-left img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Melhorias para modo escuro (se suportado pelo sistema) */
@media (prefers-color-scheme: dark) {
  .card {
    background: #1e293b;
    color: #f1f5f9;
  }
  
  .card h3 {
    color: #f1f5f9;
  }
  
  .card p {
    color: #cbd5e1;
  }
  
  .step {
    background: #1e293b;
    color: #f1f5f9;
  }
  
  .step h4 {
    color: #f1f5f9;
  }
  
  .step p {
    color: #cbd5e1;
  }
  
  .form-control {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .form-control:focus {
    border-color: #0b9643;
    background: #374151;
  }
}

/* Otimizações de performance */
.card, .step, .btn {
  will-change: transform;
}

.card:hover, .step:hover, .btn:hover {
  will-change: auto;
}

/* Melhorias para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
  .card:hover, .step:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .card, .step, .btn {
    transition: none;
  }
}

/* Melhorias para conexões lentas */
@media (prefers-reduced-data: reduce) {
  .hero::before {
    display: none;
  }
  
  .topbar::before {
    display: none;
  }
  
  .card::before, .step::before, .btn::before {
    display: none;
  }
}

/* Melhorias para telas pequenas em landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 1.5rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .servicos, .como-funciona, .analise {
    padding: 2rem 1rem;
  }
}

/* Melhorias para contraste alto */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Melhorias para transparência reduzida */
@media (prefers-reduced-transparency: reduce) {
  .upload-form {
    background: #fff;
    backdrop-filter: none;
  }
  
  .modal {
    backdrop-filter: none;
    background: rgba(15, 23, 42, 0.9);
  }
}

/* Resumo de valores no modal */
.resumo-valores{
  margin:18px 0 8px;
  border:1px dashed rgba(0,0,0,.12);
  border-radius:12px;
  padding:14px;
  background:#fff;
}
.resumo-linha{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 2px;
  font-size:16px;
}
.resumo-linha + .resumo-linha{
  border-top:1px solid rgba(0,0,0,.06);
}
.resumo-linha.excesso strong{
  color:#b42318; /* destaque do excesso */
}

/* Resumo dentro do card verde */
.credito-destaque .resumo-caixa{
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width:520px){
  .credito-destaque .resumo-caixa{ grid-template-columns: repeat(3,1fr); }
}
.resumo-item{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius:12px;
  padding:12px 10px;
  color:#fff;
  text-align:center;
}
.resumo-item i{ font-size:20px; opacity:.95; display:block; margin-bottom:6px; }
.resumo-item span{ display:block; font-size:12px; opacity:.9; margin-bottom:4px; }
.resumo-item strong{ font-size:18px; font-weight:800; }
.resumo-item:nth-child(3) strong{ color:#ffe5e5; } /* Excesso com leve destaque */
