.wpforms-popup-trigger {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wpforms-popup-trigger:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.wpforms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    /* Default hidden, jQuery will toggle this */
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.wpforms-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wpforms-popup-overlay.active .wpforms-popup-content {
    transform: scale(1);
}

.wpforms-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.wpforms-popup-close:hover {
    color: #ff0000;
}

#wpforms-popup-form-container {
    max-height: 80vh;
    overflow-y: auto;
}

/* Scrollbar for container */
#wpforms-popup-form-container::-webkit-scrollbar {
    width: 8px;
}

#wpforms-popup-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#wpforms-popup-form-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.wpforms-popup-loader {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 18px;
}

.wpforms-popup-loader span::after {
    content: '...';
    display: inline-block;
    width: 20px;
    text-align: left;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

.wpforms-popup-error {
    padding: 30px;
    text-align: center;
    color: #d9534f;
}

.wpforms-popup-error h3 {
    margin-bottom: 15px;
    color: #333;
}