.custom-model-main {
  text-align: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  opacity: 0;
  transition: opacity 0.15s linear, z-index 0.15;
  z-index: -1;
  overflow-x: hidden;
  overflow-y: auto;
}

.model-open {
  z-index: 99999;
  opacity: 1;
  overflow: hidden;
}

.custom-model-inner {
  transform: translate(0, -25%);
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out, -moz-transform 0.3s ease-out, -o-transform 0.3s ease-out;
  display: inline-block;
  vertical-align: middle;
  width: 600px;
  height: 500px;
  margin: 30px auto;
  max-width: 97%;
}

.custom-model-wrap {
  display: block;
  width: 100%;
  position: relative;
  background-color: #fff;
  border: 1px solid #707070;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.pop-up-content-wrap {
  position: relative;
  background: #F6F6F6;
  padding: 20px;
}

.model-open .custom-model-inner {
  transform: translate(0, 0);
  position: relative;
  z-index: 999;
}

.model-open .bg-overlay {
  background: rgba(0, 0, 0, 0.85);
  z-index: 99;
}

.bg-overlay {
  background: rgba(0, 0, 0, 0);
  height: 100vh;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  transition: background 0.15s linear;
}

.close-btn {
  position: absolute;
  right: 0;
  top: 5px;
  cursor: pointer;
  z-index: 99;
  color: #19A78E;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.close-btn span.icon-close {
  width: 27px;
  height: 27px;
  background: #fff;
  border: 2px solid #19A78E;
  color: #19A78E;
  font-size: 14px;
  padding: 4px;
}

.close-btn:hover span.icon-close {
  background: #19A78E;
  border: 2px solid #19A78E;
  color: #fff;
}

@media screen and (min-width:800px) {
  .custom-model-main:before {
    content: "";
    display: inline-block;
    height: auto;
    vertical-align: middle;
    margin-right: -0px;
    height: 100%;
  }
}

@media screen and (max-width:799px) {
  .custom-model-inner {
    margin-top: 45px;
  }
}

a.forget {
  width: 100%;
  text-align: right;
  font-size: 13px;
  color: #9A9A9A;
  margin-top: -10px;
  display: flex;
  justify-content: flex-end;
  text-decoration: underline;
  cursor: pointer;
}

a.forget:hover {
  color: #000;
}

button.login-btn-popup,
button.send,
button.send-close {
  width: 100%;
  max-width: 160px;
  height: 42px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.send-code {
  width: 86px;
  height: 34px;
  position: absolute;
  right: 0px;
  bottom: -1px;
  font-size: 14px;
}

.titleP {
  width: 100%;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

p.info-login {
  text-align: center;
  font-size: 13px;
}

p.info-login a {
  cursor: pointer;
  color: #19A78E;
  margin-left: 4px;
  text-decoration: underline;
}

p.info-login a:hover {
  color: #37c3aa;
}

.titleP b {
  margin-right: 4px;
}

.input-area {
  width: 100%;
  max-width: 380px;
  margin: 22px auto;
}

.input-area .list {
  position: relative;
  border-bottom: 1px solid #E3E3E3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 5px;
  margin-bottom: 22px;
  height: 32px;
}

.input-area .list span {
  color: #3E4846;
  font-size: 14px;
  width: auto;
}

.input-area .list input {
  width: auto;
  min-width: 250px;
  background: none;
  padding-left: 10px;
}

.input-area .list input.inputshort {
  max-width: 175px;
}

.input-area .list input.imgbefore {
  width: 50%;
  margin-right: 10px;
}

.input-area .list .pic {
  position: absolute;
  right: 0px;
  bottom: -1px;
  height: 32px;
  display: block;
}

.input-area .list .pic img {
  width: auto;
  height: 100%;
}

.fg-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px auto;
}

.fg-box a {
  width: 100%;
  max-width: 180px;
  height: 180px;
  background: #fff;
  border: 1px solid #E3E3E3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.fg-box a:hover,
.fg-box a.active {
  border: 1px solid #19A78E
}

.fg-box a span.icon-phone,
.fg-box a span.icon-mail {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #F5F5F5;
  color: #000000;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: background-color 0.5s ease;
}

.fg-box a.active span.icon-phone,
.fg-box a.active span.icon-mail,
.fg-box a:hover span.icon-phone,
.fg-box a:hover span.icon-mail {
  background-color: #19A78E;
  color: #ffffff;
}

.fg-box a span.icon-mail {
  font-size: 48px;
}

.fg-box a .txt {
  text-align: center;
}

.fg-box a .txt span {
  font-size: 12px;
  color: #9A9A9A;
  margin-bottom: 4px;

}

.fg-box a .txt h6 {
  color: #000000;
  font-size: 14px;
  margin-top: 5px;
}

@media screen and (max-width:414px) {
  .custom-model-wrap {
    padding: 14px;
  }

  .input-area {
    width: 100%;
    max-width: none;
  }

  .input-area .list {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    height: auto;
    margin-bottom: 12px;
  }

  .input-area .list span {
    width: 100%;
    margin-bottom: 8px;
  }

  .input-area .list input {
    width: 100%;
    padding-left: 0px;
  }

  a.forget {
    margin-top: 10px;
  }

  .fg-box a {
    width: 100%;
    max-width: 160px;
    height: 200px;
  }
}

@media screen and (max-width:376px) {
  .fg-box a {
    width: 100%;
    max-width: 140px;
    height: 200px;
  }
}

.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99998;
  overflow: hidden;
  position: fixed;
  background: #0b0b0b;
  opacity: .8
}

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box
}

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle
}

.mfp-align-top .mfp-container:before {
  display: none
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto
}

.mfp-ajax-cur {
  cursor: progress
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: zoom-out
}

.mfp-zoom {
  cursor: pointer;
  cursor: zoom-in
}

.mfp-auto-cursor .mfp-content {
  cursor: auto
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
  user-select: none
}

.mfp-loading.mfp-figure {
  display: none
}

.mfp-hide {
  display: none !important
}

.mfp-preloader {
  color: #CCC;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044
}

.mfp-preloader a {
  color: #CCC
}

.mfp-preloader a:hover {
  color: #FFF
}

.mfp-s-ready .mfp-preloader {
  display: none
}

.mfp-s-error .mfp-content {
  display: none
}

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: 0;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation
}

button::-moz-focus-inner {
  padding: 0;
  border: 0
}

.mfp-close {
  width: 34px;
  height: 34px;
  line-height: 34px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: .65;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Poppins, Baskerville, monospace
}

.mfp-close:hover,
.mfp-close:focus {
  opacity: 1
}

.mfp-close:active {
  top: 1px
}

.mfp-close-btn-in .mfp-close {
  color: #333
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  color: #fff;
  border: 1px solid #fff;
  right: -4px;
  text-align: right;
  padding-right: 0px;
  font-size: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap
}

.mfp-arrow {
  position: absolute;
  opacity: .65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent
}

.mfp-arrow:active {
  margin-top: -54px
}

.mfp-arrow:hover,
.mfp-arrow:focus {
  opacity: 1
}

.mfp-arrow:before,
.mfp-arrow:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 35px;
  margin-left: 35px;
  border: medium inset transparent
}

.mfp-arrow:after {
  border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px
}

.mfp-arrow:before {
  border-top-width: 21px;
  border-bottom-width: 21px;
  opacity: .7
}

.mfp-arrow-left {
  left: 0
}

.mfp-arrow-left:after {
  border-right: 17px solid #FFF;
  margin-left: 31px
}

.mfp-arrow-left:before {
  margin-left: 25px;
  border-right: 27px solid #3f3f3f
}

.mfp-arrow-right {
  right: 0
}

.mfp-arrow-right:after {
  border-left: 17px solid #FFF;
  margin-left: 39px
}

.mfp-arrow-right:before {
  border-left: 27px solid #3f3f3f
}

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px
}

.mfp-iframe-holder .mfp-content {
  line-height: 0;
  width: 100%;
  max-width: 900px
}

.mfp-iframe-holder .mfp-close {
  top: -40px
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%
}

.mfp-iframe-scaler iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #000
}

img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 60px 20px;
  margin: 0 auto
}

.mfp-figure {
  line-height: 0
}

.mfp-figure:after {
  content: '';
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.mfp-figure small {
  color: #bdbdbd;
  display: block;
  font-size: 12px;
  line-height: 14px
}

.mfp-figure figure {
  margin: 0
}

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto
}

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #f3f3f3;
  word-wrap: break-word;
  padding-right: 36px
}

.mfp-image-holder .mfp-content {
  max-width: 100%
}

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer
}

@media screen and (max-width:800px) and (orientation:landscape),
screen and (max-height:300px) {
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0
  }

  .mfp-img-mobile img.mfp-img {
    padding: 0
  }

  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0
  }

  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px
  }

  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -moz-box-sizing: border-box;
    box-sizing: border-box
  }

  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0
  }

  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px
  }

  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0
  }
}

@media all and (max-width:900px) {
  .mfp-arrow {
    transform: scale(0.75)
  }

  .mfp-arrow-left {
    transform-origin: 0 0
  }

  .mfp-arrow-right {
    transform-origin: 100%
  }

  .mfp-container {
    padding-left: 6px;
    padding-right: 6px
  }
}

.hidden {
  overflow: hidden;
  display: none;
  visibility: hidden;
}

.btn-gallery img {
  /* max-width: 300px; */
  height: auto;
  overflow: hidden;
}

.btn-gallery img:hover {
  transform: scale(1.02);
}