.modal {
    display: none;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.modal__container {
    position: fixed;
    background-color: #dee;
    padding: 30px 5.5vw 25px;
    max-width: 557px;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1;
}

.modal__container > a[data-micromodal-close] {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.modal__container > [data-micromodal-close] .iconfont {
    font-size: 1.5rem;
    vertical-align: middle;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__header.text-center {
    justify-content: center;
}

.modal__header h2 {
    margin-bottom: 0;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.modal__close {
    background: transparent;
    border: 0;
}

.modal__header .modal__close:before {
    content: "\2715";
}

.modal__content {
    margin-bottom: 4rem;
}

.modal__footer a {
    font-size: 0.75rem;
    line-height: 1.167;
    font-style: italic;
    color: #0f0f0f;
    font-weight: 700;
}

.modal__footer a span {
    color: #D81F27;
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10%);
    }
}

.modal[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.modal[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.modal[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.modal .modal__container,
.modal .modal__overlay {
    will-change: transform;
}

@media (max-width: 640px) {
    .modal__container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .modal__content {
        margin-bottom: 36px;
    }
}