/* Forms */
form label {
    font-weight: normal;
}

textarea {
    resize: vertical;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

#{$all-text-inputs},
textarea,
select {
    border: 1px solid $input-border-color;
    border-radius: $border-thin;
    outline: none;
    text-align: $left;
    background: if-light(#fff, $color-dark-3);
    color: if-light(#777, #999);
}

#{$all-text-inputs},
select,
textarea {
    line-height: 1.42857;
    padding: 6px 8px;
    font-size: 14px;
    vertical-align: middle;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}
input[type="email"].input-lg,
input[type="number"].input-lg,
input[type="password"].input-lg,
input[type="search"].input-lg,
input[type="tel"].input-lg,
input[type="text"].input-lg,
input[type="url"].input-lg,
input[type="color"].input-lg,
input[type="date"].input-lg,
input[type="datetime"].input-lg,
input[type="datetime-local"].input-lg,
input[type="month"].input-lg,
input[type="time"].input-lg,
input[type="week"].input-lg,
select.input-lg,
textarea.input-lg {
    padding: 10px 12px;
    font-size: 18px;
}
input[type="email"].input-sm,
input[type="number"].input-sm,
input[type="password"].input-sm,
input[type="search"].input-sm,
input[type="tel"].input-sm,
input[type="text"].input-sm,
input[type="url"].input-sm,
input[type="color"].input-sm,
input[type="date"].input-sm,
input[type="datetime"].input-sm,
input[type="datetime-local"].input-sm,
input[type="month"].input-sm,
input[type="time"].input-sm,
input[type="week"].input-sm,
select.input-sm,
textarea.input-sm {
    padding: 5px 7px;
    font-size: 12px;
}

select {
    padding: side-values(6px 0 6px 2px);
}

.form-control {
    padding: 6px 8px;
}
select.form-control {
    padding: 6px 2px;
}

label.checkbox {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    margin-#{$right}: 5px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-#{$right}: 5px;
}

.form-group:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.form-control:focus {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    border-color: if-light(#ccc, $color-dark-4);
}

/* Forms Validations */
label {
    &.valid {
        display: inline-block;
        text-indent: -9999px;
    }

    &.error {
        color: #C10000;
        font-size: 0.9em;
        margin-top: -5px;
        padding: 0;
        &#captcha-error {
            margin-top: 15px;
        }
    }

}

legend {
    border: none;
}

fieldset {
    legend {
        margin-top: 15px;
    }
}

input[type="submit"] {
    border: 1px solid #ccc;
    color: #fff;
    padding: 6px 10px;
    border-radius: $border-thin;
    line-height: 1.42857;
}

/* Search Form */

#searchform {
    @include clearfix();

    .screen-reader-text,
    #s,
    #submit,
    #searchsubmit{
        display: block;
    }

    #s {
        margin-bottom: 1em;
        width: 100%;
        max-width: 250px;
    }

    .main-content & {
        .screen-reader-text,
        #s,
        #submit,
        #searchsubmit {
            display: inline-block;
            margin-bottom: 0;
        }

        .screen-reader-text {
            vertical-align: super;
        }

        #s,
        #submit,
        #searchsubmit {
            width: auto;
            vertical-align: bottom;
        }

        @media #{$screen-small} {
            .screen-reader-text,
            #s,
            #submit,
            #searchsubmit {
                display: block;
                margin-bottom: 10px;
                width: 100%;
                max-width: 100%;
            }
        }
    }
}
/* Form Table */
.form-table {
    th,
    td {
        padding: side-values(10px 10px 10px 0);
        label {
            margin-#{$right}: 15px;
        }
        h3 {
            color: inherit;
            font-size: 1em;
            font-weight: normal;
            line-height: 1.42857;
            margin: 0 0 -10px !important;
        }
    }
}

.form-group {
    direction: if-ltr(ltr, rtl);
}

body {
    #wp-link-wrap {
        background: if-light(#fff, $color-dark);

        #link-modal-title {
            background: if-light(#fcfcfc, $color-dark-4);
            border-bottom: if-light(1px solid #dfdfdf, 1px solid $color-dark-4);
        }

        .screen-reader-text {
            display: none;
        }

        .submitbox {
            background: if-light(#fcfcfc, $color-dark-4);
            border-top: if-light(1px solid #dfdfdf, 1px solid $color-dark-4);
        }

        #wp-link-submit {
            padding: 4px 12px;
        }

        #wp-link-search-toggle:after {
            font-size: 25px;
        }
    }
}
