.btn-newsletter-main {
    display: inline-block;
    background: #0073aa;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all .3s ease;
}

.btn-newsletter-main:hover {
    background: #005177;
    transform: translateY(-1px);
}

.newsletter-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}

.newsletter-form-wrapper h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.newsletter-form-wrapper p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color .3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.submit-btn {
    width: 100%;
    background: #28a745;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background .3s ease;
}

.submit-btn:hover {
    background: #218838;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.newsletter-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 50%;
    width: 350px;
    max-height: 500px;
    background: transparent;
    pointer-events: none;
    transform: translate(-100%, -50%);
    transition: transform .3s ease-in-out;
}

.newsletter-modal.show {
    transform: translate(0, -50%);
}

.newsletter-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    pointer-events: auto;
    border: 1px solid #e0e0e0;
}

.newsletter-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    z-index: 1000;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: #f5f5f5;
    transition: all .2s ease;
}

.newsletter-modal-close:hover {
    color: #000;
    background: #e0e0e0;
}

.newsletter-modal h3 {
    margin: 0 0 10px;
    text-align: center;
    color: #333;
    font-size: 20px;
}

.newsletter-modal p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.newsletter-modal-form__input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-modal-form__checkbox-row {
    margin-bottom: 20px;
}

.newsletter-modal-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
}

.newsletter-modal-form__checkbox {
    margin-right: 8px;
    margin-top: 2px;
}

.newsletter-modal-form__submit {
    width: 100%;
    background: #28a745;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.newsletter-modal-form__message {
    margin-top: 15px;
}

.newsletter-mensaje {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}

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

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

.newsletter-honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.newsletter-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(17, 24, 39, .62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.newsletter-feedback-modal {
    position: relative;
    width: min(100%, 560px);
    min-height: 463px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(12, 12, 13, .05), 0 16px 32px rgba(12, 12, 13, .10);
    padding: 32px;
    text-align: center;
    box-sizing: border-box;
}

.newsletter-feedback-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    font-weight: 400;
    line-height: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.newsletter-feedback-close img {
    display: block;
    width: 16px;
    height: 16px;
}

.newsletter-feedback-modal--success .newsletter-feedback-illustration {
    width: min(100%, 200px);
    margin: 0 auto;
    display: block;
}

.newsletter-feedback-modal--error .newsletter-feedback-illustration {
    width: min(100%, 200px);
    margin: 0 auto;
    display: block;
}

.newsletter-feedback-title {
    margin: 0;
    font-family: "Sen", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: normal;
}

.newsletter-feedback-text {
    margin: 0 auto;
    color: #333;
    font-family: "Sen", sans-serif;
    font-size: 20px;
    line-height: normal;
    max-width: 560px;
}

.newsletter-feedback-action {
    margin-top: 24px;
}

.newsletter-feedback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 32px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: #d4ebff;
    color: #0088FF;
    font-family: "Sen", sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.newsletter-feedback-button:hover {
    background: #c2e0fb;
}

.newsletter-feedback-modal--error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 32px 48px;
}

.newsletter-feedback-modal--error .newsletter-feedback-close {
    top: 32px;
    right: 32px;
}

.newsletter-feedback-modal--success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px;
}

.newsletter-feedback-modal--success .newsletter-feedback-title {
    color: #004d73;
}

.newsletter-feedback-modal--success .newsletter-feedback-text {
    max-width: 520px;
}

.newsletter-feedback-copy--success {
    gap: 16px;
    padding: 0;
}

.newsletter-feedback-modal--success .newsletter-feedback-action {
    margin-top: 0;
}

.newsletter-feedback-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0 16px;
}

.newsletter-feedback-modal--error .newsletter-feedback-action {
    display: none;
}

.newsletter-feedback-modal--error .newsletter-feedback-title {
    color: #eb4949;
}

@media (max-width: 768px) {
    .newsletter-form-wrapper {
        margin: 20px;
        padding: 30px 20px;
    }

    .newsletter-modal {
        width: 320px;
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }

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

@media (max-width: 480px) {
    .newsletter-modal {
        width: 300px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 767px) {
    .newsletter-feedback-modal {
        width: min(100%, 560px);
        min-height: auto;
        padding: 34px 16px 24px;
    }

    .newsletter-feedback-title {
        font-size: 28px;
    }

    .newsletter-feedback-text {
        font-size: 18px;
    }

    .newsletter-feedback-modal--error {
        gap: 20px;
        padding: 28px 20px 40px;
    }

    .newsletter-feedback-modal--success {
        gap: 20px;
        padding: 28px 20px 32px;
    }

    .newsletter-feedback-modal--error .newsletter-feedback-close {
        top: 28px;
        right: 20px;
    }

    .newsletter-feedback-modal--success .newsletter-feedback-close {
        top: 28px;
        right: 20px;
    }

    .newsletter-feedback-modal--error .newsletter-feedback-illustration {
        width: min(100%, 180px);
    }

    .newsletter-feedback-modal--success .newsletter-feedback-illustration {
        width: min(100%, 180px);
    }

    .newsletter-feedback-modal--error .newsletter-feedback-title {
        font-size: 24px;
    }

    .newsletter-feedback-modal--success .newsletter-feedback-title {
        font-size: 24px;
    }

    .newsletter-feedback-modal--error .newsletter-feedback-text {
        font-size: 16px;
    }

    .newsletter-feedback-modal--success .newsletter-feedback-text {
        font-size: 16px;
    }
}
