@import '~@style/_config/app-bootstrap-bulma'

.how-it-works
    display flex
    justify-content space-between
    align-items flex-start
    flex-wrap wrap

    .how-it-works__tabs
        display none
        +desktop()
            flex 1 0 40%
            display flex
            justify-content flex-start
            align-items stretch
            flex-wrap wrap
            margin-bottom 0
            padding-bottom 10px
            counter-reset tab

    .how-it-works__contents
        position relative
        margin-top 50px
        margin-bottom 50px
        +desktop()
            flex 1 0 60%
            margin-top 0
            margin-bottom 0
            padding-left 140px
            &:before
                position absolute
                content ''
                top 30px
                left 40px
                width 60px
                height 4px
                background $color-brand

    .how-it-works__tab
        position relative
        flex 1 0 50%
        max-width 50%
        padding 27px 28px 22px
        background-color rgba($color-brand, 0)
        border-right 2px solid $color-gray
        border-bottom 2px solid $color-gray
        box-shadow 0 1px 10px rgba(#87a469, 0)
        cursor pointer
        transition box-shadow .3s, background-color .3s, border-color .3s
        z-index 1

        &:after
            position absolute
            top 23px
            right 28px
            color #93979c
            font-size 12px
            counter-increment tab
            content "0" counter(tab)
            transition color .3s

        &:hover, &.how-it-works__tab_active
            box-shadow 0 1px 10px rgba(#87a469, .78)
            z-index 2

            .how-it-works__tab-title,
            .how-it-works__tab-icon,
            &:after
                color $color-white

        &.how-it-works__tab_active
            background-color rgba($color-brand, 1)
            border-color rgba($color-brand, 1)

        &:hover:not(.how-it-works__tab_active)
            background-color rgba($color-brand, .8)
            border-color rgba($color-brand, .3)

    .how-it-works__tab-content
        & + .how-it-works__tab-content
            margin-top 40px
        +desktop()
            display none
            & + .how-it-works__tab-content
                margin-top 0
        &.how-it-works__tab-content_active
            display block

    .how-it-works__tab-icon
        color $color-brand
        font-size 42px
        transition color .3s

    .how-it-works__tab-title
        margin-top 8px
        color $color-heading-dark
        font-size 15px
        line-height 1.26
        transition color .3s

    .how-it-works__process-title
        position relative
        margin-bottom 27px
        color $color-heading-dark
        font-family $font-lora
        font-size 31px
        font-weight 700
        line-height 1.33
        text-transform uppercase
        +until($desktop)
            margin-bottom 37px
            padding-bottom 25px
            font-size 27px
            &:after
                position absolute
                content ''
                left 0
                bottom 0
                width 60px
                border-bottom 4px solid $color-brand

    .how-it-works__process-list
        color $color-heading-dark
        font-size 15px
        line-height 1.65
        li
            margin-bottom 6px