:root {
    --xs-continer-gap: 30px;
    --main-color: #2cc185;
    --main-color70: #2cc185b9;
    --focus-color: #89e4bf;
    --hover-color: #337f61;
    --light-color: #7fd3b0;
    --dark-color: #323232;
    --cream-color: #eceeef;
    --common-text-color: #545454;
    --chart-color: #2cc185;
    --chart-line-color: #2c68c1;
    --icons-color: #45a780;
}

/**/

.card {
    background-color: #fff;
    margin-bottom: 29px;
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
    border-radius: 10px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border: 0 solid rgba(0, 0, 0, .125);
    text-align: left;
    padding: 2% 2%;

    .card-header {
        font-size: 1.2rem;
        font-weight: 400;
        color: #3d3d3d;
        padding: 24px 0 14px;
        margin: 0 40px;
        border-bottom: 0 solid rgba(0, 0, 0, .125);
        line-height: 1.738;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .card-title {
            padding-right: 15px;
        }

        .tools .btn {
            display: inline-block;
            font-size: 1.1rem;
        }

        .tools {
            display: flex;
            gap: 15px;
        }

        @media(max-width: 1253px) {
            .tools {
                display: flex;
                flex-direction: column;
                gap: 8px;

                .btn {
                    margin-left: 0;
                }
            }
        }
    }

    .card-header-divider {
        border-bottom: 1px solid #e6e6e6;
        padding-left: 0;
        padding-right: 0;
    }

    .top-divider {
        border-top: 1px solid #e6e6e6;
    }

    .card-subtitle {
        display: block;
        font-size: 1rem;
        margin-top: 0;
        line-height: 1.3;
        margin-bottom: 4px;
        color: #878787;
        font-weight: 200;
    }

    .card-body {
        padding: 20px 40px 24px;
        flex: 1 1 auto;
    }

    @media (max-width: 768px) {
        .card-header {
            flex-direction: column;
            align-items: flex-start;

            .card-title {
                margin-bottom: 15px;
            }
        }
    }

    @media (max-width: 425px) {
        .card-body {
            padding: 5px 20px 24px;
        }

        .card-header {
            margin: 0 20px;
        }
    }
}

input:focus {
    outline: none;
}

.custom-input {
    display: block;
    width: 100%;
    padding: 0.56rem 1.3rem;

    line-height: 1;
    color: #878787;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #ebebeb !important;
    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;

    outline: none;

    &:focus,
    &:focus-within {
        border-color: var(--focus-color) !important;
    }

    &:disabled {
        background-color: #fafafa;
    }
}

@media (max-width: 973px) {
    .custom-input {
        font-size: 16px;
    }
}

   a.btn {
       line-height: 1.15;
   }

.btn {
    display: inline-block;
    font-weight: 300;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 10px 9px;
    cursor: pointer;
    text-align: center;
    outline: none;

    &:disabled {
        opacity: .65;
        cursor: default;
    }

    i {
        margin-left: 4px;
    }

    .btn-dark {
        color: #fff;
        background-color: var(--hover-color);
        border-color: var(--hover-color);

        @media (min-width: 768px) {

            &:hover:not(:disabled),
            &:focus {
                border-color: 1px solid #1a523b;
                background-color: #307056;
                color: #fff;
            }

            &:active {
                border-color: transparent;
                background-color: #4d9477;
                color: #fff;
            }
        }

        @media (max-width: 767px) {

            &:hover:not(:disabled),
            &:focus,
            &.active {
                color: #fff;
                background-color: #2cc185;
                border-color: #2cc185;
            }
        }
    }

    .btn-accent {
        color: #fff;
        background-color: #2cc185;
        border-color: #2cc185;

        @media (min-width: 768px) {

            &:hover:not(:disabled),
            &:focus {
                border-color: 1px solid #1a523b;
                background-color: #31d090;
                color: #fff;
            }

            &:active {
                border-color: transparent;
                background-color: #27ac77;
                color: #fff;
            }
        }

        @media (max-width: 767px) {

            &:hover:not(:disabled),
            &:focus,
            &.active {
                color: #fff;
                background-color: #2cc185;
                border-color: #2cc185;
            }
        }
    }

    .btn-border {
        color: var(--main-color);
        border-color: var(--main-color);

        @media (min-width: 768px) {

            &:hover:not(:disabled),
            &:focus {
                border-color: 1px solid #1a523b;
                background-color: var(--main-color);
                color: #fff;
            }

            &:active {
                border-color: transparent;
                background-color: #27ac77;
                color: #fff;
            }
        }
    }

    .btn-w {
        color: #545454;
        background-color: #fff;
        border-color: #ccc;

        @media (min-width: 768px) {

            &:hover:not(:disabled),
            &:focus {
                background-color: #f5f5f5;
                color: #545454;
            }

            &:active {
                background-color: #e6e6e6;
                color: #545454;
            }
        }
    }

    .btn-sm {
        padding: 8px 7px;
        font-size: 17px;
    }

    @media (max-width: 768px) {
        padding: 8px 7px;
        font-size: 17px;
    }
}

.btn-xs {
    padding: 0.6154rem 0.6923rem;
    font-size: .9231rem;
    line-height: 1;
    border-radius: 0;
}

.back-arrow {
    position: absolute;
    top: 10px;
    left: 290px;
    z-index: 4;
}

.hide-btn {
    display: flex;
    position: relative;
    justify-content: space-between;
    padding: 24px 0px 14px;
    line-height: 1.738;
    cursor: pointer;
    font-size: 17px;
    font-weight: 400;

    i {
        font-size: 22px;
        margin-left: 10px;
    }

    @media (min-width: 768px) {
        padding: 24px 10px 14px;
    }
}

/*main page*/

.info_img_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.info_img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.mobile {
    display: none;
}

@media (max-width: 1100px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: flex;
    }
}

.analytics_button_wrapper {
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
}

/* form */

.tracker_wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    padding: 50px 20px;
}

.mood_color_block {
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.mood_color_block:hover {
    opacity: 0.9;
}

.color_list {
    display: flex;
    width: 100%;
    column-gap: 25px;
    list-style: none;
}

.question_wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
}

.question {
    font-size: 18px;
}

.answers {
    display: flex;
    column-gap: 25px;
}

.tasks_wrapper .form-group {
    justify-content: flex-start;
}

.loader {
    padding: 120px 0;
    text-align: center;
}

.yellow {
    background-color: #ffec8a;
}

.green {
    background-color: #b0dc9c;
}

.blue {
    background-color: #8298cc;
}

.red {
    background-color: #f29175;
}

.color_text {
    font-weight: bold;
}

.text_yellow {
    color: #ffec8a;
}

.text_green {
    color: #b0dc9c;
}

.text_blue {
    color: #8298cc;
}

.text_red {
    color: #f29175;
}

.active {
    border: 1px solid #00e287;
}

.repeat_button_wrapper {
    display: flex;
    column-gap: 10px;
    margin-left: auto;
}

.recommendation_wrapper {
    margin-top: 15px;
    font-size: 18px;
    text-align: justify;
}

.square_recommendation_wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

@media (max-width: 400px) {
    .color_list {
        flex-direction: column;
        row-gap: 10px;
    }

    .mood_color_block {
        width: 100%;
    }
}


.form-group {
    display: flex;
    margin: 10px -5px;
    font-size: 15px;
    font-weight: 400;
    justify-content: center;

    label {
        padding: 8px 15px 9px 15px;
        flex: 0 0 25%;
    }

    .form-group__input-container {
        flex: 0 1 75%;
        align-self: center;
        padding-right: 15px;

        .form-control {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        margin: 0 -5px;
    }

    @media (max-width: 973px) {
        flex-direction: column;
        align-items: flex-start;

        label {
            flex: 1;
            padding: 15px 5px;
        }
        .form-group__input-container {
            padding: 0 5px;
            width: 100%;
        }
        .form-control {
            font-size: 16px;
        }
    }
}

.form-group-radio {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    justify-content: flex-start;
    .custom-radio {
        min-height: 22px;
        min-width: 22px;
        margin-bottom: 12px;
        margin-top: 6px;
        position: relative;
        display: block;
        padding-left: 38px;
        cursor: pointer;

        .custom-radio__input {
            position: absolute;
            z-index: -1;
            opacity: 0;
        }

        .custom-radio__input:checked ~ .custom-radio__label::before {
            border-color: #2cc185;
            background-color: #fff;
            color: #2cc185;
        }

        .custom-radio__input:checked ~ .custom-radio__label::after {
            content: "";
            border-radius: 50%;
            height: 26px;
            width: 26px;
            top: calc(50% - 13.5px);
            left: 0;
            background-color: #2cc185;
        }

        .custom-radio__input:hover ~ .custom-radio__label::before {
            border-color: var(--main-color);
        }

        .custom-radio__input:focus ~ .custom-radio__label::before {
            border-color: var(--main-color);
        }

        .custom-radio__label {
            position: unset;
            white-space: break-spaces;
            word-break: break-word;
            font-size: 14px;

            &::before,
            &::after {
                left: 0;
                transition: border-color 0.3s ease;
            }

            &::before {
                border: 2px solid #ebebeb;
                content: "";
                position: absolute;
                top: calc(50% - 13.5px);
                display: block;
                width: 27px;
                height: 27px;
                pointer-events: none;
                background-color: #fff;
                border-radius: 50%;
            }

            &::after {
                position: absolute;
                top: calc(50% - 13.5px);
                display: block;
                width: 27px;
                height: 27px;
                content: "";
                background: no-repeat 50%/50% 50%;
            }
        }
    }
}