
.ebcf-popup{
  display: inline-block;
  position: fixed;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 60px 40px;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100000;
  opacity: 0;
  z-index: -100;
  -webkit-transition: all 300ms ease-out;
	-moz-transition: all 300ms ease-out;
	-o-transition: all 300ms ease-out;
	transition: all 300ms ease-out;
}
.ebcf-popup .ebcf-popup-content
{
  -webkit-transition: all 300ms ease-out;
	-moz-transition: all 300ms ease-out;
	-o-transition: all 300ms ease-out;
	transition: all 300ms ease-out;
  -webkit-transform: scale(.5);
	-moz-transform: scale(.5);
	-ms-transform: scale(.5);
	-o-transform: scale(.5);
	transform: scale(.5);
  vertical-align: middle;
  display: inline-block;
  position: relative;
  width: auto;
  max-width: calc(100% - 6px);
  background-color: #fff;
}
.ebcf-popup.open{
  z-index: 100000;
  opacity: 1;
}
.ebcf-popup.open .ebcf-popup-content{
  -webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}
.ebcf-popup-inner::before{
  display: inline-block;
  height: 100%;
  width: 0px;
  vertical-align: middle;
  content: '';
}
.ebcf-popup-inner{
  width: 100%;
  height: 100%;
  text-align: center;
}
.ebcf-popup-close{
  position: absolute;
  width: 25px;
  background-color: #000000;
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 5px;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
  right: -1px;
  top: -1px;
  cursor: pointer;
}
a.ebcf-popup-close:hover{
    color: #FFF;
}
.ebcf-popup#ebcf-popup4{
    width: auto;
    height: auto;
    right:50px;
    bottom: 0;
    animation-duration: 400ms;
    animation-timing-function:ease;
    animation-fill-mode: forwards;
    opacity: 0;
    transform:translateY(100%);
    top: auto;
    left: auto;
    background-color: #FFF;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
    overflow: visible;
}
.ebcf-popup#ebcf-popup4.open{
    animation-name: to-up-effect;
    padding: 0;
}
.ebcf-popup .ebcf-form-holder{
  width:450px;
  max-width: 100%;
  height:auto;
  background:white;
}
.ebcf-popup#ebcf-popup4.closed{
    animation-name: to-down-effect;
}
@keyframes to-up-effect {
    0% {
        transform:translateY(100%);
        opacity: 0;
      
    }
    100% {
        transform:translateY(0);
        opacity: 1;
    }
  }
  @-webkit-keyframes to-up-effect {
    0% {
        -webkit-transform:translateY(100%);
        opacity: 0;
    }
    to {
        -webkit-transform:translateY(0);
        opacity: 1;
    }
  }
  @keyframes to-down-effect {
    0% {
        transform:translateY(0);
        opacity: 1;
      
    }
    100% {
        transform:translateY(100%);
        opacity: 0;
    }
  }
  @-webkit-keyframes to-down-effect {
    0% {
        -webkit-transform:translateY(0);
        opacity: 1;
    }
    to {
        -webkit-transform:translateY(100%);
        opacity: 0;
    }
  }
  @media all and (max-width:768px){
    .ebcf-popup{
      padding: 50px 15px;
    }
    .ebcf-popup#ebcf-popup4{
      right: 10px;
      width: calc(100% - 20px);
    }
  }