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

/* forms
----------------------------------------------- */
form {
  overflow:hidden;
}
fieldset {
  border-top:1px solid #bbb;
  border-bottom:1px solid #bbb;
  padding:10px;
  position:relative;
  margin-bottom:10px;
}
legend {
  font-size:1.1em;
  padding:.4em .8em;
  background:#fff;
  border:1px solid #bbb;
  display:none;
}
fieldset.login p {
  margin-bottom:1em;
  margin-top:0pt;
}
fieldset p label {
  width:98%;
}
fieldset p input {
  width:98%;
}
fieldset p select {
  width:99%;
}
fieldset.login p label {
  float:left;
  line-height:2em;
  margin-right:3%;
  text-align:right;
  width:32%;
}
fieldset.login p input {
  width:60%;
}
fieldset.login input.button {
  margin-left:35%;
}
form p.notice {
  font-weight:bold;
}
input.search.text {
  width:66%;
}
input.search.button {
  width:28%;
  margin-left:2%;
}

form input, form select, form textarea {
	
	border: 1px dotted #bbb;
	-webkit-border-radius:5px;
	-moz-border-radius: 5px;
	background:#fafafa;
}

form input:focus, form select:focus, form textarea:focus, form .action {
	border: 1px dotted #d38983;
}




/*Review Form Design */

form#Form_UserProductReviewForm fieldset {
	background:none;
	border:none;
	margin:0;
}

form#Form_UserProductReviewForm legend {
	display:none;
}

form#Form_UserProductReviewForm fieldset div.field {
	clear:both;
}

form#Form_UserProductReviewForm fieldset div.field label,
form#Form_UserProductReviewForm fieldset div.field div {
	display:inline-block;
}

form#Form_UserProductReviewForm fieldset div.field div {
	float:right;
	width:75%;
	margin-bottom:10px;
}

form#Form_UserProductReviewForm fieldset div.field div input,
form#Form_UserProductReviewForm fieldset div.field div textarea#Form_UserProductReviewForm_Review{
	float:right;
	width:100%;
}

form#Form_UserProductReviewForm fieldset div.field div ul.optionset {
	margin:0;
	padding:0;
}

form#Form_UserProductReviewForm fieldset div.field div ul.optionset li {
	list-style:none;
	display:inline-block;
	float:left;
	border:none;
	margin:0 10px 0 0;
	padding:0;
	text-align:center;
}

form#Form_UserProductReviewForm fieldset div#Rating div#StarHolder span.star-rating-control div.rating-cancel,
form#Form_UserProductReviewForm fieldset div#Rating div#StarHolder span.star-rating-control div.star-rating{
	display:inline-block;
	float:left;
	width:auto;
}

form#Form_UserProductReviewForm div.Actions {
	padding:0 10px;
	float:right;
}


/* REGISTRATION/USER PROFILE FORM DESIGN
-----------------------------------------*/
#Form_UserRegistrationForm legend, #Form_UserProfileForm legend {
	display:none;
}

#Form_UserRegistrationForm fieldset, #Form_UserProfileForm fieldset {
	padding: 10px 5px;
	background:none;
	border-left:none;
	border-right:none;
}

#Form_UserRegistrationForm h3, #Form_UserProfileForm h3 {
	font-size:12px;
}

#Form_UserRegistrationForm label, #Form_UserProfileForm label {
	
}

#Form_UserRegistrationForm .nolabel, #Form_UserProfileForm .nolabel {
	float:left;
	display:inline-block;
	width:50%;
}

#Form_UserRegistrationForm .fieldgroupField, #Form_UserProfileForm .fieldgroupField {
	width:100%;
}
#Form_UserRegistrationForm .fieldgroup .middleColumn, #Form_UserProfileForm .fieldgroup .middleColumn  {
	padding: 0 5px;
}

#Form_UserRegistrationForm .password .middleColumn {
	width:90%;
	/*display:inline-block;*/
}
#Form_UserRegistrationForm .password .middleColumn input{
	width:100%;
}

#Form_UserRegistrationForm .fieldgroup .middleColumn .fieldgroup .fieldgroupField label, 
#Form_UserProfileForm .fieldgroup .middleColumn .fieldgroup .fieldgroupField label{
	width:30%;
	/*display:inline-block;*/
}

#Form_UserRegistrationForm .text, #Form_UserRegistrationForm select,
#Form_UserProfileForm .text, #Form_UserProfileForm select{
	margin:0 0 10px 0;
	width: 90%;
	display:block;
}


#Form_UserRegistrationForm textarea, #Form_UserProfileForm textarea {
	display:block;
	width:100%;
}

#Form_UserRegistrationForm .fieldgroupField #Password-_Password label {
	display:none;
}

/*#HeaderFieldPersonalInformationexplanationFirstNameSurnameEmailPassword {
	border-right:1px solid #CCC;
}*/

#Form_UserRegistrationForm .Actions input,
#Form_UserProfileForm .Actions input,
#ChangePassword #ChangePasswordForm_ChangePassword_action_doChangePassword{ 
	width:100%;
	display:block;
}

#Form_UserProductReviewForm #recaptcha_widget_div #recaptcha_area{
	float:left;
}

#ChangePasswordForm_ChangePassword fieldset {
	background:#e6e6e6;
}
	
#ChangePasswordForm_ChangePassword legend {
	display:none;
}



/*WHOLESALE FORM */
form#WholeSaleForm div.text{
	clear:both;
}

form#WholeSaleForm label {
	width:9em;
	margin:1em 0;
	
	float:left;
}

form#WholeSaleForm input, form#WholeSaleForm textarea {
	width:42em;
	margin:1em 0;
	float:left;
}

form#WholeSaleForm textarea {
	height:5em;
}

form#WholeSaleForm p {
	margin:50px 0 0 0;
}

form#WholeSaleForm strong {
	color:#435A75;
}

form#WholeSaleForm input#Submit, form#WholeSaleForm input#Reset {
	width:50%;
	color:#FFF;
}

form#WholeSaleForm input#Submit {
	background-color:#8F0C00;
}

form#WholeSaleForm input#Reset {
	background-color:#435A75;
}





/* FormCheck tipbox */

/* tipbox :
	table : 
		tl		: top left
		t		: top
		tr		: top right
		l 		: left
		r		: right
		bl		: bottom left
		b		: bottom (with mark)
		br		: bottom right
		c		: center
	components : 
		a.close	: close button
		err		: errors div
		p		: error line
*/

.fc-tbx .tl{
	background: url('../img/tl.png') no-repeat;
}
.fc-tbx .t{
	background: url('../img/t.png') repeat-x;
	height: 16px;
}
.fc-tbx .tr{
	background: url('../img/tr.png') no-repeat;
}
.fc-tbx .l{
	background: url('../img/l.png') repeat-y;
	width : 16px;
}
.fc-tbx .r{
	background: url('../img/r.png') repeat-y;
	width: 16px;
}
.fc-tbx .bl{
	background: url('../img/bl.png') no-repeat;
}
.fc-tbx .b{
	background: url('../img/b.png') no-repeat;
	height: 25px;
}
.fc-tbx .br{
	background: url('../img/br.png') no-repeat;
}
.fc-tbx .c{
	background: url('../img/c.png') repeat;
}
.fc-tbx a.close {
	float: right;
	background: url('../img/close.png') no-repeat;
	position: relative;
	margin-left: 5px;
	display: block;
	width: 10px;
	height: 10px;
	cursor: pointer;
}
.fc-tbx .err {
	float: left;
}
.fc-tbx p {
	width : auto;
	display: block;
	font-size: 10px;
	font-family: tahoma, verdana, "sans-serif";
	margin : 0;
	padding : 0;
	border : 0;
	color : #FFF;
}

.ajax_loader {
	background : url('../img/ajax-loader.gif') no-repeat center;
	width : 200px;
	height : 150px;
}


/* FormCheck validation div */

.fc-error {
	border : 1px solid #888;
	margin-top : 5px;
	background-color : #EAEAEA;
}
.fc-error p {
	margin : 5px;
	color : #A00;
}



label.error{
border: 1px solid #aa2222;
background: #aa2222;
color: #fff;
padding: 5px;
margin: 0;
width: 100%;
-moz-border-radius-topright: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
}

textarea#street + label.error {
	-moz-border-radius-bottomleft: 0;
-webkit-border-bottom-left-radius: 0;
height:45px;
}
input.error, textarea.error, input.error:focus, textarea.error:focus{
border: 1px solid  #aa2222;
-moz-border-radius-topright: 0;
-webkit-border-top-right-radius: 0;
-moz-border-radius-bottomright: 0;
-webkit-border-bottom-right-radius: 0;
border-right:0;
}


#Form_ContestForm, #WeeklyTipForm_WeeklyTipForm, #mc-embedded-subscribe-form {
	background:#efefef;
	padding-bottom:1em;
}

#Form_ContestForm input.action, #WeeklyTipForm_WeeklyTipForm input.action, #mc-embedded-subscribe-form input.action {margin-left:1em;}

#Form_ContestForm input.text, #WeeklyTipForm_WeeklyTipForm input.text, #mc-embedded-subscribe-form input.text {width:98%;}

#Form_ContestForm .checkbox input {width:auto; display:inline-block;}
#Form_ContestForm .checkbox label {display:inline;}