form {
    padding: 0;
    margin-bottom: 1em;
}

form fieldset {
    clear: both;
    border-color: #222;
    border-width: 1px 0 0 0;
    border-style: solid none none none;
    padding-top: 1em;
}

form fieldset legend {
    font-weight: bold;
    font-size: 1em;
    color: #222;
    margin: 0;
    padding-left: 1em;
    padding-right: 1em;
}

label {
    color: #222;
    font-size: 1em;
}

form .required label {
    font-weight: bold;
}

form span.required {
    font-weight: bold;
}

form .field {
    margin-bottom: 1em;
    padding: 0.5em 1em;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
    zoom: 1;
}

form.borderless .field {
    border-bottom: none !important;
}

form .hasErrors {
    background-color: #FFDFDF;
    border-color: #DF7D7D;
    border-style: solid;
    border-width: 1px 0px;
}

form input,
form textarea,
form select {
    font-size: 1em;
}

form input,
form textarea {
    border: 2px solid #bbb;
}

form textarea {
    overflow: auto;
}

form label {
    float: left;
    width: 12em;
}

form .fieldWidget {
    margin-left: 13em;
}

form .fieldHelp {
    clear: both;
    font-size: 0.92em;
    color: #666;
    margin-left: 14.130em;
}

form .fieldHelp:hover {
    color: #222;
}

form .field ul {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

form .field li {
    list-style: none;
    list-style-type: none;
    padding: 0.5em;
}

form .field .errorlist {
    background-color: #FFBFBF;
    color: #AF4C4C;
    clear: both;
    margin-bottom: 0.5em;
}

form .field .errorlist li {
    font-weight: bold;
    font-size: 0.92em !important;
}

form .formActions {
    padding: 0.5em;
}

form .formActions input {
    border-width: 1px;
    border-color: #ddd #aaa #aaa #ddd;
    padding: 0.25em 0.5em;
}

/* Alternative field styles */

.fieldWithLeftWidget label,
.fieldWithLeftCheckbox label,
.fieldVertical label {
    float: none !important;
    clear: both !important;
    width: auto !important;
}

.fieldWithLeftWidget .fieldWidget,
.fieldWithLeftCheckbox .fieldWidget {
    margin-left: 0 !important;
    float: left !important;
}

.fieldWithLeftCheckbox .fieldWidget {
    width: 2em !important;
}

.fieldWithLeftWidget .fieldHelp,
.fieldVertical .fieldHelp {
    margin-left: 0 !important;
}

.fieldWithLeftCheckbox .fieldHelp {
    margin-left: 2.174em !important;
}

.fieldVertical .fieldWidget {
    margin-left: 0 !important;
    clear: both !important;
}
