/*** Form ***/

#mainbody form {
	margin: .5em 1.25em 1em 1.25em;
	border: 1px solid #bbbbbb;
	background: #ffffff;
}
#mainbody form#clear {
	border: none;
}
#mainbody form#clear p {
	margin: .25em;
}
#mainbody form div.form {
	padding: .5em 0;
}
#mainbody form fieldset {
	border: 1px solid #dddddd;
	display: block;
	margin: 0 auto .5em auto;
	padding: .5em;
	width: 90%;
}
#mainbody form legend {
	padding: 0px 8px;
	color: #002b70;
	font-weight: bold;
	text-transform: uppercase;
	background: white;
}
#mainbody form legend , #mainbody form label , #mainbody form input , #mainbody form select , #mainbody form textarea {
	font-size: .7em;
}
#mainbody form div.field input , #mainbody form select , #mainbody form textarea {
	margin-top: 8px;
	margin-left: 5px;
	border: 1px solid #bbbbbb;
}
#mainbody form label {
	display: block;
	padding-right: 4px;
	width: 40%;
	text-align: right;
	font-weight: bold;
}
#mainbody form div.field {
	clear: left;
	height: auto;
}
#mainbody form div.field label {
	float: left;
	margin: 3px 0 0 3px;
	height: 2.5em;
	line-height: 2.5em;
	background: #f8f8f8;
	color: #464646;
}
#mainbody form fieldset div.field label {
	margin-left: 0;
}
#mainbody form div.field input {
	height: 1.5em;
	width: 40%;
}
#mainbody form select {
	height: 1.5em;
	width: 40%;
}
#mainbody form option {
	padding-left: 3px;
}
#mainbody form textarea {
	float: left;
	margin-top: 3px;
	width: 55%
}
#mainbody form div.field .spanform {
	width: 99%;
}
#mainbody form div.field label.spanform {
	text-align: center;
}

/** Buttons **/
#mainbody div#buttons , #mainbody div.buttons {
	padding-top: .5em;
	clear: left;
	text-align: center;
}
#mainbody form div#buttons .button , #mainbody form div.buttons .button {
	padding: 2px 1em;
}

/** Errors **/
#mainbody form div.error legend {
	color: red;
}
#mainbody form div.error fieldset {
	width: 96%;
	border: 1px solid red;
	background: #ffffff url(../images/corner.gif) no-repeat right top;
}