/* 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).
*/

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
  }

.ecp-button {
    transform: rotate(270deg);
    background-color: #222;
    padding: 10px 5px;
    cursor: pointer;
    position: fixed;
    z-index: 999999;
    display: block;
    width: 150px;
    height: auto;
    text-align: center;
}

.ecp-button:hover {
	opacity: 0.8;
}

.ecp-button.right {
    right: -60px;
    bottom: 50%;
    border-radius: 5px 5px 0px 0px;
}

.ecp-button.left {
    left: -60px;
    bottom: 50%;
    border-radius: 0px 0px 5px 5px;
}

.ecp-button .arrow {
    color: #FFF;
    font-weight: bold;
    padding: 10px;
}

.ecp-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 530px;
	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%);
}

.ecp-show {
	visibility: visible;
}

.ecp-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(0, 0, 10, 0.8);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.ecp-show ~ .ecp-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.ecp-content {
	position: relative;
	border-radius: 5px;
	margin: 0 auto;
	color: #FFF;
	background-color: #363b3f;
	-webkit-box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.8);
    -moz-box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.8);
    box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.8);
}

.ecp-content h3 {
	margin: 0;
	padding: 0.5em;
	text-align: center;
	font-size: 2.5em;
	font-weight: 400;
	color: #FFF;
	background-color: #25282b;
	border-radius: 3px 3px 0 0;
	padding: 30px 0;
}

.ecp-content > div {
	padding: 30px 50px 20px;
	margin: 0;
}

.ecp-content span.ecp-close {
	top: -15px;
	right: -15px;
    width: 35px;
	height: 35px;
    color: #DDD;
    position: fixed;
	font-size: 0.6em;
	padding: 5px;
	cursor: pointer;
    border-radius: 50px;
	background-color: #333;
	-webkit-box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 40px 10px rgba(0,0,0,0.2);
}

.ecp-content button.ecp-close:hover {
		opacity: 0.5;
		box-shadow: none;
   }

.ecp-content button.ecp-close:focus {
		opacity: 0.1;
		box-shadow: none;
}

.ecp-content .wpcf7-form-control-wrap {
	margin:0.5em 0 1em;
	display: block;
}

.ecp-content .wpcf7-form input[type="text"], 
.ecp-content .wpcf7-form input[type="email"], 
.ecp-content .wpcf7-form input[type="tel"], 
.ecp-content .wpcf7-form input[type="url"], 
.ecp-content .wpcf7-form textarea {
    width: 100%;
    outline: 0;
	color: #002d59;
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 10px 5px;
    font-size: 16px;
	border: 1px solid #e5f1f8;
    background-color: #e5f1f8;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    -webkit-appearance: initial;
    -moz-appearance: initial;
    appearance: initial;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

.ecp-content .wpcf7-form input:focus, 
.ecp-content .wpcf7-form textarea:focus{
    border: 1px solid #04A4CC;
    background-color: #FFF;
}

.ecp-content .wpcf7-form textarea { 
	max-height: 80px;
}

.ecp-content .wpcf7-form .wpcf7-submit  {
    box-shadow: 0 2px 0 #6f9a37;
    position: relative;
    font-size: 18px;
	padding: 10px 20px;
	box-sizing: border-box;
	width: 100%;
	outline: none;
	border: none;
	border-radius: 3px;
	color: #fff;
	background: #82b440;
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
}

.ecp-content .wpcf7-form .wpcf7-submit:hover {
	opacity: 0.7;
}