input, textarea, button {
    -webkit-appearance: none;
    resize: none;
}

label {
    color: map-get($grey, 600);
    cursor: pointer;
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.input-group {
    margin-bottom: 15px;

    .btn {
        box-shadow: none !important;
        height: 48px;
        min-width: 48px;
        text-align: center; 

        .fa {
            font-size: 16px !important;
        }
    }
}

.input-group-addon {
    background-color: map-get($grey, 50);
    border: 0;
    border-radius: 0;
    box-shadow: 0 1px 0 0 rgba(black, .12);
    color: map-get($color-secondary, 600);
    min-width: 48px;
    text-align: center;
    transition: box-shadow .12s linear;

    &.active {
        box-shadow: 0 2px 0 0 map-get($color-primary, 600);
    }
}

input[type=text], input[type=email], textarea, .form-control {
    background-color: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: 0 1px 0 0 rgba(black, .12);
    color: rgba(black, .7);
    font-size: 16px;
    height: 48px;
    line-height: 48px;
    padding: 0 5px;
    position: relative;
    transition: box-shadow .12s linear;

    @include input-placeholder {
        color: rgba(black, .4);
    }

    &:focus {
        box-shadow: 0 2px 0 0 map-get($color-primary, 600);
        outline: 0;
    }

}

textarea.form-control {
    background-color: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: 0 1px 0 0 rgba(black, .12);
    color: rgba(black, .7);
    font-size: 16px;
    height: 48px;
    line-height: 24px;
    padding: 10px 0;
    position: relative;
    transition: box-shadow .15s linear;

    &:focus {
        box-shadow: 0 2px 0 0 map-get($color-primary, 600);
    }
}

input[type=checkbox] {
    border: 0;
    cursor: pointer;
    height: 20px;
    margin: 0 10px 0 0;
    position: relative;
    overflow: hidden;
    vertical-align: -5px;
    width: 20px;

    &:before {
        background-color: transparent;
        border: 2px solid map-get($grey, 300);
        content: '';
        display: block;
        height: 20px;
        left: 0;
        opacity: 1;
        position: absolute;
        transition: opacity .15s linear;
        top: 0;
        width: 20px;
    }

    &:after {
        border: 2px solid map-get($color-secondary, 400);
        content: '';
        display: block;
        height: 23px;
        left: -5px;
        opacity: 0;
        position: absolute;
        top: -9px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transition: opacity .15s linear;
        width: 27px;
    }

    &:checked {
        &:before {
            opacity: 0;
        }

        &:after {
            opacity: 1;
        }
    }

    &:focus {
        box-shadow: none;
        outline: 0;
    }
}

.radio-wrapper {
    position: relative;
}

input[type='radio'] {
    position: absolute;
    opacity: 0;

    & + label {   
        user-select: none;
        cursor: pointer;
        padding-left: 30px;
        position: relative;

        &:before, &:after {
            background: #fff;
            background-clip: padding-box;
            border: 2px solid map-get($color-secondary, 400);
            border-radius: 50%;
            bottom: 3px;
            content: '';
            display: block;
            height: 16px;
            left: 3px;    
            margin-top: -8px;        
            position: absolute;                                                                    
            top: 50%;
            transition: all 0.3s ease;        
            width: 16px; 
        }

        &:after {
          background: map-get($color-secondary, 400);
          border: 2px solid #fff;
          transform: scale(0);
          -wekbit-transform: scale(0);
          transition: all 0.3s ease;
        }
    }

    &:focus + label {
        &:before {
            box-shadow: 0 0 5px map-get($color-secondary, 400);
        }
    }

    &:checked + label {
        &:before {
            border-color: map-get($color-secondary, 400);
        }

        &:after {
            transform: scale(0.75, 0.75);
            -webkit-transform: scale(0.75, 0.75);
        }
    }
}

.bootstrap-select {
    display: block;
    width: 100% !important;

    button.btn {
        background-color: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: 0 1px 0 0 rgba(black, .12);
        color: rgba(black, .4);
        font-size: 16px;
        height: 48px;
        padding: 0;
        text-transform: none;

        &:hover {
            background-color: transparent;
            color: rgba(black, .4);
        }

        &:focus {
            background-color: transparent;
            box-shadow: 0 2px 0 0 map-get($color-primary, 600);
            color: rgba(black, .7);
            outline: 0 !important;
        }
    }

    div.dropdown-menu {
        background-color: #fff;
        border: 0;
        border-radius: 1px;
        box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);
        display: block;
        height: 0;
        margin: 2px 0 0 0;
        min-width: inherit !important;
        overflow: hidden;
        padding: 0;
        right: 0;
        visibility: hidden;
        width: 0;

        li {
            margin: 0;

            &.selected {
                a {
                    background-color: map-get($color-primary, 300) !important;
                    color: #fff;

                    &:before {
                        display: none;
                    }
                }
            }

            a {
                color: #000;
                outline: 0 !important;
                padding-bottom: 10px;
                padding-top: 10px;

                &:before {
                    background-color: map-get($color-black, 100);
                    content: '';
                    display: block;
                    height: 100%;
                    left: 0;
                    position: absolute;
                    top: 0;
                    transition: width .15s linear;
                    width: 0;
                    z-index: 0;
                }

                span {
                    position: relative;
                    z-index: 1;
                }

                &:hover {
                    background-color: transparent;

                    &:before {
                        width: 100%;
                    }
                }
            }
        }
    }
}

.bootstrap-select.open {
    button.btn {
        background-color: transparent !important;
        box-shadow: 0 2px 0 0 map-get($color-primary, 600) !important;
        color: rgba(black, .7) !important;
    }

    div.dropdown-menu {
        visibility: visible;
    }
}

.file-input {
    .form-control {
        height: 37px;
        line-height: 37px;
    }

    .file-caption-name {
        font-size: 13px;
        line-height: 14px;

        .kv-caption-icon {
            color: map-get($color-primary, 400);
            margin-top: -2px;
        }
    }

    @media (max-width: $screen-xs-max) {
        .btn {
            font-size: 12px;
        }
        
        .form-control {
            float: none;
            margin: 0 0 10px 0 !important;
        }

        .input-group {
            display: block;
        }

        .input-group-btn {
            display: block;
        }
    }
}

.file-preview {
    border-color: map-get($grey, 50);
    border-radius: 0;
}

.file-preview-image {
    @media (max-width: $screen-xs-max) {
        height: auto;
        width: 100%;
    }
}

.file-preview-frame {
    border-color: map-get($grey, 200);
    box-shadow: none;
    transition: background-color .15s linear;

    &:hover {
        background-color: map-get($grey, 50);
        box-shadow: none !important;
    }
}

.submission-form {
    padding: 0 0 20px 0;

    .cmb2-metabox  {
        display: table;
        width: 100%;
    }

    .cmb-row {
        display: table-row;        

        &:nth-child(even) {
            background-color: rgba(black, .01);
        }
    }

    .cmb-th, .cmb-td {
        float: none !important;
        padding: 20px !important;
    }

    .cmb-th {
        display: table-cell;
        padding: 0;
        vertical-align: middle !important;
    }

    .cmb-td {
        display: table-cell;
    }

    input[type=text], input[type=email], textarea {        
        width: 100%;

        &:focus {
            background-color: transparent !important;
        }

        &.cmb2-text-medium, &.cmb2_textarea {
            width: 100% !important;
        }
    }

    .cmb2-metabox-title {
        color: map-get($color-secondary, 400);
        font-size: 15px;
        font-weight: 500;
    }

    .cmb2-wrap input.cmb2-upload-file {
        float: left !important;
        font-size: 12px;
        width: 70% !important;
    }

    .cmb2-upload-button {
        margin: 0 !important;
        padding: 14px 12px !important;
        width: 30%;
    }

    .cmb2-checkbox-list, .cmb2-radio-list {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            float: left;
            margin-bottom: 15px;
            width: 33.33%;

            label {
                display: inline;
                font-size: 13px;
                font-weight: normal;
                text-transform: inherit;
            }
        }
    }

    .cmb-multicheck-toggle {
        background-color: map-get($grey, 200);
        color: map-get($grey, 700);
        cursor: pointer; 
        display: inline-block;
        margin: 0 0 10px 0;
        padding: 6px 12px;
    }

    .cmb-type-pw-map .map {
        border: 0;
        height: 250px;
        width: 100%;
    }

    .button-primary {
        display: block;
        margin: 0 auto;
        width: auto;
    }

    input[type=submit], input[type=button] {
        &:focus {
            background-color: map-get($color-secondary, 500);
        }
    }

    .pw-map-latitude {
        width: 47% !important;
        float: left;
    }

    .pw-map-longitude {
        width: 47% !important;
        float: right;
    }
}

.contact-form-7 {
    margin-bottom: 30px;

    input[type=text], input[type=email] {
        padding-left: 0;
        padding-right: 0;
    }

    textarea {
        margin-top: 20px;
    }

    input[type=submit] {
        border: none;
        float: right;
        margin-top: 30px;
        padding: 10px 28px;

        &:hover, &:focus {
            border: none;
        }
    }

    .row {
        padding: 0;
    }
}