.fancybox-bg{
  background: transparent !important;
}

.fancybox-can-swipe .fancybox-content{
  cursor: default !important;
}

.fancybox-button svg{
  display: none !important;
}

.fancybox-button{
  background: url(../images/close.png) no-repeat center !important;
  right: 15px !important;
  top: 15px !important;
  width: 34px;
  height: 34px;
}

.modal{
  width: 550px;
  background: #fff;
  margin: 0 auto;
  padding: 60px 85px !important;
  border-radius: 5px;
  box-shadow: 0 0 60px rgba(0,0,0,0.3);
  position: relative;
}

.modal-title{
  text-align: center;
  color: #000;
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 60px;
}

.modal-form__col{
  width: 183px;
}

.modal-form__row{
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.modal-form__btn{
  text-align: center;
  margin: 50px 0 30px;
}

.modal-form__btn input{
  cursor: pointer;
  border: none;
}

.modal-form__btn .button {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  background: #ed2629;
  padding: 0 50px;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 500;
  width: 230px;
  text-align: center;
  transition: all ease .3s;
}
.modal-form__btn .button:hover {
  background: #fd5d5d;
}

.modal-form__text{
  text-align: center;
  color: #525c66;
  font-size: 13px;
  line-height: 150%;
}

.modal-form__text a{
  color: #b29674;
}

.modal-message{
  text-align: center;
  font-size: 16px;
  line-height: 150%;
}

.inputbox{
  position: relative;
}

.inputbox label{
  position: absolute;
  display: block;
  font-size: 16px;
  transition: all ease .3s;
  top: 5px;
  pointer-events: none;
}

.inputbox.changed label{
  font-size: 12px;
  color: #999;
  top: -10px;
}

.inputbox input{
  border: none;
  display: block;
  width: 100%;
  border-bottom: 1px solid #e7e7e7;
  height: 33px;
}

.modal-form__item{
  margin-bottom: 35px;
}

.error input {
  border-color: #dc2727;
}

.error-mess {
  font-size: 11px;
  color: #dc2727;
  margin-top: 5px;
}

@media (max-width: 620px){
  .modal{
    padding: 30px !important;
  }

  .modal-form__col{
    width: 48%;
  }
}

@media (max-width: 540px){
  .modal{
    width: 100vw;
    height: 100vh;
    border-radius: 0 !important;
    padding-top: 60px !important;
  }

  .fancybox-slide--html{
    padding: 0 !important;
  }

  .modal-form__row{
    flex-wrap: wrap;
  }

  .modal-form__col{
    width: 100%;
    margin-bottom: 35px;
  }

  .modal-form__col:last-child{
    margin-bottom: 0;
  }
}
