.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-modal-overlay.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.newsletter-modal {
    position: relative;
    width: 480px;
    max-width: 90vw;
    background: #3a3a3a;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: Montserrat, sans-serif;
}

.newsletter-modal-overlay.show .newsletter-modal {
    transform: scale(1);
}

.newsletter-modal-header {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 10;
}

.newsletter-modal-close {
    background: var(--primary);
    border: none;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #3a3a3a;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.newsletter-modal-close:hover {
    background-color: #95a595;
}

.newsletter-modal-content {
    padding: 40px 30px 30px;
    text-align: center;
    color: #fff;
}

.newsletter-modal-discount {
    display: inline-block;
    font-family: "DM Serif Display", serif;
    font-size: 64px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1;
}

.newsletter-modal-discount-text {
    display: inline-block;
    font-family: "DM Serif Display", serif;
    font-size: 36px;
    color: #FFF; /* #a8b5a8; */
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-modal-subtitle {
    font-family: "DM Serif Display", serif;
    font-size: 32px;
    color: var(--primary); /* #a8b5a8; */
    margin: 0 0 36px 0;
    font-weight: normal;
}

.newsletter-modal-description {
    font-size: 20px;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.newsletter-modal-cta {
    font-size: 16px;
    color: #fff;
    margin: 0 0 25px 0;
    font-weight: 600;
}

.newsletter-modal-form {
    max-width: 100%;
}

.newsletter-modal-input-group {
    margin-bottom: 15px;
}

.newsletter-modal-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.newsletter-modal-input::placeholder {
    color: #999;
}

.newsletter-modal-input:focus {
    box-shadow: 0 0 0 2px rgba(168, 181, 168, 0.5);
}

.newsletter-modal-gdpr {
    margin-bottom: 20px;
    text-align: left;
}

.newsletter-modal-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
    line-height: 1.3;
}

.newsletter-modal-checkbox {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.newsletter-modal-checkbox:checked + .checkbox-custom {
    background: var(--primary); /* #a8b5a8; */
    border-color: var(--primary); /* #a8b5a8; */
}

.checkbox-icon {
    font-size: 12px;
    color: white;
    display: none;
}

.newsletter-modal-checkbox:checked + .checkbox-custom .checkbox-icon {
    display: block;
}

.checkbox-text {
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
}

.checkbox-text a {
    color: var(--primary); /* #a8b5a8; */
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #fff;
}

.newsletter-modal-submit {
    width: auto;
    background: var(--primary); /* #a8b5a8; */
    color: #FFF;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-modal-submit:hover:not(:disabled) {
    background: #95a595;
}

.newsletter-modal-submit:disabled {
    background: var(--primary); /* #666; */
    cursor: not-allowed;
    opacity: 0.4;
}

.newsletter-modal-submit .submit-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.newsletter-modal-submit.loading .submit-text {
    opacity: 0;
}

.newsletter-modal-submit.loading .submit-loading {
    display: block !important;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newsletter-modal-success {
    text-align: center;
    padding: 20px 0;
    color: #fff;
}

.newsletter-modal-success .success-icon {
    font-size: 48px;
    color: var(--primary); /* #a8b5a8; */
    margin-bottom: 15px;
}

.newsletter-modal-success h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.newsletter-modal-success p {
    color: #ccc;
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-modal {
        width: 95%;
        max-width: 400px;
    }

    .newsletter-modal-content {
        padding: 30px 20px 20px;
    }

    .newsletter-modal-discount {
        font-size: 56px;
    }

    .newsletter-modal-discount-text {
        font-size: 32;
    }

    .newsletter-modal-subtitle {
        font-size: 28px;
    }

    .newsletter-modal-description{
        font-size: 18px;
    }
    .newsletter-modal-header {
        right: 18px;
    }
}

/* Animazioni di entrata */
.newsletter-modal-overlay.show .newsletter-modal-content > * {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.newsletter-modal-overlay.show .newsletter-modal-discount {
    animation-delay: 0.1s;
}

.newsletter-modal-overlay.show .newsletter-modal-discount-text {
    animation-delay: 0.2s;
}

.newsletter-modal-overlay.show .newsletter-modal-subtitle {
    animation-delay: 0.3s;
}

.newsletter-modal-overlay.show .newsletter-modal-description {
    animation-delay: 0.4s;
}

.newsletter-modal-overlay.show .newsletter-modal-cta {
    animation-delay: 0.5s;
}

.newsletter-modal-overlay.show .newsletter-modal-form {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}