﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variaveis ── */
:root {
  --verde-principal: #2E7D32;
  --verde-escuro: #1B5E20;
  --amarelo: #FFC107;
  --azul-gradiente: #1565C0;
  --branco: #FFFFFF;
  --cinza-fundo: #F5F5F5;
  --cinza-texto: #666666;
  --cinza-borda: #E0E0E0;
  --radius-primary: 25px;
  --radius-secondary: 8px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: var(--branco); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Logo ── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; }
.logo-text { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.logo-text .sin { color: var(--verde-escuro); }
.logo-text .saude { color: var(--amarelo); }
.logo-text .sp { color: var(--verde-escuro); }

/* Logo em imagem */
.logo-img { height: 72px; width: auto; display: block; }
.logo--on-dark .logo-img { background: #fff; border-radius: 8px; padding: 6px; }
.site-footer .logo-img { height: 96px; }
.admin-header .logo-img { height: 60px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--amarelo);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-primary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary:hover { background: #FFD54F; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary:active { transform: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-block;
  background: var(--verde-principal);
  color: var(--branco);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-secondary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-secondary:hover { background: var(--verde-escuro); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--verde-principal);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: var(--radius-secondary);
  border: 2px solid var(--verde-principal);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--verde-principal); color: white; }

/* ── Badge ── */
.badge-service {
  display: inline-block;
  background: var(--amarelo);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--branco);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Hero ── */
.hero {
  background:
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.10) 60%, rgba(0,0,0,0) 100%),
    url('/static/img/BANNER.png') center center / cover no-repeat;
  color: var(--branco);
  padding: 70px 20px 80px;
  text-align: left;
}
.hero .container {
  max-width: 560px;
  margin-left: auto;
  margin-right: 0;
  padding-right: 40px;
}
.hero .badge-service { margin-bottom: 20px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.hero .hero-sub { color: var(--amarelo); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 20px; }
.hero p { font-size: 1rem; max-width: 520px; margin: 0 0 30px; opacity: 0.95; }
.hero .btn-primary { font-size: 1.1rem; padding: 16px 40px; }
.hero-note { font-size: 0.82rem; margin-top: 14px; opacity: 0.85; }
@media (max-width: 640px) {
  .hero { text-align: center; background-position: 30% center; }
  .hero .container { margin: 0 auto; padding-right: 0; }
  .hero p { margin: 0 auto 30px; }
}

/* ── Sections ── */
.section { padding: 60px 20px; }
.section-gray { background: var(--cinza-fundo); }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--cinza-texto); max-width: 640px; margin: 0 auto 40px; font-size: 1rem; }

.container { max-width: 1100px; margin: 0 auto; }

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--branco);
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--cinza-texto); line-height: 1.5; }

/* ── Who has the right grid ── */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.rights-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.rights-item::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--verde-principal);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 24px; max-width: 640px; margin: 0 auto; }
.step-item { display: flex; align-items: flex-start; gap: 18px; }
.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--verde-principal);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; color: var(--cinza-texto); }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--azul-gradiente) 0%, var(--verde-principal) 100%);
  padding: 60px 20px;
  text-align: center;
  color: var(--branco);
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-section p { max-width: 560px; margin: 0 auto 30px; opacity: 0.9; font-size: 1rem; }
.cta-icon { font-size: 3rem; margin-bottom: 20px; }

/* ── Página de seleção (filiado ou não) ── */
.selecao-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-escuro) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.selecao-card {
  background: var(--branco);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  max-width: 680px;
  width: 100%;
  padding: 40px 28px;
  text-align: center;
}
.selecao-card h1 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 18px auto 6px;
  max-width: 540px;
}
.selecao-card h1 strong { color: var(--verde-principal); }
.selecao-sub { color: var(--cinza-texto); font-size: 0.95rem; margin-bottom: 18px; }
.selecao-pergunta { font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; }
.selecao-opcoes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (min-width: 560px) { .selecao-opcoes { grid-template-columns: 1fr 1fr; } }
.selecao-opcao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--cinza-borda);
  border-radius: 12px;
  padding: 22px 16px;
  transition: var(--transition);
  cursor: pointer;
}
.selecao-opcao:hover {
  border-color: var(--verde-principal);
  background: #f1f8f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}
.selecao-emoji { font-size: 2rem; }
.selecao-titulo { font-size: 1.05rem; font-weight: 800; color: var(--verde-escuro); }
.selecao-desc { font-size: 0.84rem; color: var(--cinza-texto); line-height: 1.45; }
.selecao-nota {
  font-size: 0.78rem;
  color: var(--cinza-texto);
  background: var(--cinza-fundo);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ── Footer ── */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 40px 20px;
}
.site-footer .logo-text .sin { color: #aaa; }
.site-footer .logo-text .saude { color: var(--amarelo); }
.site-footer .logo-text .sp { color: #aaa; }
.site-footer p { font-size: 0.85rem; margin-top: 10px; }
.footer-contact { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0; font-size: 0.9rem; }
.footer-copy { font-size: 0.78rem; color: #666; margin-top: 14px; }

/* ──────────────────────────────────────────────── */
/* FORM PAGE                                        */
/* ──────────────────────────────────────────────── */

.form-header {
  background: var(--branco);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link { color: var(--verde-principal); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }

.form-hero {
  background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-escuro) 100%);
  padding: 36px 20px;
  text-align: center;
  color: var(--branco);
}
.form-hero h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin: 14px 0 8px; }
.form-hero p { font-size: 0.95rem; opacity: 0.9; max-width: 500px; margin: 0 auto; }

.form-container { max-width: 720px; margin: 0 auto; padding: 30px 20px 60px; }

/* Form cards */
.form-card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 12px;
  padding: 28px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.form-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--verde-principal);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cinza-borda);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Fields */
.field-group { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }

label { display: block; font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 6px; }
label .req { color: #c62828; }
label .opt { color: var(--cinza-texto); font-weight: 400; font-size: 0.8rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cinza-borda);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: var(--branco);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde-principal);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
input.error, select.error { border-color: #c62828; }
.field-error { color: #c62828; font-size: 0.78rem; margin-top: 4px; }

/* Radio group */
.radio-group { display: flex; gap: 24px; align-items: center; padding: 4px 0; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 500; }
.radio-label input[type="radio"] { width: 18px; height: 18px; accent-color: var(--verde-principal); cursor: pointer; }

/* Upload area */
.upload-list { display: flex; flex-direction: column; gap: 12px; }
.upload-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1.5px dashed var(--cinza-borda);
  border-radius: 8px;
  background: #fafafa;
  position: relative;
}
.upload-row.uploaded { border-color: var(--verde-principal); background: #f1f8f1; }
.upload-row-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.doc-label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 140px; flex-wrap: wrap; }
.doc-name { font-weight: 600; font-size: 0.92rem; color: #333; }
.doc-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.doc-badge.obrig { background: #ffebee; color: #c62828; }
.doc-badge.opc { background: #eceff1; color: #607d8b; }
.upload-progress-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c62828;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.upload-progress-msg.completo { color: var(--verde-escuro); background: #f1f8f1; border-color: #a5d6a7; }
.upload-btn-wrap { display: flex; align-items: center; gap: 10px; }
.upload-input { display: none; }
.upload-label-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verde-principal);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.upload-label-btn:hover { background: var(--verde-escuro); }
.upload-status { font-size: 0.82rem; color: var(--cinza-texto); }
.upload-status.done { color: var(--verde-principal); font-weight: 600; }
.upload-status.uploading { color: var(--azul-gradiente); }
.upload-status.error { color: #c62828; }
.upload-progress { height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; display: none; }
.upload-progress-bar { height: 100%; background: var(--verde-principal); width: 0; transition: width 0.3s; }
.add-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--verde-principal);
  border: 1.5px dashed var(--verde-principal);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: var(--transition);
}
.add-doc-btn:hover { background: #f1f8f1; }
.remove-doc-btn {
  background: transparent;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
}
.remove-doc-btn:hover { background: #ffebee; }

/* Agenda de horários */
.horarios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  align-items: center;
}
.horarios-hint { font-size: 0.84rem; color: var(--cinza-texto); }
.horario-btn {
  background: var(--branco);
  border: 1.5px solid var(--cinza-borda);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.horario-btn:hover:not(:disabled) { border-color: var(--verde-principal); background: #f1f8f1; }
.horario-btn.selecionado {
  background: var(--verde-principal);
  border-color: var(--verde-principal);
  color: white;
}
.horario-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.agendamento-resumo {
  background: #f1f8f1;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  text-align: center;
}
.agendamento-resumo p { margin: 4px 0; }

/* Procuração */
.procuracao-box {
  background: #f9f9f9;
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.7;
  max-height: 220px;
  overflow-y: auto;
  color: #333;
  white-space: pre-wrap;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--verde-principal);
  margin-top: 2px;
  cursor: pointer;
}
.checkbox-wrap label { font-size: 0.88rem; font-weight: 400; cursor: pointer; }

/* ZapSign */
.zapsign-section { margin-top: 16px; }
.zapsign-info {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  color: #1b5e20;
}
#zapsign-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#zapsign-modal-overlay.open { display: flex; }
#zapsign-modal {
  background: white;
  border-radius: 12px;
  width: 96vw;
  max-width: 1100px;
  height: 95vh;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--cinza-borda);
}
.modal-header h3 { font-size: 0.95rem; font-weight: 700; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--cinza-borda);
  background: #fafafa;
  flex-wrap: wrap;
}
.modal-footer #zapsign-status-msg { font-size: 0.85rem; color: var(--cinza-texto); }
.modal-footer #btn-confirmar-assinatura { font-size: 0.85rem; padding: 8px 16px; white-space: nowrap; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--cinza-texto);
  line-height: 1;
  padding: 0 4px;
}
#zapsign-iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  flex: 1;
}
.assinatura-confirmada {
  display: none;
  align-items: center;
  gap: 10px;
  background: #e8f5e9;
  border: 1px solid var(--verde-principal);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--verde-escuro);
  margin-top: 14px;
}
.assinatura-confirmada.show { display: flex; }
.assinatura-confirmada::before { content: '✓'; background: var(--verde-principal); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }

/* Submit area */
.submit-area { text-align: center; margin-top: 10px; }
.btn-submit-main {
  width: 100%;
  max-width: 400px;
  background: var(--verde-principal);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-secondary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit-main:hover:not(:disabled) { background: var(--verde-escuro); }
.btn-submit-main:disabled { opacity: 0.45; cursor: not-allowed; }
.form-privacy { font-size: 0.78rem; color: var(--cinza-texto); margin-top: 12px; text-align: center; }
.form-privacy::before { content: '🔒 '; }

/* Loading spinner */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #ccc; border-top-color: var(--verde-principal); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Error alert */
.alert-error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

/* ──────────────────────────────────────────────── */
/* OBRIGADO PAGE                                    */
/* ──────────────────────────────────────────────── */

.obrigado-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cinza-fundo); padding: 40px 20px; }
.obrigado-card {
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.check-icon { width: 72px; height: 72px; margin: 0 auto 24px; }
.obrigado-card h1 { font-size: 1.6rem; font-weight: 700; color: var(--verde-principal); margin-bottom: 14px; }
.obrigado-card p { color: var(--cinza-texto); margin-bottom: 8px; }
.protocolo-num { font-size: 1.1rem; font-weight: 700; color: #333; background: var(--cinza-fundo); padding: 8px 18px; border-radius: 8px; display: inline-block; margin: 12px 0; }

/* ──────────────────────────────────────────────── */
/* ADMIN PANEL                                      */
/* ──────────────────────────────────────────────── */

.admin-layout { display: flex; flex-direction: column; min-height: 100vh; }

.admin-header {
  background: var(--verde-escuro);
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header .logo-text .sin,
.admin-header .logo-text .sp { color: #ccc; }
.admin-header .logo-text .saude { color: var(--amarelo); }
.admin-nav { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; }
.admin-nav a { color: #ccc; transition: var(--transition); }
.admin-nav a:hover { color: white; }

.admin-main { flex: 1; padding: 28px 20px; max-width: 1200px; margin: 0 auto; width: 100%; }

.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cinza-fundo); padding: 20px; }
.admin-login-card {
  background: white;
  border-radius: 12px;
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.admin-login-card h1 { font-size: 1.3rem; font-weight: 700; color: var(--verde-principal); margin: 14px 0 24px; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: white;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--verde-principal); }
.stat-label { font-size: 0.78rem; color: var(--cinza-texto); text-transform: uppercase; letter-spacing: 0.5px; }

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.filter-bar select,
.filter-bar input[type="text"] { flex: 1; min-width: 140px; padding: 9px 12px; font-size: 0.88rem; }
.filter-bar button { white-space: nowrap; }

/* Table */
.table-wrap { overflow-x: auto; background: white; border-radius: 10px; box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: #f5f5f5; }
th { padding: 12px 14px; text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--cinza-texto); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* Status badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-novo { background: #e3f2fd; color: #1565c0; }
.badge-em_andamento { background: #fff8e1; color: #f57f17; }
.badge-concluido { background: #e8f5e9; color: #2e7d32; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.pagination a { background: white; border: 1px solid var(--cinza-borda); color: var(--verde-principal); }
.pagination a:hover { background: var(--cinza-fundo); }
.pagination .current { background: var(--verde-principal); color: white; border: none; }

/* Detail page */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: 1fr 1fr; } }

.detail-card {
  background: white;
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.detail-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--verde-principal); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--cinza-borda); }

.info-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.info-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--cinza-texto); }
.info-value { font-size: 0.95rem; color: #1a1a1a; }

.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; flex-wrap: wrap; }
.doc-item:last-child { border-bottom: none; }
.doc-tipo { background: #e8f5e9; color: var(--verde-escuro); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.doc-nome { flex: 1; font-size: 0.85rem; color: #333; word-break: break-all; }
.doc-size { font-size: 0.78rem; color: var(--cinza-texto); white-space: nowrap; }

textarea.nota-input { min-height: 120px; resize: vertical; }

/* Back link in admin */
.admin-back { display: inline-flex; align-items: center; gap: 6px; color: var(--verde-principal); font-weight: 600; font-size: 0.88rem; margin-bottom: 20px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--cinza-texto); }
.empty-state p { font-size: 1rem; }

/* Responsive tweaks */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar select, .filter-bar input { min-width: 100%; }
}

/* ── Lead capture modal ── */
#lead-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#lead-modal-overlay.open { display: flex; }
.lead-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}
.lead-modal-card .field-group { margin-top: 0; }
.lead-modal-card .checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; }
.lead-modal-card .checkbox-wrap input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
