/* === Remove input autofocus webkit === */
*:focus {outline: none;}

/* === Шрифты для формы и общая ширина === */
body {}
.contact_form h2, .contact_form label {font-family:Georgia, Times, "Times New Roman", serif;}
.form_hint, .required_notification {font-size: 11px;}

.contact_form {
		width:350px;
	}
@media screen and (max-width:1330px)
{
.contact_form {
		width:250px;
	}
}
@media screen and (max-width:240px)
{
.contact_form {
		width:100%;
	}
}
	.contact_form1 {
		width:300px;
	}
@media screen and (max-width:240px)
{
.contact_form1 {
		width:100%;
	}
}

/* === Ширина формы === */
.contact_form p {
    	width:350px;
	
	padding:0px;
}
@media screen and (max-width:1330px)
{
.contact_form p {
    	width:250px;
	
	padding:0px;
}
}
@media screen and (max-width:240px) 
{
.contact_form p {
    	width:100%;
	
	padding:0px;
}
}


/* === Размер и расположение блоков === */
.contact_form label {
	width:150px;
	margin-top: 3px;
	display:inline-block;
	float: left;
	padding:3px;
}
.contact_form input {
	height:30px; 
	width:320px; 
	padding:5px 8px;
}
@media screen and (max-width:1330px)
{.contact_form input {
	height:30px; 
	width:250px; 
	padding:0px 8px;
}
}
@media screen and (max-width:240px)
{.contact_form input {
	height:30px; 
	width:100%; 
	padding:0px 8px;
}
}
.contact_form1 input {
	height:10px; 
	width:250px; 
	padding:5px 8px;
}
.contact_form textarea {padding:8px; width:320px;}
@media screen and (max-width:1330px)
{
.contact_form textarea {padding:8px; width:160px;}
}
@media screen and (max-width:240px)
{
.contact_form textarea {padding:8px; width:100%;}
}
.contact_form1 textarea {padding:8px; width:250px; height: 40px; }
.contact_form button {margin-left:0px;}

	/* Цвета и эффекты */
	.contact_form input, .contact_form textarea { 
		border:1px solid #aaa;
		box-shadow: 0px 0px 30px #ccc, 0 10px 15px #eee inset;
		border-radius:2px;
		padding-right:30px;
		-moz-transition: padding .25s; 
		-webkit-transition: padding .25s; 
		-o-transition: padding .25s;
		transition: padding .25s;
	}
	.contact_form1 input, .contact_form1 textarea { 
		border:1px solid #aaa;
		box-shadow: 0px 0px 30px #ccc, 0 10px 15px #eee inset;
		border-radius:2px;
		padding-right:30px;
		-moz-transition: padding .25s; 
		-webkit-transition: padding .25s; 
		-o-transition: padding .25s;
		transition: padding .25s;
	}
	.contact_form input:focus, .contact_form textarea:focus {
		background: #fff; 
		border:1px solid #555; 
		box-shadow: 0 0 3px #aaa; 
		padding-right:70px;
	}


/* === HTML5  === */	
.contact_form input:required, .contact_form textarea:required {
	background: #fff no-repeat 98% center;
}
.contact_form input:required:valid, .contact_form textarea:required:valid {
	background: #fff no-repeat 98% center;
	box-shadow: 0 0 5px #5cd053;
	border-color: #28921f;
}
.contact_form input:focus:invalid, .contact_form textarea:focus:invalid {
	background: #fff no-repeat 98% center;
	box-shadow: 0 0 5px #d45252;
	border-color: #b03535
}

/* === Стили подсказок === */
.form_hint {
	background: #d45252;
	border-radius: 3px 3px 3px 3px;
	color: white;
	margin-left:8px;
	padding: 1px 6px;
	z-index: 999; /* подсказки поверх всех элементов */
	position: absolute; /* правильное отображение, если подсказка в 2 строки */
	display: none;
}
.form_hint::before {
	content: "\25C0";
	color:#d45252;
	position: absolute;
	top:1px;
	left:-6px;
}
.contact_form input:focus + .form_hint {display: inline;}
.contact_form input:required:valid + .form_hint {background: #28921f;}
.contact_form input:required:valid + .form_hint::before {color:#28921f;}
	
/* === Оформление кнопки === */
button.submit {
	background-color: #262425;
	background: -webkit-gradient(linear, left top, left bottom, from(#262425), to(#262425));
	background: -webkit-linear-gradient(top, #262425, #262425);
	background: -moz-linear-gradient(top, #262425, #262425);
	background: -ms-linear-gradient(top, #262425, #262425);
	background: -o-linear-gradient(top, #262425, #262425);
	background: linear-gradient(top, #262425, #262425);
	border: 1px solid #509111;
	border-bottom: 1px solid #262425;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	box-shadow: inset 0 1px 0 0 #262425;
	-webkit-box-shadow: 0 1px 0 0 #262425 inset ;
	-moz-box-shadow: 0 1px 0 0 #262425 inset;
	-ms-box-shadow: 0 1px 0 0 #262425 inset;
	-o-box-shadow: 0 1px 0 0 #262425 inset;
	color: white;
	font-weight: bold;
	padding: 6px 20px;
	text-align: center;
	text-shadow: 0 -1px 0 #262425;
}

button.submit:hover {
	opacity:.85;
	cursor: pointer; 
}
button.submit:active {
	border: 1px solid #20911e;
	box-shadow: 0 0 10px 5px #356b0b inset; 
	-webkit-box-shadow:0 0 10px 5px #356b0b inset ;
	-moz-box-shadow: 0 0 10px 5px #356b0b inset;
	-ms-box-shadow: 0 0 10px 5px #356b0b inset;
	-o-box-shadow: 0 0 10px 5px #356b0b inset;
	
}

