/* Email Capture Popup Styles */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.email-popup {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(76, 175, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    animation: popupSlideIn 0.4s ease forwards;
}

@keyframes popupSlideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.email-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.email-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.email-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.email-popup h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.email-popup h2 span {
    color: #4CAF50;
}

.email-popup-subtitle {
    color: #888;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Comparison Display */
.email-popup-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.email-popup-compare-item {
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
}

.email-popup-compare-item.old {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.6;
}

.email-popup-compare-item.old .value {
    text-decoration: line-through;
    color: #888;
}

.email-popup-compare-item.new {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.email-popup-compare-item .label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.email-popup-compare-item .value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.email-popup-compare-item.new .value {
    color: #4CAF50;
}

.email-popup-compare-arrow {
    color: #4CAF50;
    font-size: 24px;
    font-weight: bold;
}

/* Savings Display */
.email-popup-savings {
    color: #4CAF50;
    font-size: 14px;
    margin-bottom: 20px;
}

.email-popup-savings strong {
    font-size: 16px;
}

.email-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-popup-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.email-popup-input:focus {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.1);
}

.email-popup-input::placeholder {
    color: #666;
}

.email-popup-submit {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.email-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.email-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.email-popup-terms {
    color: #555;
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

.email-popup-terms a {
    color: #4CAF50;
    text-decoration: none;
}

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

.email-popup-success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.email-popup-success h3 {
    color: #4CAF50;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.email-popup-success p {
    color: #888;
    margin-bottom: 20px;
}

.email-popup-code {
    background: rgba(76, 175, 80, 0.15);
    border: 2px dashed #4CAF50;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.email-popup-code-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.email-popup-code-value {
    color: #4CAF50;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 3px;
}

.email-popup-cta {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.email-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

/* Mobile Responsive */
@media (max-width: 520px) {
    .email-popup {
        padding: 30px 25px;
        margin: 15px;
    }
    
    .email-popup h2 {
        font-size: 24px;
    }
    
    .email-popup-subtitle {
        font-size: 14px;
    }
    
    .email-popup-compare {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .email-popup-compare-arrow {
        transform: rotate(90deg);
    }
    
    .email-popup-compare-item {
        padding: 12px 15px;
        width: 100%;
    }
    
    .email-popup-compare-item .value {
        font-size: 20px;
    }
    
    .email-popup-code-value {
        font-size: 26px;
    }
}

