﻿/* -----------------------------------
Form - wide
----------------------------------- */

.row-form
{
	clear: left;
	overflow: hidden;
	zoom: 1;
	margin: .5em 0 1em;
}

.label
{
	display: block;
	margin: 0 0 .1em;
}

#totalPrice {
	width: 40%;
	padding: .7em;
	font-weight: bold;
	background-color: rgba(255,255,102,1);
}

.input,.select,.textarea
{
	width: 100%;
	*width: 90%;
    padding: 12px; /* Some padding */ 
	box-sizing: border-box;
	border: 1px solid #999;
	border-radius: .3em;
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 6px; /* Bottom margin */
    resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
}
  
.textarea { height: 150px; }

mark { 
  background-color: yellow;
  color: black;
}

fieldset { border: 0; }

.form-list
{
	margin: 0;
	padding: 0;
	list-style: none;
}

.btn
{
	display: inline-block;
	margin: 0em 2.5em 0em 0em;
	padding: .5em .8em;
	border: 0;
	border-radius: .3em;
	color: rgba(255,255,255,1);
	background-color: rgb(11, 178, 172);
	line-height: 1;
}

.btn:focus { background-color: #000; }
.btn:hover { background-color: yellow; }
.btn:active { background-color: red; }

/* -----------------------------------
Custom checkbox
----------------------------------- */
.form-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.form-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
	border: 1px solid #999;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.form-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add orange background */
.form-checkbox input:checked ~ .checkmark {
  background-color: rgba(255,130,0,1);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.form-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.form-checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* -----------------------------------
Custom Radio Button
----------------------------------- */
.form-radio {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.form-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkbtn {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.form-radio:hover input ~ .checkbtn {
  background-color: #ccc;
}

/* When the radio button is checked, add orange background */
.form-radio input:checked ~ .checkbtn {
  background-color: rgba(255,130,0,1);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkbtn:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.form-radio input:checked ~ .checkbtn:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.form-radio .checkbtn:after {
 	top: 9px;
	left: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

/* -----------------------------------
Form - narrow
----------------------------------- */

@media (max-width:38em)
{
	.submission-form { max-width: 38em; }
	
	.label
	{
		float: left;
		width: 25%;
		margin: 0 2% 0 0;
		text-align: right;
	}
	
	.input,.select,.textarea
	{
		float: left;
		width: 70%;
	}

	.form-indent
	{
		margin-left: 27%;
		width: 64%;
	}
}
