.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.overlay--show {
  display: block;
}

.overlay--close {
  display: none;
}

.modal-form {
  position: absolute;
  width: 50%;
  height: auto;
  left: 50%;
  top: 47.3%;
  padding: 0 40px;
  transform: translate(-50%, -50%);
  border: 3px solid #00baff;
  border-radius: 5px;
  color: #fff;
  background-color: #000000;
}

.modal-form h2 {
  font-size: 21px;
  color: #ffffff;
}

.modal-form h3 {
  font-size: 16px;
  color: #00baff;
}

.modal-form__list {
  list-style: none;
  margin: 0;
}

.modal-form__button-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-form__button-close::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 1px;
    transform: rotate(45deg);
    background-color: #fff;
  }

  .modal-form__button-close::before {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 1px;
    transform: rotate(-45deg);
    background-color: #fff;
  }

.modal-form__button-close:hover {
  transform: scale(1.2);
}

.modal-form textarea {
  min-height: 104px;
  resize: none;
}

@media (max-width: 768px) {
  .overlay {
    overflow: scroll;
  }
  
  .modal-form {
    width: 100%;
    top: 52%;
  }
  
  .modal-form h2 {
    font-size: 15px;
    margin: 5px 0;
  }
  
  .modal-form h3 {
    font-size: 12px;
    margin: 5px 0;
  }
  
  .modal-form__list {
    font-size: 10px;
  }
}
