.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
}

.hidden {
  display: none;
}

.popup {
  position: fixed;
  padding-top: 60px;
  padding-bottom: 55px;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 100%;
  max-width: 1017px;
  min-height: 360px;
  overflow-y: auto;
  border-radius: 10px;
  background-color: #ffffff;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  z-index: 2;
}

.body__overlay {
  overflow: hidden;
}

.body__overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.popup__title {
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.2px;
  margin: 0;
  margin-bottom: 32px;
}

.popup__description {
  width: 90%;
  margin: 0 auto;
  font-size: 18px;
  text-align: center;
  margin-bottom: 66px;
}

.popup__form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup__input {
  width: 90%;
  border: none;
  border-bottom: 2px solid lightgrey;
  padding-bottom: 6px;
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  outline: none;
  transition: border 0.3s;
}

.popup__input::placeholder {
  color: lightgrey;
}

.popup__input:hover {
  border-color: #6600ff;
}

.popup__input:focus {
  border-color: #6600ff;
}

.popup__button {
  width: 307px;
  height: 54px;
  border-radius: 27px;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6600ff;
  text-transform: uppercase;
  font-weight: bold;
  outline: none;
  border: none;
  cursor: pointer;
  background-color: #ffffff;
  box-shadow: 0px 4px 17px rgba(137, 62, 255, 0.2);
  transition: all 0.3s;
  margin-top: 20px;
}

.popup__button:hover {
  background-color: #6600ff;
  color: #ffffff;
}

.popup__button:active {
  background-color: #6600ff;
  color: #ffffff;
  transform: scale(0.95);
}

.popup__button:focus {
  border-color: blue;
}

.popup__close {
  position: absolute;
  right: 5px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .popup {
    background-image: url("../img/skillup/triangles-popup-left-top.png"),
      url("../img/skillup/triangles-popup-left-bottom.png"),
      url("../img/skillup/triangles-popup-right-bottom.png");
    background-position: left top, left bottom, right bottom;
    background-repeat: no-repeat;
  }

  .popup__title {
    font-size: 40px;
    line-height: 46px;
  }

  .popup__description {
    font-size: 30px;
    line-height: 41px;
  }

  .popup__input {
    width: 745px;
    font-size: 30px;
    line-height: 41px;
  }
}
