/* ESTILOS CENTRO VISUAL PÉROLA - FONTE OPEN SANS & DESIGN MINIMALISTA */

:root {
  --primary-color: #0284c7;       /* Azul da visão */
  --primary-dark: #0369a1;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #000000;          /* Letras estritamente em preto conforme solicitado */
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #16a34a;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* TODAS AS FONTES EM OPEN SANS CONFORME SOLICITADO */
body, input, button, select, textarea {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--text-main);
}

body {
  background-color: var(--bg-site, #f1f5f9);
  background-image: 
    radial-gradient(ellipse at 50% 36%, var(--glow-color, rgba(255, 255, 255, 0.70)) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(var(--dot-color, rgba(71, 85, 105, 0.14)) 1.25px, transparent 1.25px);
  background-size: 100% 100%, 22px 22px;
  background-position: center center, 0 0;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 10px;
  transition: background-color 0.3s ease;
}

/* CARDS E LANDING PAGE MINIMALISTA (SEM CAIXA BRANCA ATRÁS) */
.landing-card {
  background: transparent !important;
  width: 100%;
  max-width: 480px;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible;
  position: relative;
  border: none !important;
}

.header-curva-banner {
  display: none;
}

.landing-content {
  padding: 10px 18px;
  text-align: center;
  margin-top: 0;
}

/* LOGO EM CÍRCULO CENTRALIZADO MINIMALISTA */
.logo-circle-container {
  width: 120px;
  height: 120px;
  background: var(--bg-super-light, #ffffff);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.2s, background 0.3s ease;
}

.logo-circle-container:hover {
  transform: scale(1.03);
}

.img-logo-circle {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.landing-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
}

.landing-subtitle {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 25px;
}

/* BOTÃO AGENDAR HORÁRIO COM ANIMAÇÃO PULSE (EM MOVIMENTO) */
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-agendar-pulse {
  width: 100%;
  max-width: 270px;
  padding: 13px 22px;
  background-color: var(--primary-color, #0284c7);
  color: #ffffff !important;
  border: none;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  animation: pulseGlow 2.5s infinite ease-in-out;
  transition: all 0.2s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.btn-agendar-pulse:hover {
  filter: brightness(0.9);
}

.btn-ver-agendamentos {
  background-color: #f1f5f9;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-ver-agendamentos:hover {
  background-color: #e2e8f0;
  color: #1e293b !important;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.footer-creditos-pagina {
  margin-top: 18px;
  text-align: center;
  color: var(--footer-text-color, #94a3b8);
  text-shadow: var(--footer-text-shadow, 0 1px 1px rgba(255, 255, 255, 0.7));
  font-size: 0.78rem;
  font-weight: 600;
  user-select: none;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

.divider-linha {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 213, 225, 0.7), transparent);
  margin: 18px auto;
  width: 75%;
}

/* TRES BOTÕES EM PÍLULA: WHATSAPP, LOCALIZAÇÃO, INSTAGRAM */
.social-pills-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.pill-btn-link {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.pill-btn-link:hover {
  border-color: var(--primary-color, #0284c7);
  background-color: #f0f9ff;
  transform: translateY(-1px);
}

.icon-wsp { color: #25d366; font-size: 1.2rem; }
.icon-loc { color: #ef4444; font-size: 1.1rem; }
.icon-ig { color: #e1306c; font-size: 1.2rem; }

/* MODAIS E WIZARD */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px 10px;
  -webkit-overflow-scrolling: touch;
}

.modal-card-wizard {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
  margin: auto;
}

.btn-fechar-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s ease;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.step-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
  padding: 0 44px;
  word-break: break-word;
}

/* CARDS DE AVALIAÇÃO */
.cards-exames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 25px;
}

.card-exame {
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--bg-super-light, #ffffff);
  display: flex;
  flex-direction: column;
}

.card-exame:hover {
  border-color: var(--primary-color, #0284c7);
}

.card-exame.selected {
  border-color: var(--primary-color, #0284c7);
  background-color: var(--bg-light, #f0f9ff);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
}

.exame-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  min-height: 38px;
}

.exame-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
}

.exame-preco {
  background-color: var(--primary-color, #0284c7);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.destaque-subtitulo {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  min-height: 54px;
}

.destaque-subtitulo i {
  color: #000000 !important;
}

.lista-exames {
  list-style: none;
  font-size: 0.84rem;
  color: #000000;
}

.lista-exames li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lista-exames i {
  color: #10b981;
  font-size: 0.82rem;
}

/* CALENDÁRIO COMPLETO MENSAL */
.calendario-duplo-container {
  display: grid;
  grid-template-columns: 1fr 240px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
}

.coluna-calendario-mes {
  padding: 20px;
  border-right: 1px solid #e2e8f0;
}

.cal-header-mes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cal-header-mes h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  text-transform: lowercase;
}

.btn-cal-arrow {
  background: transparent;
  border: none;
  color: #000000;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 6px 10px;
}

.cal-dias-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.cal-grid-wrapper {
  position: relative;
  width: 100%;
}

.overlay-agenda-bloqueada {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  z-index: 15;
  border: 1.5px dashed #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  animation: fadeInModal 0.2s ease-out;
}

.overlay-agenda-bloqueada.hidden {
  display: none !important;
}

.card-aviso-bloqueio {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 250px;
}

.icon-bloqueio-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.txt-titulo-bloqueio {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.txt-desc-bloqueio {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.card-lateral-bloqueado {
  padding: 36px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-bloqueio-lateral {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card-lateral-bloqueado strong {
  font-size: 0.92rem;
  color: #334155;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.card-lateral-bloqueado p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.cal-grid-dias {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #000000;
  border-radius: 8px;
  cursor: pointer;
}

.cal-day-cell.selected {
  background-color: #262626 !important;
  color: #ffffff !important;
  font-weight: 700;
}

.cal-day-cell.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.4;
}

.coluna-horarios-lateral {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.horarios-header-dia h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
}

.lista-horarios-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: scroll;
  padding-right: 6px;
}

.lista-horarios-vertical::-webkit-scrollbar { width: 6px; }
.lista-horarios-vertical::-webkit-scrollbar-track { background: #f1f5f9; }
.lista-horarios-vertical::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.btn-slot-pill {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-slot-pill.selected {
  background-color: #e2e8f0 !important;
  color: #000000 !important;
  border-color: #94a3b8 !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-slot-pill.disabled {
  background-color: #f8fafc;
  color: #94a3b8 !important;
  cursor: not-allowed;
  text-decoration: line-through;
}

.dot-status-verde {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

/* BOTÕES DE NAVEGAÇÃO */
.modal-step-actions {
  display: flex;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.modal-step-actions.right { justify-content: flex-end; }
.modal-step-actions.space-between { justify-content: space-between; }

.btn-agendar {
  padding: 14px 24px;
  background-color: var(--primary-color, #0284c7) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-agendar:hover {
  filter: brightness(0.9);
}

.btn-secundario {
  padding: 12px 20px;
  background-color: #e2e8f0;
  color: #000000 !important;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* FORMULÁRIO */
.form-linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.campo label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000000;
}

.campo input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  color: #000000;
}

/* MODAL DE CONFIRMAÇÃO */
.modal-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  margin: auto;
  box-sizing: border-box;
}

.modal-icon { font-size: 44px; color: #10b981; margin-bottom: 8px; }

.ticket-resumo {
  background-color: var(--bg-light, #f8fafc);
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.ticket-resumo p { margin-bottom: 4px; color: #000000; }

.box-orientacao {
  background-color: #fffbe6 !important;
  border: 1px solid #ffe58f !important;
  border-left: 4px solid #faad14 !important;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.orientacao-titulo {
  color: #d48806 !important;
  font-size: 0.88rem;
  margin-bottom: 4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.orientacao-titulo i {
  color: #d48806 !important;
}

.orientacao-texto {
  color: #000000;
  font-size: 0.84rem;
  line-height: 1.5;
}

.box-localizacao {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 18px;
}

.localizacao-titulo {
  color: #000000 !important;
  font-size: 0.85rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.localizacao-titulo i {
  color: #000000 !important;
}
.localizacao-endereco { font-size: 0.8rem; color: #000000; margin-bottom: 8px; }

.btn-google-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-color, #0284c7);
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.modal-botoes { display: flex; flex-direction: column; gap: 10px; }

.btn-pop-whatsapp {
  padding: 13px;
  background-color: #25d366;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pop-finalizar {
  padding: 13px;
  background-color: #e2e8f0;
  color: #000000 !important;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.hidden { display: none !important; }

.msg-alerta {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #d48806;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* BANNER DE REAGENDAMENTO (ALTERAR HORÁRIO) */
.banner-modo-alteracao {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  text-align: left;
}

.banner-alteracao-icon {
  font-size: 1.3rem;
  color: #16a34a;
  flex-shrink: 0;
}

.banner-modo-alteracao p {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: #15803d;
}

/* BOTÕES DE AÇÃO EM MEUS AGENDAMENTOS */
.acoes-agendamento-card {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-alterar-horario {
  flex: 1;
  padding: 10px 12px;
  background-color: var(--primary-color, #0284c7) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-alterar-horario:hover {
  filter: brightness(0.9);
}

.btn-cancelar-agendamento {
  flex: 1;
  padding: 10px 12px;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-cancelar-agendamento:hover {
  filter: brightness(0.9);
}

/* MODAL DE HORÁRIOS PARA CELULAR */
.modal-card-horarios-mobile {
  max-width: 350px !important;
  padding: 20px 16px !important;
  border-radius: 20px !important;
}

.modal-horarios-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
  padding-right: 38px;
}

.modal-horarios-header h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.modal-horarios-header p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.grid-horarios-mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px 2px;
}

.grid-horarios-mobile .btn-slot-pill {
  padding: 8px 4px;
  font-size: 0.82rem;
  border-radius: 10px;
  justify-content: center;
}

.grid-horarios-mobile .btn-slot-pill .dot-status-verde {
  width: 6px;
  height: 6px;
}

/* RESUMO DO HORÁRIO SELECIONADO NO CELULAR (STEP 2) */
.badge-slot-mobile {
  display: none;
}

/* ACCORDION REGRAS PADRÃO (DESKTOP) */
@media (min-width: 641px) {
  .mobile-accordion-indicator { display: none !important; }
  .exame-preco-mobile { display: none !important; }
  .exame-detalhes { display: block !important; }
  .desktop-only { display: inline-block !important; }
  .badge-slot-mobile { display: none !important; }
}

/* ==========================================================================
   AJUSTES RESPONSIVOS EXCLUSIVOS PARA TELAS DE CELULAR (MAX-WIDTH: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* 1. LAYOUT COMPACTO E MARGENS LIVRES PARA VER O PLANO DE FUNDO */
  body:not(.admin-body) {
    padding: 14px 16px;
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden; /* Remove rolagem quando a tela inicial cabe inteira */
  }

  @media (max-height: 560px) {
    body:not(.admin-body) {
      height: auto;
      overflow-y: auto;
    }
  }

  .landing-card {
    width: 100%;
    max-width: 350px;
    margin: auto;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  .landing-content {
    padding: 8px 12px;
  }

  .logo-circle-container {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px auto;
  }

  .landing-title {
    font-size: 1.22rem;
    margin-bottom: 4px;
  }

  .landing-subtitle {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  /* BOTÃO "AGENDAR HORÁRIO" REDUZIDO E COMPACTO NO CELULAR */
  .btn-agendar-pulse {
    max-width: 215px;
    margin: 0 auto 8px auto;
    padding: 10px 18px;
    font-size: 0.84rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
  }

  .btn-ver-agendamentos {
    font-size: 0.82rem;
    padding: 6px 12px;
    margin-top: 4px;
  }

  .divider-linha {
    margin: 16px 0;
  }

  .social-pills-stack {
    gap: 8px;
  }

  .social-pills-stack .pill-btn-link {
    padding: 9px 14px;
    font-size: 0.86rem;
    border-radius: 25px;
  }

  .footer-creditos-pagina {
    font-size: 0.72rem;
    margin-top: 10px;
    user-select: none;
    opacity: 0.95;
  }

  /* MODAIS CENTRALIZADOS NA TELA COM MARGENS (APENAS QUANDO ABERTOS) */
  .modal-overlay:not(.hidden) {
    padding: 16px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
  }

  .modal-card-wizard, .modal-card {
    padding: 18px 14px;
    width: 100%;
    max-width: 350px;
    max-height: 86vh;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
  }

  .step-modal-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 12px;
    padding: 0 36px;
    text-align: center;
    word-break: break-word;
  }

  .btn-fechar-modal {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  /* 2. ACCORDION DE AVALIAÇÕES NO CELULAR (APENAS O NOME, ABRE AO TOCAR) */
  .desktop-only {
    display: none !important;
  }

  .cards-exames {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .card-exame {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .card-exame .exame-header {
    margin-bottom: 0;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-exame .exame-header h3 {
    font-size: 0.94rem;
    margin: 0;
  }

  .mobile-accordion-indicator {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    transition: transform 0.25s ease, background-color 0.2s ease;
  }

  .card-exame:not(.selected) .exame-detalhes {
    display: none !important;
  }

  .card-exame.selected {
    border-color: var(--primary-color, #0284c7) !important;
    background-color: var(--bg-light, #f0f9ff) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  }

  .card-exame.selected .exame-header {
    margin-bottom: 10px;
  }

  .card-exame.selected .mobile-accordion-indicator {
    transform: rotate(180deg);
    background-color: var(--primary-color, #0284c7);
    color: #ffffff;
  }

  .card-exame.selected .exame-detalhes {
    display: block !important;
    animation: fadeInAccordion 0.22s ease-out;
  }

  .exame-preco-mobile {
    display: block !important;
    margin-bottom: 8px;
  }

  .exame-preco-tag {
    display: inline-block;
    background-color: var(--primary-color, #0284c7);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 3px 8px;
    border-radius: 6px;
  }

  .destaque-subtitulo {
    font-size: 0.78rem;
    padding: 7px 10px;
    min-height: auto;
    margin-bottom: 10px;
  }

  .lista-exames {
    font-size: 0.78rem;
  }

  .lista-exames li {
    margin-bottom: 6px;
  }

  /* 3. CALENDÁRIO NO CELULAR: OCULTA COLUNA LATERAL DE HORÁRIOS */
  .coluna-horarios-lateral {
    display: none !important;
  }

  .calendario-duplo-container {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .coluna-calendario-mes {
    border-right: none;
    border-bottom: none;
    padding: 12px 10px;
  }

  .cal-header-mes {
    margin-bottom: 10px;
  }

  .cal-header-mes h3 {
    font-size: 0.95rem;
  }

  .cal-dias-semana {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .cal-day-cell {
    font-size: 0.82rem;
    border-radius: 6px;
  }

  /* BADGE DE HORÁRIO SELECIONADO NO CELULAR */
  .badge-slot-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #f0f9ff;
    border: 1.5px solid var(--primary-color, #0284c7);
    border-radius: 12px;
    padding: 9px 12px;
    margin-top: 12px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
    animation: fadeInSlot 0.22s ease-out;
  }

  .badge-slot-mobile.hidden {
    display: none !important;
  }

  .badge-slot-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .badge-slot-icon {
    font-size: 1.25rem;
    color: var(--primary-color, #0284c7);
  }

  .badge-slot-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.4px;
  }

  .badge-slot-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: #000000;
  }

  .btn-alterar-slot-mobile {
    background: #ffffff;
    border: 1px solid var(--primary-color, #0284c7);
    color: var(--primary-color, #0284c7);
    font-weight: 700;
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
  }

  /* 4. FORMULÁRIO E BOTÕES COMPACTOS NO CELULAR (PASSO 3 E DEMAIS) */
  .form-linha {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .campo label {
    font-size: 0.82rem;
    margin-bottom: 4px;
  }

  .campo input {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .modal-step-actions {
    margin-top: 16px;
    padding-top: 12px;
    gap: 8px;
  }

  .btn-secundario {
    padding: 9px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .btn-agendar {
    padding: 9px 15px;
    font-size: 0.84rem;
    border-radius: 8px;
    gap: 6px;
  }

  /* 5. POP-UP DE CONFIRMAÇÃO COMPACTO */
  #modalPopupConfirmacao .modal-card {
    max-width: 335px;
    padding: 16px 12px;
  }

  #modalPopupConfirmacao .modal-icon {
    font-size: 32px;
    margin-bottom: 4px;
  }

  #modalPopupConfirmacao h2 {
    font-size: 1.12rem;
    margin-bottom: 2px;
  }

  #modalPopupConfirmacao .modal-sub {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  #modalPopupConfirmacao .ticket-resumo {
    padding: 8px 10px;
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  #modalPopupConfirmacao .box-orientacao {
    padding: 6px 8px;
    font-size: 0.74rem;
    margin-bottom: 8px;
  }

  #modalPopupConfirmacao .box-localizacao {
    padding: 6px 8px;
    font-size: 0.74rem;
    margin-bottom: 10px;
  }

  #modalPopupConfirmacao .modal-botoes {
    gap: 8px;
  }

  #modalPopupConfirmacao .btn-pop-whatsapp,
  #modalPopupConfirmacao .btn-pop-finalizar {
    padding: 9px 12px;
    font-size: 0.84rem;
    border-radius: 8px;
  }

  /* 6. MODAL MEUS AGENDAMENTOS COMPACTO */
  #modalMeusAgendamentos .modal-card {
    max-width: 345px;
    padding: 18px 14px;
  }

  #modalMeusAgendamentos h2 {
    font-size: 1.15rem !important;
    padding: 0 34px !important;
    word-break: break-word;
  }

  #modalMeusAgendamentos .modal-sub {
    font-size: 0.82rem !important;
    margin-bottom: 12px !important;
  }

  .acoes-agendamento-card {
    flex-direction: row;
    gap: 6px;
  }

  .btn-alterar-horario,
  .btn-cancelar-agendamento {
    padding: 8px 6px;
    font-size: 0.78rem;
  }
}

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

@keyframes fadeInSlot {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.input-phone-br-wrapper:focus-within {
  border-color: var(--primary-color, #0284c7) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* OCULTAR BADGE E DRAWER 'POWERED BY NETLIFY' */
netlify-drawer,
#netlify-drawer,
[data-netlify-drawer],
[id*="netlify-drawer"],
iframe[src*="netlify-drawer"],
iframe[title*="Netlify"],
[class*="netlify-badge"],
[data-netlify-badge] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* GARANTIA ABSOLUTA DE OCULTAÇÃO PARA .hidden EM QUALQUER DISPOSITIVO */
.hidden,
.modal-overlay.hidden,
div.hidden,
[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ========================================================
   PULL-TO-REFRESH MOBILE (PUXAR PARA ATUALIZAR NA TELA DO CELULAR)
   ======================================================== */
.ptr-indicator {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -90px);
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 8px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  font-family: 'Open Sans', sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.ptr-indicator.ptr-visible {
  opacity: 1;
}

.ptr-indicator.ptr-animating {
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.2), opacity 0.25s ease;
}

.ptr-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ptr-arrow {
  font-size: 0.84rem;
  color: var(--primary-color, #0284c7);
  transition: transform 0.18s ease;
  display: inline-block;
}

.ptr-spinner {
  font-size: 0.84rem;
  color: var(--primary-color, #0284c7);
  display: none;
}

.ptr-indicator.ptr-ready .ptr-arrow {
  transform: rotate(180deg);
}

.ptr-indicator.ptr-refreshing .ptr-arrow {
  display: none !important;
}

.ptr-indicator.ptr-refreshing .ptr-spinner {
  display: inline-block !important;
  animation: ptrSpinAnimation 0.8s linear infinite;
}

.ptr-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

@keyframes ptrSpinAnimation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (min-width: 769px) {
  .ptr-indicator {
    display: none !important;
  }
}

/* ============================================================
   DIÁLOGOS DE POP-UP PERSONALIZADOS (SUBSTITUI ALERTS DO NAVEGADOR)
   ============================================================ */
.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.custom-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-dialog-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.92) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: 'Open Sans', -apple-system, sans-serif !important;
}

.custom-dialog-overlay.active .custom-dialog-card {
  transform: scale(1) translateY(0);
}

.custom-dialog-icon-wrapper {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.custom-dialog-icon-wrapper.sucesso {
  background: #ecfdf5;
  color: #10b981;
  border: 2px solid #a7f3d0;
}

.custom-dialog-icon-wrapper.aviso {
  background: #fffbeb;
  color: #f59e0b;
  border: 2px solid #fde68a;
}

.custom-dialog-icon-wrapper.info {
  background: #f0f9ff;
  color: var(--primary-color, #0284c7);
  border: 2px solid #bae6fd;
}

.custom-dialog-icon-wrapper.perigo {
  background: #fef2f2;
  color: #ef4444;
  border: 2px solid #fecdd3;
}

.custom-dialog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a !important;
  margin-bottom: 8px;
  line-height: 1.3;
}

.custom-dialog-message {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 24px;
  white-space: pre-line;
  word-break: break-word;
}

.custom-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.custom-dialog-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.custom-dialog-btn.btn-primary {
  background: var(--primary-color, #0284c7);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.custom-dialog-btn.btn-primary:hover {
  filter: brightness(0.92);
}

.custom-dialog-btn.btn-danger {
  background: #ef4444;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.custom-dialog-btn.btn-danger:hover {
  background: #dc2626;
}

.custom-dialog-btn.btn-cancel {
  background: #f1f5f9;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.custom-dialog-btn.btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

@media (max-width: 480px) {
  .custom-dialog-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .custom-dialog-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .custom-dialog-btn {
    width: 100%;
  }
}

