#agendamento-wrapper {
  font-family: sans-serif;
  max-width: 700px;
  margin: auto;
  padding: 20px 0;
  color: #000;
}

#agendamento-wrapper, 
#agendamento-wrapper * {
  color: #000 !important;
}

.step {
  margin-bottom: 30px;
  padding: 0 15px;
}

#step-1.step {
  padding: 0 30px !important;
}

#step-4.step {
  padding: 0 !important;
}

#step-3.step {
  padding: 0 25px !important;
}

.especialidade, .medico {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.especialidade:hover, .medico:hover {
  background: #f0f0f0;
}

.especialidade img {
  width: 50px;
  height: 50px;
  margin-right: 12px;
}

.descricao-especialidade {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  color: #000 !important;
  font-family: sans-serif !important;
}

.medico {
  justify-content: space-between;
}

#termos {
  margin: 20px 0;
  text-align: left;
}

#termos label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

#continuar-dados {
  background: #999 !important;
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: not-allowed;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s;
}

#continuar-dados:disabled {
  background: #999 !important;
  cursor: not-allowed;
  transform: none;
  color: white !important;
}

#continuar-dados:not(:disabled) {
  background: #003242 !important;
  cursor: pointer;
  color: white !important;
}

#continuar-dados:not(:disabled):hover {
  transform: scale(1.03);
  background: #00475a !important;
  color: white !important;
}

#calendario-wrapper {
  margin-top: 20px;
  text-align: center;
  padding: 0;
}

#calendario {
  border-collapse: collapse;
  display: table;
  text-align: center;
}

#calendario td {
  width: 40px;
  height: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: border 0.2s, background 0.2s;
  font-weight: bold;
  color: #000 !important;
}

#calendario td.disponivel {
  background: #4caf50;
  color: white !important;
}

#calendario td.indisponivel {
  background: #ccc;
  color: #666 !important;
}

#calendario td.selecionado {
  border: 4px solid #003242 !important;
  box-shadow: 0 0 6px #003242;
  border-radius: 0px !important;
}

#seletor-mes-ano {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 0;
  min-height: 40px;
}

#seletor-mes-ano select {
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#horarios {
  margin-top: 20px;
}

#agendamento-wrapper .horario {
  display: inline-block;
  background: #4caf50;
  color: white !important;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: bold;
}

.horario:hover {
  background: #388e3c;
}

#agendamento-wrapper .horario.ocupado {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}


#confirmar, #cancelar {
  color: white !important;
  font-weight: bold;
  border-radius: 8px;
  padding: 10px 18px;
  margin: 10px 8px 0 0;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

#confirmar {
  background: #003242;
}

#cancelar {
  background: #b00020;
}

#confirmar:hover {
  background: #00475a !important;
  transform: scale(1.03);
}

#cancelar:hover {
  background: #a72828 !important;
  transform: scale(1.03);
}

.voltar {
  margin-top: 20px;
  font-size: 15px;
  color: #003242;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s;
}

.voltar::before {
  content: '←';
  margin-right: 5px;
  display: inline-block;
  transition: transform 0.2s;
}

.voltar:hover::before {
  transform: translateX(-2px);
}

.voltar:hover {
  text-decoration: none;
}

#lpa-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lpa-overlay .overlay-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  font-size: 18px;
  max-width: 400px;
  text-align: center;
  position: relative;
}

#lpa-overlay button#fechar-overlay {
  background: #003242;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 20px;
  transition: background 0.2s, transform 0.2s;
}

#lpa-overlay button#fechar-overlay:hover {
  background: #00475a;
  transform: scale(1.03);
}

.termo-aceite label a {
  color: #007bff !important;
  text-decoration: underline;
}

#termos label a {
  color: #007bff !important;
  text-decoration: underline !important;
}

@media (max-width: 600px) {
  #modal-marcar-consulta {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    background: white !important;
  }

  #modal-marcar-consulta .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0 !important;
    padding: 15px;
  }

  #calendario-wrapper {
    padding: 10px 5px;
    max-width: 85vw; /* Diminuindo um pouco mais a largura do calendário */
    margin: 0 auto; /* Centraliza o calendário */
  }

  #calendario {
    transform: scale(0.75); /* Escala para diminuir ainda mais o tamanho */
    transform-origin: top center;
    font-size: 14px; /* Aumentando a fonte dentro do calendário em mais 1 */
  }

  #calendario td {
    width: 28px;  /* Reduzindo a largura dos dias */
    height: 28px; /* Reduzindo a altura dos dias */
    font-size: 14px; /* Aumentando a fonte dentro do calendário em mais 1 */
  }

  #seletor-mes-ano {
    flex-direction: column;
    gap: 6px;
  }

  #seletor-mes-ano select {
    font-size: 14px; /* Aumentando a fonte no seletor de mês/ano */
    padding: 5px;
    min-width: 90px;
  }
}
