.page-template-test-drive,
.page-template-register-car-consultation,
.page-template-truck-test-drive {
    .section-heading {
        padding-top: 25px;
        padding-bottom: unset;
    }
    @media screen and (max-width: 750px) {
        .section-heading .heading {
            padding-bottom: unset;
        }
    }
    .popup-registration {
        margin: 0 auto;
    }
    #main {
        margin-bottom: 25px;
    }
    .form-group {
        .form-control {
            &.text-control,
            &.textarea-control,
            &.select-control {
                border: 1px solid #eaeaea;
            }
            &.text-control,
            &.select-control {
                height: 40px;
            }
            &.radio-control {
                margin-top: 12px;
            }
            &.textarea-control {
                height: 115px;
            }
        }
    }
    .form-inline,
    .form-group {
        a,
        i {
            color: #dd432f;
        }
        .error,
        .wpcf7-not-valid-tip {
            display: none;
            text-transform: uppercase;
            color: #dd432f;
            font-size: $fs-bit;
            margin-left: 15px;
        }
        &.show_error {
            p {
                line-height: normal;
            }
            .error {
                display: inline-block;
            }
        }
    }
    .form-content {
        .form-group {
            > label {
                color: $cl-black;
                text-transform: uppercase;
                font-size: $fs-smaller;
                font-weight: 500;
            }
        }
    }
    .form-bottom {
        display: flex;
        justify-content: space-between;
        .btn-reset {
            font-size: $fs-smaller;
            color: #8e8e8e;
            line-height: 1;
            font-weight: 500;
            > span {
                text-decoration: underline;
            }
        }
        .btn-submit {
            width: 149px;
            height: 46px;
            font-size: $fs-semismall;
            color: $cl-white;
            font-weight: 600;
            background-color: $cl-main;
        }
        .ajax-loader {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-repeat: no-repeat;
            background-position: center;
            background-color: rgba($cl-dark, 0.2);
            margin-left: 0;
        }
    }
}
.popup-registration {
    .wpcf7-form-control-wrap {
        display: block;
        input[type="date"],
        input[type="time"] {
            width: 100%;
            height: 40px;
            border: 1px solid #eaeaea;
            padding: 0 20px;
        }
    }

    $color_1: #c80200;
    $color_2: #c80201;
    $background-color_1: #eee;

    .form-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .ProductType-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
        @media screen and (max-width: 750px) {
            grid-gap: 15px;
        }
        label {
            width: 100%;
            border: 1px solid #c4c4c4;
            text-align: center;
            cursor: pointer;
            padding: 30px;
            @media screen and (max-width: 750px) {
                padding: 15px 5px;
            }
            &.active {
                background-color: $background-color_1;
                border: 1px solid #eee;
            }
        }
        img {
            max-height: 100%;
            max-width: 100%;
        }
        span {
            height: 22px;
            svg {
                width: 22px;
                border-radius: 100%;
                border: 1px solid #c4c4c4;
                path {
                    display: none;
                }
            }
        }
        input {
            &:checked ~ .test-drive-form__model-selector {
                svg {
                    path {
                        display: block;
                    }
                    color: $color_1;
                }
            }
        }
        .test-drive-form__model-selector {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 1rem;
            > span {
                display: block;
                margin-right: 5px;
            }
        }
    }
    .form-content--heading {
        margin-bottom: 30px;
        margin-top: 30px;
        font-size: 20px;
        text-transform: uppercase;
        color: $color_2;
    }
    .ProductModel {
        label {
            margin-bottom: unset;
        }
        .select-control {
            border-top: unset !important;
            border-left: unset !important;
            border-right: unset !important;
            select {
                padding: unset !important;
                text-transform: uppercase;
            }
        }
    }
    .test-drive-form__selected-vehicle-image {
        img {
            width: 100%;
            max-width: 332px;
        }
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-bottom--policy {
        & > span {
            display: inline-block;
            margin-top: 1rem;
            a {
                color: $color_2;
            }
        }
    }

    .form-content--policy {
        .wpcf7-acceptance {
            .wpcf7-list-item {
                margin: unset;
                & > label {
                    display: flex;
                    align-items: flex-start;
                    input[type="checkbox"] {
                        margin-top: 5px;
                    }
                    & > span {
                        display: inline-block;
                        margin-left: 5px;
                    }
                }
            }
            .wpcf7-checkbox {
                input[type="checkbox"] {
                    margin-top: 7px;
                }
            }
        }
    }
}

.owl-registration-cv-car {
    display: block !important;
    padding: 2px;
}

.owl-registration-cv-car {
    .item {
        display: flex;
        .image-thumb {
            width: 100%;
            padding-bottom: 62.25%;
            position: relative;
            & > img {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100%;
                height: 100%;
                object-fit: contain;
                object-position: center;
            }
        }
    }
    .owl-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        .owl-dot {
            padding: 10px 6px !important;
            visibility: visible;
            & > span {
                height: 4px;
                width: 20px;
                background: none;
                border-radius: 50px;
                display: inline-block;
                background-color: rgba(0, 0, 0, 0.3);
            }
            &.active {
                & > span {
                    background-color: #c80200;
                }
            }
        }
    }

    .owl-nav {
        button.owl-prev,
        button.owl-next {
            position: absolute;
            top: 40%;
            width: 30px;
            height: 30px;
            background-color: $cl-black;
            color: white;
            border-radius: 100%;
            font-size: $fs-medium;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.5;
            transition: opacity 0.3s ease-in-out;
            &:hover {
                opacity: 1;
            }
            span {
                font-size: 1.5rem;
                line-height: 1.2rem;
            }
        }

        .owl-prev {
            left: -2.5rem;
            i {
                position: absolute;
                left: 10px;
            }
            @media only screen and (max-width: 1200px) {
                display: none !important;
            }
        }
        .owl-next {
            right: -2.5rem;
            i {
                position: absolute;
                right: 10px;
            }
            @media only screen and (max-width: 1200px) {
                display: none !important;
            }
        }
    }
}

.registration-cv-form {
    .ProductType-wrapper {
        .form-content--heading {
            margin-top: unset;
        }
    }
}

.page-template-truck-test-drive,
.page-template-register-car-consultation{
    .section-content {
        padding-bottom: 2rem;
    }
    .btn-submit {
        background-color: #c80200 !important;
    }
}
