/* ------------------- BASE ------------------- */
body {
  font-family: "Open Sans", Arial, sans-serif;
  background: #fff;
  color: #333;
  margin: 0;
  line-height: 1.6;

  /* espaço para o header fixo */
  padding-top: 90px; /* ajuste conforme altura do header */
}

h2.titulo {
  color: #00894c;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #00894c;
  padding-bottom: 5px;
}

/* ------------------- CONTAINER ------------------- */
.conteudo {
  max-width: 960px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ------------------- HEADER ------------------- */
.header-unimed {
  background: #fff;

  /* 🔹 Fixar no topo */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* 🔹 Linha separadora com sombra */
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.header-unimed .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-unimed .logo {
  height: 60px;
}

/* 🔹 Menu atualizado */
.menu ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.menu ul li a {
  text-decoration: none;
  color: #444;              /* cinza neutro */
  font-family: Arial, sans-serif;
  font-size: 0.85rem;       /* menor */
  font-weight: normal;      /* sem bold */
  transition: color 0.2s;
}
.menu ul li a:hover {
  color: #00894c;           /* verde só no hover */
}

/* ------------------- BUSCA ------------------- */
.busca {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  align-items: center;
}
.busca label {
  font-weight: 600;
  flex: 0 0 100%;
}
.busca input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
.busca input:focus {
  border-color: #00894c;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,137,76,0.2);
}
.busca button {
  padding: 10px 22px;
  border: none;
  background: #00894c;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.busca button:hover { background: #006f3c; }

/* ------------------- localizar ------------------- */
.localizar {
  display: flex;
  flex-direction: column; /* deixa label, input e botão empilhados */
  gap: 10px;
  margin-bottom: 25px;
  align-items: stretch; /* faz os filhos ocuparem 100% */
}

.localizar label {
  font-weight: 600;
}

.localizar input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%; /* ocupa largura toda */
}

.localizar input:focus {
  border-color: #00894c;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,137,76,0.2);
}

.localizar button {
  width: 100%; /* 🔹 botão ocupa toda largura */
  padding: 12px 22px;
  border: none;
  background: #00894c;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s;
}

.localizar button:hover {
  background: #006f3c;
}

/* ------------------- CARD RESUMO ------------------- */
.card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}
.card h2, .card h3 {
  margin-top: 0;
  color: #00894c;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.info-grid p {
  margin: 0;
}

/* ------------------- FORMULÁRIOS ------------------- */
.formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔹 Corrigido: inputs em coluna única */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-grid label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
.form-grid input:focus,
.form-grid textarea:focus {
  border-color: #00894c;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,137,76,0.2);
}

/* ------------------- UPLOAD ------------------- */
.anexo-info {
  border: 2px dashed #00894c;
  background: #f0fdfa;
  padding: 15px;
  border-radius: 8px;
  color: #006f3c;
}
.anexo-info p {
  margin-bottom: 8px;
  font-weight: bold;
}
.anexo-info ul {
  margin: 0;
  padding-left: 20px;
}
.anexo-info ul li {
  margin-bottom: 6px;
}

/* ------------------- BOTÕES ------------------- */
form button,
.btn-voltar {
  background: #00894c;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}
form button:hover,
.btn-voltar:hover {
  background: #006f3c;
  transform: translateY(-1px);
}
.btn-voltar {
  display: block;
  margin: 15px auto;
}

/* ------------------- MENSAGEM FINAL ------------------- */
#mensagem-final {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  padding: 20px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------------- FOOTER ---------------- */

/* Área superior cinza */
.rodape-links {
  background: #f5f7f5;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif; /* 🔹 fonte Arial */
}
.rodape-links h4 {
  color: #000; /* 🔹 títulos pretos */
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;
}
.rodape-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rodape-links ul li {
  margin-bottom: 6px;
}
.rodape-links ul li a {
  color: #666; /* 🔹 links cinza */
  text-decoration: none;
  font-size: 0.9rem;
}
.rodape-links ul li a:hover {
  text-decoration: underline;
  color: #00894c; /* verde só no hover */
}

/* Área inferior branca */
.rodape-contact {
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}
.contact-info {
  flex: 70%;
}
.contact-info .icon {
  font-size: 1rem;
  margin-right: 5px;
}
.divider {
  width: 1px;
  background: #ccc;
  margin: 0 20px;
}
.social-info {
  flex: 30%;
}
.social-icon {
  display: inline-block;
  margin: 5px 0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.social-icon:hover {
  color: #00894c;
}
.apps img {
  height: 40px;
  margin: 8px 8px 0 0;
}

/* Copy */
.rodape-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  background: #fff;
  font-family: Arial, sans-serif;
}

/* Responsivo */
@media (max-width: 768px) {
  .rodape-contact {
    flex-direction: column;
  }
  .divider {
    display: none;
  }
}

/* 🔹 Termo de aceite */
#termo-aceite {
  background: #f9f9f9;
  border-left: 4px solid #00894c;
  padding: 20px;
  margin-bottom: 25px;
}
#termo-aceite h3 {
  color: #00894c;
  margin-bottom: 10px;
}
#termo-aceite .texto-termo {
  font-size: 0.95rem;
  margin-bottom: 15px;
}
#termo-aceite .aceite {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
#termo-aceite input[type="checkbox"] {
  transform: scale(1.2);
}

/* 🔹 Botão desabilitado */
form button:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
}

#assuntoTratado {
  width: 100%;
  min-height: 100px; /* garante altura */
  resize: vertical; /* permite o usuário aumentar/diminuir */
}
/* ------------------- BOTÕES ESPECIAIS ------------------- */
.acoes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.acoes button {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  border: 2px solid #00894c; /* contorno verde */
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #00894c;
  
  /* 🔹 fundo transparente com degradê */
  background: linear-gradient(
    135deg,
    rgba(0, 137, 76, 0.1), /* verde bem transparente */
    rgba(0, 137, 76, 0.25) /* verde mais forte */
  );
  
  transition: all 0.3s ease-in-out;
}

/* Hover mais evidente */
.acoes button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 137, 76, 0.25),
    rgba(0, 137, 76, 0.4)
  );
  box-shadow: 0 4px 12px rgba(0,137,76,0.25);
  transform: translateY(-2px);
}
/* 🔹 Animação do ícone ✅ */
@keyframes bounce {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.1) translateY(-6px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

/* 🔹 Card de sucesso */
.mensagem-sucesso {
  background: #f6fff9;
  border: 2px solid #2d572c33;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  animation: fadeIn 0.5s ease;
}

/* 🔹 Efeito suave de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 🔹 Botão de sucesso */
.btn-padrao:hover {
  background-color: #3a7a45;
  transform: scale(1.03);
  transition: all 0.2s ease;
}

/* ======================
   EFEITOS DE ANIMAÇÃO SUAVE
   ====================== */

/* Fade-in inicial */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.6s ease forwards;
}

/* Fade-out quando o usuário clica em Nova Pesquisa */
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

/* animações de entrada e saída */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* botão com hover animado */
.fade-in-btn:hover {
  background: #0c995d;
  transform: scale(1.05);
}

/* 💚 Destaque pulsante do número do protocolo */
.pulse-protocolo {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); color: #0a7c4d; }
  50% { transform: scale(1.15); color: #13a163; }
  100% { transform: scale(1); color: #0a7c4d; }
}
