// Variables
@import 'variables';

//@extend-elements
//original selectors
//sub, sup
%extend_1 {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

//original selectors
//button, input, optgroup, select, textarea
%extend_2 {
    color: inherit;
    font: inherit;
    margin: 0;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    color: $color_3;
    font-size: 14px;
    line-height: 1.75em;

    input[type=button] {
        -webkit-appearance: button;
        cursor: pointer;
    }

    input[disabled] {
        cursor: default;
    }
}

body {
    margin: 0;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: $color_5;
    //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
    transition: all .2s;
    margin: 0;
    padding: 0;
    cursor: pointer;

    &:active {
        outline: 0;
    }

    &:hover {
        outline: 0;
        color: $color_6;
    }
}

strong {
    font-weight: 700;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2em;
    line-height: 1.130880986943067em;
    margin: 0;
    padding: 0;
    font-weight: 500;
    color: $color_4;
    clear: both;
}

small {
    font-size: 80%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

sub {
    @extend %extend_1;
    bottom: -.25em;
    margin: 0;
    padding: 0;
    line-height: 0;
}

sup {
    @extend %extend_1;
    top: -.5em;
    margin: 0;
    padding: 0;
    line-height: 0;

    a .fa {
        font-size: 1em;
    }
}

button {
    @extend %extend_2;
    overflow: visible;
    text-transform: none;
    -webkit-appearance: button;
    cursor: pointer;
    display: block;
    font-size: 12px;
    padding: .4375em 1.75em;
    margin-bottom: 1.18125em;
}

input {
    @extend %extend_2;
    line-height: normal;
}

select {
    @extend %extend_2;
    text-transform: none;
    outline: none;
    border: 1px solid $color_27;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px;
    padding: 10px 12px;
    margin: 0 auto 1em;
    width: 100%;
}

button[disabled] {
    cursor: default;
}

@media(min-width: 600px) {
    html {
        font-size: 14px;
    }
    h1 {
        font-size: calc(27.85438995234061px + 18.56959 * ((100vw - 600px) / 540));
    }
    h4 {
        font-size: calc(16.806071548796314px + 11.20405 * ((100vw - 600px) / 540));
    }
}

form {
    margin: 0;
    padding: 0;
}

h4 {
    padding: 0;
    font-weight: 500;
    color: $color_4;
    clear: both;
    font-size: 16.806071548796314px;
    line-height: 1.87432261659365em;
    margin: 1.561935513828041em 0 .368150361036632em;
}

@media(min-width: 1140px) {
    h1 {
        font-size: 46.423983253901014px;
        margin-top: .942400822452556em;
        line-height: 1.130880986943067em;
        margin-bottom: .188480164490511em;
    }
    h4 {
        font-size: 28.01011924799386px;
        margin-top: 1.561935513828041em;
        line-height: 1.87432261659365em;
        margin-bottom: .345845057728222em;
    }
    input[type=text] {
        font-size: 20px;
        margin-bottom: .5140625em;
    }
    input[type=submit] {
        font-size: 20px;
        margin-bottom: 1.3125em;
    }
}

input[type=text] {
    display: block;
    max-width: 100%;
    padding: .4375em;
    font-size: 12px;
    margin-bottom: 1.18125em;
}

.master {
    background-image: url(../images/background.png);
    background-size: cover;
    background-position: top;
    min-height: 100vh;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.box {
    width: 700px;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 0 0 3px 3px;
    overflow: hidden;
    //Instead of the line below you could use @include box-sizing($bs)
    box-sizing: border-box;
    //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
    box-shadow: 0 10px 10px $color_7, 0 6px 3px $color_8;
}

.header {
    background-color: $color_9;
    padding: 30px 30px 40px;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px 3px 0 0;
    text-align: center;
}

.header__step {
    font-weight: 300;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.1px;
    margin: 0 0 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    //Instead of the line below you could use @include user-select($select)
    user-select: none;
    color: $color_10;
}

.header__title {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    //Instead of the line below you could use @include user-select($select)
    user-select: none;
    color: $color_10;
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 15px;
}

.step {
    position: relative;
    z-index: 1;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row-reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: -20px;
}

.step__divider {
    background-color: $color_11;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    //Instead of the line below you could use @include user-select($select)
    user-select: none;
    width: 60px;
    height: 3px;

    &:first-child {
        -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
        flex: 1 0 auto;
    }

    &:last-child {
        -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
        flex: 1 0 auto;
    }
}

.step__icon {
    background-color: $color_11;
    font-style: normal;
    width: 40px;
    height: 40px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 50%;
    color: $color_10;
}

.main {
    margin-top: -20px;
    background-color: $color_10;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 0 0 3px 3px;
    padding: 40px 40px 30px;
}

.buttons {
    text-align: center;

    .button {
        margin: .5em;
    }
}

.buttons--right {
    text-align: right;
}

.button {
    display: inline-block;
    background-color: $color_12;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 2px;
    padding: 7px 20px;
    color: $color_10;
    //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
    box-shadow: 0 1px 1.5px $color_14, 0 1px 1px $color_15;
    text-decoration: none;
    outline: none;
    border: none;
    //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
    transition: box-shadow .2s ease, background-color .2s ease;
    cursor: pointer;

    &:hover {
        color: $color_10;
        //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
        box-shadow: 0 10px 10px $color_7, 0 6px 3px $color_8;
        background-color: $color_16;
    }
}

.button--light {
    padding: 3px 16px;
    font-size: 16px;
    border-top: 1px solid $color_17;
    color: $color_18;
    background: $color_10;

    &:hover {
        color: $color_18;
        background: $color_10;
        //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
        box-shadow: 0 3px 3px $color_19, 0 3px 3px $color_8;
    }
}

.list {
    padding-left: 0;
    list-style: none;
    margin: 20px 0 35px;
    border: 1px solid $color_14;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 2px;

    .list__item.list__title {
        background: $color_14;

        &.success {
            span {
                color: $color_31;
            }

            .fa:before {
                color: $color_31;
            }
        }

        &.error {
            span {
                color: $color_24;
            }

            .fa:before {
                color: $color_24;
            }
        }
    }
}

.list__item {
    position: relative;
    overflow: hidden;
    padding: 7px 20px;
    border-bottom: 1px solid $color_14;

    &:last-child {
        border-bottom: none;
    }

    .fa.row-icon:before {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 7px 20px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
    }

    &.success .fa:before {
        color: $color_20;
    }

    &.error .fa:before {
        color: $color_21;
    }
}

.list__item--permissions {
    &:before {
        content: '' !important;
    }

    span {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 7px 20px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: $color_22;
        font-weight: 700;
        font-size: 16px;

        &:before {
            margin-right: 7px;
            font-weight: 400;
        }
    }

    &.success i:before {
        color: $color_20;
        vertical-align: 1px;
    }

    &.error i:before {
        color: $color_21;
        vertical-align: 1px;
    }
}

.textarea {
    //Instead of the line below you could use @include box-sizing($bs)
    box-sizing: border-box;
    width: 100%;
    font-size: 14px;
    line-height: 25px;
    height: 150px;
    outline: none;
    border: 1px solid $color_23;

    ~ .button {
        margin-bottom: 35px;
    }
}

.text-center {
    text-align: center;
}

.form-control {
    height: 14px;
    width: 100%;
}

.has-error {
    color: $color_24;

    input {
        color: $color_25;
        border: 1px solid $color_26;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

input[type='text'] {
    outline: none;
    border: 1px solid $color_27;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px;
    padding: 10px 12px;
    width: calc(100% - 24px);
    margin: 0 auto 1em;
}

input[type='password'] {
    outline: none;
    border: 1px solid $color_27;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px;
    padding: 10px 12px;
    width: calc(100% - 24px);
    margin: 0 auto 1em;
}

input[type='url'] {
    outline: none;
    border: 1px solid $color_27;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px;
    padding: 10px 12px;
    width: calc(100% - 24px);
    margin: 0 auto 1em;
}

input[type='number'] {
    outline: none;
    border: 1px solid $color_27;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px;
    padding: 10px 12px;
    width: calc(100% - 24px);
    margin: 0 auto 1em;
}

.tabs {
    padding: 0;

    .tab-input {
        display: none;

        &:checked + .tab-label {
            background-color: $color_10;
            color: $color_29;
        }
    }

    .tab-label {
        color: $color_27;
        cursor: pointer;
        float: left;
        padding: 1em;
        text-align: center;
        -webkit-transition: all 0.1s ease-in-out;
        -moz-transition: all 0.1s ease-in-out;
        -o-transition: all 0.1s ease-in-out;
        //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
        transition: all 0.1s ease-in-out;

        &:hover {
            color: $color_29;
        }
    }

    .tabs-wrap {
        clear: both;
    }

    .tab {
        display: none;

        > *:last-child {
            margin-bottom: 0;
        }
    }
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.buttons-container {
    min-height: 37px;
    margin: 1em 0 0;
}

.block {
    //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
    box-shadow: 0 3px 1px $color_32;

    input[type='radio'] {
        width: 100%;
        display: none;

        + label {
            background: $color_33;
            color: $color_10;
            padding-top: 5px;
            -webkit-transition: all 0.1s ease-in-out;
            -moz-transition: all 0.1s ease-in-out;
            -o-transition: all 0.1s ease-in-out;
            //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
            transition: all 0.1s ease-in-out;

            &:hover {
                background: $color_34;
                color: $color_10;
                padding-top: 5px;
            }
        }

        &:checked {
            + label {
                background-color: $color_35;
            }

            ~ .info {
                height: 200px;
                overflow-y: auto;
                -webkit-transition: all 0.3s ease-in-out;
                -moz-transition: all 0.3s ease-in-out;
                -o-transition: all 0.3s ease-in-out;
                //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
                transition: all 0.3s ease-in-out;
            }
        }

        ~ .info > div {
            padding-top: 15px;
        }
    }

    label {
        width: 450px;
        max-width: 100%;
        cursor: pointer;
    }

    span {
        font-weight: 700;
        display: block;
        padding: 10px 12px 12px 15px;
        margin: 0;
        cursor: pointer;
    }
}

.info {
    background: $color_10;
    color: $color_18;
    width: 100%;
    height: 0;
    line-height: 2;
    padding-left: 15px;
    padding-right: 15px;
    display: block;
    overflow: hidden;
    //Instead of the line below you could use @include box-sizing($bs)
    box-sizing: border-box;
    //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
    transition: .3s ease-out;
}

.margin-bottom-1 {
    margin-bottom: 1em;
}

.margin-bottom-2 {
    margin-bottom: 1em;
}

.margin-top-1 {
    margin-top: 1em;
}

.margin-top-2 {
    margin-top: 1em;
}

.alert {
    margin: 0 0 10px;
    font-size: 1.1em;
    background-color: $color_22;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: 3px;
    padding: 10px;
    position: relative;

    &.alert-danger {
        background: $color_24;
        color: $color_39;
        padding: 10px 20px 15px;

        h4 {
            color: $color_39;
            margin: 0;
        }

        ul {
            margin: 0;
        }
    }

    .close {
        width: 25px;
        height: 25px;
        padding: 0;
        margin: 0;
        //Instead of the line below you could use @include box-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
        box-shadow: none;
        border: 2px solid $color_26;
        outline: none;
        float: right;
        //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
        border-radius: 50%;
        position: absolute;
        right: 0;
        top: 0;
        background-color: transparent;
        cursor: pointer;
        -webkit-transition: all 0.1s ease-in-out;
        -moz-transition: all 0.1s ease-in-out;
        -o-transition: all 0.1s ease-in-out;
        //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
        transition: all 0.1s ease-in-out;

        &:hover {
            background-color: $color_39;
            color: $color_24;
        }
    }
}

svg:not(:root) {
    overflow: hidden;
}

.step__item.active .step__icon,
.step__item.active ~ .step__divider,
.step__item.active ~ .step__item .step__icon {
    background-color: $color_12;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.step__item.active .step__icon:hover,
.step__item.active ~ .step__item .step__icon:hover {
    background-color: $color_13;
}

.form-group.has-error {
    select {
        border-color: $color_24;
    }

    input[type='text'] {
        border-color: $color_24;
    }

    input[type='url'] {
        border-color: $color_24;
    }

    input[type='number'] {
        border-color: $color_24;
    }

    .error-block {
        margin: -12px 0 0;
        display: block;
        width: 100%;
        font-size: .9em;
        color: $color_24;
        font-weight: 500;
    }
}
