/* Popup Overlay */
.wpe-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* Modern blur effect */
    transition: all 0.3s ease-in-out;
}

/* Popup Content Box */
.wpe-popup-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: wpeFadeIn 0.4s ease-out;
}

/* Close Button */
.wpe-close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.wpe-close-popup:hover {
    color: #333;
}

/* Success Message Styling */
.wpe-success-msg {
    display: none;
    text-align: center;
    padding: 30px 0;
}

.wpe-success-msg p {
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
}

/* Form Styling Adjustments */
.wpe-form-wrapper h3 {
    margin-top: 0;
    font-size: 22px;
    color: #222;
}

.wpe-form-wrapper hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Animation */
@keyframes wpeFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wpe-popup-overlay.active {
    display: flex;
}