@charset "utf-8";

[class*="form"] {
	display: flex;
	flex-wrap: wrap;
}

[class*="form"] input, [class*="form"] select {
	width: 75%;
}

[class*="form"] textarea {
	width: 100%;
}

[class*="form"] input, [class*="form"] textarea, [class*="form"] select {
	display: block;
	margin: 0;
	padding: 0.5em 1em;
	
	box-sizing: border-box;	
	height: 4em;
	
	border-radius: 0.6em;
	
	background: #eee;
	
	color: inherit;
	font-family: inherit;
	font-weight: inherit;
	font-size: 0.8em;
	letter-spacing: inherit;
	
	border: 0;
	outline: 0;
}

[class*="form"] select {
	-webkit-appearance: button;
	-moz-appearance: button;
	
	background-image: url(img/form-dropdown-arrow.png);
	background-position: right;
	background-repeat: no-repeat;
}

[class*="form"] textarea {
	height: auto;
	resize: vertical;
	min-height: 15em;
}

[class*="form"] input[type=button], [class*="form"] input[type=submit] {	
	display: inline;
	margin:0 0.15em 0 0;
	padding: 0.6em 1.2em;
	
	width: auto;
	
	background: none;
	color: #666;
	
	font-weight: 600;
	letter-spacing: 0.1em;
	
	text-transform: uppercase;
	text-decoration: none;	
	border: 3px solid #666;
	
	cursor: pointer;
}

[class*="form"] input[type=button]:hover, [class*="form"] input[type=submit]:hover {	
	background-color: #666;	
	color: #ddd;
}

[class*="form"] input[type=button].disabled, [class*="form"] input[type=submit].disabled {	
	background: #ccc;
	border-color: #ccc;
	color: #aaa;	
	cursor: default;
}

[class*="form"] input[type=button][class*="fail"] {
	background: #c99;
	border-color: #c99;	
	color: #966;
	cursor: default;
}

[class*="form"] input[type=button][class*="done"] {
	background: #9c9;
	border-color: #9c9;	
	color: #696;
	cursor: default;
}

[class*="form"] input[type=button].button-small{
	font-size: 0.6em;
	padding: 0.6em 0.9em;
	margin-right: 1em;
	height: 4em;
	border-width: 2px;
	
	color: #777;
	border-color: #777;
}

[class*="form"] input[type=button].button-small:hover {
	background: #777;
	color: #ddd;
}

[class*="form"] > div, [class*="form"] > label {	
	margin: 0 0 0.5em 0;
	padding: 0;
}

[class*="form"] p {
	font-size: 0.8em;
	
	margin: 0 0.2em 0 0;
	padding: 0;
}

[class*="form"] .incorrect {
	border: 2px solid #f66;
}

