* {
	box-sizing: border-box;
}

@font-face {
	font-family: 'Lato Regular';
	src: url(/fonts/Lato-Regular.ttf);
}

@font-face {
	font-family: 'Lato Bold';
	src: url(/fonts/Lato-Bold.ttf);
}

body,
html {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: subpixel-antialiased;
	text-rendering: optimizeLegibility;
	font-family: 'Lato Regular';
}

input,
textarea {
	display: block;
	border: none;
}

input[type="submit"] {
	border: none;
	cursor: pointer;
}

.container {
	width: 900px;
	margin: 0 auto;
	padding: 100px 30px;
}

h1,
p {
	margin-top: 0;
	margin-bottom: 0;
}

img {
	max-width: 100%;
}

.modal--open {
    overflow: hidden !important;
}

.opacity-down {
    margin: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
}

/* Page Background */

.page--bg {
	width: 100%;
	height: 100%;
	position: fixed;
	background-image: url('/img/emodule-bg.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 65% 100%;
	z-index: 1;
}

.page--wrapper {
	position: relative;
	z-index: 2;
}

/* Logo */

.logo {
	margin-bottom: 50px;
	text-align: center;
}

/* Headline */

.info {
	margin-bottom: 80px;
}

.info--headline,
.info--description {
	text-align: center;
}

.info--headline {
	margin-bottom: 50px;
	font-family: 'Lato Bold';
	font-size: 26px;
}

.info--description {
	margin-bottom: 40px;
	font-size: 20px;
}

.info--description:last-child {
	margin-bottom: 0;
}

/* Form */

.contact--form {
	position: relative;
	width: 600px;
	max-width: 100%;
	margin: 0 auto;
}

input,
textarea {
	width: 100%;
	background: transparent;
	font-size: 16px;
	outline: none;
	color: #333;
}

input::placeholder,
textarea::placeholder {
	color: #525252;
	opacity: 1;
}

input {
	border-radius: 0;
	padding: 15px;
	border-bottom: 2px solid #212121;
}

input:first-child:not('.contact--input-submit') {
	margin-top: 0;
}

textarea {
	height: 150px;
	margin: 40px 0 0 0;
	padding: 15px;
	border: 2px solid #212121;
	font-family: 'Lato Regular';
	font-size: 16px;
}

/* Checkbox */

.contact--checkbox {
    display: block;
    position: relative;
}

.contact--checkbox-input {
    position: absolute;
    margin: 0;
    height: 1px; width: 1px;
    top: 0;
    left: 0;
    opacity: 0;
}

.contact--checkbox .error {
    float: none;
    margin-bottom: 15px;
}

.checkbox-container {
    display: block;
    margin-top: 25px;
}

.contact--checkbox-box {
    position: relative;
    display: inline-block;
    border: 2px solid #212121;
    background: transparent;
    width: 26px; height: 26px;
    vertical-align: middle;
    cursor: pointer;
}

.contact--checkbox-box:after {
    content: '';
    opacity: 0;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    transition: opacity 0.2s ease-in-out;
    background-image: url(/img/checkmark.png);
    background-size: calc(100% - 6px);
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.contact--checkbox-input:checked ~ .checkbox-container .contact--checkbox-box:after {
    opacity: 1;
}

.contact--checkbox-text {
	display: inline-block;
	margin-left: 15px;
	max-width: calc(100% - 45px);
	vertical-align: middle;
	font-size: 13px;
	color: #525252;
}

.contact--input-submit {
	-webkit-appearance: none;
	border-radius: 0;
	margin-top: 30px;
	padding: 20px 0;
	background: #2AB34C;
	font-family: 'Lato Bold';
	font-size: 17px;
	text-transform: uppercase;
	color: #FFFFFF;
	transition: background 0.15s ease-in-out;
}

.contact--input-submit:hover,
.contact--input-submit:focus,
.contact--input-submit:active {
	background: #239F42;
}

.privacy-link,
.privacy-link:hover,
.privacy-link:active,
.privacy-link:focus,
.privacy-link:visited {
	color: #525252;
	text-decoration: underline;
}

/* Label Styling */

.contact--label:not([for="message-input"]),
input:valid + .contact--label:not([for="message-input"]) {
	transform: translate(14px, -40px) scale(1);
    position: absolute;
    color: #525252;
    backface-visibility: hidden;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
    transform-origin: top left;
}

input:focus + .contact--label:not([for="message-input"]),
input:valid + .contact--label:not([for="message-input"]) {
    transform: translate(0, -65px) scale(0.85);
    color: #7b7b7b;
}

/* Validation */

.input-container {
	margin-top: 25px;
	position: relative;
}

.error ~ label.error {
	position: relative;
	display: inline-block;
    background: #333333;
    padding: 4px 5px 5px 5px;
    color: white;
    font-size: 14px;
}

.contact--checkbox-input.error ~ label.error {
	top: -2px;
}

.error ~ label.error:after,
.error + .contact--checkbox label.error:after {
    bottom: 100%;
    left: 8px;
    border: solid transparent;
    content: ' ';
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(102, 102, 102, 0);
    border-bottom-color: #333333;
    border-width: 5px;
}

/* Form Thank You Message */

.form--submitted {
	display: none;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
}

.form--submitted .slide--overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20;
}

.form--submitted-panel {
    z-index: 21;
    color: #333333;
    background: #FFFFFF;
    text-align: center;
    position: relative;
    width: 500px;
    max-width: calc(100% - 30px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    padding: 30px;
    font-family: 'proxima-nova', sans-serif;
}

.form--submitted-header {
    margin: 0;
    font-size: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.form--submitted-content {
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Lato Regular';
}

.form--submitted-button {
    cursor: pointer;
    outline: none;
    background: #239F42;
    border: none;
    font-size: 18px;
    color: #FFFFFF;
    font-family: 'Lato Regular';
    padding: 7px 15px 10px 15px;
}

.inputsubmit-container {
	position: relative;
	text-align: center;
}

.grecaptcha-badge {
	z-index: 2;
}

/* Footer */

.footer {
	position: relative;
	width: 100%;
	background: #003F61;
	z-index: 1;
}

.footer--info {
	padding: 30px;
	font-size: 14px;
	text-align: center;
	color: rgba(255,255,255,0.3);
}

/* Loader */

.loader {
    display: inline-block;
    position: absolute;
    top: 18px;
    vertical-align: middle;
    opacity: 1;
    margin: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    background: -moz-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: -webkit-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: -o-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: -ms-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
    -webkit-animation: load3 1.4s infinite linear;
    animation: load3 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    transition: opacity 0.3s ease-in-out;
}

.loader:before {
    width: 50%;
    height: 50%;
    background: #FFFFFF;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}

.loader:after {
    background: #2AB34C;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transition: background 0.3s ease-in-out;
}

.contact--input-submit:hover + .loader:after,
.contact--input-submit:active + .loader:after,
.contact--input-submit:focus + .loader:after {
    background: #239F42;
}

@-webkit-keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Privacy */

.privacy--container {
	display: none;
	position: fixed;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 3;
	padding: 15px;
}

.privacy--overlay {
	background: rgba(0, 0, 0, 0.6);
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 4;
}

.privacy--modal {
	position: absolute;
	background: #FFFFFF;
	width: 50%;
	height: 50%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
}

.privacy--info {
	padding: 30px;
	position: relative;
	overflow-y: scroll;
	max-height: calc(100% - 54px);
}

.modal--close {
	width: 100%;
	background: #2AB34C;
	color: #FFFFFF;
	font-family: "Lato Bold";
	font-size: 20px;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 5;
	text-align: center;
	text-transform: uppercase;
	padding: 15px 0;
	cursor: pointer;
}

.privacy--modal hr {
	border: 1px solid #F3F3F3;
	margin: 20px 0;
}

.privacy--modal p {
	margin-bottom: 15px;
}

.modal--header {
	margin-top: 0;
}

/* Media Queries */

@media (max-width: 1600px) {

	.privacy--modal {
		width: 70%;
		height: 70%;
	}

}

@media (max-width: 900px) {

	.container {
		width: 100%;
	}

}

@media (max-width: 767px) {

	.container {
		padding: 60px 30px;
	}

	.info {
		margin-bottom: 60px;
	}

	.info--headline {
		margin-bottom: 40px;
	}

	.info--description {
		margin-bottom: 30px;
	}

	.privacy--modal {
		width: 80%;
		height: 80%;
	}

}

@media (max-width: 607px) {

	.contact--checkbox-input.error ~ label.error {
		top: -5px;
	}

}

@media (max-width: 540px) {
	
	.privacy--modal {
		width: calc(100% - 30px);
		height: calc(100% - 30px);
	}

}

@media (max-width: 383px) {

	.contact--checkbox-input.error ~ label.error {
		top: -13px;
	}

}