.fullscreen-container-ugc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9999;

    display: flex;              /* important */
    justify-content: center;    /* horizontal center */
    align-items: center;        /* vertical center */
    padding: 10px;
    box-sizing: border-box;
}

/* Popup container */
.form-popup-ugc {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    padding: 20px;   /* Add padding inside popup */
    text-align: center;
    box-sizing: border-box;
}

/* Scrollable content */
.block-notice {
    flex: 1;
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    text-align: center;
    box-sizing: border-box;
    align-content: center;
}

/* Warning icon */
.warning-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #ffe28c;
    color: #cc9000;
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Headings */
.block-notice h2 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

/* Paragraph */
.block-notice p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Buttons */
.ok-btn {
    margin: 15px auto 5px auto;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;

    width: auto;
    min-width: 90px;    /* Reduced */
    max-width: 160px;
    font-size: 14px;
}

.ok-btn:hover {
    background: #c0392b;
}

/* Link */
.results-link {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}

.results-link:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
    .form-popup-ugc {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .block-notice {
        padding: 15px;
    }

    .ok-btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .block-notice h2 {
        font-size: 16px;
    }

    .block-notice p {
        font-size: 13px;
    }
}


.ok-btn-block {
    margin: 15px auto 5px auto;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;

    width: auto;
    min-width: 90px;    /* Reduced */
    max-width: 800px;
    font-size: 14px;
}

.ok-btn-block:hover {
    background: #c0392b;
}


/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

/* Fullscreen overlay */
.fullscreen-container-block-ugc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

/* Popup box */
.results-popup-box {
    width: 1050px;
    max-width: 1050px;
    height: 800px;
    max-height: 750px;
    border-radius: 14px;
    margin-left: -40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

/* Scrollable content */
.results-popup-content {
    padding: 20px;
    flex: 1;           /* take remaining space */
    overflow-y: auto;  /* scroll if content is too tall */
}

/* Close button */
.close-results-btn {
    background: #e74c3c;
    color: #fff;
    padding: 12px 0;
    margin: 15px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    width: 650px;
    margin-top: 10px;
    transition: background 0.2s;
}

.close-results-btn:hover {
    background: #c0392b;
}

.container-block-ugc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.form-popup-ugc-02 {
    width: 850px;
    /*max-width: 900px;*/
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    padding: 20px;   /* Add padding inside popup */
    text-align: center;
    box-sizing: border-box;
}

/*//////////////////////////////////////////////////////////////////////*/

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* Loader wrapper */
.rotate-dots-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

/* Each dot */
.rotate-dots-loader div {
    width: 14px;
    height: 14px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -7px 0 0 -7px; /* center the dot by its own size */
    transform-origin: 30px 0; /* distance from center */
    animation: spin 2s linear infinite;
}

/* Stagger animation for 8 dots evenly */
.rotate-dots-loader div:nth-child(1) { animation-delay: 0s; }
.rotate-dots-loader div:nth-child(2) { animation-delay: 0.25s; }
.rotate-dots-loader div:nth-child(3) { animation-delay: 0.5s; }
.rotate-dots-loader div:nth-child(4) { animation-delay: 0.75s; }
.rotate-dots-loader div:nth-child(5) { animation-delay: 1s; }
.rotate-dots-loader div:nth-child(6) { animation-delay: 1.25s; }
.rotate-dots-loader div:nth-child(7) { animation-delay: 1.5s; }
.rotate-dots-loader div:nth-child(8) { animation-delay: 1.75s; }

/* Dot rotation animation */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}