/* proportions */
form span.lbl, form fieldset fieldset h3 {
    width: 32%;
}

form .button, form .reqdnote, form .error {
    margin-left: 32%;
}

form input, form select, form textarea {
    width: 64%;
}

form * {
    margin: 0;
    padding: 0;
}

form fieldset {
    border: none;
    border-top: 1px solid #666;
    margin-bottom: 1em;
    padding-bottom: 4px;
}

form legend {
    font-weight: bold;
    padding: 2px 2px 0 0;
}

* html legend {
    margin-left: -7px;
}

form fieldset.nolegend {
    border: none;
}

form fieldset.nolegend legend {
    display: none;
}

form label {
    width: 100%;
    display: block;
    margin: 0 0 4px 0;
    clear: both;
}

form span.lbl {
    display: block;
    text-align: right;
    float: left;
    color: #666;
    padding-right: 8px;
}

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

form input, form select, form textarea {
    font-size: 10px;
    background: #EEE;
    border: 1px solid #666;
}

form input[type="radio"], form input[type="submit"] {
    width: auto;
}

form fieldset#buttons {
    border: none;
}

form .button {
    padding-left: 4px;
}    

form .button input {
    clear: both;
    display: block;
    width: auto;
}

/* groups nested inside sections */
form fieldset fieldset {
    border: none;
    margin: 0;
    clear: both;
}

form fieldset fieldset legend {
    display: none;
}

form fieldset fieldset h3 {
    float: left;
    padding: 0;
    margin-right: 4px;
    font-size: 10px;
    font-weight: normal;
    color: #666;
    text-align: right;
}

form fieldset fieldset div.qfgrp {
    display: block;
    float: left;
    margin-right: 4px;
}

form fieldset fieldset div.qfgrp label {
    display: inline;
    padding: 0;
    margin-left: 4px;
    clear: none;
    width: auto;
}

form fieldset fieldset span.lbl {
    display: none;
}

form fieldset fieldset input {
    display: inline;
    width: auto;
    background: none;
    border: none;
}

/* required fields indicator/legend */

form .reqd {
    color: red;
}

form .reqdnote {
    padding-left: 4px;
    font-size: inherit;
}

/* validation error */

form .error {
    padding-left: 4px;
    color: red;
}
