/*
 *  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
 */
 label{
	font-size:1.4em;
	font-weight:bold;
	font-family:Ubuntu;
	color:#4A4D52;
}
 
.field,
.button 
{
	position: relative;
	text-align: left;
	margin-bottom: 13px;
}

.button 
{
	text-align: right;
	overflow:hidden;
	display:inline-block;
	vertical-align:middle;
}

.button input 
{
	display: inline-block;
	text-align:center;
}

.field .input, 
.field .select
{
	display: inline-block;
	width:60%;
	vertical-align:middle;
}
.input input:not(.checkbox), .input input:not(.radio),
.select select,
.input select,
.input textarea{
	padding:5px 4px;
	-webkit-padding-before:3px;
	-webkit-padding-end:2px;
	border:1px solid #dddddd;
	border-radius:5px;
	width:95%;
	background-color: #f7f9f5;
	font-family: "Maven Pro", Ubuntu, Arial, Helvetica, Sans-serif;
}

.input.invalid input,
.select.invalid select,
.input.invalid textarea,
fieldset.invalid .field{
	border:1px solid #ff0000;
	background-color:#FFFBDE;
}
fieldset.invalid .input{
	border-radius:10px;
}
.field .select select,
fieldset.invalid .field{
	border-radius:5px;
	
}
.field .label 
{
	display: inline-block;
	min-width:138px;
	vertical-align:middle;
}

.field .label label,
.field .label label
{
	padding:0;
	display: inline;
}

.field-end 
{
	clear: both;	
}

.mandatory-marker 
{
	color: red;	
}
p.mandatory-hint{
	color: #FF0000;
    font-size: 1.2em;
    margin: 10px 0;
    text-align:left;
}

fieldset 
{
	margin-bottom: 12px;
    background: url("../img/bg-blockcontent.png") repeat-x scroll left bottom #F7F9F5;
    border-radius: 5px 5px 5px 5px;
    border-width: 0;
    padding: 10px;
}
fieldset *{
	background-image:none;
	margin:0;
	padding:0;
}
fieldset fieldset legend{
	margin:0;
}

fieldset legend {
    color: #DE7147;
    font-family: Ubuntu;
    font-size: 2.2em;
    font-weight: bold;
    margin: 50px 0 0;
    padding: 0;
    position: static;
}

.field .select 
{
	display: block;
	margin-left: 0;
	float: right;
	width: 60%;
	min-width: 240px;
	max-width: 900px;
}

.field .label label
{
	padding:0;
	display: inline-block;
}
.ametys-cms-content form .invalid
{
    border: 1px solid #FF0000;
    border-radius: 4px;
}

input.button.search,
input.button /* for survey */{
	border-radius:5px;
	background-color:#ECBD29;
	font-weight:bold;
	text-transform:uppercase;
	font-family:Ubuntu;
	color:#ffffff;
	padding:4px 5px;
	line-height:normal;
	border-width:0;
	cursor:pointer;
	margin-top:0;
	-webkit-appearance: none;
  	-webkit-border-radius: 5px;
}
/* because impossible de change line-height on buttons on FF */
input.button.search, x:-moz-any-link, x:default{
  padding:3px 5px;
}
input.button, x:-moz-any-link, x:default{
	padding:3px 5px;
}

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

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

.error
{
	color: #FF0000;
}

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

.error ul li
{
    color: #FF0000;
    font-weight: bold;
    list-style-type: none;
    line-height: 18px;
    margin: 5px 0;
    padding: 8px 0 !important;
}

.error p
{
	margin: 0;
}

/** @Captcha */

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

div.captcha img,
img.captcha-image 
{
    margin: 0  !important;
    border: 1px solid #dddddd;
    background-color: #fff;
    float: left;
    opacity: 0.3;
    filter: alpha(opacity = 30);
}

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 */

/*Custom Radio Buttons and Checkboxes using Font Awesome*/
input[type=radio],
input[type='checkbox'] {
  display: none;
}
input[type=radio] + label {
  display: block;
}
input[type='checkbox'] + label:before,
input[type='radio'] + label:before {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-right: 8px;
  width: 23px;
  color: #489fdf;
  font-size: 1.4em;
  padding-top: 2px;
}
input[type='checkbox']:checked + label:before {
	padding-right: 6.5px;
}
input[type=radio] + label:before {
  content: "\f10c"; /* Radio Unchecked */
}
input[type=radio]:checked + label:before {
  content: "\f192"; /* Radio Checked */
}
input[type="checkbox"] + label:before {
  content: "\f096"; /* Checkbox Unchecked */
}
input[type="checkbox"]:checked + label:before {
  content: "\f14a"; /* Checkbox Checked */
}
.radio label,
.checkbox label {
  padding-left: 0;
}
@media (max-width: 766px) {
	input[type='checkbox'] + label:before, input[type='radio'] + label:before {
		padding-top: 6px;
	}
}