/**
 * Frontend Popup Styles
 * Modern, responsive popup design with animations
 */

/* Overlay - Full screen dark background */
.vec-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: vecFadeIn 0.3s ease-in-out;
}

/* Popup Container */
.vec-popup-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    position: relative;
    padding: 40px 30px;
    animation: vecSlideUp 0.3s ease-out;
}

/* Close Button */
.vec-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.vec-popup-close:hover {
    color: #333;
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* Popup Content */
.vec-popup-content {
    text-align: center;
}

.vec-popup-title {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.vec-popup-description {
    margin: 0 0 25px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Form Styling */
.vec-email-form {
    margin-top: 25px;
}

.vec-form-group {
    margin-bottom: 20px;
}

/* Email Input */
.vec-email-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.vec-email-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.vec-email-input::placeholder {
    color: #999;
}

/* Checkbox Group */
.vec-checkbox-group {
    text-align: left;
    margin-bottom: 20px;
}

.vec-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.vec-consent-checkbox {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.vec-checkbox-label a {
    color: #0073aa;
    text-decoration: underline;
}

.vec-checkbox-label a:hover {
    color: #005177;
}

/* Submit Button */
.vec-submit-btn {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #0073aa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vec-submit-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.vec-submit-btn:active {
    transform: translateY(0);
}

.vec-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.vec-btn-loading {
    display: none;
}

/* Message Box */
.vec-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    animation: vecFadeIn 0.3s ease-in-out;
}

.vec-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vec-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes vecFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes vecSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .vec-popup-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .vec-popup-title {
        font-size: 24px;
    }
    
    .vec-popup-description {
        font-size: 14px;
    }
    
    .vec-email-input,
    .vec-submit-btn {
        font-size: 15px;
        padding: 12px 16px;
    }
}

@media screen and (max-width: 480px) {
    .vec-popup-container {
        padding: 25px 15px;
    }
    
    .vec-popup-title {
        font-size: 22px;
    }
    
    .vec-checkbox-label {
        font-size: 13px;
    }
}

/* Loading State Animation */
.vec-submit-btn:disabled .vec-btn-loading {
    display: inline-block;
    animation: vecPulse 1.5s ease-in-out infinite;
}

@keyframes vecPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}