/* @group General rules */
form {margin: 1.5em 0;}
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;
}
textarea {
	font-size: 100%;
}
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 {
	font-weight: bold;
	margin-left: 1em;
	padding: 0;
}
fieldset ol {
	padding: 0 1em 0 0;
	list-style: none;
}
fieldset li {
	padding-bottom: .6em;
}
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 */
#main-col form img {
	float: none;
	display: inline;
}
/* @end */

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

/* @group Top-aligned labels */
/* Give form a class of 'top' */ 
.top label {
	display: block;
}
.top fieldset.submit {
	padding-left: 2em;
}
.top fieldset fieldset label {
	float: none;
	width: auto;
	margin-right: auto;
	display: inline;
}

.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%;
}
.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;
}
#sidebar label {
	margin-right: 23px;
	margin-bottom: 10px;
	margin-top: 0;
}
/* @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: 145px;
}
.large {
	width: 330px;
}
.side {
	width: 200px;
}
/* @end */

/* @group No fieldset/legend styles */
/* Add class of 'nofield' to form to get rid of fieldset and legend styles */
#main-col .nofield fieldset {
	border-style: none;
	margin: 0 0 -1em 0;
	padding: 0 0 1em 0;
	position: relative;
	left: 25px;
}
#sidebar .nofield fieldset {
	border: none;
	position: relative;
	left: 23px;
	padding-bottom: 0;
	width: 210px;
}
.nofield legend span {
	position: absolute;
	left: 28px;
	top: 0;
	margin-top: 0.5em;
	font-size: 135%;
}
.nofield legend {
	margin-left: 0;
}
.nofield fieldset ol {
	padding: 0 1em 0 0;
}
#main-col .nofield fieldset.submit {
	padding-top: 0em;
	padding-left: 2em;
	left: 0;
	position: relative;
}
#wrap #sidebar form#feedback fieldset.submit {
	padding-top: 0em;
	margin-top: -23px;
	left: 0;
	position: relative;
	width: 100px;
}

.nofield fieldset fieldset {
	margin-bottom: -2.5em;
	border-style: none;
	background-color: transparent;
	background-image: none;
}
.nofield fieldset fieldset ol {
	padding: 0;
}
/* @end */
