

.main {
  position: relative;
/*  max-width: 462px;*/
  width: 90%;
/*  min-width: 300px;*/
/*  margin: 2em auto;*/
/*  padding: 1em 0 2em 0;*/
  text-align: center;
  border-radius: 3px;
  background-color: #fff;
}
.main h1 {
  font-size: 1em;
  color: #666;
  padding-bottom: 1em;
  font-weight: 100;
}
@media screen and (min-width: 406px) {
  .main h1 {
    font-size: 40px;
    padding-bottom: .5em;
  }
}
.main .submit {
  text-decoration: none;
  width: 130px;
  display: block;
  margin: 0 auto;
  border-radius: 3px;
  padding: 10px 7px;
  color: black;
  background-color: #f08080;
  transition: all .15s;
  box-shadow: inset 0 0 0 #000, 0 1.5px 4px rgba(0, 0, 0, 0.8), 0 1.5px 6px rgba(0, 0, 0, 0.7);
}
.main .submit:active {
  box-shadow: inset 0px 0.5px 4px 0px rgba(0, 0, 0, 0.64);
  transition: all .3s;
}
.main .overlay {
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: all .3s;
}


.popup h1 {
  font-size: 1em;
}
@media screen and (min-width: 406px) {
  .popup h1 {
    font-size: 40px;
    padding-bottom: .5em;
  }
}
.popup .close {
  display: block;
  width: 28px;
  height: 28px;
  background: #2e3192 !important;
  position: absolute;
  top: 0;
  right: 0;
}
.popup .close:before, .popup .close:after {
  position: absolute;
  top: 12px;
  left: 4px;
  content: '';
  display: block;
  width: 20px;
  height: 4px;
  background: #fff;
  transform: rotate(-45deg);
}
.popup .close:after {
  transform: rotate(45deg);
}
.popup .close:active {
  background: rgba(240, 128, 128, 0.8);
}

.active .overlay {
  opacity: 1;
  transition: all .3s;
  pointer-events: all;
}
.active .popup {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s;
}


/* modified for new design---------------------------------------------------------------------------------------------------*/


.popup {
  visibility: hidden;
  opacity: 0;
  position: absolute;
/*
  max-width: 600px;
  min-width: 600px;
*/
/*  width: 70%;*/
/*  margin: 50px auto 0;*/
        margin: 30px auto 0px;
  padding: 2em;
  text-align: center;
  border: #fff;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-40px);
  transition: all .3s;
  z-index: 2;
        margin-left: -15px; 
}

.main {
  position: relative;
/*  max-width: 462px;*/
  width: 90%;
/*  min-width: 300px;*/
/*  margin: 2em auto;*/
/*  padding: 1em 0 2em 0;*/
  text-align: center;
  border-radius: 3px;
  background-color: #fff;
}


/*---------------------------------------------------------------------------------------------------*/