

/* устанавливаем слой затемнения фона,
  ** опрделяем позиции, цвет и интенсивность затемнения  */
.black-overlay{
	display: none;
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	background-color: black;
	z-index:1001;
	-moz-opacity: 0.7;
	opacity:.70;
	filter: alpha(opacity=70);
}
/* устанавливаем рисунок основы,
  ** опрделяем размеры и положение на экране  */

.envelope1 {
display: none;
position: fixed;
width: 40%;
background: #57a0ff;
    background-size: auto auto;
z-index: 1002;
top: 100px;
left: 30%;
background-size: cover;
padding-bottom: 20px;
border-radius: 10px;
border: solid 4px #2d3087;
}
@media (max-width: 800px) { 
.envelope1 {
    display: none;
    position: fixed;
    width: 50%;
    background-image: url(../css/ipad.png);
    z-index: 1002;
    top: 100px;
    left: 25%;
    background-size: cover;
    height: 494px;
}
}
@media (max-width: 500px) { 
.envelope1 {
	display: none;
	position: absolute;
	width: 310px;
	height: 340px;
	
	z-index:999999;
	position: relative;
	margin-top: -325px;
	margin-left: -10px;
	display: none;
	border-radius: 10px;
}
}
@media (max-width: 400px) { 
.envelope1 {
width: 97%;
z-index: 1002;
position: fixed;
border-radius: 10px;
top: 379px;
left: 5%;
}
}
.envelope2 {
	display: none;
	position: absolute;
	width: 533px;
	height: 340px;
	background: rgba(220, 12, 63, 0.65);
	z-index:1002;
	position: relative;
	margin-left: -650px;
	margin-top: -175px;
	display: none;
	border-radius: 10px;
}
@media (max-width: 500px) { 
.envelope2 {
	display: none;
	position: absolute;
	width: 310px;
	height: 340px;
	background: rgba(220, 12, 63, 0.65);
	z-index:1002;
	position: relative;
	margin-top: -325px;
	margin-left: -10px;
	display: none;
	border-radius: 10px;
}
}
@media (max-width: 400px) { 
.envelope2 {
	display: none;
	position: absolute;
	width: 100%;
	height: 340px;
	background: rgba(220, 12, 63, 0.65);
	z-index:1002;
	position: relative;
	margin-top: -325px;
	margin-left: -10px;
	display: none;
	border-radius: 10px;
}
}
/* формируем кнопку закрытия,
  ** размеры, положение на форме  */
.close-btn {
	width: 31px;
	height: 31px;
	display: block;
	cursor: pointer;/* для случая применения отличных от <a> тегов */
	background: url(images/close.png);
	text-indent: -4999px;
    float: right;
}
/* кнопка закрытия при наведении */
.close-btn:hover{
	background: url(images/close-hover.png);
	
}
/* оформляем заголовок формы */

.forma1 {
	margin-left:5%;
	margin-right:5%;
	width: 90%;
	margin-top: 20px 
}
.form3{
font-size: 24px;
text-align: center;
font-weight: 600;
color: #fff;
margin-top: 15px;
}
@media (max-width: 500px) {
	.form {
	font-family: "Trebuchet MS",Tahoma,Arial,sans-serif;
	font-size:18px;
	font-weight: normal;
	font-weight: 200;
	text-align:center;
	color: #ffff;
	height: 40px;
	width: 280px;
	margin-top: -20px;
	margin-bottom: 20px;
	margin-left: 10px;
}
}
@media (max-width: 400px) {
	.form {
	font-family: "Trebuchet MS",Tahoma,Arial,sans-serif;
	font-size:18px;
	font-weight: normal;
	font-weight: 200;
	text-align:center;
	color: #ffff;
	height: 40px;
	width: 90%;
	margin-top: -20px;
	margin-bottom: 20px;
	margin-left: 10px;
}
}
/* меняем оформление полей ввода при фокусе */
input[type=text]:focus, .your-message:focus {
	outline: none;
	background-color:rgb(255,255,255);
	border-color:rgb(126,139,153);
	border: 1px solid;
	-moz-box-shadow:0px 0px 5px 0px rgba(168,178,188,0.75) ,0px 1px 0px 0px rgba(255,255,255,0.5) ,inset 0px 1px 2px 0px rgba(0,0,0,0.4);
	-webkit-box-shadow:0px 0px 5px 0px rgba(168,178,188,0.75) ,0px 1px 0px 0px rgba(255,255,255,0.5) ,inset 0px 1px 2px 0px rgba(0,0,0,0.4);
	box-shadow:0px 0px 5px 0px rgba(168,178,188,0.75) ,0px 1px 0px 0px rgba(255,255,255,0.5) ,inset 0px 1px 2px 0px rgba(0,0,0,0.4);
}
.your-message {
	font-family: "Trebuchet MS",Tahoma,Arial,sans-serif;
	font-size: 13px;
	background-color:rgb(255,255,255);
	color: #787474;
	padding: 10px 0 0 10px;
	width:448px;
	height:93px;
	border-color:rgb(182,182,182);
	border-width:1px;
	border-style:solid;
	-moz-box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5) ,inset 0px 1px 2px 0px rgba(0,0,0,0.2);
	-webkit-box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5) ,inset 0px 1px 2px 0px rgba(0,0,0,0.2);
	box-shadow:0px 1px 0px 0px rgba(255,255,255,0.5) ,inset 0px 1px 2px 0px rgba(0,0,0,0.2);
	-ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX = 0,OffY = 1,Color = #80ffffff,Positive = true)";
	filter:progid:DXImageTransform.Microsoft.dropshadow(OffX = 0,OffY = 1,Color = #80ffffff,Positive = true);
	position: absolute;
	top: 150px;
	left: 40px;
	border-radius: 3px;
	-moz-border-radius: 3px;
}

.your-name {
	position: absolute;
	top: 100px;
	left: 40px;
}

.email-address {
	position: absolute;
	top: 100px;
	left: 280px;
}


.show-btn1 {
	text-decoration: none;
	display: block;
	width:230px;
	zoom: 1; /* масштаб и *display = ie7 хак для display:inline-block */
	*display: inline;
	vertical-align: baseline;
	outline: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	font: 14px;
	padding: .5em 2em .55em;
	color: #fff;
	border: solid 1px #555;
	background: #dc0c3f;
	margin-top: 30px;
}

.show-btn1:hover{
	color: #fff;
	background: #1e4e07;
	
}
.show-btn1:active {
	color: #fff;
	background: #1e4e07;	
}

@media (max-width: 500px) { 
.show-btn1 {
	text-decoration: none;
	display: block;
	width:80%px;
	vertical-align: baseline;
	outline: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	font: 14px;
	padding: .5em 2em .55em;
	color: #fff;
	border: solid 1px #555;
	background: #dc0c3f;
	margin-top: 30px;
	margin-bottom: 20px;

}
}