.modal {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    background-color: rgba(0, 0, 0, .5843137255);
    top: 0;
    left: 0;
    /* width: 100vw; */
    width: 100%;
    height: 100vh
}

.modal .modal__body {
    padding: 2.5rem 0 0;
    border-radius: .25rem;
    overflow: hidden
}

.modal .modal__close {
    display: flex;
    align-items: center;
    gap: .75rem;
    top: 10px;
    right: 20px;
    color: get-color("white");
    font-size: 14px;
    line-height: 24px;
    font-weight: 100;
    background-color: rgba(0, 0, 0, 0);
    border: none
}

.modal .modal__close:hover {
    cursor: pointer
}

.modal__inner {
    position: relative;
    margin: auto;
    width: 95%;
    height: auto;
    max-width: 1000px;
    background-color: rgba(0, 0, 0, 0)
}

.modal__header {
    width: 100%;
    padding: 16px;
    background-color: #001c47;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: #fff
}

.modal__body {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    padding: 16px;
    width: 100%;
    height: auto;
    max-height: 90vh
}

.modal__body__content {
    aspect-ratio: 16/8
}

.modal__footer {
    width: 100%;
    padding: 16px;
    background-color: get-color("grey-ultra");
    display: flex;
    justify-content: flex-end
}

.modal.is-open {
    display: flex
}

.modal.is-show {
    display: flex;
    animation: opac 1s
}

@keyframes opac {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Template para video */
.modal.template-video .modal__close {
    position: absolute;
    top: 10px;
    right: 20px;
}

.modal.template-video .modal__body {
    padding: 2.5rem 0 0;
    background: #001c47;
}

.modal.template-video .form {
    overflow-y: auto;
    overflow-x: hidden
}

.modal.template-video .form::-webkit-scrollbar {
    width: 3px
}

.modal.template-video .form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
    border-radius: 5px
}

.modal.template-video .form::-webkit-scrollbar-thumb {
    background: get-color("white");
    border-radius: 5px
}

/* Template para formulario */
.modal.template-form .modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal.template-form .modal__body {
    padding: 0;
    background: #F4F6FD;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal.template-form .modal__body::-webkit-scrollbar {
    display: none;
}

.modal.template-form .modal__body .modal__body__content {
    padding: 3rem 1rem;
}

.modal.template-form .form {
    overflow-y: auto;
    overflow-x: hidden
}

.modal.template-form .form::-webkit-scrollbar {
    width: 3px
}

.modal.template-form .form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
    border-radius: 5px
}

.modal.template-form .form::-webkit-scrollbar-thumb {
    background: get-color("white");
    border-radius: 5px
}

.modal.template-form .js-form>h1,
.modal.template-form .js-form>h2,
.modal.template-form .js-form>h3,
.modal.template-form .js-form>h4,
.modal.template-form .js-form>h5,
.modal.template-form .js-form>h6 {
    color: #010741;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    padding-bottom: 12px;
}

.modal.template-form .js-form>p {
    color: #3A455C;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-bottom: 32px;
}

/* Media Query */
@media screen and (min-width: 768px) {
    .modal.template-form .modal__close {
        position: absolute;
        top: calc((5rem - 12px) / 2);
        right: calc((5rem - 12px) / 2);
    }

    .modal__inner {
        width: 80%
    }

    .modal__header {
        padding: 24px 32px;
        font-size: 32px;
        line-height: 40px
    }

    .modal__body {
        padding: 32px
    }

    .modal__body {
        max-height: 70vh
    }

    .modal.template-form .modal__body .modal__body__content {
        padding: 5rem;
    }

    .modal.template-form .js-form>h1,
    .modal.template-form .js-form>h2,
    .modal.template-form .js-form>h3,
    .modal.template-form .js-form>h4,
    .modal.template-form .js-form>h5,
    .modal.template-form .js-form>h6 {
        font-size: 38px;
        line-height: 48px;
    }
}