.fp-modal-popup {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(600px, calc(100% - 32px));
    max-width: 600px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-top: 6px solid #005eb8;
    border-radius: 0;
    background: #fff;
    color: #333f48;
    box-shadow: 0 24px 64px rgb(1 33 105 / 25%);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.fp-modal-popup:not([open]):not(.fp-modal-popup--preview) {
    display: none;
}

.fp-modal-popup::backdrop {
    background: rgb(1 33 105 / 65%);
}

.fp-modal-popup .fp-modal-popup__content {
    padding: 56px 40px 40px;
    background: #f2f6fb;
}

.fp-modal-popup .fp-modal-popup__title {
    margin: 0 0 20px !important;
    color: #012169;
    font: inherit;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.fp-modal-popup__message {
    overflow-wrap: anywhere;
}

.fp-modal-popup__message > :first-child { margin-top: 0; }
.fp-modal-popup__message > :last-child { margin-bottom: 0 !important; }
.fp-modal-popup__message a { color: #005eb8; text-decoration: underline; }

.fp-modal-popup .fp-modal-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #012169;
    cursor: pointer;
}

.fp-modal-popup .fp-modal-popup__close:hover { background: #fff; }
.fp-modal-popup__close svg { display: block; pointer-events: none; }

.fp-modal-popup .fp-modal-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    margin-top: 28px;
    padding: 12px 24px;
    border: 0;
    border-radius: 0;
    background: #012169;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.fp-modal-popup .fp-modal-popup__button:hover { background: #005eb8; color: #fff; }
.fp-modal-popup :focus-visible { outline: 3px solid #005eb8; outline-offset: 3px; }
html.fp-modal-popup-open { overflow: hidden; }

.fp-modal-popup.fp-modal-popup--preview {
    position: relative;
    inset: auto;
    display: block;
    max-height: none;
    margin: 24px auto;
}

@media (max-width: 480px) {
    .fp-modal-popup .fp-modal-popup__content { padding: 56px 24px 28px; }
}

@media print {
    .fp-modal-popup { display: none !important; }
    html.fp-modal-popup-open { overflow: visible; }
}
