/* =========================================
   VARIÁVEIS DE CORES (Baseado no Mockup)
   ========================================= */
:root {
  --primary-blue: #0044cc;
  --action-orange: #ff6600;
  --success-green: #28a745;
  --bg-color: #f4f7f6;
  --text-main: #333;
  --text-muted: #777;
  --border-color: #e0e0e0;
}

/* =========================================
   RESET E BASE
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px 0;
}



/* =========================================
   CABEÇALHO E MENU HAMBÚRGUER
   ========================================= */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: #fff;
  position: relative;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-weight: 700;
  font-size: 12px;
  color: var(--primary-blue);
  line-height: 1.1; /* Junta bem as duas linhas */
  text-transform: uppercase;
}

.text-green {
  color: var(--success-green);
  font-size: 14px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--primary-blue);
  line-height: 1;
}

/* --- OVERLAY DO MENU DESLIZANTE --- */
.mobile-menu-overlay {
  position: absolute;
  top: 0;
  right: -100%; /* Começa escondido totalmente fora da tela pela direita */
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98); /* Branco levemente transparente */
  z-index: 100;
  transition: right 0.3s ease-in-out; /* Animação suave de entrada */
}

/* Classe que o JS vai ativar para mostrar o menu */
.mobile-menu-overlay.open {
  right: 0;
}

.menu-content {
  padding: 40px 30px;
  position: relative;
  height: 100%;
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 40px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.menu-links {
  list-style: none;
  margin-top: 40px;
}

.menu-links li {
  margin-bottom: 25px;
}

.menu-links a {
  text-decoration: none;
  color: var(--primary-blue);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.menu-links a:hover {
  color: var(--action-orange);
}


/* =========================================
   LÓGICA SPA (Single Page Application)
   ========================================= */
.step {
  display: none;
  /* Esconde todas as telas por padrão */
  padding: 30px 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.step.active {
  display: block;
  /* Mostra apenas a tela ativa */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* =========================================
   TIPOGRAFIA E INDICADORES
   ========================================= */
h1,
h2 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 5px;
  text-align: center;
}

.step-counter {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   FORMULÁRIOS
   ========================================= */
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-main);
}

input[type="text"],
input[type="number"],
input[type="tel"],
select {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}

input:focus,
select:focus {
  border-color: var(--primary-blue);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* =========================================
   TELA 1: HOME PAGE (Hero Refinado)
   ========================================= */
#step-0 {
  padding: 0;
  background-color: #fff;
  border-radius: 0 0 12px 12px;
}
.app-container {
  width: 95%;
  max-width: 650px;
  /* Aumentamos de 480px para 650px */
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-top: 2vh;
  /* Descola um pouco do topo */
}

/* Imagem de capa estilo App */
.hero-image-header {
  height: 220px;
  background: url('https://www.orcaflix.com.br/imgs/bg.png') center/cover no-repeat;
  width: 100%;
  border-bottom: 4px solid var(--action-orange);
}

.hero-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.hero-content {
  padding: 40px 30px;
  text-align: left; /* Alinhamento à esquerda passa mais credibilidade */
}

.hero-content h1 {
  color: var(--primary-blue);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.3;
  text-align: left;
}

/* Lista de benefícios com Checkmarks */
.hero-features {
  list-style: none;
  margin-bottom: 35px;
}

.hero-features li {
  font-size: 15px;
  color: var(--text-main);
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.check-icon {
  color: #fff;
  background-color: var(--success-green);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

/* Botão maior e mais chamativo */
.btn-lg {
  padding: 18px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

/* Badges de confiança no rodapé */
.hero-trust {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
}

/* =========================================
   CARDS SELECIONÁVEIS (Tela 3 - Padrão)
   ========================================= */
.card-radio-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.card-radio-grid input[type="radio"] {
  display: none;
  /* Esconde a bolinha nativa do radio */
}

.card-radio-grid label {
  border: 2px solid var(--border-color);
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-radio-grid label h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.card-radio-grid label p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Estilo de quando o Card é selecionado */
.card-radio-grid input[type="radio"]:checked+label {
  border-color: var(--action-orange);
  background-color: #fffaf5;
}

.card-radio-grid input[type="radio"]:checked+label h3 {
  color: var(--action-orange);
}

.card-eco {
  border: 2px solid var(--border-color);
}

input#economico:checked+.card-eco {
  border-color: var(--success-green);
  background-color: #f0fdf4;
}

input#economico:checked+.card-eco h3 {
  color: var(--success-green);
}

.card-medio {
  border: 2px solid var(--border-color);
}

input#medio:checked+.card-medio {
  border-color: #f97316;
  /* Laranja */
  background-color: #fff7ed;
}

input#medio:checked+.card-medio h3 {
  color: #f97316;
}

.card-alto {
  border: 2px solid var(--border-color);
}

input#alto:checked+.card-alto {
  border-color: #ef4444;
  /* Vermelho */
  background-color: #fef2f2;
}

input#alto:checked+.card-alto h3 {
  color: #ef4444;
}

/* =========================================
   TELA 4: CONTROLE DE AMBIENTES (+ E -)
   ========================================= */
.environments-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.env-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.env-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.quantity-picker {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-picker button {
  background: white;
  border: 1px solid #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-picker span {
  font-size: 16px;
  font-weight: bold;
  min-width: 15px;
  text-align: center;
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
  width: 100%;
  background-color: var(--primary-blue);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-orange {
  background-color: var(--action-orange);
}

.btn-green {
  background-color: var(--success-green);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

/* =========================================
   TELA DE RESULTADO (Tela 6)
   ========================================= */
.result-box {
  background-color: #f8fcf8;
  border: 1px solid #c3e6cb;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.valor-final {
  font-size: 26px;
  font-weight: 900;
  color: var(--success-green);
  margin: 10px 0;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================
   TELA 7: PAINEL ADMIN (Alinhamento)
   ========================================= */
.admin-login-box {
  max-width: 350px;
  margin: 80px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* Isso arruma o desalinhamento */
}

.admin-login-box h2 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.admin-login-box input {
  width: 100%;
  padding: 12px;
}

.admin-login-box button {
  width: 100%;
  margin-top: 5px;
}

/* =========================================
   PAINEL ADMIN (Dashboard)
   ========================================= */
.admin-body {
  background-color: #eef2f5;
}

.admin-dashboard {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.admin-dashboard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-dashboard header button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.leads-list {
  width: 100%;
  overflow-x: auto;
  /* Cria a barra de rolagem horizontal se necessário */
}

.leads-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  min-width: 1000px;
  /* O SEGREDO: garante espaço de sobra para as colunas respirarem */
}

.leads-list th,
.leads-list td {
  padding: 12px 10px;
  /* Um pouco mais de respiro interno */
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.leads-list th {
  background-color: #f8f9fa;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
  /* Impede que os títulos do cabeçalho quebrem linha */
}

.leads-list td {
  font-size: 13px;
  /* Fonte levemente ajustada para caber mais dados */
  line-height: 1.4;
}

/* Força quebra de linha apenas se uma palavra for absurdamente gigante, sem esmagar a coluna */
.leads-list td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  background: #ffeeba;
  color: #856404;
  text-transform: uppercase;
}
/* =========================================
   RESPONSIVIDADE (Telas Menores)
   ========================================= */
@media (max-width: 600px) {
  /* Transforma as duas colunas em uma só no celular */
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 10px; /* Reduz um pouco o espaço entre os campos */
  }

  /* Ajusta o título principal da Home para não ficar gigante no celular */
  .hero-content h1 {
    font-size: 22px;
  }

  /* Deixa o botão da Home mais proporcional */
  .btn-lg {
    padding: 15px;
    font-size: 16px;
  }
}