/* FORMS */

.form-object {
    margin-bottom: 15px;
}

.form-object ul.errorlist {
    list-style-type: none;
    color: red;
    padding: 0.6em 1.5em;
    background-color: rgb(255,0,0,0.12);
    margin-top: 6px;
    border-radius: 0.5em;
}

.form-object .errorlist li:before {
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iI0ZGMDAwMCIgY2xhc3M9ImJpIGJpLWV4Y2xhbWF0aW9uLWNpcmNsZSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOCAxNUE3IDcgMCAxIDEgOCAxYTcgNyAwIDAgMSAwIDE0em0wIDFBOCA4IDAgMSAwIDggMGE4IDggMCAwIDAgMCAxNnoiLz48cGF0aCBkPSJNNy4wMDIgMTFhMSAxIDAgMSAxIDIgMCAxIDEgMCAwIDEtMiAwek03LjEgNC45OTVhLjkwNS45MDUgMCAxIDEgMS44IDBsLS4zNSAzLjUwN2EuNTUyLjU1MiAwIDAgMS0xLjEgMEw3LjEgNC45OTV6Ii8+PC9zdmc+Cg==");
    color: red;
    position: relative;
    top: 2px;
    margin-right: 1rem;
}

ul.errorlist.nonfield {
    list-style-type: none;
    color: red;
    padding: 1rem 2rem;
    box-shadow: 0 0 8px red;
    border-radius: 15px;
}

.errorlist.nonfield li:before {
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iI0ZGMDAwMCIgY2xhc3M9ImJpIGJpLWV4Y2xhbWF0aW9uLWNpcmNsZSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOCAxNUE3IDcgMCAxIDEgOCAxYTcgNyAwIDAgMSAwIDE0em0wIDFBOCA4IDAgMSAwIDggMGE4IDggMCAwIDAgMCAxNnoiLz48cGF0aCBkPSJNNy4wMDIgMTFhMSAxIDAgMSAxIDIgMCAxIDEgMCAwIDEtMiAwek03LjEgNC45OTVhLjkwNS45MDUgMCAxIDEgMS44IDBsLS4zNSAzLjUwN2EuNTUyLjU1MiAwIDAgMS0xLjEgMEw3LjEgNC45OTV6Ii8+PC9zdmc+Cg==");
    color: red;
    position: relative;
    top: 2px;
    margin-right: 1rem;
}

.form-files label {
    width: 100%;
    margin-bottom: 0;
}

.form-files input:focus {
    outline: none;
}

.form-files-name {
    border: none;
    padding: 0 1rem;
}

.form-float-label {
    display: block;
    position: relative;
}

.form-float-label .invalid {
    box-shadow: inset 0 1px 1px red, 0 0 8px red;
}

.form-float-label label,
.form-float-label>span {
    position: absolute;
    left: 5px;
    top: 2px;
    cursor: text;
    font-size: 75%;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}


.form-float-label textarea {
    width: 100%;
}

.survey-text-input {
    font-size: inherit;
    height: 2.5em !important;
    border-radius: 0.5rem;
    border: 2px solid #7351E2;
}

.form-float-label input,
.form-float-label select {
    font-size: inherit;
    height: 2.5em !important;
    border-radius: 0.5rem;
    border: 2px solid #7351E2;
}

.form-float-label select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-top: 0.75em;
}

.form-float-label input {
    padding-top: 1em;
}


.form-float-label textarea {
    font-size: inherit;
    padding-top: 1em;
    border-radius: 0.5rem;
    border: 2px solid #7351E2;

}

.form-float-label input::-webkit-input-placeholder,
.form-float-label select::-webkit-input-placeholder,
.form-float-label textarea::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.form-float-label input::-moz-placeholder,
.form-float-label select::-moz-placeholder,
.form-float-label textarea::-moz-placeholder {
    opacity: 1;
    transition: all .2s;
}

.form-float-label input:-ms-input-placeholder,
.form-float-label select:-ms-input-placeholder,
.form-float-label textarea:-ms-input-placeholder {
    opacity: 1;
    transition: all .2s;
}

.form-float-label input::placeholder,
.form-float-label select::placeholder,
.form-float-label textarea::placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.form-float-label input:placeholder-shown:not(:focus)::-webkit-input-placeholder,
.form-float-label select:placeholder-shown:not(:focus)::-webkit-input-placeholder,
.form-float-label textarea:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0;
}

.form-float-label input:placeholder-shown:not(:focus)::-moz-placeholder,
.form-float-label select:placeholder-shown:not(:focus)::-moz-placeholder,
.form-float-label textarea:placeholder-shown:not(:focus)::-moz-placeholder {
    opacity: 0;
}

.form-float-label input:placeholder-shown:not(:focus):-ms-input-placeholder,
.form-float-label select:placeholder-shown:not(:focus):-ms-input-placeholder,
.form-float-label textarea:placeholder-shown:not(:focus):-ms-input-placeholder {
    opacity: 0;
}

.form-float-label input:placeholder-shown:not(:focus)::placeholder,
.form-float-label select:placeholder-shown:not(:focus)::placeholder,
.form-float-label textarea:placeholder-shown:not(:focus)::placeholder {
    opacity: 0;
}

.form-float-label input:placeholder-shown:not(:focus)+*,
.form-float-label select:placeholder-shown:not(:focus)+* {
    font-size: 110%;
    opacity: .5;
    top: .40em;
    left: 1em;
}

.form-float-label textarea:placeholder-shown:not(:focus)+* {
    font-size: 110%;
    opacity: .5;
    top: .40em;
    left: 1em;
}

.form-float-label input:focus,
.form-float-label select:focus,
.form-float-label textarea:focus {
    outline: none;
    border-color: #7351E2;
}

.form-float-label select {
    padding-right: 1em;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.5em bottom 0.25em;
    background-size: 8px 10px;
}


/* CLOSE ICON IN SEARCH BOX */
.form-float-label .close-icon {
    border: 1px solid transparent;
    background-color: transparent;
    display: inline-block;
    vertical-align: middle;
    outline: 0;
    cursor: pointer;

    position: absolute;
    top: 8px;
    right: 1px;
}

.form-float-label .close-icon:after {
    content: "✕";
    display: block;
    width: 20px;
    height: 20px;
    background-color: #7351E2;
    padding-top: 1px;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-weight: normal;
    font-size: 12px;
    box-shadow: 0 0 2px #7351E2;
    cursor: pointer;
}

.form-control:not(:valid)~.close-icon {
    display: none;
}

/* CUSTOM CHECK BOX */
.span_pseudo,
.chiller_cb span:before,
.chiller_cb span:after {
    content: "";
    display: inline-block;
    background: #fff;
    width: 0;
    height: 0.2rem;
    position: absolute;
    transform-origin: 0% 0%;
}

.chiller_cb {
    position: relative;
    display: flex;
    align-items: center;
}

.chiller_cb input {
    display: none;
}

.chiller_cb input.invalid~span {
    box-shadow: inset 0 1px 1px red, 0 0 8px red;
}

.chiller_cb input:checked~span {
    background: #7351E2;
    border-color: #7351E2;
}

.chiller_cb input:checked~span:before {
    width: 1rem;
    height: 0.15rem;
    transition: width 0.1s;
    transition-delay: 0.3s;
}

.chiller_cb input:checked~span:after {
    width: 0.4rem;
    height: 0.15rem;
    transition: width 0.1s;
    transition-delay: 0.2s;
}

.chiller_cb input:disabled~span {
    background: #ececec;
    border-color: #dcdcdc;
}

.chiller_cb input:disabled~label {
    color: #dcdcdc;
}

.chiller_cb input:disabled~label:hover {
    cursor: default;
}

.chiller_cb label {
    padding-left: 2rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin-bottom: 0;
}

form .helptext {
    padding-left: 2.25rem;
}

.chiller_cb span {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #7351E2;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.2s;
    z-index: 1;
    box-sizing: content-box;
}

.chiller_cb span:before {
    transform: rotate(-55deg);
    top: 1rem;
    left: 0.37rem;
}

.chiller_cb span:after {
    transform: rotate(35deg);
    bottom: 0.35rem;
    left: 0.2rem;
}

.form-radio-label {
    font-size: 75%;
}

.form-radio-input {
    position: relative;
    padding: 0 6px;
    margin: 1px 0 0;
}

.form-radio-input input[type='radio'] {
    display: none;
}

.form-radio-input label {
    color: #666;
    font-weight: normal;
}

.form-radio-input label:before {
    content: " ";
    display: inline-block;
    position: relative;
    top: 5px;
    margin: 0 5px 0 0;
    width: 20px;
    height: 20px;
    border-radius: 0.5rem;
    border: 2px solid #7351E2;
    background-color: transparent;
}

.form-radio-input input[type=radio]:checked+label:after {
    border-radius: 0.5rem;
    width: 12px;
    height: 12px;
    position: absolute;
    top: 9px;
    left: 10px;
    content: " ";
    display: block;
    background: #7351E2;
}

.form-radio-input-button-inline {
    display: flex;
    flex-flow: row wrap;
}

.form-radio-input-button {
    flex: 1;
    margin: 0.5rem;
}

.form-radio-input-button:first-of-type {
    margin-left: 0;
}

.form-radio-input-button:last-of-type {
    margin-right: 0;
}

@media only screen and (max-width: 700px) {
    .form-radio-input-button-inline {
        flex-direction: column;
    }

    .form-radio-input-button {
        margin: 0.5rem 0 !important;
    }
}

.form-radio-input-button input[type="radio"] {
    display: none;

    &:not(:disabled)~label {
        cursor: pointer;
    }

    &:disabled~label {
        color: hsla(150, 5%, 75%, 1);
        border-color: hsla(150, 5%, 75%, 1);
        box-shadow: none;
        cursor: not-allowed;
    }
}

.form-radio-input-button label {
    height: 100%;
    display: block;
    background: white;
    border: 2px solid #7351E2;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0;
    text-align: center;
    /*box-shadow: 0px 3px 10px -2px hsla(150, 5%, 65%, 0.5);*/
    position: relative;
}

.form-radio-input-button label:hover {
    color: #fff;
    background: #7351E2
}

.form-radio-input-button label h6 {
    margin-bottom: 0;
    font-size: 1rem;
}

.form-radio-input-button label p {
    margin-bottom: 0;
    font-size: 0.75em;
}

.form-radio-input-button input[type="radio"]:checked+label {
    background: #7351E2;
    color: #fff;
}


/* MULTISTEP FORMS */

/* Hide all steps by default: */
.form-tab {
    display: none;
}

/* Make circles that indicate the steps of the form: */
.form-tab-step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

/* Mark the active step: */
.form-tab-step.active {
    background-color: #7351E2;
    opacity: 0.8;
}

/* Mark the steps that are finished and valid: */
.form-tab-step.finish {
    background-color: #7351E2;
    opacity: 0.5;
}

/* This overload autocomplete design of Jquery-UI CSS */
.ui-menu {
    z-index: 9999;
    font-family: inherit;
}

.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background: #7351E2 !important;
    font-weight: bold !important;
    color: #ffffff !important;
}


/* Multiple select - see jquery.multi-select.js */
.ms-container {
    width: unset !important;
}

ul.ms-list {
    border: 2px solid #7351E2 !important;
    border-radius: 0.5rem !important;
}
