@use 'globals' as *;

::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>');
    filter: invert(68%) sepia(35%) saturate(364%) hue-rotate(189deg) brightness(103%) contrast(103%);
}

.has-filters {
    //margin-top: 6rem;
}

button {
    border: none;
    border-radius: 5px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;

    & i {
        font-size: 16px;
        line-height: 20px;
        padding: 9px;
        margin-right: 8px;
    }

    &[type="reset"] {
        background-color: #ffebf0;
        color: #ff3366;
    }

    &[type="submit"] {
        background-color: #5EE2AE;
        color: #136746;
        cursor: pointer;
        &.disabled {
            background-color: #e9ecef;
            color: #c2c4cc;
            cursor: initial;
        }
    }

    &.show-filters, &.reset-filters {
        padding: 2px 10px !important;
    }
}

.content-navbar {
    position: sticky;
    top: 156px;
    padding-top: 10px;
    margin-bottom: 20px;
    z-index: 99;
    background-color: #F7F9FF;
}

.big-final-value {
    text-align: center;
    width: 100%;
    font-weight: bold;
    font-size: 27px;
    margin: 30px 0;

    &.positive {
        color: #6ac96f;
    }

    &.negative {
        color: #da3f3f;
    }
}
.select-or {
    display: block;
    width: 30px;
    height: 30px;
    background-color: #5a04f1;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    margin-top: 23px;
    font-weight: 700;
    line-height: 29px;
}

.form-inner-title {
    font-size: 24px;
    line-height: 32px;
    height: 37px;
    font-family: $nunito;
    font-weight: 300;
    color: #9C9EB2;
    margin: 20px 0 40px 0!important;
    position: relative;

    &.active {
        font-weight: bold;
    }

    & i {
        position: absolute;
        right: 0;
        top: 5px;
        cursor: pointer;
    }
    & + .inner-section {
        visibility: hidden;
        overflow: hidden;
        transition: height 0.25s linear;
        &.active {
            visibility: visible;
            transition: height 0.25s linear;
        }
    }
}

.download-template {
    & i {
        font-size: 18px;
        color: $purple-new;
        margin-right: 10px;
    }
}

.form {

    &  p.finalized-text {
        font-size: 22px;
        color: #949494;
        font-style: italic;
        & i {
            font-size: 20px;
        }
    }

    &-page-container {
        max-width: 1570px;

        & .form-subgroup.sections {
            & .section-panel {
                margin-bottom: 1.5rem;

                &--inner {
                    border: thin solid #CCCCCC;
                }

                & button {
                    background-color: transparent;
                    color: #000;
                }

                &-title {
                    align-items: center;
                    justify-content: space-between;

                    & h4 {
                        font-size: 16px;
                        font-weight: bold;
                    }

                    &-buttons {
                        button.add-button {
                            margin: 7px auto 1rem auto;
                        }

                        & form {
                            & button {

                            }
                        }

                    }
                }

            }

            & .modal {
                &-footer {

                    & button {
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        &.cancel {
                            background: #e1b018;
                        }

                        &.save {
                            background: #4964b4;
                            color: #fff;
                        }
                    }
                }
            }

            & .active-components {
                margin: 0;

                & .selectedComponent {
                    margin-bottom: 10px;

                    & button {
                        width: inherit;
                        color: #fff;
                    }

                    &--inner {
                        border-radius: 4px;
                        background: #3761ee;
                        color: #fff;
                        margin: 0;
                        align-items: center;
                    }
                }
            }
        }
    }

    &-steps {
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        background: #fff;
        padding: 15px 18px;
        border-radius: 7px;
        border: thin solid #E8E8ED;
        @media (max-width: 991px) {
            padding: 9px 0;

        }

        &--step {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30%;
            padding: 7px 0;
            background-color: $white;
            border-radius: 5px;
            margin: 0 2%;
            position: relative;
            text-decoration: none;

            & a {
                text-decoration: none;
            }

            &:last-child {
                &::after {
                    display: none;
                }
            }

            &::after {
                content: "";
                position: absolute;
                width: 1px;
                height: 100%;
                background-color: $grey;
                right: -27px;
                top: 0;
            }

            &:hover {
                background-color: #EBF0FF;
            }

            &---icon {
                margin-right: 15px;
                @media (max-width: 991px) {
                    margin-right: 8px;
                }

                & i {
                    font-size: 21px;
                    line-height: 41px;
                    color: #617AFA;
                }
            }

            &---data {
                font-family: $nunito;
                font-size: 14px;
                line-height: 19px;

                & .step-count {
                    display: block;
                    color: #617AFA;
                    font-weight: 100;
                }

                & .step-title {
                    display: block;
                    color: $darkblue;
                    font-weight: 600;
                }
            }
        }
    }

    &-container {



        & .invite-box {
            & .inner {
                border: thin solid #ccc;
                height: 100%;
                display: flex;
                flex-wrap: wrap;
                padding: 0 30px 30px 30px;
                border-radius: 7px;
                gap: 20px;

                & h2.form-inner-title {
                    width: fit-content;
                    display: inline-block;
                    cursor: pointer;
                }
            }
        }


        & form {

            & .form-check {
                & .form-check-input {
                    width: 30px !important;
                    height: 30px !important;
                    margin-right: 6px;
                    margin-top: 0;
                }
            }
            & .form-field {
                margin-bottom: 25px;



                &--title {
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    margin-bottom: 30px;

                    & label {
                        width: 90%;
                    }

                    & input {
                        width: 10%;
                    }
                }

                & label {
                    font-size: 16px;
                    line-height: 22px;
                    font-weight: bold;
                    font-family: $nunito;
                    color: $darkblue;
                    min-height: 37px;


                    & span {
                        font-weight: normal;
                        font-size: 14px;
                    }
                }

                & input {
                    &[type="text"] {
                        font-size: 14px;
                        line-height: 18px;
                        font-family: $open;
                        font-weight: 500;
                        padding: 10px 20px;
                        border: thin solid #ADC2FF;
                        border-radius: 7px;
                    }

                    &[type="checkbox"] {
                        border: thin solid #ADC2FF;
                        width: 25px;
                        height: 25px;
                        border-radius: 50%;
                        appearance: none;
                        cursor: pointer;
                        position: relative;

                        &:checked {
                            background-color: #3761EE;

                            &::after {
                                content: "";
                                position: absolute;
                                width: 7px;
                                height: 13px;
                                border-right: 3px solid #fff;
                                border-bottom: 3px solid #fff;
                                display: inline-block;
                                top: 4px;
                                left: 8px;
                                transform: rotate(45deg);
                            }
                        }
                        &:disabled,
                        &.disabled {
                            border-color: #D1D5DB;
                            background-color: #F3F4F6;
                            cursor: not-allowed;
                            opacity: 0.6;

                            &:checked {
                                background-color: #9CA3AF;

                                &::after {
                                    border-color: #E5E7EB;
                                }
                            }
                        }
                    }

                    &[type="range"] {
                        width: 100%;
                    }

                    &[type="file"] {
                        border: 2px dashed #DFE2ED !important;
                        padding: 71px !important;
                        height: 200px !important;
                        text-align: center;
                        position: relative;
                        &::before {
                            content: "\f093";
                            font-family: FontAwesome, sans-serif;
                            position: absolute;
                            display: block;
                            z-index: 999999;
                            font-size: 29px;
                            left: 50%;
                            transform: translateX(-50%);
                            color: #DFE2ED;
                        }
                        &[disabled] {
                            &::file-selector-button {
                                background-color: #e0e3ed;
                                color: #c2c3c9;
                            }
                        }
                        &::file-selector-button {
                            display: block;
                            margin: 40px auto 20px auto;
                            border: none;
                        }
                    }

                    &[type="date"] {
                        font-size: 14px;
                        line-height: 18px;
                        font-family: $open;
                        font-weight: 500;
                        padding: 10px 20px;
                        border: thin solid #ADC2FF;
                    }

                    &[disabled="disabled"] {
                        background-color: #EBF0FF;
                        opacity: 1;
                        border: thin solid #ADC2FF;
                        padding: 10px 20px;

                        &::placeholder {
                            color: $darkblue;
                            font-weight: 300;
                        }
                    }
                }

                & textarea {
                    font-size: 14px;
                    line-height: 18px;
                    font-family: $open;
                    font-weight: 500;
                    padding: 10px 20px;
                    border: thin solid #ADC2FF;
                    min-height: 100px;
                }

                & .form-check, .range-input {
                    border: thin solid #ADC2FF;
                    padding: 8px 11px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    flex-wrap: wrap;

                    & .range-indicator {
                        color: #2B5BFC;
                        font-size: 16px;
                        line-height: 22px;
                        font-weight: 600;
                        font-family: $nunito;
                        width: 100%;
                    }

                    & input {
                        &.form-check-input {
                            float: right;
                        }
                    }
                }

                & .select2 {
                    &-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
                        transform: rotate(135deg);
                        top: 18px;
                        border-color: #ADC2FF;
                        border-width: 2px;
                    }

                    &-selection {
                        min-height: 40px;
                        border: thin solid #ADC2FF;

                        &--multiple {
                            height: 200px !important;
                            overflow-y: auto;
                            & ul {
                                & li.select2-selection__choice {
                                    line-height: 26px;
                                    background-color: #2B5BFC;
                                    border-radius: 5px;
                                    border-color: #2B5BFC;
                                    font-size: 12px;
                                    float:left;

                                    & .select2-selection__choice__remove {
                                        border: none;
                                        color: $white;
                                        width: auto;
                                    }

                                    & .select2-selection__choice__display {
                                        color: $white;
                                        padding: 0 10px;
                                    }
                                }
                                &::after {
                                    content: "";
                                    display: block;
                                    clear: both;
                                    width: 100%;
                                    position: relative;
                                }
                            }
                        }

                        &__rendered {
                            line-height: 40px;

                        }

                        &__arrow {
                            & b {
                                height: 16px;
                                border-left: 2px solid #ADC2FF;
                                border-bottom: 2px solid #adc2ff;
                                border-top: 0;
                                border-right: 0;
                                width: 16px;
                                transform: rotate(-45deg);
                                left: inherit;
                                right: 15px;
                                top: 25px;
                            }
                        }
                    }
                }
            }

            & .field-group {
                display: flex;
                flex-wrap: wrap;
                gap: 2%;

                margin: 15px 0 25px 0;
                width: 100%;

                &--title {
                    width: 100%;
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 25px;
                    border: thin solid #ADC2FF;
                    padding: 15px;

                    & label {
                        font-size: 16px;
                        line-height: 22px;
                        font-weight: bold;
                        font-family: $nunito;
                        color: $darkblue;
                    }

                    & input {
                        &[type="checkbox"] {
                            border: thin solid #ADC2FF;
                            width: 25px;
                            height: 25px;
                            border-radius: 50%;
                            appearance: none;
                            cursor: pointer;
                            position: relative;
                            padding: 0 !important;
                            background-position: center;

                            &:checked {
                                background-color: #3761EE;

                                &::after {
                                    content: "";
                                    position: absolute;
                                    width: 7px;
                                    height: 13px;
                                    border-right: 3px solid #fff;
                                    border-bottom: 3px solid #fff;
                                    display: inline-block;
                                    top: 4px;
                                    left: 8px;
                                    transform: rotate(45deg);
                                }
                            }
                        }
                    }
                }

                & .form-field {
                    width: 49%;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    & label {
                        font-weight: 500;
                    }

                    & input {
                        &[type="text"] {
                            &:focus {
                                outline: 0;
                                box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
                            }
                        }

                    }
                }
            }

        }
    }

    &-buttons {
        margin-top: 35px;
        border-top: thin solid #e6e6e6;
        padding-top: 25px;
        display: flex;
        justify-content: flex-end;
        justify-items: flex-end;
        gap: 20px;
        & button {
            padding: 2px 17px;
            text-align: center;
        }
        &-container {
            align-items: center;
            margin-top: 55px !important;
            & .form-buttons {
                padding-top: 0;

                & button {
                    padding : 5px 10px;
                }

                & button[type="submit"] {
                    height: 50px;
                    min-width: 100px;
                }
            }
            & .form-field {
                margin-bottom: 0!important;
                & label {
                    min-height: inherit !important;
                }
            }
            & input[type="checkbox"] {
                width: 45px!important;
                height: 25px!important;
                padding: 0!important;
            }
        }

        &.inline {
            border: none;
            margin: 0;
            justify-content: center;

        }
    }


}

form {
    & .radio-group-container {
        display: contents;

        & .radio-container {
            width: 120px;
            display: flex;
            align-items: center;

            & label {
                margin-bottom: 0;
            }
        }
    }
}

label.range-label {
    width: 25%!important;
}

.radios-container.range {
    position: relative;
    & .show-score {
        position: absolute;
        right: -23px;
        width: 30px;
        font-size: 18px;
        font-weight: bold;
    }
    & label {
        width: 30%;
    }
}

