/*
Theme Name: Telemedicina Global V2
Theme URI: https://telemedicinaglobal.com.br
Author: Telemedicina Global
Description: Tema personalizado baseado na landing page HTML original
Version: 1.0
*/

/* Botão WhatsApp - Flutuante no canto inferior direito */
.whatsapp-button {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 999999 !important;
  background-color: #25d366;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-button img {
  width: 40px;
  height: 40px;
}

/* Barra de Cookies - Flutuante e destacada */
.cookie-consent {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important; /* Alterado para evitar sobreposição com o botão do WhatsApp */
  max-width: 480px;
  width: calc(100% - 32px);
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease !important;
  z-index: 999998 !important;
  display: none;
  padding: 16px;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
  display: flex;
}

/* Estilo para o link dentro da barra de cookies */
.cookie-consent a {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

/* Estilo para os botões da barra de cookies */
#cookie-accept,
#cookie-reject {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

#cookie-accept {
  background-color: #0057ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

#cookie-reject {
  background-color: #fff;
  color: #0057ff;
  border: 2px solid #0057ff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }
}

.cookie-consent {
  padding: 16px 20px;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#cookie-accept:hover,
#cookie-reject:hover {
  opacity: 0.9;
}

/* ===== FAQ Accordion Styles ===== */
.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-content {
  max-height: 500px;
  opacity: 1;
}

/* Gira o ícone para cima quando aberto */
.faq-item input[type="checkbox"]:checked + label .faq-icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Hover mais suave no header do FAQ */
.faq-header:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Fixos flutuantes */
body > .whatsapp-button,
body > .cookie-consent {
  position: fixed !important;
  z-index: 9999 !important;
}

body > .whatsapp-button {
  bottom: 30px !important;
  right: 30px !important;
}

body > .cookie-consent {
  bottom: 24px !important;
  left: 24px !important;
}

body {
  overflow-x: visible !important;
}

/* Corrige sobreposição do modal de cookies no rodapé */
#cookie-policy-modal.hidden {
  all: unset !important;
  display: none !important;
}

#cookie-policy-modal {
  max-height: none !important;
  overflow-y: visible !important;
  pointer-events: none !important;
  background: none !important;
}

#cookie-policy-modal > div {
  pointer-events: auto !important;
}

#cookie-policy-modal {
  z-index: 999999 !important;
}

/* ===== Ajustes Especiais - Seção Planos (Mobile e Desktop) ===== */

/* 1. Corrige desalinhamento vertical dos ícones e textos */
.plan-card ul li {
  align-items: flex-start;
}

/* 2. Uniformiza altura dos 3 primeiros planos (sem afetar o plano mais popular) */
@media (min-width: 768px) {
  .plan-card:not(.popular-plan) {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .plan-card:not(.popular-plan) > .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* 3. Garante espaçamento consistente entre preço e botão no mobile */
.plan-card button {
  margin-top: auto;
}

/* 4. Ajusta ícone para manter alinhado no mobile */
.plan-card ul li .w-5 {
  min-width: 1.25rem; /* 20px */
}

/* 5. Melhora visual de ícones com margem automática em qualquer tela */
.plan-card ul li i {
  margin-top: 0.15rem;
}

/* 6. Melhora legibilidade e consistência de padding nos cards */
.plan-card .p-6,
.plan-card .p-7 {
  padding-bottom: 2rem;
}

/* === Ajuste visual dos ícones e frase no Hero (mobile) === */
@media (max-width: 767px) {
  .hero-doctor-line {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .hero-doctor-line span {
    margin-left: 0 !important;
    text-align: left;
  }
}

/* === Espaçamento inferior entre descrição e botão nos cards de planos === */
.card-plan .card-content {
  margin-bottom: 1.25rem; /* ~20px de respiro entre texto e botão */
}

@media (max-width: 767px) {
  .card-plan .card-content {
    margin-bottom: 1rem;
  }
}

/* === Estilo e responsividade dos blocos de estatísticas === */
.stat-box {
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  color: #0ea5e9; /* ou use a utility: text-primary */
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .stat-number {
    font-size: 1.5rem;
  }
}

/* === Ajustes de Espaçamento no Header Mobile === */
@media (max-width: 767px) {
  header .container {
    gap: 0.5rem;
  }
}

/* ===== Ajustes responsivos - Seção Como Funciona ===== */
@media (max-width: 768px) {
  #como-funciona .grid {
    gap: 3rem;
  }

  #como-funciona h3 {
    font-size: 1.125rem; /* 18px */
  }

  #como-funciona p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #como-funciona img {
    height: auto !important;
    max-height: 180px;
  }

  #como-funciona .w-16.h-16 {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
  }
}