body.bnee-modal-open {
    overflow: hidden;
}

.bnee-newsletter-modal[hidden] {
    display: none !important;
}

.bnee-newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 28px;
}

.bnee-newsletter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 23, 41, .72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    animation: bnee-newsletter-fade .22s ease both;
}

.bnee-newsletter-dialog {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 38px 95px rgba(1, 23, 42, .34);
    animation: bnee-newsletter-rise .28s cubic-bezier(.2, .75, .25, 1) both;
    outline: none;
}

.bnee-newsletter-close {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 5;
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.bnee-newsletter-close:hover,
.bnee-newsletter-close:focus-visible {
    background: rgba(255, 255, 255, .24);
    transform: rotate(4deg);
}

.bnee-newsletter-dialog-head {
    position: relative;
    isolation: isolate;
    padding: 47px 68px 41px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    background:
        radial-gradient(circle at 90% 5%, rgba(39, 165, 238, .62), transparent 38%),
        linear-gradient(125deg, #032b49 0%, #075789 58%, #0b86ce 100%);
    color: #fff;
}

.bnee-newsletter-dialog-head::before,
.bnee-newsletter-dialog-head::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.bnee-newsletter-dialog-head::before {
    width: 310px;
    height: 310px;
    right: -120px;
    top: -195px;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 0 55px rgba(255, 255, 255, .035);
}

.bnee-newsletter-dialog-head::after {
    width: 185px;
    height: 185px;
    right: 95px;
    bottom: -145px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.bnee-newsletter-dialog-kicker {
    display: block;
    margin-bottom: 12px;
    color: #a9dbfa;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.bnee-newsletter-dialog-head h2 {
    max-width: 590px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(34px, 4.4vw, 49px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.047em;
}

.bnee-newsletter-dialog-head p {
    max-width: 585px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.55;
}

.bnee-newsletter-dialog-body {
    padding: 39px 68px 47px;
}

.bnee-newsletter-form-wrap .wpcf7-form {
    margin: 0;
}

.bnee-cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bnee-cf7-field {
    display: block;
    margin: 0 0 19px;
    color: #173149;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
}

.bnee-cf7-field .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.bnee-cf7-field input[type="text"],
.bnee-cf7-field input[type="email"] {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #d5e1ea;
    border-radius: 10px;
    background: #f8fbfd;
    color: #112238;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.bnee-cf7-field input::placeholder {
    color: #8a9aa7;
}

.bnee-cf7-field input:focus {
    border-color: #1477c9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 119, 201, .12);
}

.bnee-cf7-field .wpcf7-not-valid {
    border-color: #c94343 !important;
    box-shadow: 0 0 0 3px rgba(201, 67, 67, .09);
}

.bnee-cf7-privacy {
    margin: 3px 0 23px;
    padding: 16px 17px;
    border: 1px solid #dce7ef;
    border-radius: 11px;
    background: #f5f9fc;
}

.bnee-cf7-privacy .wpcf7-list-item {
    margin: 0;
}

.bnee-cf7-privacy label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    align-items: start;
    color: #4d6275;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.bnee-cf7-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #1477c9;
}

.bnee-cf7-privacy a {
    color: #075b98;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bnee-cf7-submit-wrap {
    position: relative;
}

.bnee-cf7-submit-wrap input[type="submit"] {
    width: 100%;
    min-height: 57px;
    padding: 0 25px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #073c65, #1477c9);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(8, 80, 133, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.bnee-cf7-submit-wrap input[type="submit"]:hover,
.bnee-cf7-submit-wrap input[type="submit"]:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 17px 35px rgba(8, 80, 133, .3);
}

.bnee-newsletter-dialog .wpcf7-spinner {
    position: absolute;
    right: 18px;
    top: 50%;
    margin: -12px 0 0;
}

.bnee-newsletter-dialog .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b83232;
    font-size: 11px;
    font-weight: 650;
}

.bnee-newsletter-dialog .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #d5e1ea !important;
    border-radius: 9px;
    color: #364e62;
    background: #f6f9fb;
    font-size: 12px;
    line-height: 1.45;
}

.bnee-newsletter-dialog form.invalid .wpcf7-response-output,
.bnee-newsletter-dialog form.unaccepted .wpcf7-response-output {
    border-color: #e3b8b8 !important;
    background: #fff7f7;
    color: #9b3232;
}

.bnee-newsletter-success {
    padding: 13px 0 5px;
    text-align: center;
}

.bnee-newsletter-success > span {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f7f0;
    color: #158054;
    font-size: 34px;
    font-weight: 800;
}

.bnee-newsletter-success h3 {
    margin: 20px 0 7px;
    color: #112c45;
    font-size: 27px;
    letter-spacing: -.025em;
}

.bnee-newsletter-success p {
    margin: 0 0 24px;
    color: #5b6d7d;
    font-size: 14px;
}

.bnee-newsletter-success button {
    min-width: 160px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #073e68;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.bnee-newsletter-unavailable {
    margin: 0;
    padding: 18px;
    border-radius: 10px;
    background: #fff6ef;
    color: #80502c;
}

@keyframes bnee-newsletter-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bnee-newsletter-rise {
    from { opacity: 0; transform: translateY(20px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 650px) {
    .bnee-newsletter-modal {
        padding: 12px;
        align-items: end;
    }

    .bnee-newsletter-dialog {
        max-height: 94vh;
        border-radius: 22px;
    }

    .bnee-newsletter-dialog-head {
        padding: 42px 25px 31px;
        border-radius: 21px 21px 0 0;
    }

    .bnee-newsletter-dialog-head h2 {
        font-size: clamp(30px, 9vw, 39px);
    }

    .bnee-newsletter-dialog-head p {
        font-size: 14px;
    }

    .bnee-newsletter-dialog-body {
        padding: 28px 23px 32px;
    }

    .bnee-cf7-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bnee-newsletter-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bnee-newsletter-backdrop,
    .bnee-newsletter-dialog {
        animation: none;
    }
}

/* BNEE responsive newsletter popup v2 + compact human verification */
.bnee-newsletter-modal {
    padding: 16px;
}

.bnee-newsletter-dialog {
    width: min(820px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
}

.bnee-newsletter-dialog-head {
    flex: 0 0 auto;
    padding: 28px 48px 22px;
    border-radius: 23px 23px 0 0;
}

.bnee-newsletter-dialog-kicker {
    margin-bottom: 7px;
    font-size: 10px;
}

.bnee-newsletter-dialog-head h2 {
    max-width: 650px;
    font-size: clamp(30px, 3.8vw, 42px);
    line-height: 1;
}

.bnee-newsletter-dialog-head p {
    max-width: 650px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.42;
}

.bnee-newsletter-close {
    top: 13px;
    right: 13px;
    width: 39px;
    height: 39px;
    font-size: 25px;
}

.bnee-newsletter-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 48px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.bnee-newsletter-form-wrap .wpcf7-form,
.bnee-newsletter-form-wrap .wpcf7-form > p,
.bnee-newsletter-form-wrap .bnee-cf7-grid > p,
.bnee-newsletter-form-wrap .bnee-cf7-privacy > p,
.bnee-newsletter-form-wrap .bnee-cf7-submit-wrap > p {
    margin: 0;
}

.bnee-newsletter-dialog fieldset.hidden-fields-container,
.bnee-newsletter-dialog .wpcf7-response-output:empty,
.bnee-newsletter-dialog .wpcf7-response-output[aria-hidden="true"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.bnee-cf7-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bnee-cf7-grid-secondary {
    grid-template-columns: minmax(0, 1.55fr) minmax(180px, .72fr);
}

.bnee-cf7-field {
    margin: 0 0 12px;
    font-size: 11.5px;
}

.bnee-cf7-field .wpcf7-form-control-wrap,
.bnee-cf7-human .wpcf7-form-control-wrap {
    margin-top: 6px;
}

.bnee-cf7-field input[type="text"],
.bnee-cf7-field input[type="email"],
.bnee-cf7-human input[type="text"] {
    height: 46px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 13px;
}

.bnee-cf7-human-label {
    display: block;
    color: #173149;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .025em;
}

.bnee-cf7-human .wpcf7-quiz-label {
    display: block;
    margin: 0 0 4px;
    color: #5b6d7d;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.2;
}

.bnee-cf7-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bnee-cf7-privacy {
    margin: 0 0 13px;
    padding: 10px 12px;
    border-radius: 9px;
}

.bnee-cf7-privacy label {
    grid-template-columns: 18px 1fr;
    gap: 9px;
    font-size: 10.8px;
    line-height: 1.38;
}

.bnee-cf7-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.bnee-cf7-submit-wrap input[type="submit"] {
    min-height: 47px;
    font-size: 12px;
}

.bnee-newsletter-dialog .wpcf7-not-valid-tip {
    margin-top: 4px;
    font-size: 10px;
}

.bnee-newsletter-dialog .wpcf7-response-output {
    margin: 10px 0 0 !important;
    padding: 9px 11px !important;
    font-size: 11px;
}

@media (max-width: 650px) {
    .bnee-newsletter-modal {
        padding: 8px;
        align-items: center;
    }

    .bnee-newsletter-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px;
    }

    .bnee-newsletter-dialog-head {
        padding: 21px 18px 15px;
        border-radius: 17px 17px 0 0;
    }

    .bnee-newsletter-dialog-kicker {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .bnee-newsletter-dialog-head h2 {
        max-width: calc(100% - 34px);
        font-size: clamp(25px, 7.4vw, 33px);
        line-height: 1.01;
    }

    .bnee-newsletter-dialog-head p {
        margin-top: 7px;
        font-size: 11.8px;
        line-height: 1.35;
    }

    .bnee-newsletter-close {
        top: 9px;
        right: 9px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .bnee-newsletter-dialog-body {
        padding: 12px 14px 14px;
    }

    .bnee-cf7-grid,
    .bnee-cf7-grid-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bnee-cf7-field {
        margin-bottom: 8px;
        font-size: 10.5px;
    }

    .bnee-cf7-field .wpcf7-form-control-wrap,
    .bnee-cf7-human .wpcf7-form-control-wrap {
        margin-top: 4px;
    }

    .bnee-cf7-field input[type="text"],
    .bnee-cf7-field input[type="email"],
    .bnee-cf7-human input[type="text"] {
        height: 42px;
        padding: 0 11px;
        font-size: 12px;
    }

    .bnee-cf7-human-label {
        font-size: 10.5px;
    }

    .bnee-cf7-human .wpcf7-quiz-label {
        font-size: 9.8px;
    }

    .bnee-cf7-privacy {
        margin-bottom: 9px;
        padding: 8px 9px;
    }

    .bnee-cf7-privacy label {
        grid-template-columns: 16px 1fr;
        gap: 7px;
        font-size: 9.8px;
        line-height: 1.3;
    }

    .bnee-cf7-submit-wrap input[type="submit"] {
        min-height: 43px;
        font-size: 11px;
    }
}

@media (max-height: 690px) {
    .bnee-newsletter-dialog-head {
        padding-top: 18px;
        padding-bottom: 12px;
    }

    .bnee-newsletter-dialog-kicker {
        display: none;
    }

    .bnee-newsletter-dialog-head h2 {
        font-size: clamp(25px, 3.4vw, 36px);
    }

    .bnee-newsletter-dialog-head p {
        margin-top: 6px;
        font-size: 11.5px;
        line-height: 1.3;
    }

    .bnee-newsletter-dialog-body {
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .bnee-cf7-field {
        margin-bottom: 7px;
    }

    .bnee-cf7-field input[type="text"],
    .bnee-cf7-field input[type="email"],
    .bnee-cf7-human input[type="text"] {
        height: 40px;
    }

    .bnee-cf7-privacy {
        margin-bottom: 7px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .bnee-cf7-submit-wrap input[type="submit"] {
        min-height: 41px;
    }
}

