.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 12000;
}
.modal__wrapper {
  background-color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 500px;
}
.modal__wrapper .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid #000;
  font-size: 20px;
  font-weight: 300;
  color: #000;
  transition: all 0.3s ease;
  z-index: 10;
}
.modal__wrapper .close:hover {
  background: #000;
  color: #fff;
}
.modal__wrapper_title {
  color: #000;
  font-family: "PF Din Text Comp Pro";
  font-size: 90px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.modal__wrapper form {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  transition: opacity 0.3s ease;
}
.modal__wrapper form .label {
  align-self: flex-start;
  color: #000;
  font-family: "PF Din Text Comp Pro";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  text-transform: uppercase;
}
.modal__wrapper form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000;
  padding: 10px 0;
  margin-bottom: 60px;
  outline: none;
  color: #000; /* Цвет текста ввода */
  font-family: "PF Din Text Comp Pro";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  background: transparent;
  border-radius: 0;
}
.modal__wrapper form input::placeholder {
  color: #909090;
  font-family: "PF Din Text Comp Pro";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
}

/* Отключение фона автозаполнения Chrome */
.modal__wrapper form input:-webkit-autofill,
.modal__wrapper form input:-webkit-autofill:hover, 
.modal__wrapper form input:-webkit-autofill:focus, 
.modal__wrapper form input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.modal__contacts {
  text-align: center;
  margin-bottom: 30px;
}
.modal__contacts_title {
  font-family: "PF Din Text Comp Pro", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.modal__contacts_link {
  display: block;
  font-family: "PF Din Text Comp Pro", Arial, sans-serif;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity 0.3s;
}
.modal__contacts_link:hover {
  opacity: 0.6;
}

.openedModal {
  display: flex;
}

/* Сообщение об успехе */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.form-success.active {
  opacity: 1;
  visibility: visible;
}

.form-success__title {
  font-family: "PF Din Text Comp Pro";
  font-size: 60px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #000;
}

.form-success__text {
  font-family: "PF Din Text Comp Pro";
  font-size: 24px;
  text-transform: uppercase;
  color: #666;
}

@media (max-width: 767px) {
  .modal__wrapper {
    min-width: auto;
    width: 90%;
    padding: 20px;
  }
  .modal__wrapper_title {
    font-size: 40px;
    margin-bottom: 20px;
  }
  .form-success__title {
    font-size: 40px;
  }
}
