/**
 * Contact Form 7 Popup Styles
 * Beautiful and responsive thank you popup styling
 */

/* Popup Overlay */
.cf7-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cf7-popup-overlay.cf7-popup-show {
    opacity: 1;
}

.cf7-popup-overlay.cf7-popup-hide {
    opacity: 0;
}

/* Popup Container */
.cf7-popup-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    transform: scale(0.8) translateY(-30px);
    transition: transform 0.3s ease;
}

.cf7-popup-show .cf7-popup-container {
    transform: scale(1) translateY(0);
}

.cf7-popup-hide .cf7-popup-container {
    transform: scale(0.8) translateY(-30px);
}

/* Popup Content */
.cf7-popup-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

/* Close Button */
.cf7-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.cf7-popup-close:hover {
    color: #333;
}

/* Success Icon */
.cf7-popup-icon {
    margin-bottom: 20px;
}

.cf7-popup-icon svg {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: block;
}

/* Title */
.cf7-popup-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* Message */
.cf7-popup-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cf7-popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .cf7-popup-content {
        padding: 30px 20px;
    }
    
    .cf7-popup-title {
        font-size: 24px;
    }
    
    .cf7-popup-message {
        font-size: 15px;
    }
    
    .cf7-popup-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .cf7-popup-content {
        padding: 25px 15px;
    }
    
    .cf7-popup-title {
        font-size: 22px;
    }
    
    .cf7-popup-close {
        top: 10px;
        right: 15px;
        font-size: 20px;
    }
}

/* Animation for different themes */
.cf7-popup-overlay.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Success color variations */
.cf7-popup-success .cf7-popup-icon svg {
    stroke: #4CAF50;
}

.cf7-popup-info .cf7-popup-icon svg {
    stroke: #2196F3;
}

.cf7-popup-warning .cf7-popup-icon svg {
    stroke: #FF9800;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cf7-popup-container {
        background: #2c2c2c;
        color: #fff;
    }
    
    .cf7-popup-title {
        color: #fff;
    }
    
    .cf7-popup-message {
        color: #ccc;
    }
    
    .cf7-popup-close {
        color: #ccc;
    }
    
    .cf7-popup-close:hover {
        color: #fff;
    }
}
