/* ============================================
   SURVEY POPUP STYLES
   Popup iklan survei kepuasan
   ============================================ */

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

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

/* Popup Container */
.survey-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.survey-popup-overlay.active .survey-popup-container {
    transform: scale(1);
}

/* Image Link */
.survey-popup-image-link {
    display: block;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.survey-popup-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

/* Close Button */
.survey-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(238, 90, 90, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.survey-popup-close:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: scale(1.1) rotate(90deg);
}

.survey-popup-close i {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.survey-popup-close span {
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
}

/* Call to Action Text */
.survey-popup-cta {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff9000, #ff7b00);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 144, 0, 0.4);
    animation: pulse-cta 2s infinite;
}

@keyframes pulse-cta {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .survey-popup-container {
        max-width: 95%;
        padding: 10px;
    }
    
    .survey-popup-image {
        max-height: 60vh;
        border-radius: 12px;
    }
    
    .survey-popup-close {
        top: -10px;
        right: -10px;
        width: 38px;
        height: 38px;
    }
    
    .survey-popup-close span {
        font-size: 22px;
    }
    
    .survey-popup-cta {
        bottom: -45px;
        font-size: 12px;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    .survey-popup-container {
        max-width: 92%;
    }
    
    .survey-popup-image {
        max-height: 50vh;
    }
    
    .survey-popup-close {
        top: -8px;
        right: -8px;
        width: 35px;
        height: 35px;
    }
    
    .survey-popup-close span {
        font-size: 20px;
    }
}
