/*
 *  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
 */
 
form .field input.input {
    height:25px;
    line-height:25px;
    background-color:#fafafa;
    border:1px solid #e4e4e4;
    box-sizing:border-box;
    -moz-box-sizing:border-box; /* Firefox */
    padding:5px 10px;
    border-radius:0;
	-moz-border-radius:0;
	-webkit-border-radius:0;
    margin:0;
    box-shadow:none;
    color:#666;
}

form .button-wrapper .button {
    border:none;
    background-repeat:no-repeat;
    background-position: center center;
    background-color:#002F6B;
    background-size: auto 67%;
    padding:0;
    border-radius:0;
	-moz-border-radius:0;
	-webkit-border-radius:0;
	padding:10px 20px;
	color:#ffffff;
	margin:0;
}
 
.button-wrapper 
{
	margin-top: 10px;
/* 	text-align: right; */
	margin-bottom: 10px;
}

.button-wrapper:after{
	clear:both;
	display:block;
	content:" ";
}

.button input 
{
	display: inline-block;
}

label, input, button, select, textarea{
	font-size:13px;
}
label {
	margin-top : 4px;
	padding-right : 15px;
}

.field .input, 
.field .select
{
	display: block;
	margin-right: 0;
	float:left;
}

.field .label 
{
	float: left;
	display: inline-block;
	width:35%;
}

.field-end 
{
	clear: both;	
}

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

fieldset 
{
	padding: 3px;
	margin-bottom: 12px;
}

.field .input
{
	width: 40%;
	min-width: 245px;
	max-width: 900px;
}

textarea:focus, 
input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="datetime"]:focus, 
input[type="datetime-local"]:focus, 
input[type="date"]:focus, 
input[type="month"]:focus, 
input[type="time"]:focus, 
input[type="week"]:focus, 
input[type="number"]:focus, 
input[type="email"]:focus, 
input[type="url"]:focus, 
input[type="search"]:focus, 
input[type="tel"]:focus, 
input[type="color"]:focus, 
.uneditable-input:focus{
	border-color:#669999;
	box-shadow:none;
}

/*
 * CSS FOR FORMS
 */
 
.field,
.button 
{
	position: relative;
	margin-bottom: 13px;
}

.field
{
	text-align: left;
}

.field .select 
{
	display: block;
	margin-right: 0;
	width: 40%;
	min-width: 235px;
	max-width: 900px;
}

.field .invalid
{
    background: #FFFBDE;
    border: 1px solid #FF0000;
    border-radius: 4px;
}
.ametys-cms-content form .invalid
{
    border: 1px solid #FF0000;
    border-radius: 4px;
}

/* INFOS */
form .info
{
	font-style: italic;
 	font-size: 0.9em;
 	clear: both;
}

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

p.mandatory-hint{
	font-style:italic;
	color:#999999;
	font-size:.9em;
}

.error
{
	color: #FF0000;
}

.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
{
	margin: 0;
}

/** @Captcha */

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

img.captcha-image,
.captcha img
{
    margin: 0  !important;
    border-width:0;
    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;
}