/* Simple Newsletter - Frontend Styles */

.sn-newsletter-wrapper {
    max-width: 500px;
    margin: 20px 0;
}

.sn-newsletter-form {
    background: #ffffff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sn-form-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.sn-form-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.sn-field {
    margin-bottom: 16px;
}

.sn-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.sn-required {
    color: #dc3232;
}

.sn-field input[type="email"],
.sn-field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #333;
}

.sn-field input[type="email"]:focus,
.sn-field input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* Categorie */
.sn-categories-field {
    margin-top: 6px;
}

.sn-categories-label {
    margin-bottom: 10px;
}

.sn-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sn-category-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s;
    user-select: none;
    margin-bottom: 0 !important;
}

.sn-category-item:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

.sn-category-item input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

.sn-category-item input[type="checkbox"]:checked + span {
    color: #2271b1;
    font-weight: 500;
}

.sn-category-item:has(input:checked) {
    background: #e7f2fa;
    border-color: #2271b1;
}

/* Honeypot - nascosto visivamente ma presente nel DOM */
.sn-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Privacy notice */
.sn-privacy-notice {
    margin: 14px 0;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.sn-privacy-notice a {
    color: #2271b1;
}

/* Submit button */
.sn-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.sn-submit-btn:hover:not(:disabled) {
    background: #135e96;
}

.sn-submit-btn:active {
    transform: translateY(1px);
}

.sn-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Messaggi */
.sn-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.sn-message.sn-success {
    background: #e7f5ea;
    color: #1e6b2e;
    border-left: 4px solid #46b450;
}

.sn-message.sn-error {
    background: #fbeaea;
    color: #8a1f1f;
    border-left: 4px solid #dc3232;
}

/* Responsive */
@media (max-width: 480px) {
    .sn-newsletter-form {
        padding: 20px;
    }

    .sn-form-title {
        font-size: 19px;
    }

    .sn-categories-list {
        gap: 6px;
    }

    .sn-category-item {
        padding: 7px 12px;
        font-size: 13px;
    }
}
