/**
 * Newsletter Popup Styles
 * Barbaron.bg
 */

.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.newsletter-popup-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.newsletter-popup-overlay.active .newsletter-popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}

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

.popup-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.popup-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.popup-description {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.95;
    line-height: 1.5;
}

.popup-discount {
    margin: 20px 0;
}

.discount-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popup-form {
    margin: 25px 0;
}

.popup-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-sizing: border-box;
}

.popup-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.popup-input::placeholder {
    color: #999;
}

.popup-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.popup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.popup-privacy {
    margin: 20px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.popup-privacy a {
    color: inherit;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: 30px 20px;
        max-width: 95%;
    }

    .popup-icon {
        font-size: 48px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-description {
        font-size: 14px;
    }

    .discount-badge {
        font-size: 16px;
        padding: 8px 16px;
    }

    .popup-input {
        padding: 12px;
        font-size: 14px;
    }

    .popup-button {
        padding: 12px;
        font-size: 14px;
    }
}
