.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  overflow: auto; /* Enable scroll if needed */
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.modal .modal-content {
  background-color: white;
  padding: 7rem;
  border: none;
  width: 90%; /* You can adjust width */
  max-width: 100rem;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
}

.modal .close-button {
  position: absolute;
  top: 4rem;
  right: 4rem;
  width: 2.5rem;
  height: 2.5rem;
  float: right;
}

.modal .close-button:hover,
.modal .close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal .modal-title {
  font-family: "Exo", sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.modal .modal-form .form-row {
  margin-bottom: 2rem;
}

.modal .modal-form .form-row label {
  font-family: Helvetica Neue, "Source Sans Pro";
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal .modal-form .form-row input[type="text"],
.modal .modal-form .form-row input[type="tel"],
.modal .modal-form .form-row select {
  width: 100%;
  padding: 2rem;
  font-size: 1.8rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #dee6e8;
}

.modal .custom-select {
  position: relative;
  font-family: Helvetica Neue, "Source Sans Pro";
}

.modal.schedule .custom-select {
  display: none;
}
.modal.schedule .flex-row {
  flex-direction: column;
}
.modal.schedule .modal-content {
  max-width: 70rem;
}

.modal .selected-value {
  padding: 2rem;
  font-size: 1.8rem;
  background-color: #dee6e8;
  cursor: pointer;
  user-select: none;
  border-radius: 0.5rem;
  background-image: url("../assets/icons/icon-select-open.svg");
  background-position: right 2rem top 50%; /* Позиционирование иконки */
  background-repeat: no-repeat;
  background-size: 2rem; /* Размер иконки */
}

.modal .value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  width: 100%;
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 1000;
  font-size: 1.8rem;
  border: 1px solid black;
}

.modal .value-list.hidden {
  display: none;
}

.modal .value-list li {
  padding: 2rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal .value-list li:hover {
  background-color: #dee6e8;
}

.modal .text-warning {
  margin: 3rem 0;
  font-size: 1.4rem;
}

.modal .submit-button {
  width: 100%;
  height: 6rem;
  padding: 0.8rem;
  background-color: #ff9bab;
  border: none;
  border-radius: 0.25rem;
  font-size: 1.8rem;
  color: black;
  cursor: pointer;
  margin-top: 1rem;
}

.modal .submit-button:hover {
  background-color: #f4667d;
}

.modal .flex-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 5%;
}

.modal .flex-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal .text-warning a {
  color: #5a808a;
}
.modal .text-warning a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .modal .flex-row {
    flex-direction: column;
  }
  .modal .modal-content {
    padding: 2rem;
    padding-top: 5rem;
    width: 100%; /* You can adjust width */
  }

  .modal .close-button {
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
  }

  .modal .modal-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .modal .modal-form .form-row label {
    font-size: 1rem;
  }

  .modal .modal-form .form-row input[type="text"],
  .modal .modal-form .form-row input[type="tel"],
  .modal .modal-form .form-row select {
    padding: 1rem;
    font-size: 1.5rem;
  }

  .modal .modal-form .form-row {
    margin-bottom: 1rem;
  }

  .modal .selected-value {
    padding: 1rem;
    font-size: 1.5rem;
    background-size: 1.5rem; /* Размер иконки */
  }

  .modal .value-list {
    font-size: 1.5rem;
  }

  .modal .submit-button {
    height: 5rem;
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }
}
