body.sem-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Estilos gerais do formulário */
.agendador-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* fundo semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

#ag-time{
  background: #fff;
}

.agendador-container {
  position: relative;
  width: 400px;
  max-width: 90vw; 
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
  z-index: 10000;
}

.agendador-fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}

.agendador-fechar:hover {
  color: #000;
}

/* Labels e campos */
.agendador-container label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #444;
}

/* Campos de entrada */
.agendador-container input[type="text"],
.agendador-container input[type="email"],
.agendador-container input[type="time"],
.agendador-container select {
  width: 90%;            /* igual aos outros inputs */
  padding: 10px;         /* mais confortável para toque */
  margin-bottom: 15px;   /* espaçamento vertical */
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.agendador-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path fill='%23444' d='M0 0l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 5px;
  padding-right: 30px; /* para a seta não sobrepor o texto */
}

/* Duplicando estilos para corrigir bug no mobile */
#btn_enviar_agendamento{
  width: 90%;
  background: #2e8b57;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

/* Botão de envio */
.agendador-container input[type="button"] {
  width: 90%;
  background: #2e8b57;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.agendador-container input[type="button"]:hover {
  background: #256d44;
}

/* Responsivo */
@media (max-width: 600px) {
  .agendador-container input[type="text"],
  .agendador-container input[type="email"],
  .agendador-container input[type="time"],
  .agendador-container select,
  .agendador-container input[type="button"] {
    width: 100%;
  }
}

.agendador-container input,
.agendador-container select {
  box-sizing: border-box;
}

/* Inputs tipo date e datetime-local */
.agendador-container input[type="date"],
.agendador-container input[type="datetime-local"],
.agendador-container input[type="time"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  /* para uniformizar a aparição no iOS/Android */
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
}

/* O select de horário */
.agendador-container select {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><path fill='%23444' d='M0 0l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px 5px;
  padding-right: 35px;
}

/* Responsivo: force 100% em telas bem estreitas */
@media (max-width: 480px) {
  .agendador-container input[type="text"],
  .agendador-container input[type="email"],
  .agendador-container input[type="date"],
  .agendador-container input[type="datetime-local"],
  .agendador-container input[type="time"],
  .agendador-container select,
  .agendador-container input[type="button"] {
    width: 100%;
  }
}
