/*
   
   Final reference Tutorial 7 RB many seperate adaptations. 
   

   Survey Forms Style Sheet
   Author: Eric Rivera
   Date:   04/03/2022

   Filename:         1forms.css

*/

/* Form Layout Styles */
 form#survey {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;

}

 form#survey > fieldset {
	background-color: rgb(105, 105, 105);/*form background color*/
	border-radius: 20px;
	-webkit-flex: 1 1 300px;
	flex: 1 1 300px;
	font-size: 0.85em;
	padding:	10px;
	margin: 10px;
}


 div.formRow {
	display:-webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	margin: 7px 0px;

}

 div.formRow > * {
	-webkit-flex: 1 1 150px;
	flex: 1 1 150px;

}


/* Legend Styles */
 legend {
	 background-color: rgb(102, 0, 0);/*Information background*/
	 color: white;
	 padding: 5px;
}


/* Text Area Styles */
textarea {
	margin-top: 10px;
	height: 100px;
	width: 95%;

}


/* Spinner Styles */
div.formRow > input#dineSpin {
	-webkit-flex: 0 0 50px;
	flex: 0 0 50px;

}


/* Form Button Styles */
div#buttons {
	text-align: center;
	width: 100%;

}

input[type='submit'], input[type='reset']{
	font-size: 1.2em;
	padding: 5px;
	margin: 15px;

}


/* Validation Styles */

input:focus, select:focus, textarea:focus {
	background-color: rgb(220, 255, 220);

	}

input#name:focus:valid,
input#zip:focus:valid,
input#phone:focus:valid,
input#mail:focus:valid{
	background: rgb(255, 232, 233) url(rb_valid.png) bottom right/contain no-repeat;
	}

input#name:focus:invalid,
input#zip:focus:invalid,
input#phone:focus:invalid,
input#mail:focus:invalid{
	background: rgb(255, 232, 233) url(rb_invalid.png) bottom right/contain no-repeat;
}



