/* --- VARIÁVEIS GLOBAIS --- */
:root {
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-400: #34d399;
  --brand-500: #10b981; /* Verde Principal */
  --brand-600: #059669;
  --brand-900: #064e3b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-900: #111827;
  --white: #ffffff;
  --warning: #fff8e1;
  --warningText: #b7791f;
  --font-primary: "Inter", sans-serif;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --whatsapp-green: #4ade80; /* Verde vibrante do botão do print */
  --whatsapp-dark: #22c55e;
}

/* --- RESET & GERAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--gray-50); color: var(--gray-500); font-family: var(--font-primary); line-height: 1.5; }

.app-container { max-width: 1152px; margin: 0 auto; padding: 2rem 1rem; min-height: 60vh; }
.hidden-section { display: none !important; }
.fade-enter { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- HEADER --- */
.main-header { background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 50; }
.header-container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.logo-icon { width: 2.5rem; height: 2.5rem; background: var(--brand-600); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--white); }
.logo-text { font-weight: 700; color: var(--gray-900); font-size: 1.125rem; line-height: 1; }
.logo-highlight { color: var(--brand-600); }
.logo-sub { font-size: 0.625rem; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; display: block; }
.nav-desktop { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; }
.nav-desktop a { text-decoration: none; color: inherit; transition: 0.2s; }
.nav-desktop a:hover { color: var(--brand-600); }
.btn-ouvidoria { padding: 0.625rem 1.25rem; border: 1px solid var(--gray-200); border-radius: 0.5rem; }
.btn-mobile-toggle { display: block; background: none; border: none; font-size: 1.25rem; color: var(--gray-500); cursor: pointer; }
@media (min-width: 768px) { .nav-desktop { display: flex; align-items: center; } .btn-mobile-toggle { display: none; } }

/* --- HOME HERO --- */
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-text-col { text-align: center; order: 2; }
.hero-card-col { order: 1; }
@media (min-width: 1024px) { 
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-text-col { text-align: left; order: 1; }
  .hero-card-col { order: 2; }
}
.status-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; background: var(--brand-50); color: var(--brand-600); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; border-radius: 99px; margin-bottom: 1rem; }
.hero-title { font-size: 3.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1.5rem; line-height: 1.1; }
.highlight-text { color: var(--brand-600); }
.hero-desc { font-size: 1.125rem; margin-bottom: 2rem; }
.hero-features { display: flex; gap: 2rem; justify-content: center; font-size: 0.875rem; font-weight: 500; }
@media (min-width: 1024px) { .hero-features { justify-content: flex-start; } }
.feature-item { display: flex; align-items: center; gap: 0.5rem; } .feature-icon { color: var(--brand-500); }

/* --- CARDS & INPUTS (HOME) --- */
.validation-card { background: var(--white); padding: 2rem; border-radius: 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid var(--gray-100); }
.input-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; margin-bottom: 0.5rem; }
.input-group { position: relative; }
.sku-input { width: 100%; background: var(--gray-50); color: var(--gray-900); font-family: monospace; font-size: 1.125rem; font-weight: 700; padding: 1.25rem; border-radius: 0.75rem; border: 2px solid transparent; outline: none; text-transform: uppercase; transition: 0.2s; }
.sku-input:focus { background: var(--white); border-color: var(--brand-500); }
.input-icon { position: absolute; right: 1.25rem; top: 1.25rem; color: var(--gray-400); font-size: 1.25rem; }
.btn-validate { width: 100%; margin-top: 1.5rem; background: var(--gray-900); color: var(--white); font-weight: 700; padding: 1.25rem; border-radius: 0.75rem; font-size: 1.125rem; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.75rem; transition: 0.2s; }
.btn-validate:hover { background: #000; }
.terms-text { text-align: center; font-size: 0.75rem; color: var(--gray-400); margin-top: 1rem; }

/* --- SUCCESS VIEW --- */
.success-container { max-width: 64rem; margin: 0 auto; }
.success-card { background: var(--white); border-radius: 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid var(--gray-100); overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 768px) { .success-card { flex-direction: row; } }
.success-col-img { background: var(--gray-50); position: relative; min-height: 300px; width: 100%; }
@media (min-width: 768px) { .success-col-img { width: 33.333%; min-height: auto; } }
.product-img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; }
.floating-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.75rem; font-weight: 700; color: var(--brand-600); display: flex; align-items: center; gap: 0.25rem; }
.success-col-content { padding: 1.5rem; width: 100%; }
@media (min-width: 768px) { .success-col-content { padding: 2.5rem; width: 66.666%; } }
.status-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.icon-circle-bg { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.status-label { color: #15803d; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; }
.prod-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.prod-desc { color: var(--gray-500); margin-bottom: 1.5rem; line-height: 1.6; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-box { background: var(--gray-50); padding: 0.75rem; border-radius: 0.75rem; border: 1px solid var(--gray-100); }
.info-label { display: block; font-size: 0.625rem; color: var(--gray-400); font-weight: 700; text-transform: uppercase; margin-bottom: 0.25rem; }
.info-value { display: block; font-family: monospace; font-weight: 700; color: var(--gray-900); }
.cta-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 0.75rem; padding: 1.5rem; }
.btn-whatsapp-full { width: 100%; background: var(--brand-600); color: #fff; font-weight: 700; padding: 0.875rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; border: none; cursor: pointer; transition: 0.2s; }
.btn-whatsapp-full:hover { background: var(--brand-500); }
.btn-back { display: flex; align-items: center; gap: 0.5rem; background: none; border: none; cursor: pointer; color: var(--gray-500); font-weight: 500; margin-bottom: 1.5rem; }

/* --- VIEW FAIL --- */
.fail-container { max-width: 48rem; margin: 0 auto; }
.fail-alert { background: var(--warning); border: 1px solid #fef3c7; border-radius: 1.5rem; padding: 2rem; margin-bottom: 2rem; display: flex; gap: 1rem; align-items: flex-start; }
.fail-icon { font-size: 2rem; color: var(--warningText); }
.form-card { background: var(--white); border-radius: 1.5rem; border: 1px solid var(--gray-100); padding: 2rem; }
.form-input { width: 100%; padding: 1rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 0.5rem; outline: none; transition: 0.2s; margin-bottom: 1rem; font-family: var(--font-primary); font-size: 1rem; }
.form-input:focus { background: var(--white); border-color: var(--brand-500); }

/* --- LOADING --- */
.loading-wrapper { text-align: center; padding: 5rem 0; }
.spinner { width: 4rem; height: 4rem; border: 4px solid var(--gray-100); border-top-color: var(--brand-600); border-radius: 50%; margin: 0 auto 1.5rem; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   MODAL LEAD GATE (DESIGN FIEL AO PRINT)
   ========================================= */
.modal-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
/* Classe para ativar o modal via JS */
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    background: #fff; width: 100%; max-width: 480px;
    border-radius: 1.5rem; padding: 2.5rem;
    position: relative; transform: translateY(20px); transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-overlay.active .modal-card { transform: translateY(0); }

.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: transparent; border: none; font-size: 1.5rem; color: #9ca3af;
    cursor: pointer; transition: color 0.2s;
}
.close-modal:hover { color: #111827; }

.modal-title { font-size: 1.75rem; font-weight: 800; color: #111827; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.modal-desc { color: #6b7280; margin-bottom: 2rem; font-size: 1rem; }

/* Inputs do Modal (Estilo Clean/Grande) */
.modal-input {
    width: 100%; padding: 1.125rem 1.25rem;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.75rem;
    font-size: 1rem; color: #111827; outline: none; transition: all 0.2s;
    margin-bottom: 1rem;
}
.modal-input:focus { background: #fff; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
.modal-input::placeholder { color: #9ca3af; }

/* Checkbox */
.checkbox-wrapper { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; cursor: pointer; }
.checkbox-custom { width: 1.25rem; height: 1.25rem; accent-color: var(--brand-500); cursor: pointer; }
.checkbox-label { font-size: 0.875rem; color: #4b5563; }

/* Botão WhatsApp Modal */
.btn-modal-submit {
    width: 100%; padding: 1.125rem;
    background-color: #4ade80; /* Cor vibrante do print */
    color: white; font-weight: 700; font-size: 1.125rem;
    border-radius: 0.75rem; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    transition: all 0.2s; box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.4);
}
.btn-modal-submit:hover { background-color: #22c55e; transform: translateY(-1px); }

/* =========================================
   ADICIONAIS PARA PÁGINA DE OUVIDORIA
   (Não remove nada acima, apenas adiciona)
   ========================================= */

/* Grid Responsivo para Formulários */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

/* Utilitários de Texto e Espaçamento */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 2.5rem; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }

/* Garantir que inputs de formulário padrão usem o mesmo estilo */
textarea.form-input, select.form-input {
    display: block;
    width: 100%;
}

/* --- FEEDBACK DO FORMULÁRIO (Novo) --- */
.feedback-message {
  display: none; /* Oculto por padrão */
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.3s ease-out;
}

.feedback-message.active {
  display: flex;
}

/* Estado de Sucesso */
.feedback-message.success {
  background-color: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-900);
}

/* Estado de Erro */
.feedback-message.error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

/* Ícone dentro da mensagem */
.feedback-icon {
  font-size: 1.25rem;
}