/* ============================================
   SAÚDE PERTO DE VOCÊ — VISUAL APP MODERNO
   Mascote no topo: selo arredondado
   Sem botão flutuante de emergência
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #f2f5fa;
  color: #1a2333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

/* ===== CABEÇALHO — BANDA INSTITUCIONAL (azul sólido) ===== */
.cabecalho {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #084298;
  color: #ffffff;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 24px rgba(8, 66, 152, 0.35);
}

.cabecalho-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selo-verso {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.selo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}

.ponto-verde {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  animation: brilhar 2s infinite;
}

@keyframes brilhar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.cabecalho-titulo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== MASCOTE NO TOPO (selo arredondado) ===== */
.mascote-topo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.cabecalho h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.cabecalho p {
  font-size: 0.8rem;
  opacity: 0.92;
}

.etiqueta {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ===== CONTEÚDO ===== */
main {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== CARD DE EMERGÊNCIA (destaque único) ===== */
.faixa-emergencia {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.faixa-emergencia strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.numeros-emergencia {
  display: flex;
  gap: 10px;
}

.numeros-emergencia a {
  flex: 1;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-decoration: none;
  border-radius: 16px;
  padding: 12px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: transform 0.15s, background-color 0.15s;
}

.numeros-emergencia a strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.numeros-emergencia a:active {
  transform: scale(0.94);
  background-color: rgba(255, 255, 255, 0.32);
}

/* ===== CARDS GRANDES DO MENU ===== */
.menu-acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.botao-acao {
  background-color: #ffffff;
  border: none;
  border-radius: 22px;
  padding: 22px 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a2333;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(26, 35, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cada card com sua cor viva */
.botao-acao:nth-child(1) .icone {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
}
.botao-acao:nth-child(2) .icone {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}
.botao-acao:nth-child(3) .icone {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}
.botao-acao:nth-child(4) .icone {
  background: linear-gradient(135deg, #ec4899, #be185d);
  box-shadow: 0 6px 14px rgba(236, 72, 153, 0.35);
}
.botao-acao:nth-child(5) .icone {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.35);
}
.botao-acao:nth-child(6) .icone {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 6px 14px rgba(6, 182, 212, 0.35);
}

.botao-acao .icone {
  font-size: 1.7rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
}

.botao-acao:active {
  transform: scale(0.94);
}

/* ===== CARTÕES DE CONTEÚDO ===== */
.cartao {
  background-color: #ffffff;
  border: none;
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 6px 18px rgba(26, 35, 51, 0.07);
}

.cartao h2 {
  color: #084298;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cartao p, .cartao li {
  font-size: 0.92rem;
  line-height: 1.65;
}

.cartao ul {
  padding-left: 18px;
  margin: 8px 0;
}

.cartao li {
  margin-bottom: 8px;
}

.cartao a {
  color: #0b5ed7;
  font-weight: 700;
  text-decoration: none;
}

.cartao em {
  display: block;
  margin-top: 12px;
  color: #8a97a5;
  font-size: 0.76rem;
}

.cartao-boas-vindas {
  background: linear-gradient(135deg, #ffffff, #eef4ff);
}

/* ===== NOTA DO FORMULÁRIO ===== */
.nota-form {
  font-size: 0.78rem !important;
  color: #5f6b7a;
  background-color: #eef4ff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

/* ===== FORMULÁRIO ===== */
#form-agendamento {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#form-agendamento label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
}

#form-agendamento input,
#form-agendamento select {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #e4eaf2;
  border-radius: 14px;
  font-size: 16px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background-color: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

#form-agendamento input:focus,
#form-agendamento select:focus {
  outline: none;
  border-color: #0b5ed7;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

/* ===== BOTÃO PRINCIPAL (verde vivo) ===== */
.botao-destaque {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.botao-destaque:active {
  transform: scale(0.97);
}

/* ===== BUSCA ===== */
#campo-busca {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #e4eaf2;
  border-radius: 14px;
  font-size: 16px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  margin-bottom: 14px;
  background-color: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#campo-busca:focus {
  outline: none;
  border-color: #0b5ed7;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

/* ===== CARD DE UNIDADE ===== */
.cartao-unidade {
  background-color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(26, 35, 51, 0.07);
}

.cartao-unidade h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2333;
  margin-bottom: 6px;
}

.cartao-unidade p {
  font-size: 0.83rem;
  color: #5f6b7a;
  margin-bottom: 4px;
}

.selo-aberto {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin: 6px 0;
}

.selo-aberto.aberto {
  background-color: #dcfce7;
  color: #15803d;
}

.selo-aberto.fechado {
  background-color: #fee2e2;
  color: #b91c1c;
}

.acoes-unidade {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.botao-ligar,
.botao-mapa {
  flex: 1;
  text-align: center;
  padding: 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
}

.botao-ligar:active,
.botao-mapa:active {
  transform: scale(0.95);
}

.botao-ligar {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.botao-mapa {
  background-color: #eef4ff;
  color: #0b5ed7;
}

/* ===== TELAS E ANIMAÇÃO ===== */
.tela {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.tela.ativa {
  display: flex;
  animation: entrar 0.3s ease;
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BOTÃO VOLTAR (oculto no início) ===== */
.botao-voltar {
  display: none;
  background-color: #ffffff;
  color: #084298;
  border: 2px solid #0b5ed7;
  border-radius: 16px;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(26, 35, 51, 0.06);
  transition: background-color 0.15s, transform 0.15s;
}

.botao-voltar.visivel {
  display: block;
}

.botao-voltar:active {
  background-color: #eef4ff;
  transform: scale(0.98);
}

/* ===== RODAPÉ ===== */
.rodape {
  text-align: center;
  font-size: 0.72rem;
  color: #8a97a5;
  padding: 20px 16px 40px;
  line-height: 1.7;
}

.rodape-titulo {
  font-weight: 700;
  color: #084298;
  font-size: 0.84rem;
  margin-bottom: 4px;
}

/* ===== RESPONSIVO — DESKTOP (a partir de 900px) ===== */
@media (min-width: 900px) {

  .cabecalho {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
  }

  .cabecalho-topo {
    order: 3;
    width: auto;
    gap: 12px;
  }

  main {
    max-width: 1000px;
    padding: 28px 48px;
  }

  /* Mascote maior no desktop */
  .mascote-topo {
    width: 88px;
    height: 88px;
  }

  .menu-acoes {
    grid-template-columns: repeat(3, 1fr);
  }

  .botao-acao {
    font-size: 0.95rem;
    padding: 26px 12px 22px;
  }

  .botao-acao .icone {
    width: 66px;
    height: 66px;
    font-size: 1.9rem;
  }

  .botao-acao:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(26, 35, 51, 0.14);
  }

  .cartao {
    padding: 28px 26px;
  }

  .rodape {
    padding: 24px 48px 60px;
  }
}

/* ===== CELULARES MUITO PEQUENOS ===== */
@media (max-width: 350px) {
  .numeros-emergencia {
    flex-direction: column;
  }

  .cabecalho h1 {
    font-size: 1.05rem;
  }

  .mascote-topo {
    width: 56px;
    height: 56px;
  }
}









/* ===== BLOCOS DE ATENDIMENTO (tela Consultas) ===== */
.cartao-atendimento {
  background-color: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

.cartao-atendimento h3 {
  color: #084298;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.atendimento-unidades {
  font-size: 0.78rem;
  color: #5f6b7a;
  margin-bottom: 10px;
}

.cartao-atendimento ul {
  padding-left: 18px;
  margin: 8px 0;
}

.cartao-atendimento li {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.atendimento-telefone {
  font-size: 0.82rem;
  color: #1a2333;
  margin-top: 10px;
}


/* ===== MASCOTE COMO BOTÃO (volta ao início) ===== */
.mascote-botao {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 22px;
  transition: transform 0.15s ease;
}

.mascote-botao:active {
  transform: scale(0.92);
}

@media (min-width: 900px) {
  .mascote-botao:hover {
    transform: scale(1.06);
  }
}

/* ===== BOTÃO SECUNDÁRIO (confirmação) ===== */
.botao-secundario {
  background-color: #ffffff;
  color: #084298;
  border: 2px solid #0b5ed7;
  border-radius: 16px;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: transform 0.15s;
}

.botao-secundario:active {
  transform: scale(0.97);
}

/* ===== IMPRESSÃO / PDF DO COMPROVANTE ===== */
@media print {
  body * {
    visibility: hidden;
  }

  #comprovante-pdf, #comprovante-pdf * {
    visibility: visible;
  }

  #comprovante-pdf {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background-color: #ffffff;
    color: #1a2333;
  }
}

/* ===== LINHA DA CIDADE NO CABEÇALHO ===== */
.cabecalho-cidade {
  font-weight: 700;
  font-size: 0.75rem;
  color: #a7c4f0;
}

/* ===== MASCOTE COMO BOTÃO (volta ao início) ===== */
.mascote-botao {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 22px;
  transition: transform 0.15s ease;
}

.mascote-botao:active {
  transform: scale(0.92);
}

@media (min-width: 900px) {
  .mascote-botao:hover {
    transform: scale(1.06);
  }
}