/* ============================================================ */
/*                    MODAL POPUP STYLES                         */
/* ============================================================ */
.sr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sr-fade-in 0.3s ease;
}

.sr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.sr-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: transparent; /* Let .sr-container handle background */
    border-radius: 0; /* Let .sr-container handle border-radius */
    box-shadow: none; /* Let .sr-container handle shadow */
    animation: sr-slide-up 0.3s ease;
    z-index: 1;
}

.sr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.sr-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

.sr-modal-content {
    /* Remove any padding/margins - let .sr-container handle it */
}

/* Make the container inside modal look exactly like the standalone version */
.sr-modal-content .sr-container {
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 16px;
    background: #fff;
    padding: 35px 30px;
    position: relative;
}

/* Hide any duplicate elements that might appear */
.sr-modal-content .sr-modal-close {
    display: none;
}

/* Animations */
@keyframes sr-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sr-slide-up {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .sr-modal-container {
        max-width: 95%;
        margin: 0 10px;
    }
    
    .sr-modal-content .sr-container {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .sr-modal-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Prevent body scroll when modal is open */
body.sr-modal-open {
    overflow: hidden;
}