/*-------------- MODAL WINDOW ----------------*/

.modal-wrapper {
    visibility:hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    -webkit-transform: scale(1.2);
    transform: scale(1.2);    
    -moz-transition: visibility 0s linear 0.3s,opacity 0.3s ease-out, transform .3s ease-out;
    -o-transition: visibility 0s linear 0.3s,opacity 0.3s ease-out, transform .3s ease-out;
    -ms-transition: visibility 0s linear 0.3s,opacity 0.3s ease-out, transform .3s ease-out;
    -webkit-transition: visibility 0s linear 0.3s,opacity 0.3s ease-out, transform .3s ease-out;
    transition: visibility 0s linear 0.3s,opacity 0.3s ease-out, transform .3s ease-out;
}
.modal-wrapper.open{
    opacity: 1;
    visibility: visible;
    -webkit-transform: scale(1);
    transform: scale(1);    
    transition-delay: 0s;
}
.modal-wrapper .mask{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    background: rgba(55,66,84,.4);
    cursor: pointer;
}
.modal-wrapper .ajax-web-form,  
.modal-wrapper .modal-window {
    position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
    max-height: 100%;
    overflow: auto;
}
.modal-wrapper .modal-window {
	background: #fff;
	min-width: 400px;
	padding: 40px 30px 30px;
}
.modal-wrapper .modal-window .title {
	margin: 0 10px 15px 0;
}
.modal-wrapper .modal-window .close-icon {
	cursor: pointer;
	width: 20px;
	height: 20px;
	position: absolute;
	top: 10px; right: 10px;
}
.modal-wrapper .modal-window .close-icon:before,
.modal-wrapper .modal-window .close-icon:after {
	content: '';
	display: block;
	position: absolute;
	background: #4591ce;
	-webkit-transform: rotate(45deg);
		-ms-transform: rotate(45deg);
			transform: rotate(45deg);
}
.modal-wrapper .modal-window .close-icon:before {
	height: 100%;
	width: 2px;
	left: 50%;
	margin-left: -1px;
}
.modal-wrapper .modal-window .close-icon:after {
	width: 100%;
	height: 2px;
	top: 50%;
	margin-top: -1px;
}
.modal-wrapper .modal-window .close-icon:hover:before,
.modal-wrapper .modal-window .close-icon:hover:after { background: #000; }