/**=====================
     Form Wizard scss
==========================**/
.basic-wizard {
    .stepper-horizontal {
        padding: 20px;
        width: 100%;
        margin: 0 auto 24px;
        justify-content: center;
        border-radius: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        background-color: $section-bg;

        body.dark & {
            background-color: #252934;

            .step-circle {
                background-color: #171B27;
                border-color: #454545;
            }

            .stepper-two {

                span,
                .step-title {
                    color: rgba($white, 0.6);
                }
            }
        }

        .step {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;

            &:last-child {
                &:after {
                    display: none;
                }
            }

            .step-title {
                font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
                white-space: nowrap;
                color: $light-color;
            }

            &.stepper {
                .step-circle {
                    border: 1px dashed var(--theme-color);
                    color: var(--theme-color);
                    font-weight: 600;
                }

                .step-title {
                    color: var(--theme-color);
                    font-weight: 600;
                }
            }

            &:first-child {
                padding-left: 0;

                [dir="rtl"] & {
                    padding-left: unset;
                    padding-right: 0;
                }

                @media (max-width: 767.98px) {
                    padding-right: 0;

                    [dir="rtl"] & {
                        padding-right: unset;
                        padding-left: 0;
                    }
                }
            }

            &:last-child {
                padding-right: 0;

                [dir="rtl"] & {
                    padding-right: unset;
                    padding-left: 0;
                }

                @media (max-width: 767.98px) {
                    padding-left: 0;

                    [dir="rtl"] & {
                        padding-left: unset;
                        padding-right: 0;
                    }
                }
            }

            &:last-child {

                .step-bar-left,
                .step-bar-right {
                    display: none;
                }
            }

            .step-circle {
                @include pseudowh($width: calc(48px + (62 - 48) * ((100vw - 320px) / (1920 - 320))), $height: calc(48px + (62 - 48) * ((100vw - 320px) / (1920 - 320))));
                border-radius: calc(5px + (8 - 5) * ((100vw - 320px) / (1920 - 320)));
                background-color: $white;
                @include flex_common;
                font-size: calc(20px + (22 - 20) * ((100vw - 320px) / (1920 - 320)));
                font-weight: 500;
                border: 1px solid $border-color;
                color: $light-color;
            }

            &.done {
                .step-circle {
                    background-color: var(--theme-color);
                    border: 1px solid var(--theme-color);
                    color: $white;
                    position: relative;

                    &:before {
                        @include pos;
                        top: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
                        left: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
                        background-image: url(@/svg/tick.svg);
                        background-repeat: no-repeat;
                        background-position: center;
                        background-size: contain;
                        z-index: 0;
                        @include pseudowh($width: 20px, $height: 20px);

                        [dir="rtl"] & {
                            left: unset;
                            right: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320)));
                        }
                    }

                    * {
                        display: none;
                    }
                }

                .step-title {
                    color: var(--theme-color);
                }

                ~.step {
                    .step-circle {
                        border: 1px dashed var(--theme-color);
                        color: var(--theme-color);
                    }

                    .step-title {
                        color: var(--theme-color);
                        font-weight: 600;
                    }
                }
            }

            .step-title,
            .step-optional {
                text-align: center;
            }
        }
    }
}

.service-booking {
    padding: calc(20px + (30 - 20) * ((100vw - 320px) / (1920 - 320)));
    width: 100%;

    ul {
        .booking-list {
            padding-bottom: calc(20px + (50 - 20) * ((100vw - 320px) / (1920 - 320)));
            position: relative;

            &:before {
                @include pos;
                border-left: 1px dashed $light-color;
                opacity: 0.3;
                top: 16px;
                left: 7px;
                height: calc(100% - 16px);

                [dir="rtl"] & {
                    left: unset;
                    right: 7px;
                }
            }

            &:last-child {
                padding: 0;

                &:before {
                    display: none;
                }
            }
        }

        .invalid-feedback {
            position: absolute;
            left: 40px;
            bottom: 30px;

            [dir="rtl"] & {
                left: unset;
                right: 40px;
            }
        }
    }

    h3 {
        font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
        font-weight: 500;
        line-height: 23px;
        color: $title-color;
    }

    .delivery-location {
        background-color: $white !important;
        border: 1px solid $border-color !important;
        border-radius: 10px;
        margin-bottom: 0;
        height: 100%;
        overflow: unset;

        body.dark & {
            background-color: #171B27 !important;
            border-color: #454851 !important;

            .delivery-name {
                h4 {
                    color: $white;
                }

                span {
                    color: rgba($white, 0.6);
                }
            }

            .address {
                label {
                    color: $white;
                }

                p {
                    color: rgba($white, 0.6);
                }
            }

            .address-bottom-box {
                background-color: #171B27 !important;

                .btn-outline {
                    background-color: #171B27 !important;
                    border-color: #454851;

                    &:hover {
                        border: 1px solid transparent;
                        background-color: var(--theme-color) !important;

                    }

                }
            }
        }

        .location-header {
            padding: calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320)));
            @include flex_common ($dis: flex, $align: center, $justify: space-between);
            gap: 4px;
            border-bottom: 1px solid $border-color;

            @media (max-width: 575.98px) {
                flex-direction: column;
                align-items: start;

                [dir="rtl"] & {
                    align-items: end;
                }
            }

            .location-icon {
                img {
                    height: 24px;

                    @media (max-width: 575.98px) {
                        height: 16px;
                    }
                }
            }

            .active-icon {
                border: 1px solid var(--theme-color);
                border-radius: 100%;
                @include pseudowh($width: calc(42px + (50 - 42) * ((100vw - 320px) / (1920 - 320))), $height: calc(42px + (50 - 42) * ((100vw - 320px) / (1920 - 320))));
                @include flex_common;

                img {
                    background-color: var(--theme-color);
                    border: 1px solid $white;
                    padding: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
                    border-radius: 100%;
                    @include pseudowh($width: calc(38px + (42 - 38) * ((100vw - 320px) / (1920 - 320))), $height: calc(38px + (42 - 38) * ((100vw - 320px) / (1920 - 320))));
                    @include flex_common;
                }
            }

            .name {
                text-transform: capitalize;

                h4 {
                    font-weight: 500;
                    font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
                    line-height: 1.3;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;
                }

                span {
                    margin-top: 2px;
                    color: $light-color;
                    font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
                }
            }

            .badge {
                @media (max-width: 575.98px) {
                    margin-left: 50px;

                    [dir="rtl"] & {
                        margin-left: unset;
                        margin-right: 50px;
                    }
                }
            }
        }

        .address {
            padding: calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320)));

            p {
                font-size: 16px;
                line-height: 1.5;
                height: 48px;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                display: -webkit-box;
                overflow: hidden;
            }

            .btn-outline {
                border-width: 1px;
                width: max-content;
                padding: 9px 18px;
            }
        }

        .address-bottom-box {
            padding: calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320))) calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
            border-top: 1px solid #ddd;
            position: relative;
            overflow: unset;

            .action {
                position: relative;
                display: flex;
                align-items: center;
                gap: 13px;

                label {
                    &.error {
                        position: absolute;
                        bottom: -40px;
                        left: 0;

                        [dir="rtl"] & {
                            left: unset;
                            right: 0;
                        }
                    }
                }
            }

            .btn {
                width: 100%;
                padding-block: 10px;
                font-weight: 500;
                border-radius: 8px;

                &-fill {
                    border: transparent;
                    color: $white;
                    background-color: var(--theme-color);

                    &:hover {
                        background-color: transparent;
                        color: var(--theme-color);
                        border: 1px solid var(--theme-color);
                    }
                }

                &-outline {
                    border: 1px solid var(--theme-color);
                    color: var(--theme-color);
                    background-color: transparent;

                    &:hover {
                        background-color: var(--theme-color);
                        color: $white;
                        border-color: transparent;
                    }
                }
            }

            .radio {
                position: absolute;
                top: 0;
                left: 0;
                @include pseudowh;
                opacity: 0;
                cursor: pointer;

                [dir="rtl"] & {
                    left: unset;
                    right: 0;
                }
            }
        }

        .radio:checked {
            ~button {
                background-color: var(--theme-color);
                color: $white;
            }
        }
    }

    input[type="radio"] {
        &:checked {
            ~.delivery-location {
                .btn-outline {
                    background-color: var(--theme-color);
                    color: $white;
                }
            }
        }
    }

    .add-location {
        color: var(--theme-color);
        background-color: transparent;
        border: none;
        cursor: pointer;
        font-weight: 500;
        font-size: 16px;
        text-decoration: underline;

        &:hover {
            text-decoration: underline;
        }
    }

    .booking-data {
        margin-top: -3px;
        width: calc(100% - 16px - calc(14px + (24 - 14) * ((100vw - 320px) / (1920 - 320))));
        margin-left: calc(14px + (24 - 14) * ((100vw - 320px) / (1920 - 320)));

        [dir="rtl"] & {
            margin-left: unset;
            margin-right: calc(14px + (24 - 14) * ((100vw - 320px) / (1920 - 320)));
        }

        .date-time-picket-sec {
            body.dark & {
                background-color: #171B27;
            }
        }

        .select-option {
            flex-direction: row;
            background-color: transparent;
            border: none;
            background-color: $white;
            padding: 0 0 calc(13px + (20 - 13) * ((100vw - 320px) / (1920 - 320))) 0;
            gap: calc(4px + (40 - 4) * ((100vw - 320px) / (1920 - 320)));
            flex-wrap: wrap;

            body.dark & {
                background-color: #171B27;

                .form-check {
                    label {
                        color: rgba($white, 0.6);
                    }
                }
            }

            .form-check {
                border: none;
                padding: 0;
                flex-direction: row;
                align-items: flex-start;

                .form-radio-input {
                    @include pseudowh($width: 22px, $height: 22px);
                    border: none;
                    margin-top: 1px;
                    appearance: none;

                    &:checked {
                        &::before {
                            transform: translate(-50%, -50%) scale(1);
                        }

                        ~label {
                            font-weight: 500;
                            color: rgba($title-color, 0.9);
                        }
                    }

                    &::before {
                        top: 50%;
                        left: 50%;
                        right: unset;
                        transform: translate(-50%, -50%) scale(0);
                    }

                    &::after {
                        @include center(both);
                        right: unset;
                    }
                }
            }
        }

        .text-success {
            font-size: 18px;
        }

        .servicemen-list-item {
            width: max-content;
            min-width: 276px;
            background-color: $section-bg;
            border: none;
            box-shadow: none;

            @media (max-width: 480px) {
                min-width: 188px;
                width: auto;
            }
        }

        .note {
            margin-block: 16px;
        }
    }
}

.activity-dot {
    @include pseudowh($width: 16px, $height: 16px);
    border-radius: 100%;
    outline: 1px solid var(--theme-color);
    position: relative;
    z-index: 0;

    &:after {
        @include pos;
        background-color: var(--theme-color);
        @include pseudowh($width: 8px, $height: 8px);
        border-radius: 100%;
        @include center(both);
    }
}

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
    padding-top: 23px;

    .btn-outline {
        border-width: 1px;
    }

    .next-btn {
        padding: 12px 20px;
        display: inline-block;
        width: auto;

        @media (max-width:375px) {
            width: 100%;
        }
    }

    button {
        width: max-content;
        padding: 11px 26px;
        font-size: 16px;
        font-weight: 500;

        @media (max-width: 575.98px) {
            width: 100%;
        }
    }

    &.service-booking-wizard-footer {
        padding-inline: 30px;
    }

    &.service-booking-footer {
        padding: calc(10px + (20 - 10) * ((100vw - 320px) / (1920 - 320))) calc(20px + (30 - 20) * ((100vw - 320px) / (1920 - 320)));
    }
}

.date-time-picket-sec {
    background-color: $white;
    border-radius: 10px;
    border: 1px solid $border-color;
    padding: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));

    body.dark & {
        background-color: #252934;
        border-color: #454851;
    }
}

.date-time-picker {
    display: flex;
    align-items: center;
    gap: 12px;

    @media (max-width: 767.98px) {
        flex-wrap: wrap;
    }

    input {
        color: $title-color;
    }
}

.input-icon {
    position: absolute;
    top: calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320)));
    left: calc(12px + (16 - 12) * ((100vw - 320px) / (1920 - 320)));
    --Iconsax-Size: calc(18px + (20 - 18) * ((100vw - 320px) / (1920 - 320)));
    --Iconsax-Color: #808B97;

    [dir="rtl"] & {
        left: unset;
        right: calc(12px + (16 - 12) * ((100vw - 320px) / (1920 - 320)));
    }

    body.dark & {
        --Iconsax-Color: rgba(255, 255, 255, 0.6);
    }
}

.edit-option {
    background-color: unset;
    border: none;
    padding: 0;
    color: var(--theme-color);
    text-decoration: underline;
    font-size: 18px;
}

.selected-men {
    background-color: $white;
    padding: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}