.bn-newsletter-container {
    padding: 8px;
    background: linear-gradient(90deg, red, #ff8c00, #ff008c, #8a2be2, #00bfff, #32cd32);
    margin: 60px auto;
    max-width: 810px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ensure all form elements use border-box to prevent overflow */
.bn-newsletter-container *,
.bn-newsletter-container *:before,
.bn-newsletter-container *:after {
    box-sizing: border-box;
}

.bn-newsletter-inner {
    background: #fff;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bn-newsletter-content {
    flex: 1 1 50%;
    width: 50%;
    padding: 10px;
}

.bn-newsletter-headline {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 800 !important;
    line-height: 1.2;
    color: #050505;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bn-newsletter-description {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    font-family: "Roboto Mono", "SF Mono", "Fira Code", monospace;
    margin-bottom: .9rem;
}

.bn-newsletter-form-container {
    flex: 1 1 50%;
    width: 50%;
    padding: 10px;
}

.bn-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.bn-newsletter-input-wrapper {
    position: relative;
}

.bn-newsletter-container .bn-newsletter-form input[type="email"] {
    width: 100% !important;
    padding: 11px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 15px;
    color: #050505 !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff !important;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: block;
    box-shadow: none !important;
}

.bn-newsletter-container .bn-newsletter-form input[type="email"]::placeholder {
    color: rgba(102, 102, 102, 0.6);
}

.bn-newsletter-container .bn-newsletter-form input[type="email"]:focus {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1) !important;
    outline: none !important;
}

.bn-newsletter-container .bn-newsletter-form button.bn-newsletter-submit,
.bn-newsletter-container .bn-newsletter-form button.bn-newsletter-submit:visited,
.bn-newsletter-container .bn-newsletter-form button.bn-newsletter-submit:active {
    background: #050505 !important;
    color: #fff !important;
    border: none !important;
    padding: 11px 24px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: none !important;
    text-decoration: none !important;
}

.bn-newsletter-container .bn-newsletter-form button.bn-newsletter-submit:hover,
.bn-newsletter-container .bn-newsletter-form button.bn-newsletter-submit:focus {
    background: #050505 !important;
    color: #fff !important;
    border: none !important;
    opacity: 0.9;
    box-shadow: none !important;
}

.bn-newsletter-consent {
    margin-top: 4px;
}

.bn-newsletter-consent label {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: "Roboto Mono", monospace;
}

.bn-newsletter-container .bn-newsletter-consent input[type="checkbox"],
.bn-newsletter-container .bn-newsletter-consent input[type="checkbox"]:focus,
.bn-newsletter-container .bn-newsletter-consent input[type="checkbox"]:hover,
.bn-newsletter-container .bn-newsletter-consent input[type="checkbox"]:active {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 2px 0 0 0;
}

.bn-newsletter-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.bn-newsletter-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.bn-newsletter-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.bn-newsletter-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: bn-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes bn-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .bn-newsletter-inner {
        flex-direction: column;
        padding: 40px;
        text-align: left;
        gap: 24px;
    }

    .bn-newsletter-content {
        flex: 1 1 100%;
        width: 100%;
    }

    .bn-newsletter-headline {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .bn-newsletter-description {
        margin: 0 0 0.9rem 0;
    }

    .bn-newsletter-form-container {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .bn-newsletter-form {
        gap: 12px;
    }
}