/* Popup used by the site forms (see assets/js/formModal.js). */

.fm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 12, 14, .6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.fm-overlay.is-open {
    display: flex;
    animation: fm-fade .18s ease-out;
}

body.fm-locked {
    overflow: hidden;
}

.fm-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 38px 32px 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    font-family: "Titillium Web", "Inter", sans-serif;
    animation: fm-pop .2s cubic-bezier(.2, .9, .3, 1.2);
}

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

@keyframes fm-pop {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.fm-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #b3b3b8;
    cursor: pointer;
    padding: 4px 8px;
}

.fm-close:hover { color: #55555c; }

.fm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.fm-dialog.is-success .fm-icon {
    background: #e7f7ee;
    color: #157347;
}

.fm-dialog.is-error .fm-icon {
    background: #fdeaea;
    color: #d61f29;
}

.fm-title {
    margin: 0 0 10px;
    font-size: 1.45rem;
    color: #1b1b1f;
}

.fm-message {
    margin: 0 0 24px;
    font-size: .98rem;
    line-height: 1.6;
    color: #55555c;
}

.fm-message a {
    color: #d61f29;
    font-weight: 600;
    text-decoration: none;
}

.fm-message a:hover { text-decoration: underline; }

.fm-ok {
    min-width: 130px;
    padding: 12px 26px;
    border: none;
    border-radius: 12px;
    background: #d61f29;
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.fm-ok:hover { background: #b81821; }

.fm-ok:focus { outline: none; }

.fm-ok:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 31, 41, .3);
}

.fm-dialog.is-success .fm-ok:focus-visible {
    box-shadow: 0 0 0 3px rgba(21, 115, 71, .3);
}

.fm-dialog.is-success .fm-ok {
    background: #157347;
}

.fm-dialog.is-success .fm-ok:hover {
    background: #10603a;
}

@media (max-width: 480px) {
    .fm-dialog {
        padding: 32px 22px 26px;
        border-radius: 16px;
    }
}
