.fp-project-modal {
    .modal-header {
        position: relative;
        background: $bgBlack;

        a {
            img {
                width: 150px;
            }
        }

        .fp-head-28 {
            color: $textWhite;
            margin-bottom: 0;
        }

        .btn-close {
            position: relative;
            padding: 0;
            top: -5px;
            right: 0;
            opacity: 1;
            background: transparent !important;

            &::after,
            &::before {
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                margin: auto;
                background: $bgWhite;
            }
        }

        @media only screen and (max-width: $xs_575) {
            padding: 10px 0;

            .col {
                width: 100%;
                flex: 1 0 auto;
            }

            .fp-head-28 {
                font-size: 20px;
                padding-top: 10px;
                text-align: left !important;
            }

            a {
                img {
                    width: 100px;
                }
            }

            .btn-close {
                position: absolute;
                top: 0;
                bottom: 0;
                right: 15px;
                margin: auto;
            }
        }
    }

    .modal-body {
        @media only screen and (max-width: $xs_575) {
            padding: 0;
        }
    }
}

.fp-container {

    .fp-cmn-des {
        @media only screen and (min-width: $xs_576) {
            min-height: calc(100vh - 400px);
        }
    }

    .fp-form-des {

        @media only screen and (min-width: $xs_576) {
            padding-bottom: 40px;
        }

        p {
            margin-top: 20px;
        }
    }

    .form-control {
        background: $bgLightPurple;
        border-color: $bgLightPink;
    }

    .form-select {
        background-color: $bgLightPurple;
        border-color: $bgLightPink;
    }

    .form-outer {
        width: 100%;
        overflow: hidden;

        form {
            display: flex;
            width: calc(100% * $stepNumber);

            .fp-page {
                width: calc(100% / $stepNumber);
                transition: margin-left 0.3s ease-in-out;

                .fp-field {
                    position: relative;
                    text-align: center;
                    margin: 45px 0;

                    input {
                        &.invalid-input {
                            border-color: red;
                        }
                    }

                    .fp-cmn-btn {
                        min-width: 160px;
                    }

                    .fp-cmn-brdr-btn {
                        margin-right: 15px;
                    }
                }
            }
        }
    }

    .fp-progress-bar {
        position: relative;
        z-index: 1;
        display: flex;
        margin: 40px 0;
        user-select: none;
        justify-content: space-between;

        @media only screen and (max-width: $xl_1660) {
            margin-top: 20px;
        }

        &::after {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 100%;
            content: '';
            z-index: -1;
            height: 4px;
            margin: auto;
            border-top: 2px dashed $bgBlack;
        }

        .fp-step {

            .fp-bullet {
                position: relative;
                width: 80px;
                height: 80px;
                line-height: 80px;
                border-radius: 50%;
                font-size: $font28;
                display: inline-block;
                font-weight: $fontMedium;
                background: $bgLightPurple;
                border: 1px solid $bgPurple;
                -webkit-transition: 0.2s;
                -moz-transition: 0.2s;
                -ms-transition: 0.2s;
                -o-transition: 0.2s;
                transition: 0.2s;

                span {
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    -o-transform: translateX(-50%);
                    -ms-transform: translateX(-50%);
                    -moz-transform: translateX(-50%);
                    -webkit-transform: translateX(-50%);
                }

                &::after {
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    opacity: 0;
                    content: '';
                    width: 27px;
                    height: 20px;
                    margin: auto;
                    background: url('../images/icons/fp-check.svg') no-repeat center;
                }

                &.fp-active {
                    background: $bgPurple;
                    border-color: $bgPurple;

                    span {
                        display: none;
                    }

                    &::after {
                        opacity: 1;
                    }
                }

                @media only screen and (max-width: $xl_1660) {
                    width: 65px;
                    height: 65px;
                    font-size: 24px;
                    line-height: 65px;
                }

                @media only screen and (max-width: $md_991) {
                    width: 50px;
                    height: 50px;
                    font-size: 20px;
                    line-height: 50px;

                    &::after {
                        width: 20px;
                        height: 13px;
                        background-size: 17px;
                    }
                }

                @media only screen and (max-width: $xs_575) {
                    width: 30px;
                    height: 30px;
                    font-size: 16px;
                    line-height: 30px;

                    &::after {
                        width: 15px;
                        height: 15px;
                        background-size: 13px;
                    }
                }
            }
        }
    }

    .fp-form-agency {
        .fp-form-agency-box {

            p {
                margin: 15px 0 0;
            }

            .fp-checkbox {
                padding-left: 0;

                .fp-checkmark {
                    position: relative;
                    width: 100%;
                    height: auto;
                    display: block;
                    cursor: pointer;
                    padding: 30px 20px;
                    margin-bottom: 30px;
                    border-radius: 16px;
                    background: $bgLightPurple;
                    border: 1px solid $bgLightPink;
                    @include fpTransition;

                    &:hover {
                        background: $bgPurple;
                        border-color: transparent;
                    }

                    &:after {
                        display: none !important;
                    }
                }

                input {
                    &:checked {
                        ~.fp-checkmark {
                            border-color: transparent;
                            background-color: $bgPurple;
                        }
                    }
                }
            }
        }
    }

    .fp-budget-list {
        .fp-checkbox {
            padding-left: 0;
        }

        .fp-checkmark {
            position: relative;
            width: 100%;
            height: auto;
            padding: 25px;
            display: block;
            text-align: left;
            margin-bottom: 10px;
            border-radius: 16px;
            background: $bgLightPurple;

            &:hover {
                background: $bgPurple;
            }

            &:after {
                display: none !important;
            }
        }
    }

    .fp-web-check {
        display: flex;
        margin-top: 30px;
        justify-content: center;

        .fp-checkbox {
            text-align: left;
            font-size: $font14;
        }
    }

    .fp-checkbox {
        .fp-checkmark {
            @media only screen and (max-width: $xs_575) {
                font-size: 14px;
            }
        }
    }
}

@keyframes animate {
    100% {
        transform: scaleX(1);
        -o-transform: scaleX(1);
        -ms-transform: scaleX(1);
        -moz-transform: scaleX(1);
        -webkit-transform: scaleX(1);
    }
}