.popup {
  position: fixed;
  z-index: 9996;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.popup.visible {
  opacity: 1;
  visibility: visible;
}
.popup .popup-content {
  display: inline-block;
  z-index: 9999;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 5rem;
  border-radius: 8px;
  background: #ffc578;
  background: -moz-linear-gradient(top,  #ffc578 0%, #fb9d23 100%);
  background: -webkit-linear-gradient(top,  #ffc578 0%,#fb9d23 100%);
  background: linear-gradient(to bottom,  #ffc578 0%,#fb9d23 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffc578', endColorstr='#fb9d23',GradientType=0 );
  cursor: default;
  color: #000;
}
.popup.overlay .popup-inner {
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  z-index: 9997;
  text-align: initial;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  height: 90%;
  margin: 0 auto;
  border-radius: 10px;
  -webkit-transform: translateY(25px);
  -moz-transform: translateY(25px);
  -ms-transform: translateY(25px);
  transform: translateY(25px);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
@media (max-width: 768px) {
  .popup .popup-content {
    display: inline-block;
    z-index: 9999;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    padding: 4rem 2rem 2rem 2rem;
    border-radius: 8px;
    background: #ffc578;
    background: -moz-linear-gradient(top,  #ffc578 0%, #fb9d23 100%);
    background: -webkit-linear-gradient(top,  #ffc578 0%,#fb9d23 100%);
    background: linear-gradient(to bottom,  #ffc578 0%,#fb9d23 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffc578', endColorstr='#fb9d23',GradientType=0 );
    cursor: default;
    color: #000;
  }
  .popup.overlay .popup-inner {
    -webkit-backface-visibility: hidden;
    cursor: pointer;
    z-index: 9997;
    text-align: initial;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    height: 90%;
    margin: 0 auto;
    border-radius: 10px;
    -webkit-transform: translateY(25px);
    -moz-transform: translateY(25px);
    -ms-transform: translateY(25px);
    transform: translateY(25px);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
  }
}
.popup .popup-content p{
  color: #000;
}
.popup.overlay {
  background: rgba(0, 0, 0, 0.85);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.popup.overlay .popup-outside {
  position: absolute;
  z-index: 9998;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.popup.overlay .popup-inner .popup-content {
  position: relative;
}
.popup.overlay.visible .popup-inner {
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  transform: translateY(0px);
}
.popup .popup-close {
  display: block;
  position: absolute;
  top: 25px;
  right: 25px;
}
.popup.overlay .popup-inner .popup-content .bx-x-circle{
  font-size: 2em;
}