/* BWA Popup Newsletter Styles - Style Premium */

.bwa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bwa-popup-overlay.show {
    opacity: 1;
    display: flex !important;
}

.bwa-popup-container {
    max-width: 630px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px) scale(0.9);
    transition: all 0.4s ease;
}

.bwa-popup-overlay.show .bwa-popup-container {
    transform: translateY(0) scale(1);
}

.bwa-popup-content {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.bwa-popup-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

.bwa-popup-close:hover {
    color: #000;
}

.bwa-popup-header {
    display: flex;
    background: var(--color-secondary);
    color: white;
    padding: 25px 65px 25px;
    text-align: center;
    position: relative;
    align-items: center;
    justify-content: center;
}

.bwa-popup-title {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 1.15px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.bwa-popup-body {
    padding: 35px 25px 35px;
    text-align: center;
    background: #ffffff;
}

.bwa-popup-offer {
    text-align: center;
    color: var(--color-secondary);
    font-family: var(--typo-primary);
    padding-bottom: 20px;
}

.bwa-popup-discount {
    font-size: 55px;
    letter-spacing: 0px;
}

.bwa-popup-offer-text {
    font-size: 41px;
    letter-spacing: 0px;
    text-transform: uppercase;
    line-height: 1;
}

.bwa-popup-description {
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    font-style: italic;
}

.bwa-popup-form {
    margin-bottom: 45px;
    padding: 0 45px;
}

.bwa-popup-input-group {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 0.5fr;
    margin: 0 auto;
}

.bwa-popup-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #333;
}

.bwa-popup-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: #fafafa;
}

.bwa-popup-input::placeholder {
    color: #999;
    font-style: italic;
}

.bwa-popup-submit {
    background: #333333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.bwa-popup-submit:hover {
    background: #8B4513;
}

.bwa-popup-submit:active {
    transform: translateY(0);
}

.bwa-popup-submit:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bwa-popup-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bwa-popup-message {
    padding: 15px;
    border-radius: 0;
    margin-top: 15px;
    font-weight: 500;
    font-size: 14px;
}

.bwa-popup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bwa-popup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bwa-popup-footer {
    text-align: center;
}

.bwa-popup-footer-text {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

.bwa-popup-overlay.show .bwa-popup-content {
    animation: fadeInScale 0.4s ease forwards;
}

.bwa-popup-overlay.hiding .bwa-popup-content {
    animation: fadeOutScale 0.4s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .bwa-popup-container {
        width: 95%;
        margin: 20px;
    }

    .bwa-popup-header {
        padding: 25px 20px 15px;
    }

    .bwa-popup-title {
        font-size: 16px;
    }

    .bwa-popup-body {
        padding: 30px 20px 25px;
    }

    .bwa-popup-offer {
        padding-bottom: 30px;
    }

    .bwa-popup-discount {
        font-size: 36px;
    }

    .bwa-popup-offer-text {
        font-size: 28px;
        text-align: center;
    }

    .bwa-popup-input-group {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .bwa-popup-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .bwa-popup-discount {
        font-size: 32px;
    }

    .bwa-popup-input,
    .bwa-popup-submit {
        padding: 12px 15px;
        font-size: 13px;
    }

    .bwa-popup-form {
        padding: 0;
        margin-bottom: 20px;
    }
}

body.bwa-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
