/* Email Download Popup Styles */

/* Container */
.edp-container {
    padding: 25px 30px;
    border-radius: 0;
    max-width: 100%;
    margin: 0 auto;
}

/* Form */
.edp-form {
    margin: 0;
    padding: 0;
}

.edp-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* Email Input */
.edp-email-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    background-color: #ffffff;
    color: #333;
    min-width: 0;
}

.edp-email-input::placeholder {
    color: #9ca3af;
}

.edp-email-input:focus {
    outline: none;
    box-shadow: none;
}

/* Submit Button */
.edp-submit-btn {
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edp-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.edp-submit-btn:active {
    transform: translateY(0);
}

/* Popup Overlay */
.edp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
}

.edp-popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Popup Content */
.edp-popup-content {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

/* Close Button */
.edp-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.edp-popup-close:hover {
    color: #374151;
}

/* Popup Icon */
.edp-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #22c55e;
}

.edp-popup-icon svg {
    width: 100%;
    height: 100%;
}

/* Popup Title */
.edp-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
}

/* Popup Message */
.edp-popup-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.edp-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.edp-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .edp-container {
        padding: 20px 15px;
    }
    
    .edp-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .edp-email-input {
        border-radius: 30px;
        text-align: center;
    }
    
    .edp-submit-btn {
        border-radius: 30px;
        padding: 15px 25px;
    }
    
    .edp-popup-content {
        padding: 30px 25px;
    }
    
    .edp-popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .edp-popup-title {
        font-size: 24px;
    }
    
    .edp-popup-message {
        font-size: 14px;
    }
}
