/*
 * Styles for the Lampo Web Forms Framework
 * Authors: Phil Harvey & Kevin Powell
 * Created June-July 2009
 * Revisited and modified by Kevin Powell September 2009
 */

/*
	LAYOUT
*/
.formContainer {
	background-color: #F4F5F9;
	border: 1px solid #CBDFE8;
	border-radius: 1ex;
	-moz-border-radius: 1ex;
	-webkit-border-radius: 1ex;
	-o-border-radius: 1ex;
	color: #030D17;
	/* padding is grid gutter (20px) minus border) */
	padding: 19px;
	margin: 0 20px 40px 20px;
}

.formWidth{
	width:480px;
}

 form .field_wrapper{
	display:block;
	position:relative;
	padding: 0 0 9px 20px;
	zoom:1;
}

form .adjacent_field_wrapper div{
	float:left;
	line-height:1;
}
form .adjacent_field_wrapper .field_error_message {
	float: none;
}
form .adjacent_field_wrapper div.clear{
	float:none;
}

/*use this to kill margins on field_wrappers (ex: checkbox lists) */
form .no_margin_wrapper .field_wrapper{
	padding: 0 0 0 20px;
}

.formContainer .standalone_error_message {
	position: relative;
	display: block;
	zoom: 1;
	padding: 0 0 16px 20px;
}

form hr{
	color: #CBDFE8;
	margin: 10px 0 15px;
	clear:both;
}

/*
	FORM HEADERS
*/
.Brand .sectionPrimary form.formContainer h1{
	color: #2882A5;
	font-size: 24px;
	line-height: normal;
	margin:0 0 10px;
	padding:0;
}
.Brand .sectionPrimary form.formContainer legend,
form h2{
	color: #383838;
	font-size: 20px;
	line-height: normal;
	margin:0 0 10px;
	padding:0;
}

.Brand .sectionPrimary form.formContainer fieldset fieldset legend,
form h3{
	color: #2882A5;
	font-size: 16px;
	line-height: normal;
	margin:0;
	padding:0;
}

form h4{
	color: #383838;
	font-size: 12px;
	line-height: normal;
	margin:0;
	padding:0;
}
/* can't style legends w/o styling fieldsets */
.Brand .sectionPrimary form.formContainer fieldset {
	padding: 0;
	margin: 0;
}

form ul li{
	list-style-image:none;
}


/*
	INPUT STYLES
*/
form button,  form button span {
	/* override for the background color specified in gui.css */
	/* This is the color revealed through the transparent regions of the bg image */
	background-color: #F4F5F9;
}

form input.disabled,
form textarea.disabled{
	background:#ddd;
	color:#666;
}

.submit{
	position:relative;
	left:20px;
}


form input.micro,
form select.micro,
form textarea.micro{
	width:50px;
}

form input.tiny,
form select.tiny,
form textarea.tiny{
	width:110px;
}

form input.small,
form select.small,
form textarea.small{
	width:170px;
}

form textarea.small{
	height: 75px;
}

form input.medium,
form select.medium,
form textarea.medium{
	width:230px;
}

form textarea.medium{
	height: 100px;
}

form input.large,
form select.large,
form textarea.large{
	width:390px;
}

form textarea.large{
	height:150px;
}

optgroup {
	font-style: normal;
}

/*
	field specific styles
*/
.hidden_input_field {
	background: none;
	display: none;
}

.text_input_field,
.password_input_field,
form select,
form textarea,
form input {
    color: #383838;
    font-size: 10pt;
    font-weight:normal;
    margin: 0;
    padding: 4px;
	border-top: 1px solid #999;
    border-left: 1px solid #999;
    border-bottom: 1px solid #CBDFE8;
    border-right: 1px solid #CBDFE8;
    background: #FCFCFC url(../../media/image/form/inputbg.png) no-repeat scroll left top;
}

form textarea {
	clear:both;
}

form input.checkbox_input_field{
	display:block;
	margin: 0px 5px 0 20px;
	padding: 0;
	float:left;
	border-top: none;
    border-left: none;
    border-bottom: none;
    border-right: none;
    background: none;
}

form input.checkbox_input_field.no_indent{
	margin: 0 5px 0 0;
	float:left
}

form input.radio_input_button{
	border:none;
	margin: 2px 5px 0 0;
	display:block;
	padding: 0;
	border-top: none;
    border-left: none;
    border-bottom: none;
    border-right: none;
    background: none;
}

form .radio_label input{
	position:absolute;
	left:-20px;
	top:-2px;
}
/*
	LABEL STYLES
*/
form label,
.text_input_field_label,
.password_input_field_label,
form label.generic_label,
form .textarea_field_label,
.radio_input_button_label,
.select_field_label {
	color: #656565;
	display: block;
	clear: left;
	line-height:1em;
	margin: 0 0 8px 0;
}

form label.generic_label{
	padding: 0 0 0 20px;
}

.radio_input_button_label{
	float:left;
}

 form .radio_label{
	margin: 0 0 9px 40px;
	font-weight:normal;
	color:#666;
	cursor: pointer;
	cursor: hand;
	position:relative;
}

form label.no_indent{
	clear:none;
	cursor:pointer;
	display:block;
	font-weight:normal;
	line-height:1.3em;
	margin:0 0 0 20px;
}

.checkbox_input_field_label{
	display:block;
	cursor: pointer;
	cursor: hand;
	font-weight: normal;
	line-height: 1.3em;
	clear:none;
	margin: 0 0 0 40px;
}

.contentPrimary form label.text_input_field_label {
	display: block;
}

/*
	STATUS & ERROR MESSAGING
*/
.form_field_status {
	float: left;
	margin: 0 0 0 5px;
}
.field_status_untouched {
	background-image: url(../../media/image/form/blank16x16.gif);
	height: 16px;
	width: 16px;
	position:absolute;
	top:-2px;
	left:0px;
}
.field_status_busy, .ajax_busy {
	background: url(../../media/3_way_universal/ui_stuff/spinner.gif) center center no-repeat;
	height: 16px;
	width: 16px;
	position:absolute;
	top:-2px;
	left:0px;
}
.field_status_invalid {
	background: url(../../media/image/form/status_sprite.png) 0 -16px;
	_background: url(../../media/image/form/status_sprite_ie6.png) 0 -16px;
	height: 16px;
	width: 16px;
	position:absolute;
	top:-2px;
	left:0px;
}
.field_status_valid {
	background: url(../../media/image/form/status_sprite.png) 0 0;
	_background: url(../../media/image/form/status_sprite_ie6.png) 0 0;
	height: 16px;
	width: 16px;
	position:absolute;
	top:-2px;
	left:0px;
}

/* form and field error message styles */
.form_errors {
	font-size: 10pt;
	font-weight: bold;
	color: #c00;
	border: 2px solid #c00;
	padding: 5px;
	margin: 0px 0px 20px 0px;
	moz-border-radius: 1ex;
	-webkit-border-radius: 1ex;
	-o-border-radius: 1ex;
}
.form_errors ul {
	list-style-type: none;
	padding-left: 20px;
	margin-bottom: 1em;
}
.form_errors ul li {
	margin-bottom: 10px;
}
.field_error_message {
	min-height: 1em;
	clear:both;
	font-size: 8pt;
	padding: 3px 0 0 0;
	color: #c00;
	display:block;
}
.standalone_error_message {
	font-size: 8pt;
	color: #c00;
}
input.field_with_error,
textarea.field_with_error,
select.field_with_error {
	background:url(../../media/image/form/inputbgError.gif) #FFDFDF;
	border: 1px solid #c00;
}

div.field_with_error label.text_input_field_label,
div.field_with_error label.email_input_field_label,
div.field_with_error label.select_field_label,
div.field_with_error label.radio_input_button_label,
div.field_with_error label.textarea_field_label {
	font-weight:bold;
	color:#cc0000;
}

/*
	Below Form Div's
*/
.form_security{
	float:right;
	position:relative;
	top: -30px;
	text-align:right;
	right:20px;
}

/*
	BUBBLES
*/

.field_bubble {
	position:absolute;
	margin:0px auto;
	min-width:100px;
	max-width:160px;
	color:#fff;
	z-index:1000;
	margin-left:35px;
	_width:120px;
}

form .field_bubble,
form .field_bubble div {
	float:none;
}

.field_bubble .content,
.field_bubble .t,
.field_bubble .b,
.field_bubble .b div {
	background-repeat: no-repeat;
	background-position: top right;
	zoom:1;
}

.field_bubble.error .content,
.field_bubble.error .t,
.field_bubble.error .b,
.field_bubble.error .b div {
	background-image:url(../../media/3_way_universal/ui_stuff/ui_form_errorbubble.png);
	_background-image:url(../../media/3_way_universal/ui_stuff/ui_form_errorbubble_ie6.png);
}

.field_bubble .content {
	position:relative;
	zoom:1;
	_overflow-y:hidden;
	padding:0px 12px 0px 0px;
}

.field_bubble .t {
	/* top+left vertical slice */
	position:absolute;
	left:0px;
	top:0px;
	width:12px; /* top slice width */
	margin-left:-12px;
	height:100%;
	_height:200px; /* arbitrary long height, IE 6 */
	background-position:top left;
}

.field_bubble .b {
	/* bottom */
	position:relative;
	background-position:bottom right;
}

.field_bubble .b div {
	position:relative;
	width:12px; /* bottom corner width */
	margin-left:-12px;
	background-position:bottom left;
}

.field_bubble .wrapper {
	/* extra content protector - preventing vertical overflow (past background) */
	position:static;
	max-height:500px;
}

body div#centerWrapper .field_bubble p,
.field_bubble p {
	margin:0px; /* margins will blow out backgrounds, leaving whitespace. */
	padding:9px 0px 0px 0px;
	color:#fff;
	line-height:1.3em;
}

.field_bubble .b,
.field_bubble .b div {
	height:12px;
	font-size:1px;
}

.field_bubble .t,
.field_bubble .b div,
.field_bubble .bd,
.field_bubble .wrapper {
	margin-left:-30px;
	width:30px;
}

.field_bubble .wrapper {
	width:auto;
}

.field_bubble .wrapper .bd {
	position:relative;
	margin-left:0px;
	zoom:1;
	width:auto;
	padding:0px 3px 0px 18px;
}