/* @group General rules */
form {
	margin: 1.5em 0;
	width: 65%;
}
input.text, textarea, select {
	border-top: 1px solid #7c7c7c;
	border-left: 1px solid #c3c3c3;
	border-right: 1px solid #c3c3c3;
	border-bottom: 1px solid #ddd;
	padding: 2px;
	width: 15em;
}
select {width: auto;}
input:focus, textarea:focus {
	background-color: #f9f9f9;
	border: 1px solid #555;
}
fieldset {
	margin: 0 0 1.5em 0;
	padding: 0;
	border: 1px solid #BFBAB0;
}
legend {
	color: #000;
	font-weight: bold;
	margin-left: 1em;
	padding: 0;
}
fieldset ol {
	padding: 1em 1em 0 1em;
	list-style: none;
	margin: 0;
}
fieldset li {
	padding-bottom: 1em;
}
fieldset.submit {
	border-style: none;
}
fieldset.submit input {
	padding: 2px;
}

/* @group Element 'subgroup' styles */
fieldset fieldset {
	margin-bottom: -.5em;
	border-style: none;
	background-color: transparent;
	background-image: none;
}
fieldset fieldset legend {
	margin-left: 0;
	font-weight: normal;
}
fieldset fieldset ol {
	position: relative;
	top: -1.5em;
	margin: 0 0 0 11em;
	padding: 0;
}
fieldset fieldset li {
	padding-bottom: .5em;
}
fieldset fieldset label {
	float: none;
	width: auto;
	margin-right: auto;
}
/* @end */

/* @group Override general rules */
/* Give specific forms a class to override any of the above general rules and place specific rules here */
/* @end */

/* @group Validation error stuff */
.markererror, input.markererror:focus, textarea.markererror:focus {
	background-color: #FFE4E4;
}
.verror{
	font-size: 90%;
	width: 100%;
	display: block;
	color: red;
	font-weight: bold;
	margin: 2px 0;
	line-height: 1;
	padding: 0;
}
#mainError {
	margin: 0 0 0 11em;
	position: relative;
	top: -2em;
	width: 50%;
}
p#required {
	margin-bottom: 1em;
}
form img {
	display: inline;
}
/* @end */
/* @end */

/* @group Top-aligned labels */
/* Give form a class of 'top' */ 
.top label {
	display: block;
}
.top fieldset.submit {
	padding-left: 1em;
}
.top fieldset fieldset label {
	float: none;
	width: auto;
	margin-right: auto;
	display: inline;
}
.top fieldset fieldset ol {
	margin-left: 8em;
}
.top label em {
/* Required text <em>required</em> */
	display: inline;
}
/* @end */

/* @group Left-aligned labels */
/* Give form a class of 'left' */ 
.left fieldset {
	float: left;
	clear: left;
	width: 100%;
}
/* ie fix but not valid
.left fieldset ol {
	zoom: 1;
}*/
.left fieldset li {
	float: left;
	clear: left;
	width: 100%;
}
.left label {
	float: left;
	width: 10em;
	margin-right: 1em;
	/* Set following rule if right-aligned labels are required:
	text-align: right;
	*/
}
.left fieldset.submit {
	float: none;
	width: auto;
	padding-left: 12em;
}
.left fieldset fieldset label {
	float: none;
	width: auto;
	margin-right: auto;
}
/* @end */

/* @group Fieldset background colour */
/* Give form a class of 'bg' */ 
.bg fieldset {
	background-color: #F2EFE9;
}
.bg fieldset.submit {
	background-color: transparent;
	background-image: none;
}
/* @end */

/* @group Fieldset background image/grad */
/* Give form a class of 'bgimg' */ 
.img fieldset {
	background-color: #F2EFE9;
	background-image: url(images/grad.jpg);
	background-repeat: repeat-x;
}
/* @end */

/* @group Fieldset alternating bg */
/* Give form a class of 'altbg' */ 
.altbg fieldset.alt {
	background-color: #E6E3DD;
}
/* @end */

/* @group Field sizes */
.small {
	width: 5em;
}
.medium {
	width: 15em;
}
.large {
	width: 25em;
}
/* @end */

/* @group No fieldset/legend styles */
/* Add class of 'nofield' to form to get rid of fieldset and legend styles */
.nofield fieldset {
	border-style: none;
	border-top: 1px solid #bfbab0;
	margin: 0 0 -1em 0;
	padding: 0 0 1em 0;
	position: relative;
}
.nofield legend span {
	position: absolute;
	left: 0.74em;
	top: 0;
	margin-top: 0.5em;
	font-size: 135%;
}
.nofield legend {
	margin-left: 0;
}
.nofield fieldset ol {
	padding: 3.5em 1em 0 1em;
}
.nofield fieldset.submit {
	padding-top: 1.5em;
	background-color: transparent;
	/*padding-left: 1em;*/
}
.nofield fieldset fieldset {
	margin-bottom: -2.5em;
	border-style: none;
	background-color: transparent;
	background-image: none;
}
.nofield fieldset fieldset ol {
	padding: 0;
}
/* @end */

/* @group Remove fieldset/legend */
/* Add class of 'nofieldlegend' to form to completely get rid of fieldset and legend styles */
.nofieldlegend fieldset {
	border-style: none;
	margin: 0 0 -1em 0;
	padding: 0 0 1em 0;
	position: relative;
}
.nofieldlegend legend span {
	position: absolute;
	left: -5000px;
}
.nofieldlegend legend {
	margin-left: 0;
	position: absolute;
	left: -5000px;
}
.nofieldlegend fieldset ol {
	padding: 1em 0 0 0;
}
.nofieldlegend fieldset.submit {
	background-color: transparent;
}
.nofieldlegend fieldset fieldset {
	margin-bottom: -2.5em;
	border-style: none;
	background-color: transparent;
	background-image: none;
}
.nofieldlegend fieldset fieldset ol {
	padding: 0;
}
/* @end */
