/* 
	The following information must not be removed:
	Awesome Form v2.1 CSS
	Written by: Paul Armstrong, Paul Armstrong Designs
	Site: http://paularmstrongdesigns.com
	Example & Documentation: http://paularmstrongdesigns.com/awesome/form/index.html
	Sun Dec 17 21:25:39 2006

	Special thanks to Zach Johnson for helping and pushing me to make the changes.
	Site: http://tech.no.logi.es (those aren't dots, they are diamonds)

	This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License
	http://creativecommons.org/licenses/by-sa/2.5/
*/


/*
	In the following section, many of the values must be changed in reference to another.
	Items labeled as 'subjective' are not dependent and may be easily changed as you see fit.
*/
.awesomeform label { 
	width: 200px; /* label width *//* label margin = (input left margin) - (label width) */
	margin-right: 10px; /* label margin */
}
.awesomeform label.long, .awesomeform p.label {
	margin-left: 120px; /* subjective */
	width: 390px; /* (textarea width) + (label width) + (label margin) - (left margin) */
}
.awesomeform label span, .awesomeform p.desc span {
	color: #900; /* color of required asterisk */
}
.awesomeform input, .awesomeform textarea, .awesomeform select,
.awesomeform .checks input, .awesomeform.checks input {
	margin-left: 210px; /* (label width) + (label margin) */
	width: 200px; /* subjective, only applies to non-checkbox or radio inputs */
}
.awesomeform textarea { 
	width: 300px; /* subjective, recommend: (3/2)(input width) */
}
.awesomeform p.desc {
	margin-left: 210px; /* (label width) + (label margin) **recommended */
}
.awesomeform .checks label, .awesomeform.checks label {
	margin-left: 220px; /* (label width) + 2(label margin) */
}

/*
	The following makes Internet Explorer 6.x play nicely. 
	These fix the double float margin bug.
*/
* html .awesomeform .checks input, * html .awesomeform.checks input { 
	margin-left: 105px;  /* (1/2)((label width) + (label margin)) */
}
* html .awesomeform .checks label, * html .awesomeform.checks label { 
	margin-left: 210px; /* (label width) + (label margin) */
	height: 1em; 
}


/*********************************************************************************
	DO NOT EDIT BELOW THIS LINE
*********************************************************************************/


.awesomeform {
	margin: 0 0 1em;
}

.awesomeform label {
	/* 
		A label must precede the form element in the HTML
		You must keep the top padding for some browsers to keep the label and the form element looking on the same line
	*/
	float: left;
	text-align: right;
	padding-top: 0.2em;
	font-weight: bold;
	font-size: 1em;
}

.awesomeform label:after { 
	/* 
		Creates a ":" after LABELs. This only works in some browsers 
	*/
	content: ":"; 
}

.awesomeform label.long {
	/*
		If your label text does not fit in the left-hand side, consider this class
	*/
	float: none;
	display: block;
	text-align: left;
}

.awesomeform label.long:after {
	content: "";
}

.awesomeform input, .awesomeform textarea, .awesomeform select {
	/*
		These items must immediately follow the LABEL item associated with it and followed by a BR (see below).
		The following width must be 10pixels wider than the width of the LABEL.
	*/
	display: block;
	margin-bottom: 0;
}
.awesomeform select[multiple="multiple"] {
	/*
		Mozilla has some weird concept of how to display multiple select boxes.
		For some reason, display: block; does not affect it.
		For more information, see https://bugzilla.mozilla.org/show_bug.cgi?id=342531
		This fixes that problem. DON'T FORGET YOUR BR TAG AFTER SELECT!
	*/
	margin-left: 0px;
}
.awesomeform br { 
	/* 
		Always include a BR tag at the end of a line of items -- generally immediately following one of an INPUT, SELECT or TEXTAREA.
		Within div.checks, include the BR after the LABEL
	*/
	clear: left;
} 

.awesomeform input[type="radio"], .awesomeform input[type="checkbox"], 
.awesomeform input[type="hidden"] { 
	/* 
		Keeps Mozilla browsers (and others) from making the RADIO and CHECKBOXES too wide and/or tall.
		Also removes unnecessary borders from these browsers (They don't respond as expected) 
	*/
	width: auto; 
	height: 0.8em; 
	border: 0;
}

.awesomeform input[type="hidden"] {
	/*
		Firefox doesn't want to make them actually hidden, so I'll force it.
	*/
	display: none;
}

.awesomeform p.desc {
	/*
		Use this immediately following an item that needs a longer description than can be handled by the LABEL.
		The left margin should be the same as INPUT, TEXTAREA and SELECT objects.
	*/
	display: block;
	position: relative;
	top: -1em;
	margin-bottom: 0em;
	font-style: italic;
	font-size: 0.9em;
}


/* 
	The following section is for reversing the display of CHECKBOX and RADIO INPUTs.
	Surround the section of items with <fieldset class="checks"></fieldset> or <div class="checks"></div>.
	It is highly recommended to use FIELDSET over DIV when there are multiple items.
	In the section, the INPUT precedes the LABEL and the BR comes last (after the label).
*/
.awesomeform .checks label, .awesomeform.checks label {
	/*
		Overrides for previously defined stuff and changes.
		Left margin must be 10pixels more than ".awesomeform input, .awesomeform select" etc.
	*/
	float: none;
	width: auto;
	clear: none;
	display: block;
	text-align: left;
	height: 1.4em;
	padding-top: 0;
	margin-bottom: 0;
}

.awesomeform .checks label:after, .awesomeform.checks label:after, .checks label:after  { 
	/* 
		Makes the ":" not generated after the LABEL. 
	*/
	content: ""; 
} 

.awesomeform .checks input, .awesomeform.checks input {
	/*
		Left margin is the same value as ".awesomeform input, .awesomeform select" etc.
	*/
	float: left;
	text-align: right;
	width: auto;
}

/* 
	End reverse checks/radios section
*/


/*
	I found my own IE CSS display bug. I call it the "IE sucks, so it redraws the top border all over the fieldset like a jerk bug."

.awesomeform input, .awesomeform textarea, .awesomeform select,
.awesomeform .checks input, .awesomeform .checks label,
.awesomeform.checks input, .awesomeform.checks label {
	margin-top: 0;
	margin-bottom: 0;
}
*/
* html .awesomeform br {
	/*
		Hooray! We have a fix!
		For some crazy reason, IE lets me style its BR tag.
	*/
	line-height: 1em;
	font-size: 0.5em;
}
