.consultation-form {
  background-image: url('../img/bg-form.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 85px 20px 166px;
}

.consultation-form .container {
  max-width: 990px;
}

.consultation-form .titleh2 {
  color: #fff;
  margin: 0;
  padding-bottom: 30px;
}

.consultation-form .titleh2::before {
  content: none;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input {
  font-family: "Onest";
  width: 386px;
  padding: 19px 26px;
  display: block;
  background: #EFEFEF;
  border-radius: 7px;
  outline: none;
  border: none;
  color: #353535;
  font-size: 18px;
}

.form-input::placeholder {
  color: #8D8D8D;
}

.phone-input {
  position: relative;
}

.phone-label {
  font-family: "Onest";
  padding: 19px 26px;
  display: block;
  color: #353535;
  font-size: 18px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
}

.form-submit {
  font-family: "IntroDemo";
  text-transform: uppercase;
  width: 386px;
  padding: 18px;
  background: #5DC331;
  color: #fff;
  font-size: 20px;
  border: 0;
  border-radius: 7px;
  transition: .3s;
  cursor: pointer;
}

.form-submit:hover {
  background: #3BA70D;
}

.modal {
  font-family: "Onest";
  position: fixed;
  background: rgba(53, 53, 53, 0.5);
  min-height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  display: none;
  z-index: 9999999999;
}

.modal-content {
  position: relative;
  text-align: center;
  padding: 68px 70px;
  width: 996px;
  height: 322px;
  background-image: url('../img/bg-modal.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.close {
  position: absolute;
  right: 25px;
  top: 25px;
  cursor: pointer;
  z-index: 1;
  stroke: #8D8D8D;
  transition: .3s;
}

.close:hover {
  stroke: #353535;
}

.modal-text-cont {
  text-align: left;
  color: #fff;
}

.modal-title {
  font-family: "IntroDemo";
  font-size: 34px;
  padding-bottom: 20px;
}

.modal-text {
  font-size: 22px;
  font-weight: 500;
  padding-top: 20px;
  max-width: 300px;
}

.manager {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
}

@media screen and (max-width: 1000px) {
  .consultation-form {
    background-image: url('../img/bg-form-m.jpg');
    padding: 30px 15px 427px;
  }
  .form {
    align-items: center;
  }
  .consultation-form .titleh2 {
    text-align: center;
    margin: 0 auto;
  }
}

@media screen and (max-width: 800px) {

  .modal-content {
    align-items: start;
    padding: 30px 25px;
    background-image: url('../img/bg-modal-m.webp');
    height: 300px;
    background-position: 50% 25%;
  }
  .modal-title {
    font-size: 22px;
    padding-bottom: 10px;
  }
  .modal-text {
    font-size: 16px;
    padding-top: 10px;
  }
  .close {
    top: 15px;
    right: 15px;
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 600px) {
  .consultation-form {
    background: #0060C1;
    padding: 30px 15px 30px;
  }
}

@media screen and (max-width: 450px) {
  .form-input, .form-submit {
    width: 310px;
  }
}