.survey {
    font-family: Arial,sans-serif;
    font-weight: 500;
    line-height: 1.1;
	color: #555;
}

.survey select {
	border: 1px solid #ccc;
}

.survey h2 {
	margin-bottom: 15px;
}

.survey .answer {
	padding: 5px 0px 5px 0px;
	background-color: #fff;
}

.survey .error {
	margin-bottom: 10px;
	color: #ff4444;
	background-color: #fff;
	padding: 5px;
}

.survey .question, .survey .response {
	border: 2px dotted #7d9128;
	margin-bottom: 10px;
	padding: 10px;
	background-color: #eee;
}

.survey .dropdown_choice select {
	width: 100%;
}

.survey .question .progressbar {
  	border-radius: 13px; /* (height of inner div) / 2 + padding */
  	padding: 3px;
  	margin-bottom: 10px;
  	background-color: #555;
  	overflow: hidden;
  	text-overflow: ellipsis;
  	position: relative;
}

.survey .question .progressbar > div {
	background-color: orange;
	height: 20px;
	border-radius: 10px;
}

.survey .question .progressbar > div > span {
	box-sizing: border-box;
	color: #fff;
	display: inline-block;
	font-weight: bold;
	line-height: 20px;
	margin-left: 10px;
	overflow: hidden;
	position: absolute;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 98%;
}

.survey input[type=checkbox]:not(old),
.survey input[type=radio   ]:not(old){
  width     : 2em;
  margin    : 0;
  padding   : 0;
  font-size : 1em;
  opacity   : 0;
}

.survey input[type=checkbox]:not(old) + label,
.survey input[type=radio   ]:not(old) + label{
  margin-left  : -2em;
  line-height  : 1.5em;
}

.survey input[type=checkbox]:not(old) + label > span:first-child,
.survey input[type=radio   ]:not(old) + label > span:first-child{
  display          : inline-block;
  width            : 0.875em;
  height           : 0.875em;
  margin           : 0.25em 0.5em 0.25em 0.25em;
  border           : 0.0625em solid rgb(192,192,192);
  border-radius    : 0.25em;
  background       : rgb(224,224,224);
  background-image :    -moz-linear-gradient(rgb(240,240,240),rgb(224,224,224));
  background-image :     -ms-linear-gradient(rgb(240,240,240),rgb(224,224,224));
  background-image :      -o-linear-gradient(rgb(240,240,240),rgb(224,224,224));
  background-image : -webkit-linear-gradient(rgb(240,240,240),rgb(224,224,224));
  background-image :         linear-gradient(rgb(240,240,240),rgb(224,224,224));
  vertical-align   : bottom;
}

.survey input[type=checkbox]:not(old):checked + label > span:first-child,
.survey input[type=radio   ]:not(old):checked + label > span:first-child{
  background-image :    -moz-linear-gradient(rgb(224,224,224),rgb(240,240,240));
  background-image :     -ms-linear-gradient(rgb(224,224,224),rgb(240,240,240));
  background-image :      -o-linear-gradient(rgb(224,224,224),rgb(240,240,240));
  background-image : -webkit-linear-gradient(rgb(224,224,224),rgb(240,240,240));
  background-image :         linear-gradient(rgb(224,224,224),rgb(240,240,240));
}

.survey input[type=checkbox]:not(old):checked + label > span:first-child:before{
	  content     : '✓';
	  display     : block;
	  width       : 1em;
	  color       : rgb(103,204,52);
	  font-size   : 0.875em;
	  line-height : 1em;
	  text-align  : center;
	  text-shadow : 0 0 0.0714em rgb(115,153,77);
	  font-weight : bold;
	}

.survey input[type=radio]:not(old):checked + label > span > span:first-child{
	  display          : block;
	  width            : 0.5em;
	  height           : 0.5em;
	  margin           : 0.125em;
	  border           : 0.0625em solid rgb(115,153,77);
	  border-radius    : 0.125em;
	  background       : rgb(153,204,102);
	  background-image :    -moz-linear-gradient(rgb(179,217,140),rgb(153,204,102));
	  background-image :     -ms-linear-gradient(rgb(179,217,140),rgb(153,204,102));
	  background-image :      -o-linear-gradient(rgb(179,217,140),rgb(153,204,102));
	  background-image : -webkit-linear-gradient(rgb(179,217,140),rgb(153,204,102));
	  background-image :         linear-gradient(rgb(179,217,140),rgb(153,204,102));
	}

.survey input[type=submit]{
    background: #7d9128;
    color: #fff;
	font-weight: bold;
    height: 30px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    border: 1px solid #999;
}

.survey .free_choice textarea {
	width: 100%;
}

input.free_choice_input, textarea.free_choice_input {
	width: calc(100% - 3em);
} 

.survey .free_choice .answer{
	padding: 5px 10px 5px 5px;
}

/* Pagination */

.survey ul.survey_pagination {
	list-style-type: none;
	margin-top: 10px;
}

.survey ul.survey_pagination li {
	display: inline;
}

.survey ul.survey_pagination li.active a {
	text-decoration: underline;
}

.survey .survey_page {
	display: none;
}

.survey .survey_page.page1 {
	display: block;
}