.eacf7-conversational-form {
    position: relative;

    &.eacf7-conversational-full-screen {
        background-color: #fff;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        z-index: 999999;
        height: 100%;

        .active {
            .content {
                padding: 100px;
            }
        }
    }

    >div {
        height: 100%;
        display: none !important;
        justify-content: center;
        align-items: center;
        gap: 20px;

        &.eacf7-welcome-screen {
            display: flex;
            align-items: center;
            justify-content: space-between;

            &.active {
                ~.eacf7-conversational-prev-next-control {
                    display: none !important;
                }
            }

            &.layout-left {
                .content {
                    padding: 0;
                    &.right{
                        padding: 100px;
                    }
                }
            }

            .content {
                flex: 1 1 50%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: flex-start;
                padding-right: 20px;

                &.left {
                    align-items: flex-start;
                }

                &.center {
                    align-items: center;
                }

                &.right {
                    align-items: flex-end;
                }

                h2 {
                    margin: 0;
                }

                button {
                    border: 0;
                    background: #1E62B9;
                    color: #fff;
                    padding: 10px 20px;
                    border-radius: 10px;
                    font-size: 20px;
                    line-height: 1;
                }
            }

            .img {
                flex: 1 1 50%;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    height: 100vh;
                    object-fit: cover;
                }
            }
        }

        &.eacf7-conversational {
            p {
                margin: 0;
            }
        }

        &.eacf7-conversational-prev-next-control {
            position: absolute;
            right: 0;
            bottom: 0;
            display: inline-flex !important;
            gap: 0;
            height: auto;

            a {
                background: #ddd;
                cursor: pointer;
                line-height: 1;
                text-decoration: none;
                padding: 10px;
                transition: all .3s;

                &:hover {
                    background: #ededed;
                }

                svg {
                    path {
                        fill: #000;
                    }
                }
            }
        }

        &.active {
            display: flex !important;
        }

        &.eacf7-thank-you-screen {
            &.active {
                ~.eacf7-conversational-prev-next-control,
                ~.eacf7-progressbar {
                    display: none !important;
                }
            }
            .content{
                flex: 1 1 50%;
                a{
                    text-decoration: none;
                }
            }
            .img {
                flex: 1 1 50%;
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    height: 100vh;
                    object-fit: cover;
                }
            }
        }

        &.eacf7-progressbar{
            position: absolute;
            left: 0;
            top: 0;
            height: 3px;
            width: 100%;
            background-color: #000;
            display: block !important;
            .eacf7-progress-completed{
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                background-color: #1E62B9;
            }
        }
    }

    .eacf7-conversational {
        >* {
            width: 70%;
        }

        .title {
            font-weight: 500;
            font-size: 36px;
            color: #1E62B9;
        }

        .eacf7-conversational-control {
            margin-top: 20px;

            button {
                border: 0;
                background: #1E62B9;
                color: #fff;
                padding: 10px 20px;
                border-radius: 4px;
                font-size: 20px;
                line-height: 1;
            }
        }

        .iti__country-container{
            height: 40px;
        }

        &.active {
            flex-direction: column;
            padding: 100px;
        }
    }
}

@media screen and (max-width: 767px) {
    .eacf7-conversational-form {
        >div {
            &.eacf7-welcome-screen {
                gap: 10px;
                flex-direction: column;
                &.active{
                    .img{
                        width: 100%;
                        img{
                            height: 100%;
                        }
                    }
                }
                .content {
                    width: 100%;
                    h2 {
                        font-size: 20px;
                    }

                    p {
                        margin-bottom: 10px;
                    }

                    button {
                        font-size: 16px;
                        padding: 7px 14px;
                    }
                }
            }
            &.eacf7-thank-you-screen{
                &.active{
                    flex-direction: column;
                    .content{
                        padding: 50px;
                    }
                    .img{
                        img{
                            height: 100%;
                        }
                    }
                }
                .content{
                    width: 100%;
                }
            }
            &.eacf7-conversational{
                .title {
                    font-size: 26px;
                }
                .eacf7-conversational-control{
                    button{
                        font-size: 16px;
                    }
                }
                &.active {
                    padding: 20px 0;
                }
            }
        }
    }
}