#cerene-cf7-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#cerene-cf7-popup-overlay.show {
    opacity: 1;
}

#cerene-cf7-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cerene-cf7-popup-overlay.show #cerene-cf7-popup-content {
    transform: scale(1);
}

#cerene-cf7-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    font-family: sans-serif;
}

#cerene-cf7-popup-close:hover {
    color: #333;
}

#cerene-cf7-popup-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #595959;
}

#cerene-cf7-popup-message {
    font-size: 16px;
    color: #545454;
    margin-bottom: 25px;
}

#cerene-cf7-popup-btn {
    background-color: #7066e0;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

/* Success Icon Animation */
.cerene-success-icon {
    width: 80px;
    height: 80px;
    border: 4px solid #a5dc86;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-sizing: content-box;
}

.cerene-success-line-tip {
    width: 25px;
    height: 5px;
    background-color: #a5dc86;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 2;
    top: 46px;
    left: 14px;
    transform: rotate(45deg);
}

.cerene-success-line-long {
    width: 47px;
    height: 5px;
    background-color: #a5dc86;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 2;
    top: 38px;
    right: 8px;
    transform: rotate(-45deg);
}

.cerene-success-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(165, 220, 134, 0.3);
    z-index: 2;
    box-sizing: content-box;
}

.cerene-success-fix {
    position: absolute;
    width: 60px;
    height: 90px;
    background: #fff;
    top: -8px;
    left: 20px;
    transform: rotate(-45deg);
    z-index: 1;
}

/* Error Icon Animation */
.cerene-error-icon {
    width: 80px;
    height: 80px;
    border: 4px solid #f27474;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-sizing: content-box;
    animation: cerene-animate-error-icon 0.5s;
}

.cerene-x-mark {
    display: block;
    position: relative;
    top: 37px;
}

.cerene-x-mark-line-left,
.cerene-x-mark-line-right {
    display: block;
    position: absolute;
    height: 5px;
    width: 47px;
    background-color: #f27474;
    border-radius: 2px;
    top: 0;
    left: 17px;
}

.cerene-x-mark-line-left {
    transform: rotate(45deg);
}

.cerene-x-mark-line-right {
    transform: rotate(-45deg);
}

@keyframes cerene-animate-error-icon {
    0% {
        transform: rotateX(100deg);
        opacity: 0;
    }

    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* Specific button colors for states */
#cerene-cf7-popup-content.success #cerene-cf7-popup-btn {
    background-color: #a5dc86;
}

#cerene-cf7-popup-content.error #cerene-cf7-popup-btn {
    background-color: #dd3333;
}