﻿/* ==============================================
 * Copyright (C) Eurosafe UK Ltd. 2009
 * =========================================== */

/* inner DIV elements */

div.form {
    margin: 1em;
    padding: 1em;
    background: #e1f3fd;
    border: 1px solid #95dafb;
}

div.form div {
    clear: both;
	padding: 0.5em 0;
}

div.form div.cmd {
	padding-bottom: 0;
}

div.form label {
	color: #346;
}

/* form controls */

div.form input[type=text],
div.form input[type=file],
div.form input[type=password],
div.form select,
div.form textarea {
	/* note that these rules are ignored by IE6 */
	padding: 0.5em;
	font-size: 12pt;
	font-family: inherit;
	
	border-top: 1px solid #95dafb;
	border-left: 1px solid #95dafb;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;

	background: #f4fbff;
	color: #568;
	
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
}

div.form input[type=text]:hover,
div.form input[type=file]:hover,
div.form input[type=password]:hover,
div.form select:hover,
div.form textarea:hover {
    color: #346;
}

div.form input[type=text]:focus,
div.form input[type=file]:focus,
div.form input[type=password]:focus,
div.form select:focus,
div.form textarea:focus {
    background: #fffacd;
    color: #000;
    border-color: #679;
}

div.form .checkgrid td {
    padding: 0.5em;
}

div.form .checkgrid label {
    margin-left: 0.5em;
    display: inline !important;
}

/* REQUIRED FIELDS ---------------------------------- */

/* show a red asterisk after the label */
div.form div.required label:first-child:after {
    content: " *";
    color: #c00;
}

/* TIPS & HELP -------------------------------------- */

div.form .tip {
    font-size: 8pt;
    color: #679;
}

/* tips within stretch fields should be displayed as block text */
div.form div.stretch .tip,
div.form div.stretch .field-validation-error {
    display: block;
    margin: 0.25em 0 0 0.5em;
    line-height: 1.5em;
}

/* BUTTONS ------------------------------------------ */

div.form div.cmd input {
    padding: 0.5em;
    font-size: 120%;
    font-weight: bold;
}

/* BLOCK FORMS (label above controls) --------------- */

div.form.block label {
	display: block;
	margin-left: 0.5em;
	line-height: 15pt;
	font-weight: bold;
	font-size: 8pt;
}

div.form.block .stretch input[type=text],
div.form.block .stretch input[type=file],
div.form.block .stretch textarea,
div.form.block .stretch select {
	width: 97%;
}