.modal {
    bottom: 0px;
    left: 0px;
    max-height: 100vh;
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    right: 0px;
    top: 0px;
    transition: all 200ms ease 50ms;
    visibility: hidden;
    z-index: 900;
}

.modal--open {
    overflow: hidden;
}

.modal__box {
    background: #fff;
    border-radius: 8px;
    color: rgb(0, 41, 77);
    font-weight: 400;
    line-height: 1.5;
    margin: auto;
    max-width: 686px;
    opacity: 0;
    position: relative;
    transform: scale(0.9);
    transition: all 300ms ease 0s;
    width: 100%;
    z-index: 2;
}

.modal--small .modal__box {
    max-width: 400px;
}

.modal__overlay {
    cursor: pointer;
    background: rgba(3, 3, 27, 0.8);
    bottom: 0px;
    left: 0px;
    max-height: 100vh;
    opacity: 0;
    overflow-y: auto;
    position: fixed;
    right: 0px;
    top: 0px;
    transition: all 200ms ease 50ms;
    visibility: hidden;
    z-index: 1;
}

.modal__close {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 13px;
}

.modal__close .icon {
    fill: #333;
    width: 1em;
    height: 1em;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all .1s ease-in;
}

.modal__close .icon:hover {
    opacity: 1;
}

.modal__inner {
    align-items: center;
    display: flex;
    min-height: 100%;
    padding: 20px 16px;
    width: 100%;
}

.modal__body {
    padding: 36px 28px;
    text-align: center;
    width: 100%;
}

.modal__heading {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: none;
}

.modal--active {
    opacity: 1;
    transition: all 300ms ease 0s;
    visibility: visible;
}

.modal--active .modal__box {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.modal--active .modal__overlay {
    opacity: 1;
    transition: all 300ms ease 0s;
    visibility: visible;
}

@media (min-width: 36em) {
    .modal__inner { 
        padding: 48px 16px;
    }
}