.newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 64, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
}

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

.newsletter-modal {
    display: flex;
    max-width: 800px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s ease;
    max-height: 90vh;
    position: relative;
}

.newsletter-overlay.active .newsletter-modal {
    transform: scale(1) translateY(0);
}

.newsletter-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.newsletter-close:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: rotate(90deg);
}

.newsletter-image-col {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.newsletter-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.newsletter-image-col .image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px;
    background: linear-gradient(transparent, rgba(26, 26, 64, 0.85));
    color: #fff;
}

.newsletter-image-col .image-overlay-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.newsletter-image-col .image-overlay-text p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.newsletter-form-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.newsletter-form-col .form-header {
    text-align: center;
    margin-bottom: 22px;
}

.newsletter-form-col .form-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.newsletter-form-col .form-header p {
    font-size: 13px;
    color: #777;
    font-weight: 400;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.newsletter-form .full-width {
    grid-column: 1 / -1;
}

.newsletter-form input,
.newsletter-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

.newsletter-form input:focus,
.newsletter-form select:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.newsletter-form input::placeholder {
    color: #aaa;
}

.newsletter-form input.error,
.newsletter-form select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Quantity Stepper */
.quantity-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    width: 100%;
}

.quantity-stepper button {
    width: 40px;
    height: 42px;
    border: none;
    background: #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.quantity-stepper button:hover {
    background: var(--secondary-color);
    color: #fff;
}

.quantity-stepper button:active {
    transform: scale(0.95);
}

.quantity-stepper input {
    width: 100%;
    height: 42px;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    outline: none;
    background: #fff;
    color: var(--primary-color);
    -moz-appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-stepper input:focus {
    background: #fff;
}

.newsletter-submit-btn {
    grid-column: 1 / -1;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 13px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.newsletter-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
}

.newsletter-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-response {
    grid-column: 1 / -1;
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.newsletter-response.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-response.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media screen and (max-width: 768px) {
    .newsletter-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .newsletter-modal {
        flex-direction: column;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .newsletter-image-col {
        flex: 0 0 160px;
        max-width: 100%;
        min-height: 160px;
    }

    .newsletter-image-col img {
        position: relative;
    }

    .newsletter-form-col {
        flex: 1;
        max-width: 100%;
        padding: 24px 20px 20px;
    }

    .newsletter-form-col .form-header h2 {
        font-size: 19px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .newsletter-form .full-width {
        grid-column: 1;
    }

    .newsletter-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .newsletter-form-col {
        padding: 20px 16px 16px;
    }

    .newsletter-image-col {
        flex: 0 0 130px;
        min-height: 130px;
    }

    .newsletter-form-col .form-header h2 {
        font-size: 17px;
    }

    .newsletter-form input,
    .newsletter-form select {
        padding: 10px 12px;
        font-size: 13px;
    }
}
