/* Newsletter feedback dialog (success / error), shown after the CF7 newsletter form (id 1741) is submitted. */
.exe-nl-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.exe-nl-modal[hidden] { display: none; }
.exe-nl-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease;
}
.exe-nl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 26, .65);
}
.exe-nl-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px 32px 32px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    transform: translateY(16px) scale(.98);
    transition: transform .3s ease;
}
.exe-nl-modal.is-open .exe-nl-modal__dialog { transform: none; }
.exe-nl-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #626b71;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.exe-nl-modal__close:hover, .exe-nl-modal__close:focus-visible { color: #11111a; }
.exe-nl-modal__icon { display: none; width: 88px; height: 88px; margin: 0 auto 16px; }
.exe-nl-modal[data-state="success"] .exe-nl-modal__icon--success,
.exe-nl-modal[data-state="error"] .exe-nl-modal__icon--error { display: block; }
.exe-nl-modal__title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.25; color: #11111a; }
.exe-nl-modal__text { margin: 0 0 24px; color: #626b71; }
.exe-nl-modal__btn { display: inline-block; margin: 0 auto; cursor: pointer; }

/* Animated check mark (success) */
.exe-nl-modal__icon--success .ring {
    fill: none; stroke: #cc3333; stroke-width: 4;
    stroke-dasharray: 176; stroke-dashoffset: 176;
}
.exe-nl-modal__icon--success .tick {
    fill: none; stroke: #cc3333; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 48; stroke-dashoffset: 48;
}
.exe-nl-modal.is-open[data-state="success"] .ring { animation: exe-nl-draw .6s ease-out .15s forwards; }
.exe-nl-modal.is-open[data-state="success"] .tick { animation: exe-nl-draw .4s ease-out .65s forwards; }
.exe-nl-modal__icon--error .ring { fill: none; stroke: #cc3333; stroke-width: 4; }
.exe-nl-modal__icon--error .cross { fill: none; stroke: #cc3333; stroke-width: 5; stroke-linecap: round; }
@keyframes exe-nl-draw { to { stroke-dashoffset: 0; } }

body.exe-nl-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .exe-nl-modal, .exe-nl-modal__dialog { transition: none; }
    .exe-nl-modal__icon--success .ring,
    .exe-nl-modal__icon--success .tick { stroke-dashoffset: 0; animation: none !important; }
}
