/** 
 * SilverStripe Black Candy Theme
 * http://www.silverstripe.com
 *
 * Form Styling
 */


/* FIELDSETS
---------------------------------------- */
fieldset {
	border: 0;
	margin:0;
	padding:0;
}

/* ACTION BUTTONS
---------------------------------------- */
input.action {
	padding: 2px;
	font-size: 11px ;
	font-family: Helvetica, Arial, sans-serif;
	font-weight:100;
}
input.action:hover,
input.action:focus {
	cursor: pointer;
}

/* FIELD FORMATING
---------------------------------------- */
form ul {
	list-style: none;
}
.middleColumn {
 	margin:5px 0;
	background: none;
	padding: 0;
	width: 100%;
	display: inline-block;
	float:left;
}
	#Sidebar .middleColumn {
		margin: 0 0 0 8px;
		display: inline;
	}
	
	div.tab .field .middleColumn {
		clear: none !important;
 		margin: 0 !important;
		width: auto;
	}
	
	.middleColumn .middleColumn {
		margin-left: 0;
		margin-right: 0;
		padding: 0;
	}
	
	.middleColumn .message {
		margin: 0;
	}
	
	
	
/* INPUT BOXS
---------------------------------------- */

input.text, textarea, select {
	padding: 8px;
	border: 2px solid #E9E9E9;
	color: #666;
	font-size: 14px;
	line-height:18px;
	height:18px;
	font-weight: bold;
	width: 60%;
}

textarea {
	font-family: Verdana, Tahoma, sans-serif;
	font-size: 12px;
}
input:focus span, textarea:focus span {
	border: 3px solid #000;
}

form .date input.month,
form .date input.day,
form .date input.year {
	width: auto;
}

form .datetime .clear {
	clear: both;
}

form .datetime .date,
form .datetime .time {
	float: left;
	clear: none;
	width: auto;
}
	form .datetime .middleColumn .middleColumn {
		width: auto;
	}
	form .datetime .date input,
	form .datetime .time input {
		width: auto;
	}


/* SELECT DROPDOWN
---------------------------------------- */

select {
	width: auto;
}

/* LABELS
---------------------------------------- */
.typography label {
	margin: 10px 0 5px 0;
	color: #777;
	font-size: 14px;
	float:left;
	color: #5FB946;
	display: inline-block;
	clear:both;
	width:100%;
}

label.right {
	display:inline;
}

/* CHECKBOXES
---------------------------------------- */
ul.optionset {
	margin: 0;
	overflow: hidden;
}
	ul.optionset li {
		margin: 6px 0;
		clear: both;
	}
		ul.optionset li input {
			float: left;
			margin: 0 6px;
		}
		ul.optionset li label {
			margin: 0;
		}


/* Searchform */
#SearchForm_SearchForm {
	width:344px;
	height:27px;
	overflow:hidden;
	padding:7px 6px 6px;
	background: url(../images/search-bg.png) no-repeat 0 0;
}
#SearchForm_SearchForm legend {
	height:0px;
	display:none;
}
#Search .middleColumn {
	margin:0;
	padding:0;
	float:left;
	background:none;
	width:260px;
}
#Search input {
	width:250px;
	height:13px;
	padding:7px 5px;
	float:left;
	overflow:hidden;
	border:none;
	color:#BABABA;
	font-size:11px;
	line-height:13px;
	background: url(../images/forms.png) no-repeat -76px 0;
	
}
#SearchForm_SearchForm_action_results {
	float:left;
	width:76px;
	height:27px;
	background: url(../images/forms.png) no-repeat 0 0;
	overflow:hidden;
	outline:0;
	border:none;
	text-indent:-99999em;
	font-size:1px;
	color:#4C8B23;
	line-height: 27px;
    margin:0 0 0 7px;
    padding: 0;
    text-shadow: none;
    text-transform: none;
}
#SearchForm_SearchForm_action_results:hover {
	/* position: x, y */
	background-position:0 -27px;
}
#PageCommentInterface_Form_PostCommentForm .Actions{
	margin-bottom:20px;
}
input.action {
    width: auto;
	font-size:16px;
	line-height:18px;
	padding:6px 8px;
    color: #FFF;
    text-transform: uppercase;
    text-shadow: #1F6B07 1px 1px;
    border: 2px solid #333;
    margin: 10px 0;
 
    /*** Adding CSS3 Gradients ***/
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#4C8B23), to(#64B92F));
    background:  -moz-linear-gradient(19% 75% 90deg,#4C8B23, #64B92F);
}

input.action:hover {
    color: #1F6B07;
    text-shadow: #4C8B23 1px 1px;
    /*** Adding CSS3 Gradients ***/
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#64B92F), to(#4C8B23));
    background:  -moz-linear-gradient(19% 75% 90deg,#64B92F, #4C8B23);
}


/* Error Messages */
#ContactForm_ContactForm p.bad{
	color:#93251A;
	font-size:18px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding:10px;
	width:440px;
	font-size:18px;
	font-weight:normal;
	background:#F1EBEA;
	border:1px dotted #E0BEBA;
}

form span.required{
	background:#272727;
	padding:5px 10px;
	font-size:16px;
	line-height:18px;
	color:#FFF;
	width: 91.5%;
}

/* Sign Up Form */

#SignUpForm_FullSignUpForm input.text, #SignUpForm_FullSignUpForm textarea, #SignUpForm_FullSignUpForm select {
    border: 2px solid #E9E9E9;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    height: 18px;
    line-height: 18px;
    padding: 8px;
    width: 80%;
}
#SignUpForm_FullSignUpForm select {
	height:34px;
	width: 84%;
}
.typography #Form_SubscribeForm label{
	display:none;
}
.typography #Form_SubscribeForm input.text{
	color:#589F3E;
	float:left;
	width:220px;
}
.typography #Form_SubscribeForm fieldset{
	color:#589F3E;
	float:left;
	width:250px;
}
.typography #Form_SubscribeForm input.action{
	margin:5px 0 0 0;
	float:left;
}
#MemberLoginForm_LoginForm p#Remember label{
	text-align:left;
	float:left;
	width:180px;
}
#MemberLoginForm_LoginForm p#Remember input{
	margin-top:14px;
}

/* Contact Form */
#contact-form h4{
	margin-bottom:8px;
}
#ContactForm_ContactForm{
	width:460px;
}
#ContactForm_ContactForm label{
	font-weight: bold;
    line-height: 18px;
	margin-bottom:2px;
}
#ContactForm_ContactForm input.text{
	width:420px;
}
#ContactForm_ContactForm textarea{
	width:420px;
	height:160px;
	border: 2px solid #E9E9E9;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
}
#ContactForm_ContactForm select{
	width:440px;
	height:34px;
	border: 2px solid #E9E9E9;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    line-height: 34px;
	padding:8px;
	outline:0;
}
#ContactForm_ContactForm select option{
    color: #666;
    font-size: 14px;
    font-weight: bold;
    line-height: 26px;
	height:26px;
	padding:4px 8px;
	outline:0;
}