/*
 * Scoped styles for the translator passport/diploma background-checks popup.
 *
 * These rules are copied verbatim from wizard-style.css so the exact same
 * upload popup can be shown on the PUBLIC translator signup form
 * (translators-contact-tpl.php) without loading the whole wizard-style.css,
 * which restyles body / a / input / textarea globally and would break the
 * signup form's look.
 *
 * If the popup styling in wizard-style.css changes, mirror the change here.
 */

/* ---- close button ---- */

.popup-close {
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 20px;
    color: #FFF;
    font-size: 24px;
    cursor: pointer;
}

/* ---- upload UI (existing files, previews, buttons) ---- */

.popup-upload-doc-title {
    padding: 7px 0px 7px 30px;
    background-color: #ebebeb;
    font-weight: bold;
    margin: 10px 0px;
}

.popup-upload-val {
    font-weight: bold;
}

.popup-upload-bottom-cont {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px 0px;
}

.popup-upload-button {
    padding: 10px 20px;
    min-width: 120px;
    background-color: #454545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
}

.popup-upload-button-cancel {
    margin-right: 20px;
}

.popup-upload-button-save {
    margin-left: 20px;
}

.popup-upload-button-cancel .fa-times {
    color: #f44343;
    font-size: 24px;
}

.popup-upload-button .fa-print {
    color: #FFF;
    font-size: 24px;
}

.popup-upload-button-save .fa-save {
    color: #FFF;
    font-size: 24px;
}

.popup-upload-button-text {
    text-transform: uppercase;
    color: #FFF;
    margin-left: 10px;
}

.popup-upload-doc-cont img {
    width: 18px;
}

.popup-upload-existing-file-row {
    margin-top: 20px;
    padding: 7px 10px 7px 10px;
    margin: 20px 20px 0px 20px;
    display: flex;
    align-items: center;
    border: 1px dashed;
}

.popup-upload-existing-file-inner-cont {
    margin-left: 10px;
}

.popup-upload-existing-file-inner-cont:first-child {
    margin-left: 0px;
}

.popup-upload-existing-file-inner-value {
    font-weight: bold;
}

.popup-upload-existing-file-name-cont, .popup-existing-file-download {
    margin-left: 10px;
    margin-right: 10px;
}

.popup-upload-existing-file-name-cont {
    width: 100%;
    overflow: hidden;
}

.popup-existing-file-download, .popup-existing-file-remove, .popup-existing-file-view, .popup-existing-file-ai-trans, .popup-existing-file-ai-proof {
    padding: 7px 10px;
    background-color: #454545;
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
}

.popup-upload-new-file-row {
    margin-top: 20px;
    padding: 7px 10 7px 10px;
}

.popup-upload-new-file-cont {
    width: 150px;
    position: relative;
}

.popup-upload-new-file-button {
    padding: 7px 10px;
    min-width: 120px;
    background-color: #454545;
    display: flex;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
    color: #FFF;
    justify-content: center;
    align-items: center;
}

.popup-upload-new-file-button-name {
    margin-left: 10px;
}

.popup-upload-new-file-cont input {
    width: 100%;
    height: 40px;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 0px;
}

.popup-upload-new-file-previews {
    padding: 10px;
    border: 1px dashed #1989d3;
    margin-bottom: 10px;
    margin-right: 10px;

    display: none;
}

.popup-upload-preview-file-row {
    margin-top: 10px;
    padding: 0px;
    display: flex;
    align-items: center;
}

.popup-upload-preview-file-name-cont, .popup-preview-file-download {
    margin-right: 20px;
}

.popup-preview-file-remove {
    padding: 7px 20px;
    background-color: #454545;
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
}

/* ---- upload progress bar ---- */

.popup-upload-progress-cont {
    margin: 20px;
    display: none;
}

.progress-bar {
    color: #fff;
    background-color: #4CAF50;
    padding: 8px 16px;
    width: 0%;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* ---- section title used inside the rendered backcheck form ---- */

.popup-select-translator-payment-title-row {
    padding: 7px 0px 7px 30px;
    background-color: #ebebeb;
    font-weight: bold;
    margin: 10px 0px;
    border-bottom: 1px solid #EEE;
}

/* ---- backchecks popup shell ---- */

.translator-backchecks-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    z-index: 5555;
    display: none;
}

#translator-backchecksPopUp {

    z-index: 90;
    overflow: hidden;
    position: fixed;
    width: 580px;
    height: auto;
    z-index: 999999;
    overflow: visible;
    border-radius: 5px;
    padding: 0px;
    background-color: transparent;
    display: none;
    left: 0px;
    right: 0px;
    top: 20px;
    margin: auto;
    box-shadow: -1px 2px 11px 10px #000;
}

@media (min-width: 600px) and (max-width: 991px) {

    #translator-backchecksPopUp {
        left: 0px;
        right: 0px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 599px) {

    #translator-backchecksPopUp {
        left: 0px;
        right: 0px;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }
}

.popup-translator-backchecks-title-cont {
    padding: 20px 40px 20px 20px;
    color: #FFF;
    font-size: 16px;
    background-color: #1989d3;
    border-radius: 5px 5px 0px 0px;
}

.popup-translator-backchecks-inner-cont {
    padding: 10px 0px;
    background-color: #FFF;

}

.popup-translator-backchecks-main-cont {
    font-size: 15px;
    background-color: #FFF;
    padding: 10px 0px;
    height: 540px;
    overflow: auto;
}

@media (max-height: 949px) {
   .popup-translator-backchecks-main-cont {
        height: 50vh;
    }
}

@media (max-height: 499px) {
   .popup-translator-backchecks-main-cont {
         height: 45vh;
    }
}

@media (max-height: 399px) {
   .popup-translator-backchecks-main-cont {
         height: 120px;
    }
}

.popup-translator-backchecks-bottom-cont {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px 0px;
}

.popup-translator-backchecks-button {
    padding: 10px 20px;
    min-width: 120px;
    background-color: #454545;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
}

.popup-translator-backchecks-button-cancel .fa-times {
    color: #f44343;
    font-size: 24px;
}

.popup-translator-backchecks-button-save .fa-save {
    color: #FFF;
    font-size: 24px;
}

.popup-translator-backchecks-button-text {
    text-transform: uppercase;
    color: #FFF;
}

.popup-translator-backchecks-title-row {
    padding: 7px 0px 7px 30px;
    background-color: #ebebeb;
    font-weight: bold;
    margin: 10px 0px;
    border-bottom: 1px solid #EEE;
}

.popup-translator-backchecks-sub-cont {
    padding: 20px;
}

/* ---- "Upload Passport and diploma" trigger button on the signup form ---- */

.asign-upload-button-cont {
    margin: 25px 0px;
}

.asign-upload-button-desc {
    margin-bottom: 12px;
    line-height: 1.5;
}

.update-translators-background-checks {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1989d3;
    color: #FFF;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

.update-translators-background-checks:hover {
    color: #FFF;
    opacity: 0.9;
}

/* ---- full-screen loading overlay (shown during AI passport analysis) ---- */

.payment-loading-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    z-index: 5555555555;
    display: none;

    align-items: center;
    justify-content: center;
}

.payment-loading-overlay-text {
    font-size: 50px;
    color: #FFF;
    font-weight: bold;
    position: relative;
}

.dots-cont {
    position: relative;
    margin-top: 30px;
    margin-left: 20px;
}

@media (max-width: 767px) {

    .payment-loading-overlay-text {
        font-size: 20px;
    }

    .dots-cont {
        margin-top: 10px;
    }

}

.dot-pulse {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #FFF;
  color: #FFF;
  box-shadow: 9999px 0 0 -5px #FFF;
  animation: dotPulse 1.5s infinite linear;
  animation-delay: .25s;
}

.dot-pulse::before, .dot-pulse::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #FFF;
  color: #FFF;
}

.dot-pulse::before {
  box-shadow: 9984px 0 0 -5px #FFF;
  animation: dotPulseBefore 1.5s infinite linear;
  animation-delay: 0s;
}

.dot-pulse::after {
  box-shadow: 10014px 0 0 -5px #FFF;
  animation: dotPulseAfter 1.5s infinite linear;
  animation-delay: .5s;
}

@keyframes dotPulseBefore {
  0% {
    box-shadow: 9984px 0 0 -5px #FFF;
  }
  30% {
    box-shadow: 9984px 0 0 2px #FFF;
  }
  60%,
  100% {
    box-shadow: 9984px 0 0 -5px #FFF;
  }
}

@keyframes dotPulse {
  0% {
    box-shadow: 9999px 0 0 -5px #FFF;
  }
  30% {
    box-shadow: 9999px 0 0 2px #FFF;
  }
  60%,
  100% {
    box-shadow: 9999px 0 0 -5px #FFF;
  }
}

@keyframes dotPulseAfter {
  0% {
    box-shadow: 10014px 0 0 -5px #FFF;
  }
  30% {
    box-shadow: 10014px 0 0 2px #FFF;
  }
  60%,
  100% {
    box-shadow: 10014px 0 0 -5px #FFF;
  }
}
