/* Copyright 2023 - Elstone IT Services Limited - Form Input Style Rules */

/* Form Layout */

form {
	padding: 1rem;
	width: calc(100% - 2rem);
	max-width: 33%;
	align-self: center;
}

@media screen and (max-width: 380px) {
	form {
		max-width: 100%
	};
}

form > fieldset {
	border: 0;
	margin: 0;
	max-width: 95%;
	min-width: 66.5%;
	padding: 0;
}

form > fieldset > legend {
	font-size: 1.5rem;
	line-height: 1.05;
	margin-bottom: 1rem;
	font-family: 'BodyFont';
}

form > fieldset > legend > h2, 
form > fieldset > legend > h3, 
form > fieldset > legend > h4, 
form > fieldset > legend > h5 {
	font-size: inherit;
	font-weight: inherit;
	margin: 0;
	margin-block-end: 0.7rem;
	margin-block-start: 0.7em;
}

form > fieldset > legend > p {
	text-align: left;
	font-size: 1rem;
	border-left: 0.5rem solid #405952;
	font-family: 'BodyFont';
}

form > fieldset > div {
	margin-bottom: 1.5rem;
}

form > fieldset > div > label {
	color: #0b0c0c;
	display: block;
	font-family: 'LogoFont';
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.25;
	margin-bottom: 5px;
}

form > div {
	text-align: center;
}



/* Individual Controls */


textarea, 
input, 
select {
	appearance: none;
	background-color: white;
	border: 2px solid #405952;
	border-radius: 5px;
	box-sizing: border-box;
	display: inline-block;
	font: inherit;
	font-family: 'BodyFont';
	font-size: 1.1rem;
	line-height: 1.5rem;
/*	height: 2.5rem;*/
	margin: 0;
	-moz-appearance: none;
	-moz-box-sizing: border-box;
	padding: 0.5em 3.5em 0.5em 1em;
	-webkit-appearance: none;
	-webkit-box-sizing: border-box;
	width: 100%;
}

textarea {
	height: unset;
}

option {
	font-family: Arial;
}

input[type="submit"], 
input[type="reset"], 
input[type="button"] {
	background: #405952;
	border: 3px solid rgba(0,0,0,0.3);
	color: #fff;
	font-family: 'LogoFont';
	font-size: 2rem;
	padding: 10px 15px;
	text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
	width: unset;
	height: unset;
}

input[type="submit"]:hover, 
input[type="reset"]:hover, 
input[type="button"]:hover {
	background: rgba(64 , 89 ,  82, 0.9);
	cursor: pointer;
}

/* EOF */