*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.modal-container {
  background-color: rgba(0,0,0,.7);
  position: fixed;
  width: 100%;
  height: 100%;
  padding-right: 30px;
  padding-left: 30px;
  opacity: 0;
  z-index: -1;
  transition: all ease-in-out .3s;
  -webkit-transition: all ease-in-out .3s;
  -moz-transition: all ease-in-out .3s;
  -ms-transition: all ease-in-out .3s;
  -o-transition: all ease-in-out .3s;
}
.thanks h3, .thanks p {
  margin-top: 0;
  margin-bottom: 0;
}

.thanks {
  text-align: center;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0,0,0,.6);
  transition: all ease-in-out .3s;
  -webkit-transition: all ease-in-out .3s;
  -moz-transition: all ease-in-out .3s;
  -o-transition: all ease-in-out .3s;
  -ms-transition: all ease-in-out .3s;
  opacity: 0;
  z-index: -1;
  padding: 50px;
}

.thanks-wrapper {
  background-color: #fff;
  color: #49535e;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
  transform: scale(0);
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -o-transform: scale(0);
  -ms-transform: scale(0);
  transition: all ease-in-out .3s;
  -webkit-transition: all ease-in-out .3s;
  -moz-transition: all ease-in-out .3s;
  -o-transition: all ease-in-out .3s;
  -ms-transition: all ease-in-out .3s;

  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d11f4b', endColorstr='#ee3a25',GradientType=1 );
}

.thanks-wrapper h2 {
  font-size: 4em;
  font-weight: bold;
}

.thanks-wrapper p {
  font-size: 2.28em;
  font-weight: 100;
  line-height: 1.2;
}


.thanks.active {
  opacity: 1;
  z-index: 1050;
}

.thanks.active .thanks-wrapper {
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
}

.close-popup {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: rgb(238,60,36);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  cursor: pointer;
}
.thanks-wrapper h3 {
  font-size: 58px;
}

.pop {
  transform: scale(0);
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -o-transform: scale(0);
  -ms-transform: scale(0);
  width: 50%;
  height: 50%;
  color: #fff;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  line-height: 1.1;
  font-size: 2.4em;
  font-weight: 600;
  transition: opacity 0.5s;
  text-align: center;
  background: rgb(207,21,73);
  background: -moz-linear-gradient(left, rgb(207,21,73) 0%, rgb(235,27,45) 50%, rgb(238,60,36) 100%);
  background: -webkit-linear-gradient(left, rgb(207,21,73) 0%,rgb(235,27,45) 50%,rgb(238,60,36) 100%);
  background: linear-gradient(to right, rgb(207,21,73) 0%,rgb(235,27,45) 50%,rgb(238,60,36) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cf1549', endColorstr='#ee3c24',GradientType=1 );
}

.pop-box {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  z-index: -1;
  transition: all ease-in-out .4s;
  -webkit-transition: all ease-in-out .4s;
  -moz-transition: all ease-in-out .4s;
  -o-transition: all ease-in-out .4s;
  -ms-transition: all ease-in-out .4s;
}

.pop-box.active {
  z-index: 99999999;
  opacity: 1;
  transition: all ease-in-out .4s;
  -webkit-transition: all ease-in-out .4s;
  -moz-transition: all ease-in-out .4s;
  -o-transition: all ease-in-out .4s;
  -ms-transition: all ease-in-out .4s;
}

.pop-box.active .pop {
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transition: all ease-in-out .4s;
  -webkit-transition: all ease-in-out .4s;
  -moz-transition: all ease-in-out .4s;
  -o-transition: all ease-in-out .4s;
  -ms-transition: all ease-in-out .4s;
}