
/*--------------------------------------------------------------
25. Contact
--------------------------------------------------------------*/
.contact-box p {
	margin-top: 0;
	margin-bottom: 2px;
}

.contact-box p span,
.contact-box h6 span {
	margin-bottom: 2px;
}

.contact-box p:last-child,
.contact-box p span:last-child,
.contact-box h6 span:last-child {
	margin-bottom: 0;
}

.contact-box .flip-btn-box {
	margin-top: 30px;
	margin-right: 20px;
	line-height: 1.2;
}

.contact-box .flip-btn {
	white-space: nowrap;
	line-height: 1.2;
}

/* 25.1. Contact form */
.contact-form-box {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
}

.bg-overlay {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0,0,0,.02);
	width: 100%;
	height: 100%;
}

.contact-form-box .border-btn-box {
  	border: 1px solid white;
}

.contact-form-box .border-btn:before {
	color: #888888;
}

.contact-form-control {
	width: 100%;
	-webkit-box-sizing: border-box;
	    box-sizing: border-box;
	border: none;
	border-bottom: 1px solid rgba(250,250,250,.4);
	padding: 0 0 10px 0;
	margin-bottom: 40px;
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #888888;
	font-family: 'Oswald', sans-serif;
	-webkit-transition: .5s;
		-o-transition: .5s;
			transition: .5s;
}

.contact-form-box textarea {
	height: 100px;
	margin-bottom: 0;
}

.contact-form-control:focus {
	border-bottom: 1px solid white;
}

.contact-form-container {
	width: 100%;
	position: relative;
}

.input-box {
	position: relative;
}

.form-label {
	position: absolute;
	left: 10px;
	top: 25px;
	z-index: 2;
	pointer-events: none;
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1px;
	color: #888888;
	opacity: .7;
	-webkit-transform: translateY(-28px) scale(.8);
	    -ms-transform: translateY(-28px) scale(.8);
	        transform: translateY(-28px) scale(.8);
	-webkit-transform-origin: left;
	    -ms-transform-origin: left;
	        transform-origin: left;
	-webkit-transition: 1s cubic-bezier(.225, 1, .316, .99);
	-o-transition: 1s cubic-bezier(.225, 1, .316, .99);
	transition: 1s cubic-bezier(.225, 1, .316, .99);
}

.form-input:invalid + .form-label {
	opacity: 1;
	-webkit-transform: translateY(0) scale(1);
	    -ms-transform: translateY(0) scale(1);
	        transform: translateY(0) scale(1);
}

.form-input:focus + .form-label {
	opacity: .7;
	-webkit-transform: translateY(-28px) scale(.8);
	    -ms-transform: translateY(-28px) scale(.8);
	        transform: translateY(-28px) scale(.8);
}

.email-label.js-active {
	opacity: .7 !important;
	-webkit-transform: translateY(-28px) scale(.8) !important;
	    -ms-transform: translateY(-28px) scale(.8) !important;
	        transform: translateY(-28px) scale(.8) !important;
}

.form-input {
	width: 100%;
	padding: 20px 10px;
	border: none;
	border-bottom: 1px solid rgba(250,250,250,.4);
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: normal;
	color: #333;
}

textarea.form-input {
	height: 100%;
	min-height: 150px;
}

.message-input {
	margin-top: 30px;
}

.contact-form-container .flip-btn:before {
	color: #888888;
}

.error {
	color: red;
}

.js-popup-fade {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align:     center;
	    -ms-flex-align:     center;
	        align-items:     center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	width:  100%;
	height: 100%;
	position: absolute;
	left: 0;
	top:  0;
	pointer-events: none;
	opacity: 0;
	-webkit-transform: scale(0.7);
	    -ms-transform: scale(0.7);
	        transform: scale(0.7);
	-webkit-transition: 1s cubic-bezier(.17, .85, .438, .99);
	-o-transition: 1s cubic-bezier(.17, .85, .438, .99);
	transition: 1s cubic-bezier(.17, .85, .438, .99);
}

.js-popup-fade.js-active {
	pointer-events: auto;
	opacity: 1;
	-webkit-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
	-webkit-transition-delay: .7s;
	     -o-transition-delay: .7s;
	        transition-delay: .7s;
}

.popup-icon {
	margin: 0 auto;
	width:       50px;
	height:      50px;
	line-height: 50px;
	font-size: 23px;
	border-radius: 50%;
}

#m_err .popup-icon {
	color: red;
	border: 1px solid red;
}

#m_sent .popup-icon {
	color: green;
	border: 1px solid green;
}

.popup-alert {
	margin: 30px 0;
}

.form-box {
	opacity: 1;
	-webkit-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
	-webkit-transition: 1s cubic-bezier(.17, .85, .438, .99);
	-o-transition: 1s cubic-bezier(.17, .85, .438, .99);
	transition: 1s cubic-bezier(.17, .85, .438, .99);
	-webkit-transition-delay: .7s;
	     -o-transition-delay: .7s;
	        transition-delay: .7s;
}

.form-box.js-active {
	pointer-events: none;
	opacity: 0;
	-webkit-transform: scale(0.7);
	    -ms-transform: scale(0.7);
	        transform: scale(0.7);
	-webkit-transition-delay: 0s;
	     -o-transition-delay: 0s;
	        transition-delay: 0s;
}

#send.js-active {
	pointer-events: none;
}

#send.js-active .border-btn:before,
#send.js-active .border-btn:after {
	color: transparent !important;
	-webkit-transition-delay: 0s;
	     -o-transition-delay: 0s;
	        transition-delay: 0s;
}

.btn-wait {
	display: inline-block;
	position: absolute;
	left: 50%;
	top:  50%;
	font-family: 'Oswald', sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 7px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #333;
	opacity: 0;
	-webkit-transform: translate(-50%, -50%);
	    -ms-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
	-webkit-transition: .5s cubic-bezier(.17, .85, .438, .99);
	-o-transition: .5s cubic-bezier(.17, .85, .438, .99);
	transition: .5s cubic-bezier(.17, .85, .438, .99);
}

#send.js-active .btn-wait {
	opacity: 1;
}
