#formNoCliente {
  width: 80%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 10px;
  gap: 10px;
}

#formSouCliente {
  width: 80%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 10px;
  gap: 10px;
}

#formDadosCompletos {
  width: 90%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 10px;
  gap: 10px;
}

#formDadosCompletos input,
select {
  width: 90%;
  height: 35px;
  background-color: #fcfcfc;
  color: #999999;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  padding: 0 10px 0 10px;
}

.show {
  display: flex !important;
}

.hide {
  display: none;
}

.unidades {
  width: 80%;
  display: flex;
  align-items: center;
  vertical-align: center;
  flex-direction: column;
  margin-top: 1rem;
  gap: 8px;
}
.outrasUnidadesItem {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  padding: 5px 10px 5px 10px;
  transition: background-color 0.5s ease; /* Transição suave */
  cursor: pointer;
}
.outrasUnidadesItem.selecionada {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background-color: #d2edff;
  border: 1px solid #98cff4;
  padding: 5px 10px 5px 10px;
  transition: background-color 0.5s ease; /* Transição suave */
}

.outrasUnidadesItem.selecionada img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(74%) saturate(5068%)
    hue-rotate(204deg) brightness(101%) contrast(87%);
}

.outrasUnidadesItem.selecionada h1 {
  color: #104685;
}

.outrasUnidadesItem.selecionada p {
  color: #104685;
}

.outrasUnidadesItem h1 {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #313539;
}

.unidadeItem {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 9px;
  background-color: #f6f6f6;
  border-left: 7px solid #03b5ff;
  padding: 15px;
  transition: background-color 0.5s ease; /* Transição suave */
}

.unidadeItem:hover {
  background-color: #efefef;
  cursor: pointer;
}

.unidadeItem h1 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #313539;
}

.unidadeItem.selecionada {
  background-color: #035aa3;
  color: #fff;
  border: none;
}

.unidadeItem.selecionada h1 {
  color: #fff;
}

.unidadeItem.selecionada p {
  color: #fff;
}

.unidadeItem.selecionada img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%)
    hue-rotate(93deg) brightness(103%) contrast(103%);
}

.unidadeHorario {
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.unidadeHorario img {
  filter: invert(42%) sepia(16%) saturate(12%) hue-rotate(27deg) brightness(93%)
    contrast(88%);
  margin: 0;
  width: auto;
  margin-right: 5px;
}

.unidadeHorario p {
  margin: 0;
  width: auto;
  margin-right: 5px;
}

.buttonSolicitarVisita {
  width: 80%;
  height: 40px;
  background-color: #003f74;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  margin-top: 15px; /* Ajustado margin-top */
  border: none;
}

.unidades-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.divisor {
  width: 100%;
  height: 2px;
  background-color: #e0e0e0; /* cinza clarinho */
}

.divisor-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#buttonAgendar {
  width: 80%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background-color: #003f74;
  color: #ffffff;
  cursor: pointer;
}

#buttonAgendar:disabled {
  background-color: #d0d0d0;
  color: #ffffff;
  cursor: not-allowed;
}

.buttonAgendar.inativo {
  background-color: #eaeaea;
  color: #ffffff;
}

#buttonAgendarVisita {
  width: 80%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background-color: #60e554;
  color: #ffffff;
  cursor: pointer;
}

#buttonAgendarVisita:disabled {
  background-color: #d0d0d0;
  color: #ffffff;
  cursor: not-allowed;
}

.buttonAgendarVisita.inativo {
  background-color: #eaeaea;
  color: #ffffff;
}

.buttonSelectUnidade {
  width: 80%;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  margin-top: 5px;
  text-decoration: none;
  color: #646464;
  padding: 10px 0 10px 0;
}

#openButton {
  cursor: pointer;
}

/* Estilos para o botão de seleção de unidades - mantendo identidade do sistema */

/* Aplicar fonte Inter do projeto */
* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Container principal com centralização vertical */
.unidades {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 8px;
}

/* Botão principal de seleção */
.btn-selecionar-unidade {
  width: 100%;
  padding: 30px 20px; /* Aumentado padding vertical de 20px para 30px */
  background: linear-gradient(135deg, #104685 0%, #98cff4 100%);
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(16, 70, 133, 0.3);
  position: relative;
  overflow: hidden;
  margin: 20px 0 30px 0; /* Ajustado margin-bottom para 30px */
  font-family: "Inter", sans-serif;
}

.btn-selecionar-unidade:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 70, 133, 0.4);
}

.btn-selecionar-unidade:active {
  transform: translateY(0);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.btn-content i {
  font-size: 20px;
}

.btn-content .fa-chevron-down {
  transition: transform 0.3s ease;
}

.btn-selecionar-unidade:hover .fa-chevron-down {
  transform: translateY(2px);
}

/* Botão de agendamento com estilos visíveis */
.buttonAgendar {
  width: 100%;
  padding: 16px; /* Reduzido padding */
  background: #1dce61; /* Cor sólida azul igual ao botão de visita local */
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px; /* Fonte reduzida */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  margin: 0 0 15px 0; /* Ajustado margin-bottom */
  text-align: center; /* Texto centralizado */
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttonAgendar:hover:not(:disabled) {
  background: #23df6b; /* Cor hover mais escura */
  transform: translateY(-1px);
}

.buttonAgendar.inativo {
  background: #e9ecef; /* Cinza mais claro */
  color: #6c757d; /* Texto cinza */
  cursor: not-allowed;
  opacity: 0.8;
}

.buttonAgendar.inativo:hover {
  transform: none;
  background: #e9ecef;
}

/* Modal de unidades */
.modal-unidades {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* Header do modal */
.modal-header {
  background: linear-gradient(135deg, #104685 0%, #98cff4 100%);
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.btn-fechar {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.btn-fechar:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Corpo do modal */
.modal-body {
  padding: 0;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}

/* Seções de unidades */
.secao-unidades {
  border-bottom: 1px solid #e9ecef;
}

.secao-unidades:last-child {
  border-bottom: none;
}

.secao-titulo {
  background-color: #f8f9fa;
  padding: 20px 30px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #104685;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e9ecef;
  font-family: "Inter", sans-serif;
}

.secao-titulo i {
  color: #104685;
  font-size: 20px;
}

.secao-titulo .fa-star {
  color: #ffc107;
}

/* Lista de unidades */
.lista-unidades {
  padding: 0;
}

.unidade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.unidade-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.unidade-item.principal {
  background-color: #f0f8ff;
  border-left: 4px solid #98cff4;
}

.unidade-item.principal:hover {
  background-color: #e6f3ff;
}

.unidade-item:last-child {
  border-bottom: none;
}

/* Informações da unidade */
.unidade-info {
  flex: 1;
}

.unidade-info h5 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #104685;
  font-family: "Inter", sans-serif;
}

.unidade-endereco {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
  font-family: "Inter", sans-serif;
}

.unidade-data {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.unidade-data i {
  color: #104685;
  font-size: 14px;
}

/* Ações da unidade */
.unidade-acoes {
  color: #98cff4;
  font-size: 18px;
  transition: all 0.3s ease;
}

.unidade-item:hover .unidade-acoes {
  color: #104685;
  transform: translateX(3px);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }

  .modal-header {
    padding: 20px 25px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .secao-titulo {
    padding: 15px 25px;
    font-size: 16px;
  }

  .unidade-item {
    padding: 15px 25px;
  }

  .unidade-info h5 {
    font-size: 16px;
  }

  .unidade-endereco,
  .unidade-data {
    font-size: 13px;
  }

  .btn-selecionar-unidade {
    padding: 25px 18px; /* Ajustado para mobile */
    font-size: 15px;
    margin: 20px 0 30px 0; /* Reduzido para mobile */
  }

  .buttonAgendar {
    padding: 14px;
    font-size: 15px;
    margin: 0 0 18px 0; /* Mantido próximo */
  }

  .btn-content {
    gap: 12px;
  }

  .unidades {
    width: 80%;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    width: 98%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 18px 20px;
  }

  .secao-titulo {
    padding: 12px 20px;
  }

  .unidade-item {
    padding: 12px 20px;
  }

  .btn-selecionar-unidade {
    padding: 20px 16px; /* Ajustado para mobile pequeno */
    font-size: 15px;
    margin: 15px 0 25px 0; /* Reduzido para mobile pequeno */
  }

  .buttonAgendar {
    padding: 12px;
    font-size: 14px;
    margin: 0 0 15px 0; /* Mantido próximo */
  }

  .unidades {
    width: 80%;
    margin-top: 1rem;
  }
}

/* Scrollbar personalizada */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #98cff4;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #104685;
}

/* Estilos para o footer */
.footer {
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  margin-top: 10px;
  border-top: 1px solid #e7e7e7;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.divisor {
  width: 2px;
  height: 30px;
  background-color: #e0e0e0;
}

/* Botão de solicitar visita ajustado para o footer */
.buttonSolicitarVisita {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #003f74;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border: none;
  transition: all 0.3s ease;
}

.buttonSolicitarVisita:hover {
  background-color: #002d5a;
  transform: translateY(-1px);
}

.buttonSolicitarVisita img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.buttonSolicitarVisita p {
  margin: 0;
  font-weight: 500;
}
