
#contact-form{
	text-align: center;
	width: 100%;
	display: inline-block;
}
#contact-form .text-field{
	color: #f1f1f1; /* customise this */
	background: #333333; /* customise this */
	border: none;
	border-bottom: 2px solid #666; /* customise this */
	border-radius: 0;
	font-size: 16px;
	font-family: headerfont;
	
	margin: 10px 0px 10px 0px; /*top right bottom left (-4px to counter padding)*/
	padding: 8px 6px 8px 6px;
	box-sizing: border-box;
    text-overflow: ellipsis;
	word-wrap: break-word;
    word-break: break-all;
	
	-webkit-transition-duration: 0.2s;
	transition-duration: 0.2s;
}
#contact-form .text-field.valid{
	border-bottom: 2px solid #2ECC71;
}
#contact-form .text-field.invalid{
	border-bottom: 2px solid #E74C3C;
}
#contact-form .text-field:valid{
	color: #f1f1f1;
}
#contact-form .text-field:focus{
	box-shadow: none;
	outline-width: 0;
	color: #f1f1f1;
	border-bottom: 2px solid #3498DB; /* customise this */
	
	-webkit-transition-duration: 0.2s;
	transition-duration: 0.2s;
}
.input-container .invalid-text{
	display: none;
	font-size: 14px;
	color: #E74C3C;
	
	text-align: left;
}
.invalid + .invalid-text{ /* text that comes after valid inputs */
	display: block;
}

.input-container{
	width: 100%;
	display: inline-block;
}
.small-text-fields .input-container{
	width: 49%;
}
.large-text-fields .input-container{
	width: 100%;
}
.text-field{
	width: 100%;
}
textarea{
	resize: vertical;
}
.text-field-container{
	width: 100%;
}
.text-field-container.flex-space-between{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	list-style: none;
}
.submission-section-element{
	vertical-align: top;
	width: 100%;
	display: block;
}
small.submission-section-element {
	width: 100%;
	margin-bottom: 14px;
}
small.submission-section-element a{
	text-decoration: underline;
}
.grecaptcha-badge { 
    visibility: hidden;
}

@media screen and (max-width: 1080px){
	#contact-form{
		display: block;
	}
	#contact-form .input-container{
		display: block;
		width: 100%;
	}
}



#contact-output{
	padding: 14px 0;
	display: block;
	
	color: #E74C3C;
}
#contact-output.success{
	color: #2ECC71;
}



.loader{
	display: none;
	position: absolute;
	border: 5px solid #f3f3f3; /* Light grey */
	border-top: 5px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 24px;
	height: 24px;
	margin-left: 14px;
	animation: spin 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes spin{
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}