/* =================================================================== */
/* === CSS COMPLETO E CONSOLIDADO PARA O SITE UNIMED-BH CONSULTORIA === */
/* =================================================================== */

/* --- ESTILOS GERAIS DO CORPO --- */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

main {
  /* Garante que o conteúdo principal não fique escondido atrás do header fixo */
  padding-top: 120px; /* Ajuste este valor se a altura do seu header mudar */
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

/* --- HEADER --- */
.site-header {
  background-color: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: fixed; /* Header fixo */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.logo img {
  max-height: 120px;
  margin-right: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #00995A; /* Verde Unimed */
}

.header-cta {
  background: #4CAF50; 
  color: white;
  padding: 10px 0px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  margin-left: 20px;
}

.header-cta:hover {
  background-color: #00995A;
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: background-color 0.2s ease-in-out;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #333;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* --- SEÇÃO HERO --- */
section.hero {
  background: #00995A; /* Verde principal */
  color: white;
  padding: 60px 20px;
  text-align: center;
}
section.hero h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
}
section.hero p {
  font-size: 1.4em;
}

/* --- SEÇÃO DE PLANOS --- */
.plans-section {
  text-align: center;
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 15px;
}
.plans-section h2 {
  margin-bottom: 10px;
  color:#00995A; /* Verde principal */
  font-size: 2.2em;
}
.section-subtitle {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.plans-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.plan {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 320px; /* Largura base dos cards */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.plan h3 { /* Estilo "Pílula" */
  display: inline-block;
  border-radius: 50px;
  background: linear-gradient(135deg, #00995A, #007D4B);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  padding: 12px 28px;
  margin-top: 0;
  margin-bottom: 25px;
}
.plan-description {
  font-size: 0.95em;
  color: #4a4a4a;
  line-height: 1.3; /* <<< Linhas mais próximas */
  margin-bottom: 20px; /* Pode reduzir um pouco a margem abaixo também */
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}
.plan-features li {
  font-size: 0.9em;
  color: #333;
  margin-bottom: 10px; /* <<< Espaço entre cada item da lista */
  line-height: 1.5;   /* <<< Linhas com respiro dentro de cada item */
}
.plan-features li::before {
  content: '✔';
  color: #4CAF50; /* Verde secundário */
  margin-right: 10px;
  font-weight: bold;
}
.plan-pricing {
  margin-top: auto; /* Empurra para o final do card */
  border-top: 1px solid #eee;
  padding-top: 20px;
  color: #555;
}
.plan-pricing .price-tag {
  display: inline-block;
  background-color: #E0F2F1; /* Um verde bem claro */
  color: #007D4B;
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: 500;
}
.plan-pricing .price-tag strong {
  font-weight: 700;
}

/* --- SEÇÃO DO FORMULÁRIO --- */
.form-lead-section {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #00995A , #007D4B);
  padding: 40px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border-radius: 10px;
  gap: 40px;
  color: white;
}
.form-lead-section .lead-text,
.form-lead-section form {
  flex: 1;
  min-width: 300px;
}
.lead-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-text img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.lead-text h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.lead-text p {
  font-size: 1.2em;
  color: #e0f7fa;
}
form input, form select, form button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}
form input, form select {
  background: white;
  color: #333;
}
form input:focus, form select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px #4CAF50;
}
form button {
  background: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
form button:hover {
  background: #3e8e41;
  transform: scale(1.03);
}
form button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

/* Estilos para grupos de radio/checkbox no formulário */
.form-group {
  width: 100%;
  margin: 10px 0;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 8px;
}
.form-group-title {
  margin: 0 0 12px 0;
  font-weight: bold;
  color: #ffffff;
  font-size: 1em;
}
.radio-group .radio-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #f0f0f0;
}
.checkbox-group label {
  align-items: flex-start;
  font-size: 0.9em;
  line-height: 1.5;
}
.checkbox-group .checkbox-label a {
  color: #BBDEFB;
  text-decoration: underline;
  font-weight: bold;
}
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  opacity: 0; position: absolute; width: 0; height: 0;
}
.radio-label::before,
.checkbox-label::before {
  content: ''; display: inline-block; width: 18px; height: 18px;
  margin-right: 10px; border: 2px solid #ffffff;
  background-color: transparent; transition: all 0.2s ease;
  flex-shrink: 0;
}
.radio-label::before { border-radius: 50%; }
.checkbox-label::before { border-radius: 4px; margin-top: 2px; }
.radio-group input[type="radio"]:checked + .radio-label::before {
  background-color: #ffffff; border: 5px solid #4CAF50;
}
.checkbox-group input[type="checkbox"]:checked + .checkbox-label::before {
  background-color: #4CAF50; border-color: #4CAF50;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.6-1.5-1.5L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: center;
}
.radio-group input[type="radio"]:focus + .radio-label::before,
.checkbox-group input[type="checkbox"]:focus + .checkbox-label::before {
  box-shadow: 0 0 5px #BBDEFB;
}

/* Seletor Customizado de Planos */
.custom-select-container {
  position: relative;
  width: 100%;
  margin: 10px 0;
}
.custom-select-container .select-header {
  background: white; color: #333; width: 100%;
  padding: 14px; border: 1px solid #ccc; border-radius: 8px;
  font-size: 1em; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.custom-select-container .select-header:hover,
.custom-select-container .select-header.open {
  outline: none; border-color: #4CAF50; box-shadow: 0 0 5px #4CAF50;
}
.custom-select-container .select-header.open .arrow {
  transform: rotate(180deg);
}
.custom-select-container select[multiple] {
  display: none; position: absolute; z-index: 1000; width: 100%;
  margin-top: 5px; background-color: #fff; border: 1px solid #ccc;
  border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  min-height: 130px; box-sizing: border-box; font-size: 1em; padding: 5px;
}
.custom-select-container select[multiple].visible { display: block; }
.custom-select-container select[multiple] option {
  padding: 12px; cursor: pointer; border-radius: 5px;
}
.custom-select-container select[multiple] option:hover { background-color: #f0f7f0; }
.custom-select-container select[multiple] option:checked {
  background-color: #00995A !important; color: white !important;
}
/* Área que exibe os itens selecionados (para a versão do seletor com lista) */
.custom-select-container .selected-values-display {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.2);
}
.custom-select-container .selected-values-display.empty { display: none; }
.custom-select-container .selected-values-display p {
  margin: 0 0 10px 0; font-weight: bold; font-size: 0.9em; color: #e0f7fa;
}
.custom-select-container .selected-values-display ul {
  list-style-type: none; padding-left: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.custom-select-container .selected-values-display ul li {
  background-color: #4CAF50; color: white; padding: 6px 12px;
  border-radius: 20px; font-size: 0.9em; font-weight: bold;
}

/* --- DIV DE MENSAGEM DO FORMULÁRIO --- */
#mensagem {
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  margin: 20px auto;
  font-weight: bold;
  display: none; /* Começa escondida */
  max-width: 500px; /* Para não ficar muito larga */
}

/* --- SEÇÃO MOTIVACIONAL --- */
.container {
  display: flex;
  justify-content: center; /* Centraliza o .motivational-text se for único */
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px; /* Padding para telas menores */
}
.container .motivational-text {
  flex: 1;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-radius: 10px;
  min-width: 300px;
  text-align: center;
}
.container h3 {
  color: #00995A;
  font-size: 1.6em;
  margin-bottom: 15px;
}

/* --- RODAPÉ --- */
footer {
  background: #00995A; /* Verde principal */
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  font-size: 0.9em;
}
footer a {
  color: #d0e6ff;
  text-decoration: underline;
}

/* --- MODAL DE PRIVACIDADE --- */
#modalPrivacidade {
  display: none; position: fixed; z-index: 1001; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.7);
  justify-content: center; align-items: center; overflow: auto; padding: 20px;
}
#modalPrivacidade .modal-content {
  background: #ffffff; padding: 30px 40px; border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3); max-width: 600px;
  width: 90%; position: relative; color: #333;
}
#modalPrivacidade .modal-content h2 {
  color: #00995A; font-size: 1.8em; margin-bottom: 20px;
}
#modalPrivacidade .modal-content p {
  font-size: 1.1em; line-height: 1.6; color: #444;
}
#modalPrivacidade .fechar-btn {
  margin-top: 30px; background: #4CAF50; color: white;
  border: none; padding: 12px 30px; border-radius: 6px;
  cursor: pointer; font-size: 1em; font-weight: 600;
  transition: background-color 0.3s ease;
}
#modalPrivacidade .fechar-btn:hover { background: #3e8e41; }

/* --- BANNER DE COOKIES --- */
#cookieBanner {
  display: none; position: fixed; bottom: 0; width: 100%;
  background: #333; /* Um fundo escuro para destaque */
  color: white; padding: 15px; text-align: center; z-index: 999;
  justify-content: center; align-items: center; gap: 20px;
  flex-wrap: wrap; /* Para telas muito pequenas */
}
#cookieBanner span {
  flex-grow: 1;
  text-align: left;
  padding-left: 10px;
}
#cookieBanner button {
  background: #4CAF50; color: white; border: none;
  padding: 10px 20px; border-radius: 6px;
  cursor: pointer; font-weight: bold;
}

/* --- BOTÃO FLUTUANTE DO WHATSAPP --- */
.whatsapp-float {
  position: fixed; width: 60px; height: 60px;
  bottom: 25px; right: 25px; background: #25D366;
  border-radius: 50%; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg {
  fill: #ffffff;
  width: 32px;
  height: 32px;
}

/* =================================================================== */
/* === AJUSTES DE RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS === */
/* =================================================================== */
@media (max-width: 768px) {
  main {
    padding-top: 60px; /* Ajustar se a altura do header mobile for diferente */
  }
  h1 { font-size: 2em; }
  h2 { font-size: 1.8em; }
  h3 { font-size: 1.3em; } /* Ajusta os títulos h3 dos planos também */

  /* Header Mobile */
  .logo img { max-height: 50px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column; justify-content: center;
    align-items: center; font-size: 1.5em; gap: 30px;
    z-index: 1000; /* Garante que o menu aberto fique sobre o botão hamburguer */
  }
  .main-nav.nav-open .nav-menu { display: flex; }
  .main-nav.nav-open .hamburger { background-color: transparent; }
  .main-nav.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
  .main-nav.nav-open .hamburger::after { transform: rotate(-45deg); top: 0; }

  /* Seção Hero Mobile */
  section.hero { padding: 40px 15px; }
  section.hero h1 { font-size: 2em; }
  section.hero p { font-size: 1.1em; }

  /* Seção de Planos Mobile */
  .plans-section { padding: 0 15px; margin: 40px auto; }
  .plan {
    width: 100%; /* Ocupa a largura disponível */
    max-width: 380px; /* Limita a largura máxima em tablets, por exemplo */
    padding: 20px; /* Ajusta o padding interno do card */
  }
  .plan h3 { /* Ajusta o título pílula no mobile */
    padding: 10px 22px;
    margin-top: -20px; /* Para "puxar" para cima, já que o padding do card mudou */
    margin-left: -20px;
    margin-right: -20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0; /* Deixa reto embaixo se for faixa no topo */
    border-bottom-right-radius: 0;
    /* Se preferir manter o formato de pílula centralizado, remova as margens negativas e o display:inline-block */
    /* E ajuste o font-size dentro do h3 geral no início do media query */
  }

  /* Seção Formulário Mobile */
  .form-lead-section {
    flex-direction: column; padding: 25px; gap: 30px;
  }
  .lead-text { text-align: center; }
  .lead-text h2 { font-size: 1.6em; }
  .form-group .radio-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Outras Seções e Footer Mobile */
  .container { padding: 0 15px; }
  footer { padding: 20px 15px; font-size: 0.8em; }

  /* Botão WhatsApp Mobile */
  .whatsapp-float { width: 50px; height: 50px; bottom: 15px; right: 15px; }
  .whatsapp-float img { width: 28px; height: 28px; }

  /* Ajuste para o select customizado no mobile se necessário */
  .custom-select-container select[multiple].visible {
    max-height: 200px; /* Garante que não ocupe a tela toda */
    overflow-y: auto;
  }
}

/* =================== ESTILO DO BOTÃO FLUTUANTE DO WHATSAPP =================== */

.whatsapp-float {
  /* Posição fixa no canto inferior direito */
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100; /* Garante que ele fique sobre todos os outros elementos */

  /* Aparência do círculo */
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Cor oficial do WhatsApp */
  border-radius: 50%; /* Transforma o link em um círculo perfeito */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidade */
  
  /* Para centralizar o ícone perfeitamente dentro do círculo */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Animação suave */
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1); /* Efeito de aumentar um pouco ao passar o mouse */
}

.whatsapp-float img {
  width: 35px; /* Tamanho do ícone dentro do círculo */
  height:auto;
}
