/*
|----------------------------------------------------------------------------
	Contact Form 7 Floating Form WordPress Addon CSS
	Author: MGScoder
	Author URL: https://codecanyon.net/user/mgscoder
|----------------------------------------------------------------------------
*/
a.mgswpcf7-floating-btn {   
    background-image: url("../images/email-icon.png");
	background-position: center left;
	background-repeat: no-repeat;
    background-color: #ff0000;
    color: #fff;
	font-size: 16px;
    border-radius: 5px;
	box-shadow: none;
    -webkit-transition: all 0.5s ease 0s;
    transition: all 0.5s ease 0s;
	display: inline-block;
}
a.mgswpcf7-floating-btn:hover, a.mgswpcf7-floating-btn:focus {
    color: #fff;
	box-shadow: none;
	background-position: center right;
}
.widget-area a.mgswpcf7-floating-btn, .widget a.mgswpcf7-floating-btn,
.widget-area a.mgswpcf7-floating-btn:hover, .widget-area a.mgswpcf7-floating-btn:focus,
.widget .mgswpcf7-floating-btn:hover, .widget a.mgswpcf7-floating-btn:focus {
	box-shadow: none;
    color: #fff;
    transition: all 0.5s ease 0s;
}

.mgswpcf7floating-cFormbox {
	background-color: #f00;
	color: #fff;
    width: 600px;
    max-width: calc(100% - 30px);
	max-height: calc(100vh - 60px);
	overflow-y: auto;
    margin: 0 auto;
	padding: 30px 30px 0;
	border: 1px solid transparent;
	border-radius: 5px;
}

.mgswpcf7-floating-contactForm a.closebtn {
    font-size: 32px;
    font-weight: bold;
    line-height: 28px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: none;
    background-color: #ff0000;
    color: #fff;
    width: 32px;
    height: 32px;
    border: 1px solid #ff0000;
    border-radius: 50%;
}
.mgswpcf7-floating-contactForm a.closebtn:hover {
    background-color: #fff;
    color: #ff0000;
	box-shadow: none;
}
h3.mgswpcf7-floating-form-title {
    font-size: 28px;
    line-height: 1.48;
	color: #fff;
    border: 1px solid;
    padding: 5px 15px;
    margin: 0 0 20px;
    border-radius: 10px;
}

.mgswpcf7-floating-contactForm label {
    font-weight: normal;
	color: #fff;
}
.mgswpcf7-floating-contactForm p {
    margin: 0 0 10px;
}	

.mgswpcf7-floating-contactForm .wpcf7-form-control {
    background-color: #e8eaed;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
	width: 100%;
	max-width: 100%;
	padding: 6px 10px;
}	
.mgswpcf7-floating-contactForm textarea.wpcf7-form-control {
	height: 100px;
    border-radius: 3px;
}	
.mgswpcf7-floating-contactForm select.wpcf7-form-control {
    border-radius: 3px;
}
.mgswpcf7-floating-contactForm .wpcf7-form-control:focus {
    box-shadow: 0 1px 1px rgba(190, 194, 203, 0.075) inset, 0 0 10px rgba(190, 194, 203, 0.7);
}
.mgswpcf7-floating-contactForm .wpcf7-form-control.wpcf7-submit {
	position: relative;
	left: 40px;
	margin: 5px 40px 0;
    background-color: #0000ff;
    color: #fff;
	font-size: 20px;
	font-weight: inherit;
    border-radius: 3px;
    transition: all 0.5s ease 0s;
    width: 180px;
	height: 40px;
	border: 1px solid #0000ff;
}
.mgswpcf7-floating-contactForm .wpcf7-form-control.wpcf7-submit:hover {
    background-color: #fff;
    border-color: #222;
    color: #222;
}
.mgswpcf7-floating-contactForm .wpcf7-form .ajax-loader {
	top: 5px;
}
.mgswpcf7-floating-contactForm .wpcf7-form {
	margin: 20px 0 0;
}
.mgswpcf7-floating-contactForm .wpcf7-not-valid-tip {
    background-color: #f7f60a;
    color: #ce0606;
    font-size: 12px;
    border-radius: 3px;
    display: inline-block;
    margin: 2px 0 0;
    padding: 0 10px;
	width: auto;
}

.mgswpcf7-floating-contactForm {
	text-align: center;
	position: fixed;
	display: table;
	height: 100%;
	width: 100% !important;
	max-width: 100% !important;
	top: 0;
	left: 0;
	-webkit-transform: scale(0);
    -ms-transform: scale(0);
	transform: scale(0);
	z-index: 99999;
}
.mgswpcf7-floating-contactForm.mgswpcf7-floatingbtnfloatbtn {
	-webkit-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
	animation: mgscfsfloatFunfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.mgswpcf7-floating-contactForm.mgswpcf7-floatingbtnfloatbtn.outmgspopup {
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	animation: mgscfsfloatFunfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.mgswpcf7-floating-contactForm.mgswpcf7-floatingbtnfloatbtn .mgsmodal-background .mgswpcf7floating-cFormbox {
	-webkit-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
	animation: mgscfsfloatFzoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.mgswpcf7-floating-contactForm.mgswpcf7-floatingbtnfloatbtn.outmgspopup .mgsmodal-background .mgswpcf7floating-cFormbox {
	animation: mgscfsfloatFzoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.mgswpcf7-floating-contactForm .mgsmodal-background {
	display: table-cell;
	background: rgba(0, 0, 0, .6);
	text-align: center;
	vertical-align: middle;
}
.mgswpcf7-floating-contactForm .mgsmodal-background .mgswpcf7floating-cFormbox {
	padding: 50px;
	display: inline-block;
	border-radius: 3px;
	font-weight: 300;
	position: relative;
}
@keyframes mgscfsfloatFunfoldIn {
	0% {
		-webkit-transform: scaleY(0.001) scaleX(0);
		-ms-transform: scaleY(0.001) scaleX(0);
		transform: scaleY(0.001) scaleX(0);
	}
	50% {
		-webkit-transform: scaleY(0.001) scaleX(1);
		-ms-transform: scaleY(0.001) scaleX(1);
		transform: scaleY(0.001) scaleX(1);
	}
	100% {
		-webkit-transform: scaleY(1) scaleX(1);
		-ms-transform: scaleY(1) scaleX(1);
		transform: scaleY(1) scaleX(1);
	}
}
@keyframes mgscfsfloatFunfoldOut {
	0% {
		-webkit-transform: scaleY(1) scaleX(1);
		-ms-transform: scaleY(1) scaleX(1);
		transform: scaleY(1) scaleX(1);
	}
	50% {
		-webkit-transform: scaleY(0.001) scaleX(1);
		-ms-transform: scaleY(0.001) scaleX(1);
		transform: scaleY(0.001) scaleX(1);
	}
	100% {
		-webkit-transform: scaleY(0.001) scaleX(0);
		-ms-transform: scaleY(0.001) scaleX(0);
		transform: scaleY(0.001) scaleX(0);
	}
}
@keyframes mgscfsfloatFzoomIn {
	0% {
		-webkit-transform: scale(0);
		-ms-transform: scale(0);
		transform: scale(0);
	}
	100% {
		-webkit-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
	}
}
@keyframes mgscfsfloatFzoomOut {
	0% {
		-webkit-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
	}
	100% {
		-webkit-transform: scale(0);
		-ms-transform: scale(0);
		transform: scale(0);
	}
}

/************Floating Button************/
a.mgswpcf7-floatingbtnfloatbtn {
    position: fixed;
    bottom: 30px;
    margin-bottom: 50px;
    left: 15px;
    min-height: 48px;
    width: 48px !important;
    line-height: 48px;
    padding: 10px;
	z-index: 99;
}
a.mgswpcf7-floatingbtnfloatbtn .mgsfloatingfloatingbtn-text {
    padding-right: 10px;
}
a.mgswpcf7-floatingbtnfloatbtn.mgswpcf7-floatingbtnfloat-right {
    left: auto;
    right: 15px;
}
a.mgswpcf7-floatingbtnfloatbtn .mgsfloatingfloatingbtn-text {
    display: none;
}
a.mgswpcf7-floatingbtnfloatbtn:hover {
    width: auto !important;
    padding: 0 40px;
}
a.mgswpcf7-floatingbtnfloatbtn:hover .mgsfloatingfloatingbtn-text {
    display: block;
}

@media screen and (max-width: 767px) {
	.mgswpcf7floating-cFormbox {
		width: calc(100% - 60px);
	}
}

@media screen and (max-width: 480px) {
	.mgswpcf7-floating-contactForm .wpcf7-form-control.wpcf7-submit {
		left: 0;
	}
}
@media screen and (max-width: 375px) {
	.mgswpcf7-floating-contactForm .wpcf7-form-control.wpcf7-submit {
		margin: 5px auto;
	}
}