/**
 * Form
 */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
select,
textarea {
    background-color: #fff;
    color: #666;
    padding: 0.5em 0.5em 0.45em 0.5em;
    border: 1px solid #ddd;
    border-radius: 0.2em;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
}

#sidebar .block input[type="text"],
#sidebar .block input[type="search"],
#sidebar .block input[type="email"],
#sidebar .block input[type="password"],
#sidebar .block select,
#sidebar .block textarea,
.wizard-form input[type="text"],
.wizard-form input[type="search"],
.wizard-form input[type="email"],
.wizard-form input[type="password"],
.wizard-form select,
.wizard-form textarea {
    /*border: 1px solid #000;
    background: #444;*/
    box-shadow: 0 0 0.4em #ddd inset;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    background-color: #fcffcf;
    border-color: #d9e184;
    box-shadow: none;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
.form-textarea-wrapper {
    max-width: 85%;
}

input[type="file"] {
    width: 220px;
    font-size: 0.7em;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
}

@media all and (min-width: 960px) {
    input[type="file"] {
        font-size: 0.8em;
        width: auto;
        max-width: 100%;
    }
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    cursor: pointer;
}

.form-item input.error, .form-item textarea.error, .form-item select.error {
    border: 2px solid #f00;
}

.form-item .form-error .icheck-item:not(.checked) {
    color: #f00;
}

input::-webkit-input-placeholder {
    color: #666;
    opacity: 1;
}

input:-moz-placeholder { /* Firefox 18- */
    color: #666;
    opacity: 1;
}

input::-moz-placeholder {  /* Firefox 19+ */
    color: #666;
    opacity: 1;
}

input:-ms-input-placeholder {
    color: #666;
    opacity: 1;
}

/*form .form-wrapper {
    margin: 0 0 2em 0;
}*/

.form-item, .form-actions {
    margin-top: 0 !important;
    margin-bottom: 1.6em !important;
}

.form-type-checkbox, .form-type-radio {
    margin-bottom: 0.4em !important;
}

.form-type-password.confirm-parent, .form-type-password.password-parent {
    margin: 0 !important;
}

.form-item .description,
.text-format-wrapper .description {
    font-size: 13px;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5em;
}

.text-format-wrapper .form-item {
    margin-bottom: 0 !important;
}

.text-format-wrapper {
    margin-bottom: 1.5em;
}

form fieldset {
    max-width: 100%;
    position: relative;
    /*background: #f6f2e9;*/
    background: rgb(255,255,255);
    border: 1px solid #ddd;
    padding: 1em;
    margin-top: 4em !important;
    margin-bottom: 1.6em;
    border-radius: 0.2em;
}

form fieldset .fieldset-description {
    font-style: italic;
    margin-bottom: 0.5em;
    font-size: 0.85em;
}

form fieldset .fieldset-wrapper .form-item {
    margin: 1.5em 0 1em 0 !important;
}

form fieldset .fieldset-wrapper .tabledrag-toggle-weight-wrapper {
    display: none;
}

form fieldset .fieldset-wrapper table {
    margin: 1em 0;
    width: 100%;
    font-size: 0.8em;
    border: 1px solid #EAE7E2;
}

form fieldset .fieldset-wrapper table tr {
    background: #F7F4EF;
    border-bottom: 1px solid #EAE7E2;
}

form fieldset .fieldset-wrapper table head tr {
    background: #EBE8E3;
}

form fieldset .fieldset-wrapper table th {
    font-weight: 600;
    border: none;
}

form fieldset .fieldset-wrapper table th,
form fieldset .fieldset-wrapper table td {
    padding: 0.4em;
}

form fieldset legend {
    color: inherit;
    position: absolute;
    left: 0;
    top: -1.75em;
}

.form-item label,
form fieldset legend,
label.form-label {
    font-family: 'Proxima Nova';
    font-weight: bold;
    margin-bottom: 0.2em;
    text-transform: uppercase;
}

form .form-type-checkboxes > label {
    margin-bottom: 0.8em !important;
}

form .form-type-checkbox label {
    font-weight: 400;
}

form fieldset.collapsed {
    height: 0 !important;
    padding: 0 !important;
    border: none;
}

form .filter-wrapper {
    background: none;
    border: none;
    margin: 0 !important;
    padding: 0 !important;
}

form .filter-wrapper .filter-help,
form .filter-wrapper .filter-guidelines,
form .filter-wrapper .form-type-select {
    display: none;
}

form .field-type-list-boolean {
    margin-bottom: 1.6em;
}

.form-item label.option {
    font-family: inherit;
    text-transform: none;
    padding-left: 0.3em;
    margin: 0;
}

.form-type-radio label.option {
    font-style: italic;
    font-weight: normal;
}

.form-type-radio .description, .form-type-checkbox .description {
    margin-left: 0;
}

.wysiwyg-toggle-wrapper {
    font-size: 0.8em;
}

/**
 * Custom elements
 */
.iradio, .icheckbox {
    display: inline-block;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    font-size: 1.2em;
    line-height: 1;
    margin-right: 0.45em;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.iradio:hover, .icheckbox:hover {
    cursor: pointer;
}

.icheckbox, .iradio {
    color: #5f5d5a;
}

.icheckbox.checked {
    margin-right: 0.3em;
}

.icheckbox.checked, .iradio.checked {
    color: #F77C7C;
}

.icheckbox:before {
    content: "\f096";
}

.icheckbox.checked:before {
    content: "\f046";
}

.iradio:before {
    content: "\f10c";
}

.iradio.checked:before {
    content: "\f192";
}

/**
 * Spam Captcha
 */
form .field-form-bfs-other .form-type-checkbox {
    margin-top: -0.5em !important;
    margin-bottom: 1em !important;
}

form .field-form-bfs-other .form-type-checkbox label {
    font-weight: bold;
    text-transform: uppercase;
}

form .field-form-bfs-other .form-type-checkbox .icheckbox {
    font-size: 1.5em;
    margin-right: 0.2em;
}

/**
 * JQuery
 */
.ui-autocomplete {
    border: 1px solid #ddd;
    background: #fff;
    font-family: 'Proxima Nova', Sans-Serif;
    font-size: 0.9em;
    font-weight: 100;
}

.ui-autocomplete .ui-state-focus {
    background: #fcffcf;
    margin: 0 !important;
    border: none !important;
}