/* GLOBAL SETTINGS */
* {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	display: table;
	margin: 0;
	padding: 0;
	background: #EDEDED;
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

/* POPUP */
.popup {
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	filter: alpha(opacity=0);
	-webkit-transition: all .1s ease-in-out;
    	 -o-transition: all .1s ease-in-out;
    		transition: all .1s ease-in-out;
}

.popup::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}

.popup.active {
	pointer-events: auto;
	opacity: 1;
	z-index: 99;
	filter: alpha(opacity=100);
}

.popup .listener {
	display: inline-block;
	position: inherit;
	width: inherit;
	height: inherit;
	background: #000000;
	opacity: .5;
	filter: alpha(opacity=50);
}

.popup .container {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	width: 350px;
    border-radius: 5px;
    left: 50%;
    transform: translateX(-50%);
    text-align: right;
    overflow: hidden;
}

.popup .container.large {
	width: 100%;
	max-width: 800px;
	height: auto;
	max-height: 100vh;
}

.popup .container h3 {
	background: #6D7AE0;
    color: #FFFFFF;
    margin: 0;
    padding: 10px 15px;
    font-weight: 400;
    text-align: left;
}

.popup .container p {
	text-align: left;
	margin: 0;
	padding-bottom: 15px;
}

.popup .container button {
	position: absolute;
	width: 22px;
	height: 22px;
	top: 10px;
	right: 10px;
	padding: 0px;
	border: none;
	background: transparent;
	cursor: pointer;
}

.popup .container button::after {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "\2716"; /* use the hex value here... */
    font-size: 18px; 
    color: #FFFFFF;
    line-height: 22px;
    text-align: center;
}

.popup .container .content {
	max-height: calc(100vh - 90px);
	padding: 25px 25px 20px 25px;
	background: #FFFFFF;
	overflow-x: auto;
}

/* INPUTS */
input { display: block; }
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
	width: 100%;
	outline: none;
	border: none;
	border-bottom: 1px solid #757575;
	margin-bottom: 10px;
	padding: 7px 5px 10px 5px;
	font-size: 14px;
}

textarea {
	resize: vertical;
	min-height: 60px;
	height: 60px;
	max-height: 250px;
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

input[type="text"].invalid,
input[type="password"].invalid,
input[type="email"].invalid,
textarea.invalid {
	color: #FF0000;
	padding-bottom: 9px;
	border-bottom: 2px solid #FF0000;
}

input[type="text"].invalid + label,
input[type="password"].invalid + label,
input[type="email"].invalid + label,
textarea.invalid + label {
	opacity: 1;
	filter: alpha(opacity=100);
}

input[type="text"]:not(.invalid):focus,
input[type="password"]:not(.invalid):focus,
input[type="email"]:not(.invalid):focus,
textarea:not(.invalid):focus {
	padding-bottom: 9px;
	border-bottom: 2px solid #3071A9;
}

input[type="file"] {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	filter: alpha(opacity=0);
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

input[type="file"].popupBottom + label {
	position: absolute;
	bottom: 15px;
	left: 15px;
}

input[type="file"] + label,
input[type="button"],
input[name="search"] {
	display: inline-block;
	padding: 10px 25px;
	border: none;
	outline: none;
	background: #FFFFFF;
	color: #000000;
	border-radius: 4px;
	font-size: 14px;
	opacity: 1;
	filter: alpha(opacity=100);
}

input[type="file"] + label {
	background: #E5E5E5;
}

input[type="file"]:hover + label {
	background: #CDCDCD;
	cursor: pointer;
}

input[type="button"]:hover {
	background: #E5E5E5;
	cursor: pointer;
}

input[type="submit"],
input[type="reset"] {
	margin-top: 10px;
	margin-left: 15px;
}

input[type="file"].primary + label,
input[type="button"].primary,
input[type="submit"],
input[type="reset"] {
	display: inline-block;
	padding: 10px 25px;
	border: none;
	outline: none;
	color: #FFFFFF;
	background: #6D7AE0;
	border-radius: 4px;
	font-size: 14px;
}

input[type="file"].primary:hover + label,
input[type="button"].primary:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
	background: #5E68BC;
	cursor: pointer;
}

input[type="file"].invalid + label {
	background: #CC0000;
}

input[type="file"].invalid:hover + label {
	background: #AA0000;
}

input:disabled,
input[disabled],
input:disabled:hover,
input[disabled]:hover {
	background: #B5BADA !important;
	cursor: default !important;
}

/*input[data-required] {
	margin-bottom: 30px;
}*/

form span.error {
	color: #FF0000;
	font-weight: normal;
	margin-top: -15px;
	padding-bottom: 10px;
	display: none;
}

form.error span.error {
	display: block;
}

form span {
	display: block;
	text-align: left;
	padding: 0px 5px;
	color: #6D7AE0;
	font-weight: bold;
	font-size: 14px;
}

form label {
	display: block;
	text-align: left;
	font-size: 12px;
	color: #FF0000;
	margin: -10px 5px 5px 5px;
	opacity: 0;
	filter: alpha(opacity=0);
}