﻿/* =========================================
   HIDE OLD GIF
========================================= */

.processimg {
    display: none !important;
}


/* =========================================
   LOADING OVERLAY
========================================= */

#loading-div-background {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 30, 61, 0.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
}


    /* 
   Existing JS may use .show(), which sets
   display:block. Force flex when visible.
*/

    #loading-div-background[style*="display: block"] {
        display: flex !important;
    }

    #loading-div-background[style*="display:flex"] {
        display: flex !important;
    }


/* =========================================
   LOADER CARD
========================================= */

#loading-div {
    width: 330px;
    max-width: calc(100% - 40px);
    padding: 35px 30px 30px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30), 0 8px 30px rgba(19, 89, 165, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: loaderCardIn 0.35s ease-out;
}


    /* =========================================
   GOLD ACCENT
========================================= */

    #loading-div::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 65px;
        height: 4px;
        transform: translateX(-50%);
        background: #f5bd22;
        border-radius: 0 0 8px 8px;
    }


@keyframes loaderCardIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================
   MODERN CIRCLE LOADER
========================================= */

.process-loader {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 6px solid #e8eef7;
    border-top-color: #1959a5;
    border-right-color: #1959a5;
    animation: portalSpin 0.9s linear infinite;
    position: relative;
    box-shadow: 0 8px 25px rgba(25, 89, 165, 0.20);
}


    /* Inner white circle */

    .process-loader::after {
        content: "";
        position: absolute;
        width: 44px;
        height: 44px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 0 5px #f1f5fa;
    }

.loader-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1959a5;
    animation: loaderIconCounterSpin 0.9s linear infinite;
}

    .loader-center-icon svg {
        width: 24px;
        height: 24px;
    }

@keyframes portalSpin {

    to {
        transform: rotate(360deg);
    }
}
@keyframes loaderIconCounterSpin {
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* =========================================
   TEXT AREA
========================================= */

.loader-content {
    text-align: center;
    margin-top: 4px;
}


.textspan {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #174f91;
    letter-spacing: 0.2px;
}


.loading-subtext {
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 480px) {

    #loading-div {
        width: 290px;
        padding: 32px 22px 27px;
        border-radius: 20px;
    }

    .process-loader {
        width: 68px;
        height: 68px;
    }

    .textspan {
        font-size: 16px;
    }

    .loading-subtext {
        font-size: 12px;
    }
}
