/* ------------------------------------------------------------------
   secureForm - AJAX form overlays (loader, alerts, captcha pop-up)
   Ported from the VinP implementation.
   The form element must be position:relative for the overlays to sit
   on top of it.
   ------------------------------------------------------------------ */

form.secureForm {
  position: relative;
}

.loader-100,
.alert-container-100 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #2f6fb3;
  box-sizing: border-box;
  padding: 20px;
}

/* ---- loading spinner ---- */

.loader-100 > .loaderx {
  position: relative;
  width: 60px;
  height: 60px;
}

.loader-100 > .loaderx:before,
.loader-100 > .loaderx:after {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: 60px;
  height: 60px;
  content: "";
  border-radius: 50%;
  background: #2f6fb3;
  opacity: 0.6;
  -webkit-animation: preloader-wave 1.6s linear infinite;
  animation: preloader-wave 1.6s linear infinite;
}

.loader-100 > .loaderx:after {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes preloader-wave {
  0%   { -webkit-transform: scale(0); opacity: 1; }
  100% { -webkit-transform: scale(1); opacity: 0; }
}

@keyframes preloader-wave {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---- alert messages ---- */

.alert-container-100 .alert-items {
  text-align: center;
  max-height: 70%;
  overflow-y: auto;
}

.alert-container-100 .alert-item {
  font-size: 1.1em;
  display: block;
  color: #fff;
  font-weight: bold;
  padding: 0.4em;
}

.alert-container-100 .alert-item.success {
  color: #3ecf5b !important;
}

.alert-container-100 .alert-item.danger {
  color: #ff6b6b !important;
}

.alert-container-100 > .btn-alert-ok {
  background: #2f6fb3;
  padding: 0.8em 1em;
  color: #fff !important;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  margin-top: 15px;
  min-width: 40%;
}

.alert-container-100 > .btn-alert-ok:hover {
  background: #24578c;
}

.alert-container-100 > .btn-alert-ok a {
  color: inherit !important;
  text-decoration: none;
}

/* ---- captcha pop-up ---- */

.alert-container-100 #captchaCodeImg {
  margin: 10px 0;
  width: 100px;
}

input.customInput[type='text'] {
  border-radius: 0;
  width: 80%;
  max-width: 260px;
  margin: 10px 0;
  font-size: 20px;
  border: none;
  border-left: 2px solid #2f6fb3;
  color: #222;
  outline: none;
  padding: 10px 15px;
  background-color: #fff;
  text-align: center;
}

input.customInput[type='text']:focus {
  border-left-color: #7ab7ff;
}

@media screen and (max-width: 768px) {
  .loader-100,
  .alert-container-100 {
    padding: 10px;
  }
  input.customInput[type='text'] {
    width: 90%;
    font-size: 18px;
  }
}
