* { box-sizing:
border-box; }



/* form starting stylings ------------------------------- */
.group{
	width:31%;
	position:relative; 
	float:left;
	margin:0 1% 2.5% 1%;
	display:inline-block;
}
#comment{
	width:98%;
	height: 15em;
	position:relative; 
	float:left;
	margin:0 1% 2.5% 1%;
}
.wider{
	width:97%;
	position:relative; 
	float:left;
	margin:0% 0% 0% 1%;
	display:inline-block;
}
.notdisplay {
	display:none;
}
.group input,
.wider input{
  font-size:15px;
  width:100%;
  padding:10px 10px 10px 5px;
  display:inline-block;
  border:none;
  border-bottom:1px solid #CCC;
   -webkit-transition:0.2s ease all;
  -moz-transition:0.2s ease all; 
  -ms-transition:0.2s ease all; 
  -o-transition:0.2s ease all; 
  transition:0.2s ease all; 
}
.group input:focus,
.wider input:focus{ 
	outline:none;
	border-bottom:1px solid #ffc107;
}

.group input:focus:invalid,
.wider input:focus:invalid{ 
	outline:none;
	border-bottom:1px solid #e64a19;
}
textarea{
	outline:none;
	font-size:15px;
  width:480px;
  height:5em;
  padding:10px 10px 10px 5px;
  display:inline-block;
  border:none;
  border-bottom:1px solid #CCC;
}
textarea.normal{
  height:5em;
   -webkit-transition:0.2s ease all;
  -moz-transition:0.2s ease all; 
  -ms-transition:0.2s ease all; 
  -o-transition:0.2s ease all; 
  transition:0.2s ease all; 
}
textarea.normal:focus{
	padding-left: 0;
	outline:none;
	height:15em;
	border-bottom:1px solid #ffc107;
}
textarea.wider {
	margin-left: 0;
	width: 100% !important;
}

/* LABEL ======================================= */
.group label, .wider label{
	color: #455a64;
	font-size: 16px;
	font-weight: 300;
	position: absolute;
	pointer-events: none;
	left: 5px;
	top: 10px;
	-webkit-transition: 0.2s ease all;
	-moz-transition: 0.2s ease all;
	-ms-transition: 0.2s ease all;
	-o-transition: 0.2s ease all;
	transition: 0.2s ease all;
}

/* active state */
.group input:focus ~ label, .group input:valid ~ label,
.wider input:focus ~ label, .wider input:valid ~ label,
.wider textarea:focus ~ label, .wider textarea:valid ~ label {
  top:-25px;
  font-size:12.5px;
  color:#ffc107;
}



#comment:focus ~ label, #comment:valid ~ label        {
  top:-25px;
  font-size:16px;
  color:#455a64;
}
 
 
 
 /*=========  checkbox   =============00*/
 
  
#checkbox-form{
	width:98%;
	position:relative;
	margin: 16px 16px 48px 16px;
}
 /* Remove default checkbox */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
}
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {  
  position: relative;
  overflow: hidden;
  padding-left: 35px;
  cursor: pointer;
  display: inline-block;
  height: 25px;
  line-height: 25px;
 
  -webkit-user-select: none; /* webkit (safari, chrome) browsers */
  -moz-user-select: none; /* mozilla browsers */
  -khtml-user-select: none; /* webkit (konqueror) browsers */
  -ms-user-select: none; /* IE10+ */
}
 
/* checkbox aspect */
[type="checkbox"] + label:before,
[type="checkbox"] + label:after {
	content: '';
	position: absolute;
	left: 0;
	z-index: 1;
	-webkit-transition: 0.2s ease all;
	-moz-transition: 0.2s ease all;
	-ms-transition: 0.2s ease all;
	-o-transition: 0.2s ease all;
	transition: 0.2s ease all;
}
/* Unchecked styles */
[type="checkbox"]:not(:checked) + label:before {
  top: 0px;
  width: 19px; 
  height: 19px;
  border: 2px solid #455a64;
  border-radius:3px;
}
[type="checkbox"]:not(:checked) + label:after {
  top: 0px;
  width: 19px; height: 19px;
  border: 2px solid #455a64;
   border-radius:3px;
  z-index: 0;
}
/* Checked styles */
[type="checkbox"]:checked + label:before {
  top: 2px;
  width: 6px; height: 12px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
  -webkit-transform: rotateZ(37deg);
  -moz-transform: rotateZ(37deg);
  -ms-transform: rotateZ(37deg);
  -o-transform: rotateZ(37deg);
  transform: rotateZ(37deg);
 
  -webkit-transform-origin: 20% 40%;
  -moz-transform-origin: 20% 40%;
  -ms-transform-origin: 20% 40%;
  -o-transform-origin: 20% 40%;
  transform-origin: 100% 100%;
}
[type="checkbox"]:checked + label:after {
  top: 0px;
  width: 19px; height: 19px;
  border: 2px solid #ffc107;
  background-color: #ffc107;
  z-index: 0;
}


[type="checkbox"]:disabled:not(:checked) + label:hover:before {
  border-color: #ffc107;
}
 
/* hover style just for information */
[type="checkbox"]:not(:checked) + label:hover:before {
  border-color: #ffc107;
}

fieldset label {
	padding-bottom: 10px;
}
 
 
 

 
 
 /*=========  radio   =============00*/


#radio-form{
	width:98%;
	position:relative;
	margin: 16px;
}
/* One radio button per line */
#radio-form [type="radio"] {
  border: 0; 
  clip: rect(0 0 0 0); 
  height: 1px; 
  margin: -1px; 
  overflow: hidden; 
  padding: 0; 
  position:absolute; 
  width: 1px;
}

/* One radio button per line */
#radio-form label {
  cursor: pointer;
  line-height: 2em;
  font-size: 16px;
}

#radio-form [type="radio"] + label {
  display: inline-block;
}

/* the basic, unchecked style */
#radio-form [type="radio"] + label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -0.25em;
  border-radius: 50%;
  border: 0.125em solid #fff;
  box-shadow: 0 0 0 2px #455a64;
  margin-right: 8px;
  margin-left: 16px;
  -webkit-transition: 0.2s ease all;
	-moz-transition: 0.2s ease all;
	-ms-transition: 0.2s ease all;
	-o-transition: 0.2s ease all;
	transition: 0.2s ease all;
}

/* the checked style using the :checked pseudo class */
#radio-form [type="radio"]:checked + label:before {
  background: #ffc107;
  box-shadow: 0 0 0 2px #ffc107;
}

/* never forget focus styling */
#radio-form [type="radio"]:focus + label:after {
  font-size:  16px;
  line-height: 16px;
  /*vertical-align: -0.125em;*/
}

fieldset#radio-form {
  border: 0;
  margin-left: 0px;
  margin-top: 0px;
}
#radio-form .p {
  text-align: center;
  font-size: 14px;
  padding-top: 120px;
}
.wider.checkbox {
	margin-top: 21px;
	margin-bottom: 6px;
}
.double-height {
	margin-left: 0px;
}

@media only screen and (max-width: 850px){
	.group {
		width: 100%;
	}
	.group input {
		width: 96%;
	}
	.group input:focus {
		margin-top: 20px;
	}
	.group input:focus + label {
		margin-top: 20px;
	}
	#radio-form label {
		padding-right: 6px;
	}
}
