/* General styles for the modal */

/* 
Styles for the html/body for special modal where we want 3d effects
Note that we need a container wrapping all content on the page for the 
perspective effects (not including the modals and the overlay).
*/
.md-perspective,
.md-perspective body {
	height: 100%;
	overflow: hidden;
}

.md-perspective body  {
	background: #222;
	-webkit-perspective: 600px;
	-moz-perspective: 600px;
	perspective: 600px;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 540px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}
.md-close {
	background: url("../images/modal-close.png") no-repeat;
	display: block;
	width: 24px;
	height: 23px;
	border: 0;
	outline: none;
	position: absolute;
	top: -27px;
	right: -35px;
	padding: 0;
	margin: 0;
}
.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(0,0,0,0.6);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.main-modal-content {
	width: 100%;
	box-sizing: border-box;
	padding: 0 30px;
}
.modal-little-info {
	border-bottom: 1px solid #cad0d2;
	padding: 15px 0 10px 0;
	margin-bottom: 15px;
}
.modal-little-info span {
	color: #84959a;
	font-size: 14px;
	display: block;
	text-align: center;
	font-weight: 300;
	line-height: 120%;
}
.md-content {
	background: #f4f5f6;
	position: relative;
	margin: 0 auto;
	box-sizing: border-box;
}
.heads-modal {
	position: relative;
	height: 70px;
	background: #1eaaf0;
}
.heads-modal h3 {
	display: block;
	line-height: 70px;
	color: #fff;
	font-size: 27px;
	font-weight: 400;
	text-align: center;
	margin: 0;
}
.modal-form {

}
.modal-form label {
	display: block;
	width: 100%;
	margin-bottom: 15px;
}
.modal-form label span {
	display: block;
	color: #84959a;
	font-size: 16px;
	font-weight: 400;
	line-height: 120%;
	margin-bottom: 10px;
}
.modal-form label input, .modal-form label textarea {
	display: block;
	width: 100%;
	height: 60px;
	background-color: #FFF;
	border: 5px solid #E1E8E8;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	padding: 0 15px;
	font-size: 22px;
	color: #1d343c;
	font-weight: 300;
}
.modal-form label textarea {
	resize: none;
	height: 150px;
}
.modal-btn {
	width: 100%;
	display: block;
}
.sendToMe {
	width: 100%;
	height: 60px;
	background-color: #1DA9EF;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border-radius: 2px;
	display: block;
	border: 0;
	outline: none;
	font-size: 18px;
	color: #fff;
	font-weight: 300;
	text-transform: uppercase;
}
.ico-modal {
	margin-left: 15px;
	font-size: 18px;
}
@media (max-width: 700px) {
	.modal-form label span {
		float: none;
		margin-bottom: 5px;
	}
	.modal-form label input, .modal-form label textarea {
		float: none;
		width: 100%;
		max-width: 320px;
	}
	.modal-btn {
		max-width: 100%;
		float: none;
	}
	.sendToMe {
		width: 100%;
		height: 60px;
		background-color: #1DA9EF;
		-moz-border-radius: 2px;
		-webkit-border-radius: 2px;
		border-radius: 2px;
		display: block;
		border: 0;
		outline: none;
	}
}





/* Individual modal styles with animations/transitions */

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}
