﻿/*
	-----------------------------------------------
    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
--------------------- */
#feedback_container {

	padding-bottom: 18px;
	width: 550px;
}

#feedback_inner {
	background: url(../images/forms/bg-form.gif) repeat-x;
	border: 1px solid #fff;
	border-color: #fff #fff #ababab;
	padding: 10px;
}



/* -- !Fieldsets & Legends -- */
fieldset {
	border: none;
	position: relative;
	padding: 0;
}
	
/* -- !Introduction Text -- */
.introduction {
	margin: 0 0 2em;
}

/* Note */
p.note {
	font-size: 1.25em;
	margin: -1.7em 0 1.25em;
}

/* -- !Required Fields -- */
fieldset abbr {
	color: red;
	font-size: 20px;
	font-weight: bold;
	line-height: 1;
	padding: 0 1px;
	vertical-align: middle;
}

/* Right aligned asterisk */
fieldset label abbr {
	display: block;
	font-size: 20px;
	right: 65px;
	padding: 0;
	position: absolute;
	top: 10px;
	width: 16px;
}

/* -- !Fields -- */
fieldset div {
	background: url('../images/forms/bg-form-fieldset-div.png') repeat-y 0 0;
    margin: 0 0 10px;
    padding: 5px 0 5px 160px;
}

fieldset div.controls {
	margin: 25px 0 0;
	padding: 0;
}

	/* Labels */
    fieldset div label {
    	color: #666;
    	float: left;
    	display: block;
    	font-size: 1em;
        font-weight: bold;
        line-height: 1.1;
        margin: 7px 0 0 -160px;
        width: 150px;
    }

	/* Input defaults */
	fieldset div input,
	fieldset div textarea,
	fieldset div select {
		border: 1px solid #a3b4c4;
		border-color: #636d77 #a3b4c4 #c7d2de; 
		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 {
    	background: #FFF url('../images/forms/bg-form-input.gif') repeat-x left top;
    	padding: 6px 5px;
        width: 288px;
    }
    
    /* Select menus */
    fieldset div select {
	padding: 8 0 0 8px;
	width: 291px;
}
    
    /* Textareas */
    fieldset div textarea {
	background: #FFF url('../images/forms/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;
    }
        
    /* Radio buttons + checkboxes */
    fieldset div ul {
    	margin: 5px 0 0 0;
    }
    
	    fieldset div ul li {
	        margin: 0 0 5px;
	        padding: 0;
	    }
	                                 
	        fieldset div ul li label {
	            display: inline;
	            float: none;
		    	font-size: 1em;
	            font-weight: normal;
	            margin: 0;
	            padding: 0;
	        }
	                        
	        fieldset div ul li input {
	        	background: none;
	            border: none;
	            display: inline;
	            margin: 0 5px 0 0;
	            padding: 0;
	            width: auto;
	        }
	        
	/* Groups */
	fieldset fieldset.group {
		background: url('../images/forms/bg-form-fieldset-div.png') repeat-y -155px 0;
		color: #666;
		margin: 0 0 10px 155px;
		padding: 0;
	}
	
		fieldset fieldset.group legend span {
			background: none;
			border: none;
			display: block;
	    	font-size: 1.16em;
	        font-weight: bold;
	        left: 0;
	        line-height: 1.1;
	        margin: 9px 20px 0 -155px;
			padding: 0;
			position: absolute;
			width: 140px;
		}
		
		fieldset fieldset.group div {
			background: none;
			float: left;
			margin: 0 0 0 5px;
			padding-left: 0;
		}

	/* Submit */
	fieldset div.controls {
		background: none;
	}
	
		fieldset div.controls input {
			float: right;
			width: auto;
		}
		
/* -- !Table of radio buttons -- */
fieldset table {
	border-collapse: collapse;
	border-spacing: none;
	width: 465px;
}
	
	/* Head */
	fieldset table thead th {
		color: #0c1155;
		font-size: 1.16em;
		padding: 0 14px 8px;
	}
		
	/* Body */
	fieldset table tbody th,
	fieldset table tbody td {
		border: 10px solid #FFF;
		border-width: 0 0 10px;
		vertical-align: middle;
	}
	
	fieldset table tbody tr.with-note td,
	fieldset table tbody tr.with-note th {
		border: none;
	}
	
	fieldset table tbody th {
		color: #666666;
		font-size: 1.16em;
		font-weight: bold;
		width: 155px;
	}
	
	fieldset table tbody td {
		background: #f2f2f2;
		padding: 12px 28px;
	}
	
	/* General */
	fieldset table th.private,
	fieldset table td.private {
		text-align: left;
	}
	
	fieldset table th.contacts,
	fieldset table td.contacts {
		text-align: center;
	}
	
	fieldset table th.public,
	fieldset table td.public {
		text-align: right;
	}
	
	fieldset table input {
		margin: 0;
		padding: 0;
	}
	
	fieldset table td.note {
		padding: 2px 10px 12px; 
	}
		
/* -- !Validation -- */
fieldset div,
fieldset fieldset.group {
	position: relative;
}

	/* List of Messages */
	#form-messages {
		background: url('../images/forms/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/forms/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/forms/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;
	}

/* -- !Date of Birth -- */
fieldset fieldset#section-dob div label {
	position: absolute;
	top: -999em;
}

fieldset fieldset#section-dob div select {
	width: 85px;
}

fieldset fieldset#section-dob div select#dob_month {
	width: 108px;
}

fieldset fieldset#section-dob em.note {
	clear: left;
	display: block;
	font-style: normal;
	margin: 0 0 0.5em 5px;
}
		
/* -- !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 {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ir-submit-create-profile.png') no-repeat 0 0;
	cursor: pointer;
		height: 32px;
		margin: 0;
		overflow: hidden;
		padding: 32px 0 0 136px;
		width: 136px;
}


/* !Feedback Form
--------------------- */
/* -- !Submit -- */
#feedback fieldset .controls input#submit {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ir-submit-submit-feedback.png') no-repeat 0 0;
	cursor: pointer;
		height: 32px;
		margin: 0;
		overflow: hidden;
		padding: 32px 0 0 129px;
		width: 149px;
}


/* !Privacy Settings
--------------------- */
/* -- !Submit -- */
#privacy-settings fieldset .controls input#submit {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ir-submit-privacy-settings.png') no-repeat 0 0;
	cursor: pointer;
		height: 32px;
		margin: 0;
		overflow: hidden;
		padding: 32px 0 0 144px;
		width: 144px;
}


/* !Edit Profile
--------------------- */
/* -- !Gender -- */
fieldset #field-gender {
	background: #FFF;
}

	fieldset #field-gender ul {
		overflow: hidden;
	}
	
		fieldset #field-gender ul li {
			float: left;
			margin-right: 38px;
		}
		
/* -- !Submit -- */
#edit-profile fieldset .controls input#submit,
#edit-profile fieldset .controls input#preview {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ir-submit-edit-profile.png') no-repeat -140px 0;
	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 {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ir-submit-search.png') no-repeat 0 0;
	cursor: pointer;
		height: 32px;
		margin: 0;
		overflow: hidden;
		padding: 32px 0 0 91px;
		width: 91px;
}


/* !Change Password
--------------------- */
/* -- !Submit -- */
#change-password fieldset .controls input#submit {
	border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ir-submit-submit-save-password.png') no-repeat 0 0;
	cursor: pointer;
		height: 32px;
		margin: 0;
		overflow: hidden;
		padding: 32px 0 0 137px;
		width: 137px;
}


/* !JS Enhancements
--------------------- */

/* -- !Password Strength -- */
#psr_score {
	background: transparent;
	display: block;
	margin: 0;
	padding: 0;
	width: 200px;	
}

	.psr_Weak,
	.psr_Medium,
	.psr_Strong,
	.psr_Excellent {
		background: url('../images/forms/bg-password-strength.png') no-repeat 0 0;
		display: block;
		margin: 0.5em 0 0.2em 5px;
		padding: 10px 0 0;
	}
	
	.psr_Medium {
		background-position: 0 -50px;
	}
	
	.psr_Strong {
		background-position: 0 -100px;
	}
	
	.psr_Excellent {
		background-position: 0 -150px;
	}


/* -- !Select Menu -- */
fieldset div.selectbox-wrapper,
fieldset fieldset#section-dob div.selectbox-wrapper {
	border:1px solid #ccc;
	background: #FFF;
	float: none;
	margin: 0 0 0 5px;
	max-height: 150px;
	overflow: auto;
	padding: 0;
	position: absolute;
	width: auto;
	z-index: 100;
}

	fieldset div.selectbox-wrapper ul {
		background: #FFF;
		float: none;
		list-style-type: none;
		margin: 0px;
		padding: 0px;
	}

		fieldset div.selectbox-wrapper ul li.selected { 
			background-color: #EAF2FB;
		}

		fieldset div.selectbox-wrapper ul li.current { 
			background-color: #CDD8E4;
		}

		fieldset div.selectbox-wrapper ul li {
			cursor: pointer;
			display: block;
			list-style-type: none;
			margin: 0;
			padding: 2px 5px;
		}

.selectbox-input-wrapper {
	background: url('../images/forms/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 {
		border-style: none;
	border-color: inherit;
	border-width: medium;
	background: url('../images/forms/ui-form-select.png') no-repeat 100% 0;
	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;
}
