﻿.blur-content {
    filter: blur(24px);
}

.modal {
    height: 100%;
    width: 100%;
    display: none;
    opacity: 0;
    background: rgba(180,180,180,0.6);
    z-index: 898;
    transition: 0.3s;
    font-family: roboto-light;
}

    .modal.modal-visible {
        display: flex;
        opacity: 1;
        overflow-y: auto;
        /*height: initial;*/
    }

    .modal .modal-content {
        width: 520px;
        /*min-height: 596.07px;*/
        min-height: 526.04px;
        max-height: calc(80vh - 120px);
        margin: auto;
        padding: 25.5px 18px;
        box-shadow: 0 0 10px #707070;
        border: none;
        background-color: #F9FCFF;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
    }

        .modal .modal-content .flex-body {
            flex: 1;
            width: 100%;
            padding-top: 31.5px;
            display: flex;
            flex-direction: row;
        }

        .modal .modal-content a {
            height: 20px;
            cursor: pointer;
            flex: 0 0 auto;
        }

        .modal .modal-content .modal-content-items {
            padding: 0 38px;
            flex: 1;
            display: flex;
            flex-direction: column;
            max-height: 100%;
            overflow-y: auto;
        }

            .modal .modal-content .modal-content-items h4 {
                display: inline-block;
                margin: 41.5px 0 40px 0;
                flex: 0 0 auto;
                height: inherit;
                font-family: roboto-regular;
                font-size: 28px;
                color: #00207a;
            }

            .modal .modal-content .modal-content-items h5 {
                margin-top: 2px;
                font-family: roboto-light;
                font-size: 10px;
                color: #3b6fff;
                margin-bottom: 40px;
            }

            .modal .modal-content .modal-content-items form {
                flex: 1;
                display: flex;
                flex-direction: column;
            }

            .modal .modal-content .modal-content-items .form-group {
                height: auto;
                flex: 0 0 auto;
                margin-bottom: 22px;
                width: 100%;
                padding: 0;
            }

        .modal .modal-content .form-group.last {
            /*align-self: flex-end;
            justify-self: flex-end;
            align-content: flex-end;
            margin-top: 80px;*/
            margin-top: auto;
            flex: 0 0 auto;
            display: flex;
            flex-direction: row-reverse;
            margin-bottom: 0;
        }

            .modal .modal-content .form-group.last button {
                margin: 0;
                margin-left: auto;
                padding: 0;
            }

        .modal .modal-content .form-group.flex-fixed {
            flex: 0 0 auto;
        }

        .modal .modal-content .form-group ul {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: row;
            list-style-type: none;
        }

            .modal .modal-content .form-group ul li {
                margin: 0;
                margin-right: 16px;
            }

            .modal .modal-content .form-group ul.dd-options {
                flex-direction: column;
                float: none;
            }

        .modal .modal-content .form-group label {
            font-size: 14px;
            font-weight: 300;
            color: #00207a;
            margin-bottom: 6px;
        }

        .modal .modal-content .form-group input[type=text],
        .modal .modal-content .form-group input[type=number],
        .modal .modal-content .form-group input[type=email],
        .modal .modal-content .form-group input[type=password],
        .modal .modal-content .form-group textarea {
            display: block;
            width: 100%;
            height: 30px;
            padding: 6px 12px;
            border: 0.5px solid rgba(0, 32, 122, 0.4);
            border-radius: 3px;
            background-color: #fafafa !important;
            font-size: 14px;
            color: #00207a;
        }

        .modal .modal-content .form-group textarea {
            height: 80px;
            overflow-y: auto;
        }

        .modal .modal-content .form-group input[type=checkbox] {
            margin: 0;
            margin-top: 2px;
            width: 15px;
            height: 15px;
            border: 0.5px solid rgba(0, 32, 122, 0.4);
            border-radius: 3px;
            background-color: #fafafa !important;
        }

        .modal .modal-content .form-group input[type=button] {
            margin-left: 10px;
            min-width: 100px;
            height: 30px;
            border-radius: 2px;
            border: 0.5px solid #b4b4b4;
            background-color: #ececec;
            padding: 6px 0;
            text-align: center;
            font-size: 14px;
            color: #434343;
            box-shadow: none;
            transition: 0.3s;
            cursor: pointer;
        }

            .modal .modal-content .form-group input[type=button].enabled {
                color: #00207a;
                cursor: pointer;
            }

                .modal .modal-content .form-group input[type=button].enabled:hover {
                    background-color: #edf6ff;
                    color: #00207a;
                }

                .modal .modal-content .form-group input[type=button].enabled.button-dark {
                    background-color: #002fb0;
                    color: #fff;
                }

                .modal .modal-content .form-group input[type=button].enabled.button-blue {
                    background-color: #dee7ff;
                    color: #434343;
                }

                    .modal .modal-content .form-group input[type=button].enabled.button-dark.selected,
                    .modal .modal-content .form-group input[type=button].enabled.button-dark:hover,
                    .modal .modal-content .form-group input[type=button].enabled.button-blue:hover {
                        background-color: #3B6FFF;
                        color: #fff;
                    }

        .modal .modal-content .form-group div.img,
        .modal .modal-content .form-group img.img {
            width: 50px;
            height: 50px;
            flex: 0 0 50px;
            border-radius: 50%;
            box-shadow: 2px 3px 6px rgba(0,0,0,0.16);
            background-color: #ddd;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            object-fit: cover;
        }

        .modal .modal-content .form-group div#uploadImagePreview.img {
            width: 100px;
            height: 100px;
        }

        .modal .modal-content .form-group .svg-container {
            width: 50px;
            height: 50px;
            flex: 0 0 50px;
            border-radius: 50%;
            background-color: #00207a;
            box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.16);
            display: flex;
            object-fit: contain;
        }

            .modal .modal-content .form-group .svg-container .svg {
                width: 30px;
                height: 30px;
                margin: auto;
                filter: invert(100%);
            }

                .modal .modal-content .form-group .svg-container .svg.replaced-svg {
                    fill: #fff;
                    filter: none;
                }

        .modal .modal-content #select-item {
            margin-top: 8px;
            width: 100%;
            max-height: 0;
            transition: 0.3s;
            overflow: hidden;
        }

            .modal .modal-content #select-item ul {
                margin: 0;
                padding: 5px;
                width: 100%;
                max-height: 0;
                border: 0.5px solid rgba(0, 32, 122, 0.4);
                border-radius: 2px;
                display: flex;
                flex-wrap: wrap;
                float: left;
                overflow-y: scroll;
                transition: 0.3s;
            }

                .modal .modal-content #select-item ul li {
                    margin: 5px;
                    width: 45px;
                    height: 45px;
                    flex: 0 0 45px;
                    cursor: pointer;
                }

                    .modal .modal-content #select-item ul li img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }

                        .modal .modal-content #select-item ul li img.img-circle {
                            border-radius: 50%;
                        }

                    .modal .modal-content #select-item ul li.svg-container {
                        border-radius: 50%;
                        background-color: #00207a;
                        display: flex;
                        object-fit: contain;
                    }

                        .modal .modal-content #select-item ul li.svg-container .svg.replaced-svg {
                            width: 27px;
                            height: 27px;
                            max-width: 100%;
                            max-height: 100%;
                            fill: #fff;
                            margin: auto;
                        }

        .modal .modal-content .modal-content-items #collapseHeader {
            margin-top: 22px;
            align-items: center;
            cursor: pointer;
            flex: 0 0 auto;
        }

            .modal .modal-content .modal-content-items #collapseHeader.form-group {
                align-items: center;
                margin-bottom: 0;
            }

                .modal .modal-content .modal-content-items #collapseHeader.form-group label {
                    display: block;
                    margin: 0;
                    margin-left: 10px;
                    height: 22px;
                    font-size: 18px;
                    font-weight: 400;
                }

        .modal .modal-content #advanced-items {
            margin-top: 22px;
            width: 100%;
            max-height: 0;
            transition: 0.3s;
            overflow: hidden;
        }

        .modal .modal-content #select-item.dropdown-open {
            max-height: 114px;
            overflow: visible;
        }

        .modal .modal-content #advanced-items.dropdown-open {
            max-height: 114px;
            overflow: visible;
        }

        .modal .modal-content #select-item.dropdown-open ul {
            max-height: 114px;
        }

        .modal .modal-content .modal-text-link {
            color: #003bdd;
        }

        .modal .modal-content .close-modal-arrow {
            display: block;
            width: 15px;
            height: 15px;
            filter: none;
            border-radius: 1.5px;
            border-bottom: 3px solid #707070;
            border-right: 3px solid #707070;
            margin: 0.5px;
            margin-left: 1.5px;
            transform: rotate(135deg);
            -webkit-transform: rotate(135deg);
            transition: all 0.3s ease;
        }

            .modal .modal-content .close-modal-arrow:hover {
                border-bottom-color: #3B6FFF;
                border-right-color: #3B6FFF;
                transition: all 0.2s ease;
            }

        .modal .modal-content .modal-backdrop.in {
            display: none;
        }

        /*---------- Option tiles (may be moved to another file ----------*/

        .modal .modal-content .option-image {
            height: 70px;
            width: 90px;
            background-color: #DEE7FF;
            border-radius: 5px;
            margin: auto;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            /*padding: 15px 25px;*/
            transition: 0.3s;
        }

            .modal .modal-content .option-image img {
                /*height: 100%;
                max-width: 100%;*/
                width: auto;
                height: 40px;
                max-height: 40px;
                flex: 0 0 auto;
                margin: auto;
                filter: invert(12%) sepia(79%) saturate(5127%) hue-rotate(226deg) brightness(88%) contrast(107%);
                transition: 0.3s;
            }

        .modal .modal-content .option .option-image svg {
            /*height: 100%;
            width: 100%;
            max-width: 100%;
            max-height: 100%;*/
            width: auto;
            height: 40px;
            max-height: 40px;
            flex: 0 0 auto;
            /*margin: auto;*/
            fill: #002FB0;
        }

        .modal .modal-content .option {
            padding: 10px;
            width: 50%;
            align-items: center;
            text-align: center;
            border-radius: 5px;
            transition: 0.3s;
            cursor: pointer;
        }

            .modal .modal-content .option.selected .option-image {
                background-color: #3B6FFF;
            }

                .modal .modal-content .option.selected .option-image img {
                    filter: invert(1);
                }

                .modal .modal-content .option.selected .option-image svg {
                    fill: #FFF;
                }

            .modal .modal-content .option:hover {
                background-color: #EDF6FF;
            }

            .modal .modal-content .option label {
                margin-top: 20px;
                margin-bottom: 20px;
                font-family: roboto-regular;
                font-size: 18px;
                font-weight: normal;
                color: #00207A;
            }

            .modal .modal-content .option p {
                font-family: roboto-light;
                font-size: 14px;
                color: #434343;
            }

        .modal .modal-content .options-container {
            align-self: center;
            width: 345px;
            height: auto;
            max-height: 100%;
            flex: 0 0 auto;
            display: flex;
            flex-direction: row;
            /*align-items: center;*/
            flex-wrap: wrap;
            overflow-x: hidden;
            overflow-y: auto;
            margin: auto 0;
        }

        .modal .modal-content #overlay {
            position: absolute;
            display: none;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(196,196,196,0.5);
            z-index: 2;
        }

        .modal .modal-content.secondary {
            margin: 0;
            position: absolute;
            z-index: 1000;
            left: 50%;
            top: 50%;
            width: 520px;
            height: 360px;
            min-height: 360px;
            flex: 0 0 auto;
            transform: translate(-50%, -50%);
        }

            .modal .modal-content.secondary .modal-content-items h4 {
                margin-bottom: 8px;
            }

            .modal .modal-content.secondary .modal-content-items h5 {
                font-size: 14px;
                color: #00207a;
                margin-bottom: 11px;
            }

            .modal .modal-content.secondary .modal-content-items .indent {
                margin-left: 10px;
                margin-bottom: 1px;
            }

            .modal .modal-content.secondary ~ .modal-content {
                filter: blur(24px);
            }

                .modal .modal-content.secondary ~ .modal-content #overlay {
                    display: block;
                }

/*--------------------- Media Tags for adjustments ---------------------*/

@media only screen and (max-height: 754px) {
    .modal.modal-visible {
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

    .modal .modal-content {
        margin: 78.963px auto;
        min-height: unset;
        height: auto;
        flex: 0 0 auto;
    }

        .modal .modal-content .modal-content-items h4 {
            margin: 22px 0;
        }

        .modal .modal-content #select-item {
            display: block;
            z-index: 100;
            overflow-y: visible;
        }
}

@media only screen and (max-width: 520px) {
    .modal.modal-visible {
        top: 75px;
        height: calc(100vh - 75px);
        height: calc((var(--vh, 1vh) * 100) - 75px);
        max-height: calc((var(--vh, 1vh) * 100) - 75px);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: none;
        z-index: 4;
    }

    .modal .modal-content {
        width: 100%;
        margin: 0;
        flex: 0 0 auto;
        max-height: unset;
        height: auto;
        min-height: calc(100vh - 75px);
        min-height: calc((var(--vh, 1vh) * 100) - 75px);
        border: none;
        border-radius: 0;
    }

        .modal .modal-content .modal-content-items {
            overflow-y: visible;
        }

            .modal .modal-content .modal-content-items h4 {
                margin: 22px 0;
            }

        .modal .modal-content #select-item {
            display: block;
            z-index: 100;
            overflow-y: visible;
        }

    /*
        .modal .modal-content .form-group.last {
            margin-bottom: 50px;
        }
    */

    .body.blur-content {
        filter: none;
    }

        .body.blur-content .page-content .page-body .scroll-content {
            overflow: hidden;
        }

            .body.blur-content .page-content .page-body .scroll-content .home-header {
                position: absolute;
                top: 0;
                z-index: 1000;
            }

                .body.blur-content .page-content .page-body .scroll-content .home-header a.icon i.fa {
                    color: #23527c;
                }
}
