/* Centraliza tudo dentro do card */
/* CONTENT + CARD com aparência unificada */
.content {
  margin-top: 5vh;

  width: 100%;
  max-width: 1000px;
  /* 🔹 maior e confortável */
  margin-left: auto;
  margin-right: auto;

  padding: 25px 30px;
  /* 🔹 espaçamento interno bom */
  border-radius: 0.5%;
  background: aliceblue;
  /* 🔹 blocos ficam iguais */
  padding: 0 !important;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* CARD integrado ao content */
.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: aliceblue;
  /* 🔹 blocos ficam iguais */
  padding: 0;
  /* 🔹 sem separação visual */
  border: none;
}

/* Scrollbar Webkit (Chrome, Edge, Safari) */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.12);
  /* trilho mais escuro e bem visível */
  border-radius: 15px;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(90, 90, 90, 0.75);
  border-radius: 15px;
  border: 3px solid #9b9b9b;
}

/* Firefox */
.content {
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 120, 120, 0.45) rgba(0, 0, 0, 0.12);
}

/* Firefox */
.content {
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 150, 150, 0.18) transparent;
}

@media (max-width: 1200px) {
  .content {
    margin-top: 10vh;
    max-width: 95%;
    /* 🔹 ocupa quase a tela inteira */
    padding: 20px;
  }
}
@media (max-width: 564px) {
  .content {
    margin-top: 10vh;
  }
}

@media (max-width: 1200px) {
  .card {
    align-items: unset;
  }
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px; /* espaçamento entre inputs */
}

/* Inputs padrão (linha única) */
.form-input {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  background: white;
}

option:hover, select option:checked {
  box-shadow: 0 0 10px 100px #b5b5b5 inset;
}

@media (max-width: 600px) {
  
  .form-group {
    flex-direction: column; /* Coloca inputs em coluna */
    align-items: center;    /* Centraliza */
  }

  .form-input {
    width: 240px; /* Melhor tamanho pro celular */
    max-width: 240px; /* Melhor tamanho pro celular */
  }
}

/* Quando a .form-group tiver 2 inputs */
.form-group > .form-input:nth-child(1):nth-last-child(2),
.form-group > .form-input:nth-child(2):nth-last-child(1) {
  max-width: 240px; /* divide a largura igualmente */
}

/* Botão principal */
#btnAgendar {
  width: 100%;
  max-width: 500px;
  margin: 10px auto 0 auto;
  display: flex;
  justify-content: center;
}

/* Título do agendamento */
#header-horario {
  text-align: center;
  color: #293377;
}

/* Mensagem de sucesso */
#msgEnvio {
  text-align: center;
}

/* ============================
    NAVEGAÇÃO DE DIAS
    ============================ */
#navegacaoDias {
  width: 100%;
  max-width: 500px;
}

#navegacaoDias button {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  height: 50px !important;
  font-size: 11px;
}

#navegacaoDias button:hover {
  background-color: #293377;
  color: white;
  cursor: pointer;
}

#navegacaoDias button:disabled {
  opacity: 0.2;
  background-color: #969696;
  border: 2px solid #333 !important;
  color: white;
  cursor: not-allowed;
  pointer-events: all;
}

/* ============================
    GRADE DE HORÁRIOS
    ============================ */
#grade {
  gap: 4px;
  width: 100%;
  justify-content: center;
  align-items: center;  
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    #grade{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
}

/* Botões criados pelo JS */
.horario {
  background: #f8f9fa;
  border: 2px solid hsl(216, 12%, 84%);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s,
    box-shadow 0.15s;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.horario:hover {
  transform: translateY(-3px);
  background: #eef1f5;
  border-color: #bfc6d1;
}

/* Selecionado */
.horario.selecionado {
  background: #3551a3 !important;
  color: #fff;
  border-color: #293377 !important;
  box-shadow: 0 6px 18px rgba(53, 81, 163, 0.25) !important;
  transform: translateY(-3px) scale(1.03);
}

/* Indisponível */
.horario.indisponivel {
  background: #f1f1f1;
  color: #b5b5b5;
  border-color: #e5e5e5;
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
  display: none;
}

.contato {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  margin-bottom: 5vh;
}

.contato-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F7FF;
  border-radius: 7px;
  font-size: 14px;
  width: 230px;
  height: 30px;
  padding: 0 10px;
  margin-left: 0;
}


@media (max-width: 1200px) {
  .contato {
    display: none;
  }
}

#especialista-box .texto {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

#whatsapp-box img {
  display: block;
}

.container-fluid {
  background-color: transparent;
}

body {
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding-bottom: 0px !important;
} 

.back-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(41, 51, 119, 0.7),
    rgba(53, 81, 163, 0.6)
  );
  z-index: 0;
  pointer-events: none;
}


.coletaPonto {  
  margin-bottom: 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* 🔹 deixa label em cima e input embaixo */
  align-items: center;
  position: relative;
  max-width: 500px;
  margin: 20px 0;
}

.range-labels {
  position: absolute;
  width: 90%;
  top: 25px; /* distância do input */
}

.range-labels span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.9em;
  white-space: nowrap;
}

/* Grid 2 colunas */
.isoContainer, #modulosFuncionais, .dadosContainer{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 500px !important;
  justify-items: center;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1200px) {
  .isoContainer, #modulosFuncionais, .dadosContainer {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 564px) {
  .isoContainer, #modulosFuncionais, .dadosContainer {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkIso, .checkModulo, .checkDados {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Card super compacto */
.isoCard, .modulos, .dadosCard {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 11px;
    display: flex;               /* flex horizontal */
    justify-content: center;
    align-items: center;         /* alinha verticalmente ícone e texto */
    gap: 3px;                    /* espaço entre ícone e texto */
    max-width: 120px !important;
    max-height: 60px !important;
    width: 120px;
    height: 60px;
    text-align: left;            /* texto à esquerda do card */
    cursor: pointer;
    transition: 0.2s;
}

.detalhes {
  resize: none;
  overflow: hidden;
}

.isoCard img, .modulos i, .dadosCard i {
  height: 22px;
  width: 22px;
  font-size: 18px;
  color: #454545;
}

.isoCard img {
  filter: brightness(0);
}

.isoCard.selecionado img {
  filter: invert(1);
}

/* Hover */
.isoCard:hover,
.modulos:hover,
.dadosCard:hover {
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}


/* Selecionado */
.isoCard.selecionado, .modulos.selecionado, .dadosCard.selecionado {
    color: #eef1f5;
    background: #3551a3;
    border-color: #293377;
    box-shadow: 0 6px 18px rgba(53, 81, 163, 0.25);
}

.isoCard.selecionado img, .modulos.selecionado i, .dadosCard.selecionado i {
  color: #eef1f5;
}

.isoCard.selecionado img {
    filter: brightness(0) invert(1);
}

.error {
  color: #dc2626;
  font-size: 12px;
}

.error-tittle{
  color: #dc2626;
}

.spinner {
  display: none;
  margin-top: 16px; /* espaçamento do título */
  justify-content: center;
  align-items: center;
}

.spinner-border {
  width: 50px;
  height: 50px;
}
