body {
  font-family: Arial, sans-serif;
  padding: 0;
  height: 100vh;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.reg-logo{
  width: 300px;
  margin-bottom: 1rem;
}


.box {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.dropdown, input[type="date"], button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
}

#name,
#lastName,
#middleName {
  display: none;
}

#name.show,
#lastName.show,
#middleName.show {
  display: block;
}

#form-consent{
  display: none;
}

#form-consent.show{
  display: flex;
}

.cmodal__close {
  color: black;
  position: absolute;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.5;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal.active {
  display: block;
}
.times-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.time-slot {
  padding: 10px 20px;
  background: #00bcd4;
  color: white;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
}
.time-slot.unavailable {
  background: #ccc;
  cursor: not-allowed;
}
.time-slot.selected {
  background: #075363;
}
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
#selectedTimeDisplay {
  margin-bottom: 10px;
  font-weight: bold;
}
input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
}

.consult-button{
  margin-top: 25px;
}

.cmodal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #17181a66;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.cmodal__content {
  background: #ffffff;
  padding: 20px;
  border-radius: 0.75rem;
  position: relative;
  text-align: center;
  width: 90%;
  max-width: 400px;
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cmodal__close {
  position: absolute;
  color: black;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.5;
}

.cmodal__close:hover {
  color: red;
  opacity: 1;
}

.cmodal.show {
  display: flex;
  opacity: 1;
  animation: modal-fade-in 0.1s ease-in-out forwards;
}

.cmodal.show .cmodal__content {
  opacity: 1;
  transform: scale(1);
  animation: modal-scale-in 0.1s ease-in-out forwards;
}

.close-button {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.close-button:hover {
  color: red;
  background-color: transparent;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes modal-scale-in {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

@keyframes modal-scale-out {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(0.8);
  }
}


@media (max-width: 500px) {
  .modal{
    width: 80%;
    height: 80%;
    overflow-y: scroll;
  }

  .times-grid{
    grid-template-columns: repeat(3, 1fr);
  }

  .time-slot{
    padding: 8px;
  }
}
