      /* Full-screen overlay */
#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner style */
.loader {
    border: 8px solid #f3f3f3;  /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   Global Responsive CAPTCHA Component
========================================= */

.captcha-component {
    width: 100%;
    max-width: 100% !important;
}

/* CAPTCHA label */

.captcha-component .form-label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Default: Mobile and Tablet */

.captcha-component .captcha-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

/* CAPTCHA image and refresh button */

.captcha-component .captcha-image-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    max-width: 100%;
}

/* CAPTCHA image */

.captcha-component .captcha-image {
    display: block;
    width: 180px;
    max-width: calc(100% - 53px);
    height: 55px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid #d4dce7;
    border-radius: 8px;
}

/* Refresh button */

.captcha-component .captcha-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    min-width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.captcha-component .captcha-refresh-btn:hover {
    background-color: #28558b;
    border-color: #28558b;
    color: #ffffff;
}

/* CAPTCHA input wrapper */

.captcha-component .captcha-input-group {
    flex: 1;
    width: 100%;
    min-width: 0;
}

/* CAPTCHA input */

.captcha-component .captcha-input {
    width: 100%;
    min-height: 45px;
    height: 45px;
    padding: 10px 14px;
    margin: 0 !important;
    border: 1px solid #d4dce7;
    border-radius: 8px;
    background-color: #ffffff;
    color: #263449;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: none;
}

.captcha-component .captcha-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.captcha-component .captcha-input:focus {
    border-color: #28558b;
    box-shadow: 0 0 0 3px rgba(40, 85, 139, 0.10);
}

/* =========================================
   Large Screen: All elements in same row
========================================= */

@media (min-width: 992px) {

    .captcha-component .captcha-layout {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .captcha-component .captcha-input-group {
        flex: 1;
        width: auto;
        min-width: 0;
        max-width: 320px;
    }
}

/* =========================================
   Small Mobile Screen
========================================= */

@media (max-width: 575.98px) {

    .captcha-component .captcha-layout {
        gap: 10px;
    }

    .captcha-component .captcha-input-group {
        width: 100%;
        max-width: 100%;
    }

    .captcha-component .captcha-input {
        font-size: 16px;
    }
}