/* Estilos para os botões do carrossel */
.servicos-carousel .slick-prev,
.servicos-carousel .slick-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0; /* Remove o texto */
  line-height: 0; /* Remove o texto */
}

.servicos-carousel .slick-prev:before,
.servicos-carousel .slick-next:before {
  color: #333;
  opacity: 1;
  font-size: 20px;
}

.servicos-carousel .slick-prev {
  left: -20px;
}

.servicos-carousel .slick-next {
  right: -20px;
}

/* Esconder o texto dos botões */
.servicos-carousel .slick-prev span,
.servicos-carousel .slick-next span {
  display: none;
}

/* Estilos existentes para o carrossel e cards */
.servicos-wrapper {
  padding: 20px 0;
}

.servicos-carousel {
  margin: 0 auto;
  max-width: 1200px;
}

/* Padronização da altura dos cards */
.servico-card {
  margin: 0 10px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 350px; /* Altura fixa para todos os cards */
  display: flex;
  flex-direction: column;
}

.servico-card:hover {
  transform: translateY(-5px);
}

.servico-imagem {
  height: 200px;
  overflow: hidden; /* Esconder o excedente da imagem */
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex; /* Para centralizar a imagem verticalmente */
  align-items: center; /* Para centralizar a imagem verticalmente */
  justify-content: center; /* Para centralizar a imagem horizontalmente também */
}

.servico-imagem img {
  width: 100%; /* Ajustar pela largura do elemento */
  height: 100%;
  object-fit: cover; /* Cobrir o espaço disponível */
  object-position: center; /* Centralizar a imagem */
}

.servico-titulo {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  /* Limitar o título a 2 linhas e adicionar elipses se for maior */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 48px; /* Altura fixa para o título */
}

.servico-detalhes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Empurra os detalhes para o final do card */
}

.servico-duracao {
  font-size: 14px;
  color: #666;
}

.servico-preco {
  font-size: 16px;
  font-weight: 600;
  color: #2c7be5;
}

/* Modal - Novo Layout v1.1 */
.servico-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.servico-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px; /* Aumentado para acomodar duas colunas */
  position: relative;
  max-height: 80vh; /* Limitar altura máxima para evitar que fique muito grande */
  overflow-y: auto; /* Permitir rolagem se necessário */
}

.servico-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

/* Layout de duas colunas */
.servico-modal-body {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px; /* Compensar o padding das colunas */
}

.servico-modal-coluna-esquerda {
  flex: 0 0 40%;
  max-width: 40%;
  padding: 0 15px;
  display: flex;
  align-items: flex-start; /* Alterado para alinhar ao topo */
}

.servico-modal-coluna-direita {
  flex: 0 0 60%;
  max-width: 60%;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.servico-modal-tipo-categoria {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.servico-modal-imagem {
  width: 100%;
  height: auto; /* Alterado para auto para permitir que a altura se ajuste proporcionalmente */
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servico-modal-imagem img {
  width: 100%; /* Ajustar pela largura do elemento */
  height: auto; /* Altura automática para manter proporção */
  object-fit: contain; /* Alterado para contain para mostrar a imagem completa */
  max-height: none; /* Remover limite de altura */
}

.servico-modal-titulo {
  font-size: 24px;
  font-weight: 600;
  margin: 15px 0;
  color: #333;
}

.servico-modal-info-item {
  margin-bottom: 15px;
}

.servico-modal-info-item strong {
  display: inline-block;
  min-width: 80px;
}

.servico-modal-agendar {
  margin-top: 20px;
}

.servico-modal-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2c7be5;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.servico-modal-btn:hover {
  background-color: #1a68d1;
  color: white;
  text-decoration: none;
}

/* Responsividade para o modal */
@media (max-width: 768px) {
  .servico-modal-coluna-esquerda,
  .servico-modal-coluna-direita {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .servico-modal-coluna-esquerda {
    margin-bottom: 20px;
  }

  .servico-modal-content {
    margin: 5% auto;
    max-height: 90vh;
  }
}

/* Garantir que todos os slides tenham a mesma altura */
.slick-track {
  display: flex !important;
}

.slick-slide {
  height: inherit !important;
  display: flex !important;
}

.slick-slide > div {
  width: 100%;
  display: flex;
}

/* Modal de iframe para agendamento */
.iframe-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

.iframe-modal-content {
  position: relative;
  background-color: #fff;
  margin: 2.5vh auto;
  width: 95%;
  height: 95%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iframe-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  z-index: 1001;
  cursor: pointer;
  background-color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.iframe-modal-close:hover {
  color: #000;
}

#agendamento-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
