/* ===========================================
   EZY WEB PRO - EMAIL POPUP SYSTEM
   =========================================== */

/* Popup Overlay */
.ezy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

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

/* Popup Container */
.ezy-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ezy-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Header */
.ezy-popup-header {
    background: linear-gradient(135deg, #1A5653 0%, #143f3d 100%);
    color: #fff;
    padding: 32px 32px 28px;
    text-align: center;
    position: relative;
}

.ezy-popup-header.gold {
    background: linear-gradient(135deg, #D4A818 0%, #b8920e 100%);
}

.ezy-popup-header.blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.ezy-popup-header.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.ezy-popup-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.ezy-popup-header h3 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ezy-popup-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

/* Close Button */
.ezy-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ezy-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Popup Body */
.ezy-popup-body {
    padding: 28px 32px 32px;
}

/* Benefits List */
.ezy-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.ezy-popup-benefits li {
    padding: 8px 0;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ezy-popup-benefits li::before {
    content: "✓";
    color: #1A5653;
    font-weight: 700;
    flex-shrink: 0;
}

/* Form */
.ezy-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ezy-popup-form input[type="text"],
.ezy-popup-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ezy-popup-form input:focus {
    outline: none;
    border-color: #1A5653;
}

.ezy-popup-form button {
    width: 100%;
    padding: 16px;
    background: #1A5653;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ezy-popup-form button:hover {
    background: #143f3d;
    transform: translateY(-2px);
}

.ezy-popup-form button.gold {
    background: #D4A818;
    color: #1a1a2e;
}

.ezy-popup-form button.gold:hover {
    background: #c49a0e;
}

/* Footer Note */
.ezy-popup-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #718096;
}

.ezy-popup-footer a {
    color: #1A5653;
}

/* Success State */
.ezy-popup-success {
    text-align: center;
    padding: 20px 0;
}

.ezy-popup-success .icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.ezy-popup-success h4 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    color: #1a1a2e;
}

.ezy-popup-success p {
    color: #718096;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 500px) {
    .ezy-popup {
        width: 95%;
        max-width: none;
    }
    
    .ezy-popup-header {
        padding: 24px 20px 20px;
    }
    
    .ezy-popup-header h3 {
        font-size: 1.25rem;
    }
    
    .ezy-popup-body {
        padding: 20px;
    }
    
    .ezy-popup-icon {
        font-size: 2.5rem;
    }
}
