/* modal */
.modal {
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-background-color);
}

.modal-open {
    overflow: hidden;
}

.modal .modal-dialog {
    position: relative;
    margin: 30px auto 10px;
    max-width: 540px;
    padding: 0 15px;
    width: auto;
}

.modal-dialog .modal-content {
    background-color: var(--modal-content-background-color);
    padding: 28px 30px 18px 30px;
    line-height: 1.42;
    background-clip: padding-box;
    border: 1px solid var(--button-dropshadow);
    border-radius: 6px;
    outline: 0;
    box-shadow: 0 3px 9px rgb(0, 0, 0 / 50%);
}

/* first content screen */
.modal-landing-content .modal-icon {
    display: block;
    margin: 0 auto 10px;
}

.modal-landing-content .modal-header {
    padding: 0;
    border-bottom: none;
    margin-bottom: 9px;
    text-align: center;
}

.modal-landing-content .modal-header .text-uppercase {
    text-transform: uppercase;
}

.modal-landing-content p {
    margin-bottom: 15px;
    color: var(--body-text-color);
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.428;
    margin: 0 0 10px;
}

.modal-landing-content ul {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.428;
    color: var(--body-text-color);
    margin-top: 0;
    margin-bottom: 10px;
    padding-inline-start: 40px;
}

.modal-landing-content p.agreement {
    font-size: 13px;
    text-align: left;
    margin-bottom: 15px;
}

.modal-landing-content .text-center {
    text-align: center;
}

.modal-landing-content .text-center .btn-modal {
    min-width: 187px;
    margin-top: 6px;
    margin-bottom: 10px;
}

/* second content screen */
.modal #establishing {
    display: none;
}

#establish-hot-corner {
    top: 5px;
    right: 5px;
    height: 20px;
    width: 20px;
}

.establish-first {
    padding-top: 15px;
    text-align: center;
}

.establish-first .uil-ripple {
    position: absolute;
    left: calc(50% - 50px);
    top: 0;
    opacity: 0.5;
    z-index: 2;
    overflow: hidden;
}

#establishing .establish-first img {
    position: absolute;
    left: calc(50% - 40px);
    top: 12px;
    opacity: 0.6;
    z-index: 3;
    vertical-align: middle;
}

#establishing .establish-first h3 {
    margin-top: 42px;
    z-index: 3;
    font-size: 24px;
    margin-bottom: 36px;
    font-weight: 600;
}

.establish-steps .step {
    color: var(--modal-step-text-color);
    overflow: auto;
    margin-bottom: 16px;
    -webkit-animation: threadskeleton 3s ease-in-out forwards;
    animation: threadskeleton 3s ease-in-out forwards;
    opacity: 0;
    padding-left: 44px;
    position: relative;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
    padding-top: 4px;
}

.step ~ .step {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}
.step ~ .step ~ .step {
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.establish-steps .step.loading {
    color: var(--modal-step-loading-color);
}

.step.loading .loader {
    opacity: 1;
    left: 12px;
    top: 10px;
    width: 0.15em;
    height: 0.15em;
    position: absolute;
}

.step.loading .loader div {
    position: relative;
    width: 0.3em;
    height: 0.3em;
    border-radius: 100%;
    -webkit-animation: loader-1 30s infinite linear;
    animation: loader-1 30s infinite linear;
}
.step.loading .loader div::before {
    content: "";
    color: var(--modal-step-bullet-color);
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.8em;
    height: 1.6em;
    -webkit-animation: loader-2 1.4s linear infinite;
    animation: loader-2 1.4s linear infinite;
}
.step.loading .loader div::after {
    color: var(--modal-step-bullet-color);
    content: "";
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.6em;
    height: 0.8em;
    -webkit-animation: loader-2 1.8s linear infinite;
    animation: loader-2 1.8s linear infinite;
}

.establish-steps .step.finished {
    color: var(--body-text-color);
}

.step.finished:before {
    content: "";
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    position: absolute;
    background-image: url(/assets/people/responsive/images/ok.png);
    background-size: 26px;
    background-repeat: no-repeat;
    z-index: 600;
}

.establish-steps .step.out-animation {
    opacity: 1;
    animation: outskeleton 1s ease-out forwards;
    -webkit-animation: outskeleton 1s ease-out forwards;
}

.establish-steps h4 {
    font-size: 18px;
}

.establish-steps .done-text {
    opacity: 0;
    text-transform: uppercase;
    text-align: center;
    margin-left: -44px;
    margin-top: 12px;
    letter-spacing: 0.8px;
    font-weight: 900;
}

.establish-steps .done-text.in {
    opacity: 1;
}

#establishing .ready {
    position: absolute;
    display: none;
    top: 235px;
    width: 80%;
    left: 10%;
    text-align: center;
}

#establishing .ready h4 {
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 600;
}

/* animations */
@keyframes loader-1 {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes loader-2 {
    0% {
        box-shadow: 0.08em -0.08em 0 0.06em currentcolor;
    }
    25% {
        box-shadow: 0.08em 0.08em 0 0.06em currentcolor;
    }
    50% {
        box-shadow: -0.08em 0.08em 0 0.06em currentcolor;
    }
    75% {
        box-shadow: -0.08em -0.08em 0 0.06em currentcolor;
    }
    100% {
        box-shadow: 0.08em -0.08em 0 0.06em currentcolor;
    }
}

@keyframes threadskeleton {
    0%,
    20% {
        opacity: 0;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    40%,
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes outskeleton {
    0%,
    20% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40%,
    100% {
        opacity: 0;
        -webkit-transform: scale(0.6) translateY(0);
        transform: scale(0.6) translateY(0);
    }
}
@-webkit-keyframes threadskeleton {
    0%,
    20% {
        opacity: 0;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    40%,
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@-webkit-keyframes outskeleton {
    0%,
    20% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40%,
    100% {
        opacity: 0;
        -webkit-transform: scale(0.6) translateY(0);
        transform: scale(0.6) translateY(0);
    }
}
