@font-face {
  	font-family: "Open Sans light";
  	src: local("☺"),
	url("../fonts/open-sans/OpenSans-Light.ttf") format("truetype");
}
@font-face {
  	font-family: "Open Sans semibold";
  	src: local("☺"),
	url("../fonts/open-sans/OpenSans-Semibold.ttf") format("truetype");
}
@font-face {
  	font-family: "Open Sans regular";
  	src: local("☺"),
	url("../fonts/open-sans/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
  	font-family: "Open Sans bold";
  	src: local("☺"),
	url("../fonts/open-sans/OpenSans-Bold.ttf") format("truetype");
}
@font-face {
  	font-family: "Monsterrat";
  	src: local("☺"),
	url("../fonts/Monsterrat/Montserrat-Regular.otf") format("truetype");
}

body {
	padding: 0px;
	margin: 0px;
}
html {
	background: url('../img/take-bg.jpg');
	background-size: contain;
    background-position: center center;
}
#survey-container {
	background: transparent;
	padding: 0px;
}
.survey-body {
	position: relative;
	width: 80%;
	max-width: 850px;
	min-width: 320px;
	min-height: 40vh;
	margin: 140px auto 10px;
	padding: 20px 20px 10px;
	z-index: 9;
	border: 1px solid #eee;
	background-color: #fff;
	-moz-box-shadow: 0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);
	box-shadow: 0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);
}
.survey-content {
	padding: 10px;
}
.survey-section {
	margin: 20px;
	position: relative;	
	padding: 30px 0px 0px;
	display: none;
}
.section_active {
	display: block;	
}
.survey-section-header {
	padding: 10px 30px;
	position: absolute;
    top: 0px;
    left: -51px;
    background: #1C597C;
    color: #fff;
    /*-webkit-clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
	clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);*/
}
.survey-question {
	position: relative;
	margin: 20px 45px;
	padding: 10px;
}
.deactivate-question * {
	opacity: 0.65;
}
.deactivate-question.survey-question:before {
	content: 'Skipped';
	position: absolute;
	left: 100%;
	background-color: #0089B8;
	padding: 2px 17px;
	color: #fff;
	border-radius: 2px;
}
.deactivate-question .survey-ans {
	display: none;
}
.survey-question > span {
	position: absolute;
	top: 10px;
	left: -30px;
	max-width: 35px;
	white-space: nowrap;
  	overflow: hidden;
  	text-overflow: ellipsis;
}
.survey-question > p {
	position: relative;
}
.survey-question.survey-question-required > p::after {
	content: '*';
	color: #f00;
	position: relative;
	top: -1px;
	right: -3px;
}
.survey-ans {
	margin-left: 0px !important;
}
.survey-ans label {
	display: block;
	font-weight: normal;
	position: relative;
}
.survey-ans label.radio-box {
	padding-left: 25px;
}
.survey-ans input[type="radio"], .survey-ans input[type="checkbox"] {
	position: absolute;
	top: 0px;
	left: 0px;
	margin-right: 15px;
}
.survey-ans input[type="text"], .survey-ans input[type="number"], .survey-ans textarea {
	padding: 5px 10px;
	width: 100%;
	border: none;
	border-bottom: 1px dashed #aaa;
	margin: 0px 10px 4px 0px;
	max-width: 400px;
}
.survey-ans textarea {
	padding: 5px;
	border: none;
	border-bottom: 1px dashed #aaa;
}
/*.survey-ans input[readonly], .survey-ans textarea[readonly], .survey-ans select[readonly] {
	border: 1px dotted rgba(0,0,0,0);
	background-color: rgba(0,0,0,0);
}*/
.survey-ans input.map-address {
	max-width: 100%;
	border-bottom: 1px dotted #999;
}
.survey-ans input[type="time"][readonly="readonly"], .survey-ans input[type="text"][readonly="readonly"], .survey-ans input[type="number"][readonly="readonly"] {
	border: none;
	/*background-color: rgba(0,0,0,0.01);*/
	padding: 2px 5px;
	border-bottom: 1px dotted rgba(0,0,0,0.2);
}
.survey-ans input[type="text"][readonly="readonly"]::-moz-placeholder {
  color: rgb(28, 89, 124);
  opacity: 1;
}
.survey-ans input[type="text"][readonly="readonly"]::-webkit-input-placeholder {
  color: rgb(28, 89, 124);
  opacity: 1;
}
.survey-ans input[type="radio"] + input[type="text"], .survey-ans input[type="checkbox"] + input[type="text"]{ 
	position: relative;
	border: 1px solid rgba(0,0,0,0);
	top: -5px;
	pointer-events:none;
}
.survey-ans input[type="radio"]:checked + input[type="text"], .survey-ans input[type="checkbox"]:checked + input[type="text"]{ 
	border-bottom: 1px dashed #aaa;
	pointer-events: auto;
}

input[required]:placeholder-shown, select[required]:placeholder-shown {
    border-color: #a00 !important;
}
.survey-ans label > span {
	position: absolute;
	left: 28px;
	top: 5px;
	z-index: 1;
}
.survey-ans input[type="file"] {
	display: none;
}
.survey-ans input[error-state="1"] {
	-webkit-box-shadow: 1px 1px 2px 0px rgba(100,0,0,0.6);
	-moz-box-shadow: 1px 1px 2px 0px rgba(100,0,0,0.6);
	box-shadow: 1px 1px 2px 0px rgba(100,0,0,0.6);
	border-color: #fff;
}
.file-input-label {
	display: inline-block !important;
    padding: 0px;
	cursor: pointer;
	min-width: 100px;
}
.file-input-label img {
	width: 160px;
	max-width: 50vw;
	display: inline-flex !important;
	height: auto;
	margin: 0px 10px 5px 0px;
	border: 1px solid #ccc;
	padding: 2px;
}
.file-input-label audio {
	display: block !important;
	min-height: 2.5em;
	height: auto !important;
}
.file-input-label a.btn {
	background-color: #0089B8;
	color: #fff;
	text-align: center;
	padding: 5px 20px;
	min-width: 150px;
	border: none;
	border-radius: 2px;
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
}
.file-preview {
	margin: 10px 0px;
}
.next_previous_submit {
	text-align: right;
	display: block;
}
.next_previous_submit a, .next_previous_submit input {
	background-color: #C4C4C4;
	text-align: center;
	padding: 8px 40px;
	min-width: 135px;
	border: none;
	border-radius: 20px;
	color: #000;
	margin: 5px 0px 15px 25px;
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
}
.next_previous_submit .bt-primary {
	background-color: #0089B8;
	color: #fff;
}
.next_previous_submit .bt-primary:hover, .file-input-label a.btn:hover {
	background-color: #1C597C;
}

.survey-banner {
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 2;
	width: 100%;
	min-height: 100vh;
}
.survey-header {
	padding: 25px;
	color: #333;
	text-align: center;
}
.survey-header h3 {
	font-family: 'Open Sans semibold', sans-serif;
	font-weight: normal;
	font-size: 25px;
	margin-bottom: 7px;
}
.survey-header span {
	font-size: 13px;
}

.survey-title {
	margin: 0px 30px;
	padding: 25px 5px 10px;
	border-bottom: 1px solid rgba(0,0,0,0.2);
}
.survey-title:before {
	content: '';
	height: 30px;
	width: 8px;
	background-color: #1C597C;
	position: absolute;
	top: 60px;
	left: -1px;
}
.survey-title h4 {
	font-size: 13px;
	font-family: 'Open Sans semibold', sans-serif;
	margin-bottom: 3px;
	color: #000;
}
.survey-title span {
	font-size: 12px;
	color: #666;
}
.survey-title p {
	font-size: 12px;
	color: #000;
	margin: 6px 0px;
}

.footer {
	margin-top: 10vh;
	text-align: center;
	position: relative;
	background-repeat: no-repeat;
	background-position: bottom center;
	background-size: 100% auto;
	height: 20vh;
	min-height: 165px;
}
.footer-bg {
	position: absolute;
	bottom: 0px;
	z-index: 1;
	left: 0px;
	height: 100%;
	width: 100%;
	text-align: center;
	overflow: hidden;
}
.footer-bg img {
	width: 100%;
	min-height: 100%;
}
.footer .footer-content {
	position: absolute;
	bottom: 30px;
	z-index: 9;
	left: 0px;
	width: 100%;
	text-align: center;
	color: #fff;
	font-size: 13px;
}
.footer .footer-content a { 
	color: #fff !important;

}
.footer .footer-content img {
	height: 35px;
	margin: 16px;
}
.take-finish { 
	text-align: center; 
}
.take-finish img{
	width: 20vw;
	min-width: 200px;
	margin: 20px auto 10px;
	height: auto;
}
.take-finish h1 {
	font-family: 'Open Sans semibold', sans-serif;
	font-weight: normal;
	font-size: 29px;
	margin: 10px auto;	
}
.take-finish p {
	font-size: 16px;
	max-width: 300px;
	margin: 20px auto;
}
.survey-ans select {
	width: 100%;
	max-width: 450px;
	padding: 8px 5px;
	border: 1px solid #ccc;
}


table.table-questions {
	border: none;
	min-width: 100%;
	/*table-layout: fixed;*/
}
table.table-questions > thead > tr > th {
	font-weight: normal;
	border: 1px solid #ddd;
	border-top: none;
	padding: 5px 1em;
	font-family: 'Open Sans bold', sans-serif;
	color: rgba(0, 0, 0, 0.5);
	font-size: 13px;
	min-width: 200px;
	white-space: nowrap;
  	/*overflow: hidden;*/
  	/*text-overflow: ellipsis;*/
}
table.table-questions > tbody > tr > td {
	border: 1px solid #ddd;
	border-bottom: none;
	padding:0.4em 1em;
}
table.table-questions > thead > tr > th:first-child, table.table-questions > tbody > tr > td:first-child {
	border-left: none;
}
table.table-questions > thead > tr > th:last-child, table.table-questions > tbody > tr > td:last-child {
	border-right: none;
}
.survey-ans .table-questions input[type="text"], .survey-ans .table-questions input[type="number"], .survey-ans .table-questions select {
	border: none;
	margin: 0px;
}
.survey-ans > p {
	margin: 0px;
}
.survey-ans .table-questions p, .survey-ans .table-questions label {
	margin: 0px !important;
}
.survey-ans .table-questions p {
	font-size: 11px;
}

table.table-questions > tbody > tr > td {
	white-space: normal;   
  	width: auto;
  	
}

.geoMapLocationPicker {
	width: 100%;
	height: 400px;
}



/* Survey answer done preview */
.survey-done {

}
.survey-body.survey-done div.survey-section-header, .survey-body.survey-done a.nx_p_section {
	display: none !important;
}
.survey-body .survey-question.deactivate-question {
	display: none;
}
.survey-body.survey-done input[type="submit"] {
	display: inline-block !important;
}
.survey-body.survey-done .survey-section {
	display: block !important;
	margin: 0px !important;
	padding: 0px !important;
}
.survey-body.survey-done .survey-ans input, .survey-body.survey-done .survey-ans select, .survey-body.survey-done .survey-ans textarea {
	border-color: transparent !important;
}
.survey-body.survey-done .survey-question {
	margin: 0px 4vw;
}

/* With responses */
.p-answer {
	border-bottom: 1px dashed rgba(0, 0, 255, 0.1);
	margin-bottom: 8px !important;
	display: inline-block;
}
td > .p-answer {
	font-size: 1.1em !important;
	padding: 5px 8px;
	border: none;
}

.addtablerow {
	float: right;
}
.removetablerow {
	color: #aa0000;
}

@media screen and (max-width: 480px) {
    .survey-body{
    	width: 100%;
    	padding: 10px 0px;
    }  
    .survey-question {
    	margin: 20px 15px;
    }
}