form {
    margin: 0;
    padding: 0;
    min-width: 450px;
    max-width: 510px;
    width: 510px;
    clear: both;
}
form fieldset {
    clear: both;
    float: left;
    border: 0;
    margin: 0;
    width: 510px;
}
form fieldset.hidden {
    border: 0;
}
form fieldset legend {
    white-space: nowrap;
    font-weight: bold;
    width: 510px;
    padding: 1px;
    display: block;
}
form fieldset ol {
    margin: 0;
    padding: 0;
}
form fieldset li {
    display: block;
    list-style: none;
    margin: 0;
    clear: both;
    float: left;
}
* html form fieldset li {
    float: none;
}
*+html form fieldset li {
    float: none;
}
form label {
    margin: 0 0 0 5px;
    font-size: 80%;
}
form label.element {
    display: block;
    float: left;
    width: 150px;
    padding: 0;
    margin: 5px 0 0 0;
    font-weight: bold;
    text-align: right;
}
form input, form textarea, form select {
    width: auto;
}
form textarea {
    overflow: auto;
}
form br {
    clear: left;
}
form div.element {
    display: inline;
    float: left;
    margin: 5px 0 0 10px;
    padding: 0;
}
form li.reqnote {
    font-size: 80%;
    margin: 5px 0 0 10px;
}
form span.error, form span.required {
    color: red;
    font-size: 72%;
    font-weight: bold;
}
form div.error {
    border: 1px solid red;
    padding: 5px;
}