﻿
/*
 * Our Custom Styles
 * 
 */

/* General
==================================== */
*, *:before, *:after {
	-moz-box-sizing: border-box; 
	-webkit-box-sizing: border-box; 
	box-sizing: border-box;
}

body, input, textarea {
   
}

.container {
	max-width: 25em;
	margin: 2em auto;
	width: 95%;
}

.title {
	font-size: 30px;
	padding: .5em 0;
	text-align: center; 
	background: #323a45;
	color: white;
	border-radius: 5px 5px 0 0;
}

/* Form
==================================== */
label.float-label{	
    position: absolute;
    top: 10px;
    left: 10px;
	color: #0099ff;
	opacity: 1;
	-webkit-transition: .333s ease top, .333s ease opacity;
	transition: .333s ease top, .333s ease opacity;
    
}

label.float-label, input.float-label, textarea.float-label {
	display: block; 
	border: 0;
}

input.float-label, textarea.float-label { 
	width: 100%; 
	height: 100%; 
	padding: 20px 10px 10px; 
	outline: 0;
    background-color:white!important;
}

textarea.float-label {
	
	resize: none; /* remove textarea resize */
}

input[type="submit"] {
	background: #f1773b;
	margin-bottom: 1em;
	color: white;
	border-radius: 3px;
	padding: .75em;
	-webkit-appearance: none; /* don't apply default styling */
	-webkit-transition: .333s ease -webkit-transform;
	transition: .333s ease transform;
}
input[type="submit"]:hover {
	-webkit-transform: scale(1.025);
	transform: scale(1.025);
	cursor: pointer;
}
input[type="submit"]:active {
	-webkit-transform: scale(.975);
	transform: scale(.975);
}

/* Javascript classes
   Used for modifying form fields
==================================== */
.js-hide-label label {
	opacity: 0; 	
}

.js-unhighlight-label label {
	color: #999;   
}

.js-focusin-div {
    outline: 1px solid #0099ff!important;
    z-index: 99;
}

.js-focusin-div label {
    color: #0098FF;
}

.js-error-div {
   outline: 1px solid red;
}

.js-error-div-ie7 {
   border: 1px solid red;
}

.js-focusin-div-ie7 {
    border: 1px solid #0099ff!important;
}
.js-error-table-ie7 {
   border: 2px solid red;
}

.js-focusin-table-ie7 {
    border: 2px solid #0099ff!important;
}

/* Bonus form valiation styles */
.js-error {
	border-color: #f13b3b !important; /* override all cases */
}
.js-error + li {
	border-top-color: #f13b3b;
}
.js-error label {
	color: #f13b3b;
}