a.btn,
a.btn-block,
a.btn-block-small,
input[type="submit"],
button[type="submit"]
{
	color: white;
	padding: 0 40px;
	text-align: center;
	border: none;
	height: 29px;
}

a.btn-block-small
{
	padding: 0 20px;
}

input.button40,
button.button40
{
	height:40px;
}
input.grey,
button.grey
{
	background-color: #9c9e9f !important;
}

a.btn-block,
a.btn-block-small
{
	line-height: 29px;
	display: inline-block;
}

.upper{
	text-transform: uppercase;
}

.lower{
	text-transform: lowercase;
}

.capitalize{
	text-transform: capitalize;
}

/* Remove styling from placeholder */
.upper::placeholder,
.lower::placeholder,
.capitalize::placeholder {
	text-transform: none;
}

fieldset.default
{
	padding: 10px;
	margin-bottom: 20px;
}

form div ~ .error-msg
{
	color: #FF0000;
	font-size: 12px;
}

form div ~ .error-msg {
	line-height:30px;
}

.form-upload {
    line-height: 40px;
    padding: 0 10px;
    margin-right: 15px;
    width: 288px;
}

.form-upload.w100
{
	width: 98%;
}

.form-display-full
{
	line-height: 40px;
	padding: 0px 20px;
}

span.error-msg {
  display: block;
  color: red;
  line-height: 40px;
  text-indent: 10px;
}

.form-display-full,
.form-checkbox-full,
.form-textarea-full,
.form-select-full ,
.form-wrapper-full {
    border: 1px solid #d0d0cf;
    border-radius: 6px;
    min-height: 40px;
    font-size: 14px;
}

.form-checkbox-full a {
    color: initial;
}

.form-display-full img
{
	vertical-align: middle;
}

.action-status
{
	font-size: 14px;
	padding: 10px;
}

.form-upload
{
	border: 1px solid #d0d0cf;
	border-radius: 6px;
	padding: 9px;
  	line-height: 0;
	font-size:14px;
    position: relative;
}

.form-upload input
{
    width: 270px;
}

.form-upload span.required
{
    position: absolute;
    right: 10px;
    font-size: 20px;
    line-height: normal;
}

.form-upload img
{
	max-width: 288px;
}

.form-upload a.block
{
	line-height: 24px;
	display: block;
}

.form-select-full select {
	outline            : 0;
	width              : 98%;
	border             : 0;
	padding            : 12px 20px;
	border-radius      : 6px;
	appearance         : none;
	-moz-appearance    : none;
	-webkit-appearance : none;
	background         : #ffffff url('../images/point-down-icon.png') no-repeat right;
}

.form-checkbox-full label,
.form-upload label
{
	line-height: 40px;
	height:auto;
	padding: 0 40px 0 20px;
	display: block;
}

.form-checkbox-full .first, .form-checkbox-full .second
{
	width:150px;
	line-height: 40px;
	float:left;
}
.form-checkbox-full .first
{
	padding-left:10px;
}

.form-checkbox-full.checkbox-button
{
	position: relative;
}

.form-checkbox-full.checkbox-button input[type=radio],
.form-checkbox-full.checkbox-button input[type=checkbox]
{
	position: absolute;
	right:20px;
	top: 50%;
	margin-top: -6px;
}

.form-checkbox-full.checkbox-button label:hover {
	color: #333;
}

.form-checkbox-full.checkbox-button label:hover,
.form-checkbox-full.checkbox-button input:hover
{
	cursor: pointer;
}

.form-checkbox-full.checkbox-list-wrapper
{
	padding: 20px 0 5px 0;
}

.title-label
{
	padding: 0 20px;
	font-weight:bold;
}

.form-checkbox-full.checkbox_img .question-label-wrapper label,
.form-wrapper-full .title-label
{
	margin: 0 5px 10px;
	padding: 0;
}

.form-wrapper-full .title-label
{
	margin-left:0;
}

.form-wrapper-full
{
	margin-bottom: 10px;
	padding: 20px;
}

.form-wrapper-full.form-checkbox-full
{
	padding: 15px;
}

.form-checkbox-full.checkbox-list-wrapper .form-checkbox-full
{
	border: 0;
}

.form-checkbox-full.checkbox-list-wrapper .form-checkbox-full,
.form-checkbox-full.checkbox-list-wrapper .form-checkbox-full label
{
	line-height:25px;
	min-height:25px;
	margin: 10px 0 !important;
}

.form-textarea-full textarea
{
	outline: 0;
	border: 0;
	border-radius: 7px;
	padding: 20px;
	min-height: 160px;
	height: auto;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: block;
}

.form-textarea-full textarea.short
{
	height: 90px !important;
}

.form-textarea-full textarea
{
	resize: vertical;
}

.form-text-full input::-webkit-input-placeholder,
.form-textarea-full textarea::-webkit-input-placeholder { /* WebKit browsers */
color:    #000;
}
.form-text-full input:-moz-placeholder,
.form-textarea-full textarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    #000;
   opacity:  1;
}
.form-text-full input::-moz-placeholder,
.form-textarea-full textarea::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #000;
   opacity:  1;
}
.form-text-full input:-ms-input-placeholder,
.form-text-full textarea:-ms-input-placeholder { /* Internet Explorer 10+ */
   color:    #000;
}
.form-text-full,
.form-file-full {
	position: relative;
	border: 1px solid #d0d0cf;
	border-radius: 6px;
	min-height: 40px;
	font-size: 14px;
}

.form-file-full {
	padding: 10px 20px;
}

.form-file-full .question-label-wrapper {
	margin-bottom: 5px;
}

.form-text-full input[type="text"],
.form-text-full input[type="password"],
.form-text-full input[type="email"],
.form-text-full input[type="number"] ,
.form-text-full input[type="date"] {
	height: 38px;
	border: 0;
	border-radius: 5px;
	text-indent: 20px;
}

.form-text-full input[type="date"] {
	text-indent: 10px;
	padding: 10px 0;
	height: 20px;
}
.form-text-full input[disabled] {
    color: #888;
    cursor: not-allowed;
}

.form-text-full input.datepicker ~ img {
	position: absolute;
	top: 30%;
	right: 1.75%;
}

.form-text-full.datepicker-wrapper label {
	padding-left: 20px;
}

.form-text-full input{
	box-sizing: border-box;
	width: calc(100% - 2px);
}

.m20 .form-textarea-full textarea {
	resize: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.form-container-upload.floating {
	padding-top: 5px;
	margin: -5px;
}

.form-container-upload.floating .form-upload {
	width: 284px;
	margin: 3px;
	float: left;
}

.form-upload.withLabel:after,
.form-container-upload.floating:after{
	content: '';
	display: block;
	clear: both;
}

.form-upload.withLabel
{
	position: relative;
	width: 100%;
	padding: 0;
	margin-right: 0;
}

.form-upload.withLabel input
{
	position: absolute;
	right: 9px;
	top: 9px;
}

.form-imageView {
	padding-top: 10px;
	padding-bottom: 10px;
}

.form-imageView img {
	float: right;
}

.form-imageView label {
	text-indent: 20px;
	font-size: 14px;
}

.instructions
{
	margin: 20px 0;
	font-size: 0.9em;
	line-height: 1.4em;
	padding: 0 10px;
}

.form-sub-wrapper
{
	margin-bottom:15px;
}

.form-sub-wrapper .form-wrapper
{
	margin-top: -5px !important;
	line-height: 30px;
	min-height: 30px;
	height: 30px;
	width:95%;
}

.form-sub-wrapper .form-wrapper input
{
	line-height:28px;
	min-height:28px;
	height:28px;
	text-indent: 11px;
}

/**
 * Radio Image and Checkbox Image fields
 */
.checkbox_img label.cbx-img img {
	max-height: 200px;
}

.checkbox_img label.cbx-img
{
	text-align: center;
	float: left;
	position: relative;
	line-height:0.7em;
	margin: 5px;
	min-height:25px;
	vertical-align: top;
}

.checkbox_img  label.cbx-img input
{
	position: absolute;
	top: 6px;
	left: 6px;
	height:auto;
}

.checkbox_img  label.cbx-img img[alt],
.checkbox_img  label.cbx-img .cbx-value-placeholder
{
	line-height: 2em;
	font-size: 0.9em;
	text-indent: 25px;
}

.radio_img img,
.checkbox_img img,
.cbx-value-placeholder
{
	max-width: 100%;
	line-height:1em;
}

form.homedna-survey {
	visibility: hidden;
}

form.homedna-survey[data-initialized] {
	visibility: visible;
}

.homedna-survey p, .homedna-survey div.extra-description {
	margin: 10px 0;
	font-size: 0.9em;
	line-height: 1.4em;
}

.homedna-survey .wrap-question .question-label-wrapper {
	display: block;
}

.homedna-survey .wrap-question .simple-title.title-inline,
.homedna-survey .wrap-question.question-type-header label {
	padding: 0;
	font-weight: normal;
	line-height: normal;
}

.homedna-survey .wrap-question.question-type-radio > div > label,
.homedna-survey .wrap-question.question-type-checkbox_on > div > label,
.homedna-survey .wrap-question.question-type-checkbox > div > label {
	line-height: 25px;
	margin: 10px 0;
	padding: 0 20px;
}

.homedna-survey .wrap-question.question-type-radio > label > br {
	line-height: 30px;
}

.homedna-survey .wrap-question.question-type-radio label input[type="radio"],
.homedna-survey .wrap-question.question-type-checkbox_on label input[type="checkbox"],
.homedna-survey .wrap-question.question-type-checkbox label input[type="checkbox"] {
	margin-top:6px;
}

.homedna-survey .wrap-question label input.other {
	line-height: 28px;
	min-height: 28px;
	height: 28px;
	text-indent: 11px;
	border: 1px solid #d0d0cf;
	border-radius: 5px;
	width: 90%;
}

.homedna-survey .wrap-question .question-label-wrapper label {
	font-weight: bold;
	line-height: 14px;
	font-size: 14px;
}

.homedna-survey .wrap-question.question-type-building_nr .question-label-wrapper,
.homedna-survey .wrap-question.question-type-static .question-label-wrapper,
.homedna-survey .wrap-question.question-type-static .extra-description,
.homedna-survey .survey-submitted-at {
	line-height: 20px;
	height: 40px;
	font-size: 14px;
	width: 100%;
	font-weight: bold;
	padding: 10px 20px;
	border: 1px solid #d0d0cf;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.homedna-survey .wrap-question.question-type-static .extra-description {
	font-weight: normal;
	height: auto;
	padding: 10px 20px;
}

.homedna-survey .wrap-question .form-text-full .question-label-wrapper,
.homedna-survey .wrap-question .form-select-full .question-label-wrapper,
.homedna-survey .wrap-question .form-textarea-full .question-label-wrapper {
	display: none;
	height: auto;
}

.homedna-survey .wrap-question .form-text-full.date .question-label-wrapper
{
	padding: 10px 10px 0;
	display: block;
}

/* Inherit default form styling */
.homedna-survey .wrap-question.question-type-ranking
{
	border: 1px solid #d0d0cf;
	border-radius: 6px;
	min-height: 40px;
	font-size: 14px;

	margin: 10px 0;
	padding: 20px;
}

.homedna-survey .wrap-question.question-type-ranking table
{
	line-height: 1.5em;
}

.homedna-survey .wrap-question.question-type-ranking tr th
{
	font-weight: normal;
	padding: 5px;
	line-height: 1.3em;
}

.homedna-survey .wrap-question.question-type-ranking tbody tr:nth-child(2n+1)
{
	background: #eee;
}

.homedna-survey .wrap-question.question-type-ranking tbody td:first-child
{
	padding-left: 10px;
}

.homedna-survey .wrap-question.question-type-building_nr
{
	margin-top: 10px;
}

.homedna-survey .wrap-question.question-type-header
{
	font-size: 20px;
	margin-top: 30px;
	margin-bottom: 10px;
}

.homedna-survey .wrap-question.has-errors
{
	margin-bottom: 40px;
}

.homedna-survey .wrap-question.has-errors:not([data-type=ranking]) .question-message-container
{
	position: absolute;
	bottom: -30px;
	text-indent: 10px;
	line-height: 30px;
	max-height: 30px;
	overflow: hidden;
}

.homedna-survey .wrap-question
{
	position: relative;
}

.homedna-survey button[type=submit]
{
	margin-top: 20px;
	float: right;
}

.homedna-survey .wrap-question.has-errors .question-message-container
{
	color: #FF0000;
	font-size: 12px;
}

#homedna-survey #formname {
	display: none;
}

.homedna-survey .form-checkbox-full label ~ br
{
	display: none;
}

.checkbox_img label .checkbox-image-name {
    line-height: 2em;
}

#homedna-survey #formPageNav {
    margin-top: 20px;
}

#homedna-survey #formPageNav span[data-page] {
	padding: 3px;
	cursor: pointer;
}

#homedna-survey #formPageNav span.active {
    font-weight: bold;
    border: 1px solid #666;
    border-radius: 3px;
    text-align: center;
    white-space: pre;
}

.homedna-survey input:disabled,
.homedna-survey textarea:disabled,
.homedna-survey select:disabled {
	background-color: transparent;
}

.signature-pad canvas
{
	border: 1px solid rgb(204, 204, 204);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	cursor: crosshair;
}

.signature-pad .signature-reset
{
	padding: 0 5px 10px 10px;
	display: block;
	cursor: pointer;
}
