/*
	-----------------------------------------------
    Fancy Form Styling
	-----------------------------------------------
	+ General Form Styling
	  - Fieldsets & Legends
	  - Introduction Text
	  - Fields
	  - Validation
	+ Sign Up Form
	  - Log In
	  - Date of Birth
	  - Submit
	+ Feedback Form
	  - Submit
	+ Privacy Settings
	  - Submit
	+ Edit Profile
	  - Gender
	  - Submit
	+ Advanced Search
	+ JS Enhancements
	  - Password Strength
	  - Select Menu
*/

/* !General Form Styling
--------------------- */
/* -- !Fieldsets & Legends -- */
fieldset {
	border: none;
	position: relative;
	padding: 0;
}
	
/* -- !Introduction Text -- */
.introduction {
	font-size: 1em;
	line-height: 1.4;
	margin: 0 0 2em;
}

/* Note */
p.note {
	font-size: 1.25em;
	margin: -1.7em 0 1.25em;
}

/* -- !Required Fields -- */
fieldset abbr {
	color: #7b0101;
	font-size: 1e;
	font-weight: bold;
	line-height: 1;
	padding: 0 1px;
	vertical-align: middle;
}

/* Right aligned asterisk */
fieldset label abbr {
	display: block;
	font-size: 1e;
	right: 60px;
	padding: 0;
	position: absolute;
	top: 10px;
	width: 16px;
}

/* -- !Fields -- */
fieldset div {
	margin: 0 0 10px;
	padding: 2px 0 2px 160px;
}

fieldset div.controls {
	margin: 25px 0 0;
	padding: 0;
}

	/* Labels */
    fieldset div label {
	color: #F1F1EA;
	float: left;
	display: block;
	font-size: 1em;
	font-weight: bold;
	line-height: 1.1;
	margin: 7px 0 0 -145px;
	width: 140px;
    }

	/* Input defaults */
	fieldset div input,
	fieldset div textarea,
	fieldset div select {
	border: 1px solid #a3b4c4;
	border-color: #C1D72E;
	color: #333;
	display: block;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1;
	margin: 0;
	}
	
	/* Focus */
	fieldset div input:focus,
	fieldset div textarea:focus,
	fieldset div select:focus {
		border-color: #636d77;
	}
    
    /* Text inputs */
    fieldset div input {
	padding: 2px 2px;
	width: 288px;
    }
    
    /* Select menus */
    fieldset div select {
    	padding: 0 0 0 3px;
        width: 291px;
    }        
    
    /* Textareas */
    fieldset div textarea {
    	background: #FFF url(images/bg-form-input.gif) repeat-x left top;
        height: 89px;
        padding: 6px 5px;
        width: 288px;
    }
    
    /* File Upload */
    fieldset div input[type=file] {
    	background: none;
    	border: inherit;
    	padding: 0;
    }

	/* Submit */
	fieldset div.controls {
		background: none;
	}
	
		fieldset div.controls input {
			float: right;
			width: auto;
		}
		
/* -- !Validation -- */
fieldset div,
fieldset fieldset.group {
	position: relative;
}

	/* List of Messages */
	#form-messages {
		background: url(images/bg-form-messages.gif) no-repeat 0 2px;
		font-size: 1.16em;
		margin: 2.5em auto;
		padding: 0 0 0 23px;
		width: 280px;
	}
	
		#form-messages h2 {
			color: #630000;
			font-weight: normal;
			font-size: 1em;
			margin: 0;
		}
		
		#form-messages ul {
			color: #633000;
			padding: 0 0 0 30px;
		}
		
			#form-messages ul li {
				background: url(images/bg-form-messages-li.gif) no-repeat 0 0.55em;
				padding: 0 0 0 19px;
			}
		
		#form-messages a {
			color: #633000;
			text-decoration: underline;
		}
		
		#form-messages a:hover,
		#form-messages a:focus {
			text-decoration: none;
		}
	
	.valid #form-messages {
		background-image: url(images/bg-form-messages-success.gif);
	}
	
		.valid #form-messages h2 {
			color: inherit;
		}

	/* Error Message */
	fieldset strong.error {
		clear: left;
		color: #993333;
		display: block;
		margin: 0.5em 0 0.2em 5px;
	}
	
	/* Field */
	fieldset div input.error,
	fieldset div textarea.error,
	fieldset div select.error {
		border: 1px solid #993333;
	}
	
	/* Icon */
	fieldset img.icon {
		right: 60px;
		position: absolute;
		top: 10px;
	}


/* !Sign Up Form
--------------------- */
/* -- Login -- */
#container {
	position: relative;
}

#sign-up .log-in {
	background: #eaeaea;
	margin: 0;
	line-height: 1;
	padding: 10px 12px;
	position: absolute;
	right: 20px;
	top: 30px;
}

	#sign-up .log-in a {
		font-weight: bold;
	}
		
/* -- !Terms of Service Agreement -- */
#field-agree-tos {
	background: none;
}

/* -- !Your Profile Link -- */
#field-profile-link .profile-link-prefix {
	display: block;
	float: left;
	font-size: 1.16em;
	line-height: 1.1;
	margin: 9px 10px 0 0;
	text-align: right;
	width: 133px;
}

#field-profile-link input {
	width: 145px;
}

/* -- !Submit -- */
#sign-up fieldset .controls input#submit {
	background: url(images/ir-submit-create-profile.png) no-repeat 0 0;
	border: none;
	cursor: pointer;
	height: 32px;
	margin: 0;
	overflow: hidden;
	padding: 32px 0 0 136px;
	width: 136px;
}


/* !Feedback Form
--------------------- */
/* -- !Submit -- */
#feedback fieldset .controls input#submit {
	background: url(images/ir-submit-submit-feedback.png) no-repeat 0 0;
	border: none;
	cursor: pointer;
	height: 32px;
	margin: 0;
	overflow: hidden;
	padding: 32px 0 0 129px;
	width: 149px;
}


/* !Privacy Settings
--------------------- */
/* -- !Submit -- */
#privacy-settings fieldset .controls input#submit {
	background: url(images/ir-submit-privacy-settings.png) no-repeat 0 0;
	border: none;
	cursor: pointer;
	height: 32px;
	margin: 0;
	overflow: hidden;
	padding: 32px 0 0 144px;
	width: 144px;
}
		
/* -- !Submit -- */
#edit-profile fieldset .controls input#submit,
#edit-profile fieldset .controls input#preview {
	background: url(images/ir-submit-edit-profile.png) no-repeat -140px 0;
	border: none;
	cursor: pointer;
	height: 32px;
	margin: 0;
	overflow: hidden;
	padding: 32px 0 0 66px;
	width: 66px;
}

#edit-profile fieldset .controls input#preview {
	background-position: 0 0;
	margin: 0 8px 0 0;
	padding: 32px 0 0 132px;
	width: 132px;
}


/* !Advanced Search
--------------------- */
/* -- !Keywords -- */
#field-keywords label {
	position: absolute;
	top: -999em;
}

/* -- !Submit -- */
#advanced-search fieldset .controls input#submit {
	background: url(images/ir-submit-search.png) no-repeat 0 0;
	border: none;
	cursor: pointer;
	height: 32px;
	margin: 0;
	overflow: hidden;
	padding: 32px 0 0 91px;
	width: 91px;
}


/* !Change Password
--------------------- */
/* -- !Submit -- */
#change-password fieldset .controls input#submit {
	background: url(images/ir-submit-submit-save-password.png) no-repeat 0 0;
	border: none;
	cursor: pointer;
	height: 32px;
	margin: 0;
	overflow: hidden;
	padding: 32px 0 0 137px;
	width: 137px;
}

.selectbox-input-wrapper {
	background: url(images/ui-form-select.png) no-repeat 0 0;
	display: block;
	margin: 0 5px 0 0;
	padding: 0 0 0 10px;
	width: 293px;
}

	fieldset div .selectbox {
		background: url(images/ui-form-select.png) no-repeat 100% 0;
		border: none;
		display: block;
		margin: 0 -5px 0 0;
		padding: 5px 0;
		cursor: pointer;
		width : 288px;
	}
	
/* Date of Birth */
/* Pseodo Select */
fieldset fieldset#section-dob div input.selectbox {
	width: 85px;
}

/* Wrapper for Psuedo Select */
fieldset fieldset#section-dob div .selectbox-input-wrapper {
	width: 80px;
}

