@if $useElementsComponent == true {
    // INPUT CLASS (INPUT, SELECT, TEXTAREA)
    %global-input-prop {
        @extend .width-100;
        @extend .fc-black-light;
        @extend .fs-md;
        border: 1px solid $colorWhiteDarkest;
        border-radius: 2px;
        transition: 200ms ease-in border;
        box-shadow: 0 0 8px rgba(0, 0, 0, .06);
        @extend .bg-white;
        &:focus, &.focus {
            border-color: $colorFirst;
        }
    }
    .input {
        textarea {
            resize: none;
            height: 10em;
            @extend .pad-10;
            @extend %global-input-prop
        }
        input, select {
            @extend %global-input-prop;
            display: block;
            height: 2.5em;
            padding: 0 0.5em;
        }
        &.icon {
            @extend .relative;
            > label {
                @extend .absolute;
                @extend .left-0;
                width: 2.5em;
                background-color: $colorWhiteDarkest;
                @extend .top-0;
                @extend .height-100;
                @extend .align-center;
                border-radius: 2px 0 0 2px;
                transition: 200ms ease-in background;
                &:before {
                    transition: 200ms ease-in color;
                }
            }
            > input, > select {
                padding: 0 0.5em 0 calc(0.5em + 2.5em);
                &:focus + label {
                    background-color: $colorFirst;
                    &:before {
                        @extend .fc-white;
                    }
                }
            }
            &.right {
                > label {
                    border-radius: 0 2px 2px 0;
                    left: auto;
                    @extend .right-0;
                }
                > input, > select {
                    padding: 0 calc(0.5em + 2.5em) 0 0.5em;
                }
            }
        }
        &.underline {
            @extend .relative;
            @extend .underline-effect;
            padding: 0;
            &:before {
                z-index: 1;
            }
            > input {
                border-top-width: 0;
                border-left-width: 0;
                border-right-width: 0;
                border-bottom-width: 2px;
                border-radius: 0 !important;
                transition: border 200ms ease-in;
                padding-left: 0 !important;
                background-color: transparent;
                box-shadow: unset;
                @extend .pad-30-r;
            }
            > label {
                background-color: transparent;
                width: unset;
                @extend .absolute;
                @extend .transform-center-y;
                right: 15px;
            }
            &:after {
                @extend .absolute;
                content: attr(data-placeholder);
                @extend .top-50;
                transform: translateY(-50%);
                @extend .left-0;
                display: inline-block;
                pointer-events: none;
                transition: 200ms all ease-in;
                @extend .fc-black-lighten;
            }
            &.focus {
                &:after {
                    @extend .fs-sm;
                    @extend .top-0;
                    color: $colorFirst;
                    transform: translateY(-75%);
                }
            }
            &.focus {
                > label {
                    background-color: transparent !important;
                    &:before {
                        color: $colorFirst !important;
                    }
                }
                > input {
                    border-bottom-color: transparent;
                }
            }

        }
        &.curved {
            > input, select {
                border-radius: 20px;
                padding: 0 0.75em;
            }
        }
        &.tiny {
            @extend .fs-xs;
        }
        &.small {
            @extend .fs-sm;
        }
        &.large {
            @extend .fs-lg;
        }
        &.big {
            @extend .fs-xl;
        }
        &.huge {
            @extend .hs-md;
        }
        &.massive {
            @extend .hs-lg;
        }
        &.success {
            border-color: $colorSuccess;
        }
        &.danger {
            border-color: $colorDanger
        }
        &.warning {
            border-color: $colorWarning
        }
        &.info {
            border-color: $colorInfo
        }
    }

    /* SELECT CUSTOM PROPERTY */
    .select {
        @extend .relative;
        @extend .fa-icon;
        @extend .fa-chevron-down;
        &:before {
            @extend .right-0;
            @extend .mar-10-r;
            @extend .transform-center-y;
            @extend .fc-black-lightness;
            @extend .fs-xs;
        }
        select {
            -moz-appearance: none;
            -webkit-appearance: none;
        }
    }

    /* CHECKBOX - RADIO COMPONENTS STYLES */
    .choose {
        font-size: 0;
        @extend .mar-10-b;
        display: inline-flex;
        align-items: center;
        > input {
            display: none;
            + label {
                @extend .align-center;
                @extend .fs-md;
                cursor: pointer;
                @extend .bg-white;
                border: 1px solid $colorWhiteDarkest;
                transition: 300ms ease-out all;
                &:before {
                    @extend .fa;
                    @extend .fa-check;
                    display: block;
                    @extend .fc-black-lightness;
                    transition: 300ms ease-out transform;
                    transform: scale(0, 0);
                    font-size: inherit;
                }
            }
            &:checked {
                + label {
                    &::before {
                        transform: scale(1, 1);
                    }
                }
            }
            &:disabled {
                + label {
                    &::before {
                        transform: scale(1, 1);
                        color: darken($colorWhiteDark, 21);
                    }
                }
            }
        }
        > .text {
            user-select: none;
            @extend .pad-5-l;
            cursor: pointer;
            line-height: 1;
        }
    }

    // Shape
    .choose-rectangle {
        > input {
            + label {
                width: 1.35em;
                height: 1.35em;
                border-radius: 1px;
            }
        }
    }
    .choose-circle {
        > input {
            + label {
                width: 1.50em;
                height: 1.50em;
                @extend .circle-shape;
            }
        }
    }

    // Size
    .choose-tiny {
        > input {
            + label {
                @extend .fs-xs;
            }
        }
    }
    .choose-small {
        > input {
            + label {
                @extend .fs-sm;
            }
        }
    }
    .choose-large {
        > input {
            + label {
                @extend .fs-lg;
            }
        }
    }
    .choose-big {
        > input {
            + label {
                @extend .fs-xs;
            }
        }
    }
    .choose-huge {
        > input {
            + label {
                @extend .hs-sm;
            }
        }
    }
    .choose-massive {
        > input {
            + label {
                @extend .hs-md;
            }
        }
    }

    // Color
    .choose-primary {
        > input {
            + label {
                &:before {
                    @extend .fc-white;
                }
            }
            &:checked + label {
                @extend .bg-first;
                border: 1px solid darken($colorFirst, 6);
            }
        }
    }

    :root {
        --active-max-height: 0px;
    }

    .choose-accordion {
        @include padding(10, 15);
        cursor: pointer;
        @extend .bg-white;
        box-shadow: 5px 5px 15px rgba(0,0,0, .25);
        transition: 300ms ease-out max-height;
        max-height: 40px;
        overflow: hidden;
        @extend .mar-10-b;
        @extend .mar-0-last;
        .choose {
            @extend .width-100;
            @extend .mar-0-b;
            .text {
                flex: 1;
                @extend .relative;
                @extend .fa-plus;
                @extend .fa-icon;
                &::before {
                    right: 0px;
                    @extend .transform-center-y;
                    pointer-events: none;
                }
            }
        }
        &.active {
            max-height: var(--active-max-height);
            > ul {
                opacity: 1;
            }
        }
        > ul {
            opacity: 0;
            transition: 300ms ease-out opacity;
            @extend .pad-15-t;
            > li {
                @extend .mar-10-b;
                @extend .mar-0-last;
            }
        }
    }


    /* FILE INPUT */
    .file {
        display: inline-block;
        @extend .mar-10-r;
        max-width: 100%;
        > [type="file"] {
            display: none;
            + label {
                @extend .btn;
                &::before {
                    @extend .mar-10-r;
                    @extend .fa;
                    content: '\f093';
                }
            }
        }
        &.no-icon {
            > [type="file"] {
                + label {
                    &::before {
                        display: none;
                    }
                }
            }
        }
    }
    .file-outline {
        > [type="file"] {
            + label {
                @extend .btn-outline;
            }
        }
    }
    .file-link {
        > [type="file"] {
            + label {
                background-color: transparent;
                border-width: 0;
                transition: 150ms color linear;
                will-change: color;
                box-shadow: unset;
                &:hover {
                    background-color: transparent;
                    @extend .fc-black;
                }
            }
        }
    }
    .file-block {
        @extend .file-link;
        > [type="file"] {
            + label {
                display: flex;
                align-items: center;
                @extend .direction-y;
                &::before {
                    @extend .mar-0-r;
                    @extend .mar-10-b;
                    width: 2.25em;
                    height: 2.25em;
                    @extend .align-center;
                    @extend .bg-white;
                    @extend .circle-shape;
                }
            }
        }
    }
    .file-photo {
        @extend .width-100;
        > [type="file"] + label {
            width: 50%;
            @extend .relative;
            @extend .text-center;
            @extend .background-prop;
            padding: 0;
            &::after {
                @extend .block-item;
                @extend .width-100;
                content: '';
                padding-top: 45%;
            }
            &::before {
                @extend .wrap-out;
                @extend .align-center;
                @extend .mar-0;
                opacity: 0;
                transition: 400ms opacity ease-out;
                background-color: rgba(0,0,0, .5);
                color: $colorWhite;
            }
            &:hover {
                &::before {
                    opacity: 1;
                }
            }
        }

    }
}