/*
 *  Copyright 2012 Anyware Services
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

/*
 * CSS FOR FORMS
 */
 
.button {
	margin-top: 10px;
	text-align: right;
	margin-bottom: 13px;
}

.button input {
	display: inline-block;
}

.field-end {
	clear: both;	
}

.mandatory-marker {
	color: red;
	margin-left: 3px;
}

fieldset {
	padding: 3px;
	margin-bottom: 12px;
	border-bottom:1px solid #D8D3CC;
}

fieldset  legend{
	font-size:1.4em;
	font-weight:bold;
}

/*
 * CSS FOR FORMS
 */
 
.field .invalid{
    background: #FFFBDE;
    border: 1px solid #FF0000;
    border-radius: 4px;
}
.ametys-cms-content form .invalid{
    width:100%;
    max-width:50em;
    min-width:20em;
}

.col-right .ametys-cms-content form .invalid{
	max-width:100%;
    min-width:100%;
}

.ametys-cms-content form .invalid input[type="text"],
.ametys-cms-content form .invalid input[type="file"],
.ametys-cms-content form .invalid input[type="password"],
.ametys-cms-content form .invalid textarea,
.ametys-cms-content form .invalid select,
.ametys-cms-content form .invalid .customSelect{
	border: 1px solid #AD1700;
	border-color: #AD1700 /* AMETYS ("default.default.contrast.dark") */ ;
}

.ametys-cms-content form .invalid input[type="checkbox"], 
.ametys-cms-content form .invalid input[type="radio"]{
	/* TODO : vérifier les changement de couleur des box-shadow */ 
	-webkit-box-shadow: 0 0 2px #AD1700;
	-webkit-box-shadow-color: #AD1700 /* AMETYS ("default.default.contrast.dark") */ ;
	-moz-box-shadow: 0 0 2px #AD1700;
	-moz-box-shadow-color: #AD1700 /* AMETYS ("default.default.contrast.dark") */ ;
	box-shadow: 0 0 2px #AD1700;
	box-shadow-color: #AD1700 /* AMETYS ("default.default.contrast.dark") */ ;
}


/* INFOS */
form .info{
	font-style: italic;
 	clear: both;
 	background-color:#F7F5F1;
 	color:#947B5E/* AMETYS ("default.default.secondary.dark") */;
 	padding:10px 20px;
}

form .info p{
	margin: 0 !important;
}

.error,
.errorDiv{
	color: #FF0000;
	background-color:#F7F5F1;
/* 	padding:10px 20px; */
}

.error p,
.errorDiv p{
	color: #D20A11;
}

.error ul{
	padding: 0;
	margin: 0;
}

.error ul li{
    color: #FF0000;
    background: #FFFBDE;
    border: 1px solid #FF0000;
    list-style-type: none;
    line-height: 18px;
    margin: 5px 0;
    padding: 8px !important;
}

.error p,
.errorDiv p{
	margin: 0;
}

.ametys-cms-content .error textarea,
.ametys-cms-content .error input[type="text"],
.ametys-cms-content .error select{
	border-color:#D20A11;
}

/** @Captcha */

div.captcha{
	clear: left;
	padding-top: 5px;
}

img.captcha-image {
    margin: 0  !important;
    border: 1px solid #222;
    background-color: #fff;
    float: left;
}

button.captcha-refresh-btn {
	background: transparent url('../img/form/refresh_24.png') no-repeat left top;
	height: 26px;
	width: 26px;
	border: 0 none;
	margin-left: 5px;
	margin-top: 15px;
	cursor: pointer;
}

button.captcha-refresh-btn span {
	visibility: hidden;
	position: absolute !important;
	top: -10000px;
	left: -10000px;
}

.captcha .image-captcha-help {
	font-style:italic;
	clear: both;
	font-size: 0.9em;
}

.captcha-end{
	clear: both;
}

/** @end captcha */

.forgot-password {
	text-align: right;
}

.ametys-cms-content form label, .ametys-cms-content form .label,
.ametys-cms-service form label, .ametys-cms-service form .label{
    color: #232a2c;
	font-size:1.2em;
	font-weight: bold;
    display:block;
    margin-top:10px;
}

.ametys-cms-content form input[type=text],
.ametys-cms-content form input[type=password],
.ametys-cms-content form input[type=file],
.ametys-cms-service form input[type=text],
.ametys-cms-service form input[type=password],
.ametys-cms-service form input[type=file]{
    border: 1px solid #DBCFC1;
    border-color:#DCD0C2/* AMETYS ("default.default.secondary.light") */;
    background-color: #F7F5F1;
    height:37px;
    line-height:37px;
    color: #4e4e4e;
    font-size: 1.4em;
    width:100%;
    min-width:15em;
    max-width:50em;
    padding:0 8px;
}

.ametys-cms-content form input[type="file"],
.ametys-cms-service form input[type="file"]{
	padding:0;
}

.col-right .ametys-cms-content form input[type=text],
.col-right .ametys-cms-content form input[type=password],
.col-right .ametys-cms-content form input[type=file],
.col-right .ametys-cms-service form input[type=text],
.col-right .ametys-cms-service form input[type=password],
.col-right .ametys-cms-service form input[type=file]{
	min-width:100%;
	max-width:100%;
}

.ametys-cms-content form textarea,
.ametys-cms-service form textarea{
    border: 1px solid #DBCFC1;
    border-color:#DCD0C2/* AMETYS ("default.default.secondary.light") */;
    background-color: #F7F5F1;
    color: #4e4e4e;
    font-size: 1.4em;
    width:100%;
    min-width:15em;
    max-width:50em;
    padding:8px;
    resize:none;
    height:217px;
}

.ametys-cms-content form input[type=submit],
.ametys-cms-service form input[type=submit],
.ametys-cms-content form input[type=reset],
.ametys-cms-service form input[type=reset]{
/*     width: 147px; */
    height: 46px;
    background-color: #23292b;
    text-align:center;
/*     line-height:46px; */
    color: #fff;
    text-transform:uppercase;
    font-size: 1.3em;
    font-weight: bold;
    border:0;
    margin-top:27px;
    padding:0 15px;
}

.ametys-cms-content form label span{
    color:#AD1700 /* AMETYS ("default.default.contrast.dark") */ ;
}

.ametys-cms-content .customSelect,
.ametys-cms-service .customSelect,
.ametys-cms-content select,
.ametys-cms-service select{
/* Styles For Your Select Box */
    border: 1px solid #DBCFC1;
    border-color: #DCD0C2/* AMETYS ("default.default.secondary.light") */;
    background-color: #F7F5F1;
    color: #4e4e4e;
    font-size: 1.4em;
    font-style: italic;
    padding:8px;
    width:100%;
    min-width:15em;
    max-width:50em;
    height:35px
}

.col-right .ametys-cms-content .customSelect,
.col-right .ametys-cms-service .customSelect,
.col-right .ametys-cms-content select,
.col-right .ametys-cms-service select{
	min-width:10em;
	max-width:20em;
}

.customSelect.changed {
/* You can use this if you want a different style after user has made a selection */
}

.customSelectFocus {
/* You can use this if you want a different style after user has made a selection */
}

.customSelectOpen {
/* You can use this if you want a different style after user has made a selection */
}


/* We can style the inner box, too */
.ametys-cms-content .customSelectInner,
.ametys-cms-service .customSelectInner{
    background: url("../img/form_fleche-black.png") no-repeat scroll right center transparent;
    width:98% !important;
}

.ametys-cms-content form input[type="checkbox"], 
.ametys-cms-content form input[type="radio"],
.ametys-cms-service form input[type="checkbox"], 
.ametys-cms-service form input[type="radio"]{
	margin-top:12px;
}

/* .ametys-cms-content form input[type=radio], */
.ametys-cms-service form input[type=radio]{
    display:none;
}

/* .ametys-cms-content form input[type=radio] + label, */
.ametys-cms-service form input[type=radio] + label{
    background: url("../img/form_radio_off.png") no-repeat scroll left center transparent;
    color: #6A6464;
    display: inline-block;
    font-weight: normal;
    height: 28px;
    line-height: 31px;
    padding-left: 40px;
    margin-right:30px;
/*     width: 76px; */
    cursor:pointer;
}

/* .ametys-cms-content form input[type=radio]:checked + label, */
.ametys-cms-service form input[type=radio]:checked + label{
    background: url("../img/form_radio_on.png") no-repeat scroll left center transparent;
    display:inline-block;
}

/* .ametys-cms-content form input[type=checkbox], */
.ametys-cms-service form input[type=checkbox]{
    display:none;
}

/* .ametys-cms-content form input[type=checkbox] + label, */
.ametys-cms-service form input[type=checkbox] + label{
    background: url("../img/form_checkbox.png") no-repeat scroll left center transparent;
    color: #ffffff;
    display: inline-block;
    font-weight: normal;
    height: 18px;
    line-height: 18px;
    padding-left: 20px;
    margin-right:30px;
/*     width: 76px; */
    cursor:pointer;
}

/* .ametys-cms-content form input[type=checkbox]:checked + label, */
.ametys-cms-service form input[type=checkbox]:checked + label{
    background: url("../img/form_checkbox_checked-contrast.png") no-repeat scroll left center transparent;
    display:inline-block;
}