/* Custom Popup Styles */
.custompopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: custompopup-fadein 0.3s ease;
}

@keyframes custompopup-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.custompopup-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: custompopup-slidein 0.3s ease;
}

@keyframes custompopup-slidein {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.custompopup-header {
    padding: 20px 50px 20px 25px;
    border-bottom: 1px solid #eee;
}

.custompopup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.custompopup-body {
    padding: 25px;
    color: #555;
    line-height: 1.6;
}

.custompopup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    z-index: 1;
}

.custompopup-close:hover {
    color: #333;
}

@media (max-width: 576px) {
    .custompopup-box {
        width: 95%;
        max-height: 90vh;
    }
    .custompopup-body {
        padding: 18px;
    }
}
