/**
 * Premium Success Popup Styles
 * Luxury gamification popup for successful form submissions
 */

/* Overlay */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.success-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.success-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-popup-overlay.active .success-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Success Icon */
.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    position: relative;
}

.success-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.4);
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon-checkmark {
    font-size: 35px;
    color: #ffffff;
    animation: checkmarkPop 0.6s ease 0.3s both;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: confettiFall 3s ease-out forwards;
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #151958;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Heading */
.success-popup h2 {
    font-size: 22px;
    font-weight: 700;
    color: #151958;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Message */
.success-popup p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.success-highlight {
    color: #28a745;
    font-weight: 600;
}

/* Features List */
.success-features {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    text-align: left;
}

.success-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #333;
}

.success-feature-item:last-child {
    margin-bottom: 0;
}

.success-feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.success-feature-icon i {
    font-size: 10px;
    color: #ffffff;
}

/* Close Button */
.success-close-btn {
    background: linear-gradient(135deg, #151958 0%, #0a0d2e 100%);
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(21, 25, 88, 0.3);
    margin-top: 5px;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 25, 88, 0.4);
}

/* Animations */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(40, 167, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(40, 167, 69, 0.6);
    }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1366px) {
    .success-popup {
        max-width: 460px;
        padding: 18px 25px;
    }

    .success-popup h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .success-popup p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .success-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 10px;
    }

    .success-icon-circle {
        width: 65px;
        height: 65px;
    }

    .success-icon-checkmark {
        font-size: 32px;
    }

    .success-features {
        padding: 10px;
        margin: 10px 0;
    }

    .success-feature-item {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .success-feature-icon {
        width: 18px;
        height: 18px;
        margin-right: 7px;
    }

    .success-feature-icon i {
        font-size: 9px;
    }

    .success-close-btn {
        padding: 9px 28px;
        font-size: 13px;
        margin-top: 4px;
    }

    .premium-badge {
        font-size: 9px;
        padding: 4px 12px;
        margin-bottom: 8px;
    }
}

@media (max-width: 767px) {
    .success-popup {
        padding: 18px 22px;
        max-width: 95%;
    }

    .success-popup h2 {
        font-size: 19px;
        margin-bottom: 6px;
    }

    .success-popup p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .success-icon-circle {
        width: 60px;
        height: 60px;
    }

    .success-icon-checkmark {
        font-size: 30px;
    }

    .success-features {
        padding: 10px;
        margin: 10px 0;
    }

    .success-feature-item {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .success-feature-icon {
        width: 18px;
        height: 18px;
        margin-right: 7px;
    }

    .success-feature-icon i {
        font-size: 9px;
    }

    .success-close-btn {
        padding: 9px 25px;
        font-size: 13px;
        margin-top: 4px;
    }

    .premium-badge {
        font-size: 9px;
        padding: 4px 12px;
        margin-bottom: 8px;
    }
}


