/* WebKit browsers */
::-webkit-input-placeholder {
    color: #bfbfbf;
    opacity: 1;
    font-weight: normal;
    font-style: italic;
}
/* Mozilla Firefox 19+ */
::-moz-placeholder {
    color: #bfbfbf;
    opacity: 1;
    font-weight: normal;
    font-style: italic;
}
/* Internet Explorer 10+ */
:-ms-input-placeholder {
    color: #bfbfbf !important;
    opacity: 1;
    font-weight: normal !important;
    font-style: italic !important;
}

.form-row {
    display: block;
    margin-bottom: 20px;
}
.form-row.inline {
    display: inline-block;
    width: 225px;
    margin-bottom: 0;
}
.form-row .form-label {
    font-size: 14px;
    color: #262626;
    font-weight: normal;
    display: block;
    position: relative;
    line-height: 22px;
    margin-bottom: 8px;
    padding-right: 30px;
    text-transform: uppercase;
}
.form-row .form-label small {
    font-size: inherit;
    color: #7f7f7f;
    text-transform: none;
}
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    height: 43px;
}
.form-row select {
    width: 100%;
}

/* error state */
/* error text below input */
.form-row .errortext {
    background: #b90919;
    margin: 12px -20px 0 -20px;
    padding: 18px 20px;
    position: relative;
    color: #fff;
    display: none;
}
.form-row .errortext.is-visible {
    display: block;
}
.form-row .errortext:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    width: 0;
    margin: auto;
    border: solid transparent;
    border-bottom-color: #b90919;
    border-width: 5px;
}
/* over-qualification intended */
.form-row .ui-state-error,
.radio-group > .ui-buttonset.ui-state-error,
.radio-group > .ui-buttonset.ui-state-error .ui-button {
    border-color: #b90919;
}
.form-row .ui-state-error:focus {
    border-color: #00c;
}
/* no more required */
/*.form-row .ui-state-error ~ .errortext {
    display: block;
}*/

/* checkbox */
.form-row .checkbox-wrap {
    position: relative;
    margin-bottom: 10px;
}
.form-row .checkbox-wrap:last-child {
    margin-bottom: 0;
}
.form-row .checkbox-wrap .form-label {
    position: relative;
    padding-left: 32px;
    margin-bottom: 0;
    font-size: 14px;
    text-transform: none;
}
.form-row .checkbox-wrap .form-label.uppercase {
    text-transform: uppercase;
}
.form-row .checkbox-wrap label {
    position: relative;
    font-size: 14px;
}
.form-row .checkbox-wrap .form-label:before,
.column table.checkbox-wrap input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 1px solid #bfbfbf;
    border-radius: 2px;
}
.form-row .checkbox-wrap .form-label .svg-icon-tick,
.column table.checkbox-wrap input[type="checkbox"] + label .svg-icon-tick {
    position: absolute;
    left: 5px;
    top: 6px;
    width: 10px;
    height: 10px;
}
.form-row .checkbox-wrap .form-label .svg-icon-tick path,
.column table.checkbox-wrap input[type="checkbox"] + label .svg-icon-tick path {
    fill: #fff;
}
.form-row .checkbox-wrap input[type="checkbox"],
.column table.checkbox-wrap input[type="checkbox"] {
    display: none;
}
.form-row .checkbox-wrap + .show-when-checked {
    display: none;
}
.form-row .checkbox-wrap.is-checked + .show-when-checked {
    display: block;
}
.form-row .checkbox-wrap input[type="checkbox"]:checked + .form-label:before,
.column table.checkbox-wrap input[type="checkbox"]:checked + label:before {
    background-color: #ffc100;
}

.column table.checkbox-wrap {
    width: 100%;
    margin-bottom: 10px;
    table-layout: fixed;
}
.column table.checkbox-wrap td {
    padding: 0 0 8px;
    overflow: hidden;
    text-align: center;
    vertical-align: top;
}
.column table.checkbox-wrap input[type="checkbox"] + label:before {
    position: static;
    display: block;
    margin: 0 auto 6px;
}
.column table.checkbox-wrap input[type="checkbox"] + label .svg-icon-tick {
    margin: auto;
    left: 0;
    right: 0;
}
.column table.checkbox-wrap td:only-child label {
    margin-bottom: 0;
    line-height: 22px;
    overflow: hidden;
}
.column table.checkbox-wrap td:only-child input[type="checkbox"] + label {
    padding: 1px 0 0 32px;
}
.column table.checkbox-wrap td:only-child input[type="checkbox"] + label:before {
    position: relative;
    left: auto;
    top: 5px;
    margin: 0 8px 0 -32px;
    display: inline-block;
}
.column table.checkbox-wrap td:only-child input[type="checkbox"] + label .svg-icon-tick {
    left: 5px;
    top: 11px;
    right: auto;
}
.column table.checkbox-wrap td:only-child {
    text-align: left;
}
.column table.checkbox-wrap td:only-child input {
    float: left;
    margin: 4px 14px 0 0;
}

/* datepicker */
.form-row.datepicker .form-label {
    z-index: 1;
}
.form-row.datepicker .input-wrap {
    position: relative;
    height: 43px;
}
/* @see http://stackoverflow.com/questions/1708654/using-positionabsolute-to-set-an-inputs-width */
.form-row.datepicker .input-wrap > div {
    position: absolute;
    left: 0;
    top: 0;
    right: 50px;
}

/* Form row block */
.form-row-block {
    display: block;
    border-radius: 5px;
    margin-top: 14px;
    /* not possible due to overflowing error messages, only in disabled mode */
    /*overflow: hidden;*/
}
.form-row-block.is-disabled {
    overflow: hidden;
}
.form-row-block > .form-row {
    min-height: 50px;
}
.form-row-block > .form-row .form-label {

}
.form-row-block .value-clone {
    font-weight: bold;
    display: none;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.form-row-block .svg-icon-edit {
    display: none;
}
.form-row-block.is-disabled {
    border: 1px solid #bfbfbf;
}
.form-row-block.is-disabled > .form-row {
    border-top: 1px solid #bfbfbf;
    padding: 12px 16px;
    margin: 0;
}
.form-row-block.is-disabled > .form-row:first-child {
    border-top: 0;
}
.form-row-block.is-disabled > .form-row .form-label {
    cursor: default;
    color: #7f7f7f;
}
.form-row-block.is-disabled > .form-row .form-label .svg-icon-help {
    right: 0;
    cursor: pointer;
}
.form-row-block.is-disabled > .form-row .form-label .input-value-unit {
    display: none;
}
.form-row-block.is-disabled > .form-row input[type="text"],
.form-row-block.is-disabled > .form-row input[type="password"],
.form-row-block.is-disabled > .form-row input[type="number"],
.form-row-block.is-disabled > .form-row input[type="tel"],
.form-row-block.is-disabled > .form-row input[type="email"],
.form-row-block.is-disabled > .form-row textarea {
    display: none;
}
.form-row-block.is-disabled .value-clone {
    display: block;
}
.form-row-block.is-disabled .svg-icon-edit {
    display: block;
}
.form-row-block.is-disabled .svg-icon-delete {
    display: none;
}
.form-row-block.is-disabled .helptext {
    width: auto;
    margin-left: -16px;
    margin-right: -16px;
    margin-top: -12px;
}
.form-row-block.is-disabled .errortext {
    width: auto;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -12px;
}
.form-row-block.is-disabled > .form-row:first-child .helptext {
    margin-top: -12px;
}
.form-row-block.is-disabled .helptext-inner {
    padding-right: 30px;
}
.form-row-block.is-disabled .helptext:after {
    right: 22px;
}
.form-row-block.is-disabled .helptext .svg-icon-close {
    right: 12px;
}

/* Help icon */
.form-row .form-label .svg-icon-help {
    position: absolute;
    top: 0;
    right: 12px;
    width: 22px;
    height: 22px;
    /* if the label is without for-attribute */
    cursor: pointer;
}
.form-row .form-label .svg-icon-help path {
    fill: #bfbfbf;
}
.form-row .form-label .svg-icon-help:hover path {
    fill: #262626;
}
/* calendar icon */
.form-row .form-label .svg-icon-calendar {
    position: absolute;
    right: 12px;
    bottom: -40px;
    width: 24px;
    height: 24px;
}
.form-row .form-label .svg-icon-calendar path {
    fill: #ffc100;
}
/* input unit */
.form-row .form-label .input-value-unit {
    position: absolute;
    right: 12px;
    bottom: -42px;
    color: #bfbfbf;
    cursor: text;
    text-transform: none;
}
.form-row .form-label .input-value-unit.type-2 {
    right: 60px;
}

/* info text above form label */
.form-row .helptext {
    position: relative;
    background: #bfbfbf;
    color: #fff;
    margin: 0 -20px 20px -20px;
    padding: 18px 20px;
    display: none;
}
.form-row .helptext:after {
    position: absolute;
    content: '';
    top: 100%;
    right: 40px;
    border: solid transparent;
    border-top-color: #bfbfbf;
    border-width: 5px;
    pointer-events: none;
}
.form-row .helptext.is-visible {
    display: block;
}
.form-row .helptext .helptext-inner {
    padding-right: 50px;
}
.form-row .helptext .svg-icon-close {
    position: absolute;
    right: 28px;
    top: 5px;
    width: 20px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
}
.form-row .helptext .svg-icon-close path {
    fill: #fff;
}
.form-row .helptext .svg-icon-close:hover path {
    fill: #262626;
}

/* info text below input */
.form-row .infotext {
    background: #ffdf7f;
    margin: 12px -20px 0 -20px;
    padding: 18px 20px;
    position: relative;
    color: #3f3f3f;
}
.form-row .infotext:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    width: 0;
    margin: auto;
    border: solid transparent;
    border-bottom-color: #ffdf7f;
    border-width: 5px;
}

/* Button group */
.form-row.double-btn {
    display: table;
    width: 100%;
    table-layout: fixed;
}
.form-row.double-btn .content-left,
.form-row.double-btn .content-right {
    display: table-cell;
    vertical-align: top;
}
.form-row.double-btn .content-left {
    border-right: 1px solid #fff;
}
.form-row.double-btn .btn {
    display: block;
    width: 100%;
}
.form-row.double-btn .content-left .btn {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
.form-row.double-btn .content-right .btn {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
.form-row.double-btn .content-left:only-child .btn {
    border-bottom-right-radius: 2.5em;
    border-top-right-radius: 2.5em;
}
.form-row.double-btn .content-right:only-child .btn {
    border-bottom-left-radius: 2.5em;
    border-top-left-radius: 2.5em;
}

/* product configuration - optional products */
.optional-products {
    position: relative;
    padding: 20px;
}
.optional-products > .box-col:first-child {
    text-transform: uppercase;
    display: block;
    margin: 0 0 12px;
    font-weight: normal;
}
.optional-products > span {
    position: relative;
    display: block;
}