.magnifypost-footer-subscribe {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    width: var(--magnifypost-subscribe-viewport-width, 100vw);
    max-width: none;
    margin: 0 0 0 calc(50% - var(--magnifypost-subscribe-viewport-width, 100vw) / 2);
    padding: 4rem 1.5rem;
    background: radial-gradient(circle at 10% 110%, rgba(30, 115, 190, 0.18), transparent 38%), linear-gradient(120deg, #edf4fb, #f7f9fc 72%);
    border-top: 1px solid #dce7f2;
    border-bottom: 1px solid #dce7f2;
    color: #0a3d62;
}

.jeg_footer_custom .jeg_vc_content > .vc_row:has(.magnifypost-footer-subscribe) + .vc_row-full-width + .vc_row {
    margin-top: 0 !important;
}

.magnifypost-footer-subscribe--motion-ready {
    clip-path: inset(100% 0 0);
    transition: clip-path 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.magnifypost-footer-subscribe--motion-ready.magnifypost-footer-subscribe--in-view {
    clip-path: inset(0);
}

.magnifypost-footer-subscribe--motion-ready .magnifypost-footer-subscribe__motion {
    opacity: 0;
    transform: translate3d(0, 2.5rem, 0);
    transition: opacity 700ms ease, transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.magnifypost-footer-subscribe--motion-ready.magnifypost-footer-subscribe--in-view .magnifypost-footer-subscribe__motion {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.magnifypost-footer-subscribe__inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 1120px;
    margin: 0 auto;
    transform: translate3d(0, var(--magnifypost-subscribe-parallax-y, 0px), 0);
}

.magnifypost-footer-subscribe__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    color: #1e73be;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.magnifypost-footer-subscribe__eyebrow::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    background: #1e73be;
    border-radius: 50%;
}

.magnifypost-footer-subscribe h2 {
    margin: 0 0 0.7rem;
    color: #0a3d62;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.18;
    text-wrap: balance;
    text-align: left;
}

.magnifypost-footer-subscribe p {
    max-width: 31rem;
    margin: 0;
    color: #4d6377;
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
    text-wrap: pretty;
}

.magnifypost-footer-subscribe__form-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dce7f2;
    border-radius: 1rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.magnifypost-footer-subscribe--in-view .magnifypost-footer-subscribe__form-wrap {
    animation: magnifypost-subscribe-float 9s ease-in-out infinite;
}

.magnifypost-footer-subscribe__form-wrap:hover,
.magnifypost-footer-subscribe__form-wrap:focus-within {
    animation-play-state: paused;
}

@keyframes magnifypost-subscribe-float {
    0%, 100% {
        transform: translate3d(0, 3px, 0);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    }

    25% {
        transform: translate3d(8px, -3px, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
        box-shadow: 0 21px 36px rgba(0, 0, 0, 0.3);
    }

    75% {
        transform: translate3d(-8px, 2px, 0);
    }
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 {
    width: 100%;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 [data-testid="form-row"] {
    gap: 0.75rem;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 [data-testid="form-component"] {
    padding: 0 !important;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"],
.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button {
    box-sizing: border-box !important;
    min-height: 3.25rem !important;
    border-radius: 0.5rem !important;
    font-family: inherit !important;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"] {
    border: 1px solid #b9cbdc !important;
    background: #fff !important;
    color: #0a3d62 !important;
    transition: border-color 320ms ease-in-out !important;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"]:hover:not(:focus) {
    border-color: #1e73be !important;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"]:focus {
    border-color: #0a3d62 !important;
    outline: 2px solid rgba(30, 115, 190, 0.22) !important;
    outline-offset: 1px;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button {
    background: #0a3d62 !important;
    color: #fff !important;
    font-weight: 700 !important;
    transition: background-color 320ms ease-in-out !important;
}

.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button:hover,
.magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button:focus-visible {
    background: #1e73be !important;
}

body.jnews-dark-mode .magnifypost-footer-subscribe {
    background: radial-gradient(circle at 10% 110%, rgba(30, 115, 190, 0.2), transparent 38%), linear-gradient(120deg, #112536, #0d1924 72%);
    border-color: #294257;
}

body.jnews-dark-mode .magnifypost-footer-subscribe h2 { color: #f1f7fc; }
body.jnews-dark-mode .magnifypost-footer-subscribe p { color: #bdcddd; }
body.jnews-dark-mode .magnifypost-footer-subscribe__eyebrow { color: #7dd3fc; }
body.jnews-dark-mode .magnifypost-footer-subscribe__eyebrow::before { background: #7dd3fc; }

body.jnews-dark-mode .magnifypost-footer-subscribe__form-wrap {
    color-scheme: dark;
    background: #192d3e;
    border-color: #35536c;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

body.jnews-dark-mode .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"] {
    background: #0e1d2a !important;
    border-color: #48657d !important;
    color: #f7f4f0 !important;
}

body.jnews-dark-mode .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"]::placeholder {
    color: #ada9a5 !important;
    opacity: 1;
}

body.jnews-dark-mode .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"]:focus {
    border-color: #7dd3fc !important;
    outline-color: rgba(125, 211, 252, 0.28) !important;
}

body.jnews-dark-mode .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button {
    background: #7dd3fc !important;
    color: #082d48 !important;
}

body.jnews-dark-mode .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button:hover,
body.jnews-dark-mode .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button:focus-visible {
    background: #bae6fd !important;
}

@media (max-width: 900px) {
    .magnifypost-footer-subscribe__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 520px;
    }

    .magnifypost-footer-subscribe__intro {
        text-align: left;
    }

    .magnifypost-footer-subscribe p {
        margin: 0;
    }
}

@media (max-width: 600px) {
    .magnifypost-footer-subscribe {
        padding: 2.5rem 1.25rem;
    }

    .magnifypost-footer-subscribe h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .magnifypost-footer-subscribe p {
        font-size: 0.9375rem;
    }

    .magnifypost-footer-subscribe__form-wrap {
        padding: 1rem;
    }

    .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 [data-testid="form-row"] {
        flex-direction: column !important;
    }

    .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 [data-testid="form-component"],
    .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 input[type="email"],
    .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 .klaviyo-form-button {
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .magnifypost-footer-subscribe .klaviyo-form-SHVxg8 [data-testid="form-component"] {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .magnifypost-footer-subscribe {
        clip-path: none !important;
    }

    .magnifypost-footer-subscribe__motion,
    .magnifypost-footer-subscribe__inner {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .magnifypost-footer-subscribe__form-wrap {
        animation: none !important;
    }
}
