/*

    Authors: Adrian Demleitner, Jan Dellsperger, Cyril Mouttet
    E-Mail: a.demleitner@cloudtec.ch, j.dellsperger@cloudtec.ch, c.mouttet@cloudtec.ch
    2017 (c) cloudtec.ch

    Luna Form Styles for Front & Backend

 */

.hidden {
    display: none !important;
}

form h2, h2.events {
    border-bottom: 1px solid #e4e8eb;
    padding-bottom: 20px;
    margin-bottom: 40px !important;
    margin-top: 40px;
    font-size: 22px;
    font-weight: normal;
}
form .title-row h2, .title-row h2 {
    border-bottom: none;
}
.form-field h3 {
    margin-top: 20px;
    font-weight: 400;
}
.form-field h4, form h4 {
    margin-top: 20px;
    font-weight: 400;
}

.form-field {
    font-family: 'Roboto', sans-serif;
    clear: both;
    margin-bottom: 10px;
}
.form-field:after {
    display: block;
    content: '';
    clear: both;
}
.review .form-field {
    margin-bottom: 0;
}
.form-label {
    float: left;
    margin: 0;
    width: 30%;
}
.form-label label {
    display: inline-block;
    vertical-align: top;
    width: 100%;

    margin-top: 11px;
    padding-right: 20px;

    color: #181818;
    font-weight: normal;
    font-size: 14px;
    text-align: right;
}
.review .form-label label {
    color: #999999;
}
.review .form-input p {
    color: #181818 !important;
}
.form-label.is-checkbox label {
    margin-top: 11px;
}
.form-label .field-description {
    display: block;
    margin-top: 11px;
    padding-right: 20px;
    font-size: 13px;
    line-height: 20px;
    color: #999999;
    text-align: right;
}
.form-label.switch-label label,
.form-label.checkbox-label label {
    margin-top: 5px;
}
.form-label.file-label label {
    margin-top: 26px;
}
.form-input {
    position: relative;
    float: left !important;
    width: 70%;

    /* default */
    /* max-width: 400px; */
}
.form-input > div:not(.checkbox-wrapper) {
    position: relative;
    display: inline-block;
    float: left;
}
.form-input > div.is-checkbox {
    width: auto;
}
.form-input:first-child {
    margin-left: 30%;
}
.form-input.no-indent {
    margin-left: 0;
}
.form-input + .form-input {
    margin-left: 10px;
}
.form-field p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.form-input > p {
    margin-top: 11px !important;
    color: #181818;
    font-size: 14px;
    line-height: 20px;
}
.files-row .form-input > p {
    margin-top: 0 !important;
    padding-bottom: 10px;
}
.form-input > p.file-count {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
.form-input .file-count + ul {
    margin-top: 20px;
}
.form-input > img {
    margin-right: 10px !important;
}
.review .form-input a {
    color: #3570db;
    text-decoration: underline;
}
.review .form-input a:hover {
    text-decoration: none;
}


.form-error:before {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #e65c5c transparent;
    top: -10px;
    left: 10px;
}
.form-error {
    position: relative;
    min-width: 160px;
    margin-top: 5px;
    padding: 10px;
    background-color: #e65c5c;
    color: #ffffff;
}
.form-error > p {
    margin-bottom: 0 !important;
    font-size: 13px;
    color: #fff !important;
}
.form-error > p + p {
    position: relative;
    margin-top: 11px !important;
}
.form-error > p + p:before {
    content: '';
    display: block;
    position: absolute;
    top: -6px;
    left: 0;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.75);
}
.checkbox-container + .form-error {
    clear: both;
}
.form-error.warning:before {
    border-color: transparent transparent #ff9600 transparent;
}
.form-error.warning {
    background-color: #ff9600;
}
.form-error.success:before {
    border-color: transparent transparent #77cc66 transparent;
}
.form-error.success {
    background-color: #77cc66;
}

.input-extension {
    max-width: 500px;
    padding-left: 20px;
}
.input-extension p {
    margin-top: 9px !important;
    color: #999999;
    font-size: 13px;
    line-height: 22px;
}
.switch-label + .form-input .input-extension p {
    margin-top: 3px !important;
}
.switch-input + .input-extension p {
    margin-top: 5px !important;
}
.switch-input + .input-extension {
    margin-left: 20px;
}
.input-extension p > span {
    padding-right: 10px;
    font-size: 13px;
    color: #a3b1bf;
}

.form-button-row, .modal-button-row {
    border-top:1px solid #e5e5e5;
    padding-top:20px;
    padding-bottom:20px;
    margin-top:20px;
}
.form-button-row:after {
    content: '';
    display: block;
    clear: both;
}
.form-button-row > div {
    float: left;
}
.form-button-row > div:first-child {
    text-align: right;
    padding-right: 20px;
    width: 30%;
}
.form-button-row > div:last-child {
    text-align: left;
    width: 70%;
}
.form-button-row > button,
.form-button-row > .button,
.form-button-row > div:last-child {
    margin-left: 30%;
}
.form-button-row.no-indent > button,
.form-button-row.no-indent > .button,
.form-button-row.no-indent > div:last-child {
    margin-left: 0;
}
#filter-section .form-button-row > button,
#filter-section .form-button-row > .button {
    margin-left: 0;
}
.form-button-row > div + div {
    margin-left: 0 !important;
}
.form-button-row > div p {
    float: left;
    line-height: 40px !important;
    margin-bottom: 0 !important;
    margin-left: 10px;
    color: #999999;
}
.form-button-row > div p span {
    padding-right: 10px;
}

.form-top-spacer {
    padding-top:20px;
}
.form-top-spacer-40 {
    padding-top:40px;
}

input[type='text'], input[type='url'], input[type='email'], input[type='password'], textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;

    font-family: 'Roboto', sans-serif;
    color: #181818;

    width: 100%;
    padding: 10px;
    border: 1px solid #e5e5e5;
}
select {}
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
select::-ms-expand {
    display: none;
}
.business-open-interval .select-wrapper {
    width: auto;
}
.select-wrapper:after {
    content: '';
    display: block !important;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 7px;
    height: 5px;
    margin-top: -3px;
    background: url(/bundles/cloudteclunaform/vendor/chosen/chosen-sprite.png) no-repeat -2px -7px !important;
    pointer-events: none;
}
.select-wrapper select {
    width: 100%;
}
.select-wrapper .chosen-container-single .chosen-single div {
    display: none;
}
.relative .fields > div.select-wrapper:after {
    right: 15px;
}
.datatable .select-wrapper {
    min-width: 55px;
}
input[type='text'], input[type='email'], input[type='password'], input[type='date'], input[type='url'], select{
    height: 40px;
}

input[type='text']:focus, input[type='email']:focus, input[type='password']:focus, input[type='date']:focus, input[type='url']:focus, select:focus, textarea:focus {
    border:1px solid #3570db;
}

input:focus ~ span.input-icon {
    border: 1px solid #3570db;
    color: #3570db;
}

textarea{
    height: 100px;
    overflow:hidden;
}

input[type='date']{
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 1px solid #3570db;
}

label.required:after{
    content: ' *';
    color: #ff0000;
}

.label-padding-right{
    padding: 0 20px 0 0;
}

.file-selected{
    display: none;
}

.checkbox-label {
    padding: 0 10px 0 25px;
    position: relative;
    cursor: pointer;
}
.checkbox-container {
    padding-top: 7px;
    padding-bottom: 7px;
}

input[type="radio"],
input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    z-index: -1000;
}

.checkbox-wrapper {
    position: relative;
    margin-top: 7px;
}
.checkbox-wrapper + .checkbox-wrapper:last-child {
    margin-bottom: 15px;
}
.checkbox-wrapper > label {
    cursor: pointer;
}
.radio-wrapper .icon:before,
.checkbox-wrapper .icon:before {
    line-height: 24px;
}
.checkbox-super-wrapper {
    position: relative;
    left: -5px;
    max-width: 605px
}
.checkbox-super-wrapper .checkbox-wrapper {
    margin: 5px;
}
.checkbox-container {
    margin-bottom: -10px;
    padding-bottom: 0;
}
.collapse-checkbox-wrapper {
    width: 100%;
    padding-top: 7px;
}
.collapse-checkbox-wrapper .checkbox-wrapper {
    float: left;
    margin-right: 20px;
    margin-top: 0;
    margin-bottom: 7px;
}
.review .collapse-checkbox-wrapper .checkbox-wrapper {
    margin-top: 9px;
}
.radio-wrapper {
    display: inline-block;
}
input[type="radio"] + label,
input[type="checkbox"] + label {
    position: relative;
    line-height: 22px;
    margin: 2px 0 0 0;

    max-width: none;
    display: inline-block;
    text-align: left;

    font-size: 14px;
    font-weight: 400;
    color: #54687b;
    cursor: pointer;
}
input[type="radio"] + label > a,
input[type="checkbox"] + label > a {
    color: #3570db;
    text-decoration: underline;
}
input[type="radio"] + label > a:hover,
input[type="checkbox"] + label > a:hover {
    text-decoration: none;
}
input[type="radio"] + label {
    margin-bottom: 10px;
    margin-right: 10px;
}
input[type="radio"]:checked + label,
input[type="checkbox"]:checked + label,
input[type="radio"] + label:hover,
input[type="checkbox"] + label:hover {
    color: #151515;
}
input[type="radio"] + label:before,
input[type="checkbox"] + label:before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e4e8eb;
    background-color: #ffffff;
    vertical-align: middle;
    margin-right: 7px;
}
input[type="radio"] + label:before {
    border-radius: 50%;
}
input[type="radio"]:checked + label:before,
input[type="checkbox"]:checked + label:before {
    background-color: #ffffff;
}
input[type="radio"]:focus + label:before,
input[type="checkbox"]:focus + label:before {
    border-color: #3570db;
}
input[type="radio"] + label .icon,
input[type="checkbox"] + label .icon {
    position: absolute;
    margin: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    top: 0;
    left: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
}
input[type="radio"]:checked + label .icon,
input[type="checkbox"]:checked + label .icon {
    opacity: 1;
    visibility: visible;
}

/* form field sizes */
.input-size-xs {
    width: 100%;
    max-width: 80px;
}
.input-size-ms {
    width: 100%;
    max-width: 140px;
}
.input-size-s {
    width: 100%;
    max-width: 220px;
}
.input-size-sm {
    width: 100%;
    max-width: 300px;
}
.input-size-m {
    width: 100%;
    max-width: 360px;
}
.input-size-ml {
    width: 100%;
    max-width: 420px;
}
.input-size-l {
    width: 100%;
    max-width: 480px;
}
.input-size-xl {
    width: 100%;
    max-width: 600px;
}

.date-wrapper {
    max-width: 260px;
}

.form-input .cke {
    width: 100%;
}

#responsibleOrganisationHasChangedAction {
    margin-top: 10px;
}
#responsibleOrganisationHasChangedAction span {
    display: inline-block;
    margin-bottom: 8px;
}

/* chosen */

.chosen-container[id*="time"] {
    width: 124px !important;
}
.chosen-container[id*="time"] ~ .chosen-container[id*="time"] {
    margin-left: 7px !important;
}
.chosen-container-single .chosen-single {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 0 0 10px !important;
    height: 40px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0px !important;
    background: #fafafa !important;
    color: #222222 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 20px !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}
.chosen-container-single .chosen-single span {
    display: inline-block !important;
    margin-right: 26px !important;
    line-height: 40px !important;
    margin-left: 0px !important;
    padding-left: 0px !important;
}
.chosen-container-active .chosen-single span {
    padding-left: 0 !important;
}
.chosen-container-single .chosen-single input[type=text] {
    left: 0;
}
.chosen-container-active.chosen-with-drop .chosen-single {
    background: #fafafa !important;
    border: 1px solid #2ab5f7 !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}
.chosen-container-single .chosen-single div b {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin-top:6px !important;
    margin-left:2px !important;
    background: url(/bundles/cloudteclunaform/vendor/chosen/chosen-sprite.png) no-repeat 0px 2px !important;
}
.chosen-container .chosen-drop {
    border: 1px solid #2ab5f7 !important;
    border-top: 0 !important;
}
.chosen-container-single .chosen-drop {
    margin-top: -1px !important;
    border-radius: 0 !important;
    background-clip: padding-box !important;
}

.chosen-container-multi .chosen-choices {
    border: 1px solid #e5e5e5;
    background-image: none;
    padding: 3px 6px;
}
.chosen-container-active .chosen-choices {
    border: 1px solid #2ab5f7;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.chosen-container-active.chosen-with-drop .chosen-choices {
    border-bottom: 1px solid white;
}
.chosen-container-multi .chosen-choices li.search-choice {
    background: none;
    padding: 6px 18px 5px 8px;
    border: 1px solid #f2f2f2;
    background-color: #f2f2f2;
    box-shadow: none;
    border-radius: 1px;
}
.chosen-container-multi .chosen-choices li.search-choice:hover {
    background-color: #3570db;
    border-color: #3570db;
    color: white;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    position: absolute;
    top: 6px;
    right: 4px;
    display: block;
    width: 12px;
    height: 12px;
    background: none;
    font-size: 12px;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:after {
    content: '\e827';
    font-family: 'luna';
    color: #181818;
}
.chosen-container-multi .chosen-choices li.search-choice:hover .search-choice-close:after {
    color: #ffffff;
}
.chosen-container-multi .chosen-choices li.search-field input[type=text] {
    min-height: 31px;
    padding-left: 5px;
}

/*

    Tooltip

 */

.tooltip {
    position: relative;
    font-size: 14px;
    line-height: 40px;
    color: #3570db;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}
.is-checkbox + .input-extension {
    padding-left: 0;
    float: left;
}
.is-checkbox + .input-extension > .tooltip {
    /*line-height: 30px;*/
}

.tooltip .tooltip-content {
    position: absolute;
    bottom: 100%;
    left: -13px;
    width: 300px;
    background: #3570db;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 0px;
    line-height: 22px;
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.tooltip .tooltip-content:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 100%;
    left: 17px;
    border-width: 8px 6px 0;
    border-style: solid;
    border-color: #3570db transparent transparent;
}

.tooltip .tooltip-content p {
    margin: 0 !important;
    padding: 0;
    color: white;
}

.tooltip .icon {
    cursor: pointer;
}

.tooltip:hover .icon {
    color: #3570db;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.tooltip .tooltip-content {
    box-shadow: none;
    background-color: #3570db;
    color: white;
}

.tooltip .tooltip-content:after {
    border-color: #3570db transparent transparent;
}

/* file uploader */
.files-row .form-field {
    margin-bottom: 0;
}
.file-upload {
    position: relative;
    text-align: left;
    height: 70px;
    width: 100%;
    background: white;
    border: 2px dashed #d2d7d9;
    font-size: 14px;
    cursor: pointer;

    -webkit-transition: .25s;
    -moz-transition: .25s;
    -ms-transition: .25s;
    -o-transition: .25s;
    transition: .25s;
}
.file-upload.hover,
.file-upload:hover {
    border-color: #3570db;
}

.file-upload input[type="file"]{
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}
.file-upload .upload-text {
    position: relative;
    width: 100%;
    height: 100%;
}

.file-upload .file-upload-inner {
    margin: 0;
    line-height: 70px !important;
    padding-left: 13px;
}

.file-upload:hover .file-upload-inner {
    text-decoration: none;
}
.single-upload + .documents {
    margin-top: 27px;
}
li.document {
    position: relative;
    margin-top: 10px;
    font-size: 14px;
}
li.document:first-child {
    margin-top: 5px;
}
li.document:last-child {
    margin-bottom: 20px;
}
.image_actions a.button-delete,
li.document a.button-delete {
    position: absolute;
    right: 0;

    float: right;
    width: 42px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #a3b1bf;
    color: #a3b1bf;
    background-color: transparent;
    text-align: center;
    font-size: 15px;
    display: inline-block;
    border-radius: 2px;
    margin-top: 0;
    padding: 0;
}
.image_actions a.button-delete {
    position: static;
    float: none;
}
.image_actions a.button-delete:hover,
li.document a.button-delete:hover {
    background: #e65c5c;
    border-color: #e65c5c;
    color: #fff;
    text-decoration: none;
}
li.document .file-name {
    color: #3570db;
    max-width: 500px;
    line-height: 20px;
    margin-top: 0px;
    font-weight: bold;
}
li.document .file-name:hover {
    text-decoration: underline;
}
li.document .meta-information {
    line-height: 20px;
    float: none;
    font-weight: normal;
    color: #8a9399;
    padding: 0 0 0 25px;
}
li.document .meta-information > span {
    margin-right: 5px;
}
li.document .file-preview img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}
[id*="logo"] li.document .file-preview img {
    max-width: 170px;
}
[id*="testimonial"] li.document .file-preview img {
    max-width: 120px;
}

/* file uploader buttonized */
.buttonized {

}
.buttonized .form-label.file-label label {
    margin-top: 16px;
}
.buttonized .file-upload {
    height: auto;
    border: none;
}
.buttonized .file-upload .file-upload-inner {
    display: inline-block;
    height: auto;
    padding-right: 20px;
    line-height: 50px !important;
    font-size: 13px;
    background-color: #a3b1bf;

    -webkit-transition: .25s;
    -moz-transition: .25s;
    -ms-transition: .25s;
    -o-transition: .25s;
    transition: .25s;
}
.buttonized .file-upload .file-upload-inner:hover {
    background-color: #3570db;
}
.buttonized .file-upload .file-upload-inner span {
    color: #ffffff !important;
}
.buttonized .single-upload + .documents {
    margin-top: 15px;
}
.buttonized .is-normal {
    display: none;
}
.buttonized .is-buttonized.hidden {
    display: inline-block !important;
}


/* special form fields */

.switch-input {
    /*max-width: 80px;*/
}

select{
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
}

.input-holder{
    position: relative;
}

.input-icon{
    position: absolute;
    right: 0;
    top: 0;
    bottom: auto;
    margin: auto;
    height: 40px;
    width: 40px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    line-height: 40px;
    color: #a3b1bf;

    pointer-events: none;
}

/* medic search */
.medic-search-row {
    position: relative;
}

.medic-search-row:after {
    content: "";
    height: 0;
    clear: both;
    display: block;
    visibility: hidden;
}

input.medic-search-input-where {
    border-left: 0;
}

.medic-search-button .icon-custom-search {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 40px;
}

.medic-search-list {
    cursor: pointer;
    width: 100%;
    margin-bottom: 0px;
}

.medic-search-list>li {
    float: left;
    width: 100%;
    background-color: #fafafa;
    border-width: 0 1px 1px;
    border-style: solid;
    border-color: #cccccc;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.medic-search-list>li:hover {
    background-color: #e8f7fe;
}

.medic-search-list>li>.row>.g-1-2:first-child {
    border-right: 1px solid #cccccc;
}

.medic-search-result {
    padding: 10px;
}

#main-section > #find_medic_widget > .form-input {
    margin-left: 0;
    margin-bottom: 10px;
}

/* Errors */
.error-holder{
    position: relative;
    padding: 10px;
}

.error-triangle{
    position: absolute;
    height: 0;
    width: 0;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #e65c5c transparent;
    top: -10px;
    left: 10px;
}

.warning-triangle{
    position: absolute;
    height: 0;
    width: 0;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #e5c52f transparent;
    top: -10px;
    left: 10px;
}

/* ------------------------------------------------------------ *\
    Relatives Widget
\* ------------------------------------------------------------ */
.relative > label {
    display: none;
}
.relatives-header > div,
.relative .fields > div,
.relative .fields > select {
    width: 25%;
    float: left;
    padding: 0 5px;
}
.relatives-header {
    background-color: #eaf1ff;
    color: #181818;
    margin-bottom: 10px;
}
.relatives-header > div {
    padding: 5px 5px 5px 10px;
}
.relatives-header:after {
    content: "";
    display: block;
    clear: both;
}
.relative {
    clear: both;
    margin-bottom: 10px;
}
.relative:after {
    content: '';
    display: block;
    clear: both;
}
.relatives-header {
    padding-right: 50px;
}
.relative .fields {
    margin-right: 50px;
}
.relative .fields + .btn {
    float: right;
}
.relative .fields > div:first-child {
    padding-left: 0;
}
.relative .fields > div:last-child {
    padding-right: 0;
}
.relative .generic-custom-select .icon {
    right: 7px;
}
.relative .btn.button-delete {
    padding: 0 9px !important;
    border: 1px solid #eff1f3 !important;
    color: #e4e8eb !important;
    background-color: #ffffff !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    line-height: 38px !important;
    border-radius: 4px;
}
.relative .button-delete:hover {
    color: #ffffff;
    border-color: #e65c5c;
    background-color: #e65c5c !important;
}
.relatives .add-button-wrapper > .form-input:first-child {
    margin-left: 0;
}

/* ------------------------------------------------------------ *\
    Address Widget
\* ------------------------------------------------------------ */
.address-widget {
    margin-top: 20px;
    margin-bottom: 20px;
}
.address-widget h5 {
    font-size: 14px;
    line-height: 40px;
}
.address-widget h5 button {
    margin-left: 20px;
}
.address-widget .address-details {
    display: none;
}
.address-widget .address-details.show {
    display: block;
}
.address-widget .address-new-search {
    display: none;
}
.address-widget .address-new-search.show {
    display: inline-block;
    margin-left: 20px;
    text-decoration: underline;
    color: #3570db;
    font-weight: 400;
}
.address-widget .address-new-search.show:hover {
    text-decoration: none;
}

/* ------------------------------------------------------------ *\
    Find Medic Widget
\* ------------------------------------------------------------ */

.find-medic-widget .form-field.mt0 {
    margin-bottom: 0;
}
.medic-search-row:after {
    content: "";
    height: 0;
    clear: both;
    display: block;
    visibility: hidden;
}

input.medic-search-input-where {
    border-left: 0;
}

button.medic-search-button span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 40px;
}

.medic-search-list {
    cursor: pointer;
    width: 100%;
}
.medic-search-list:after {
    content: '';
    display: block;
    clear: both;
}

.medic-search-list>li {
    float: left;
    width: 100%;
    background-color: #fafafa;
    border-width: 0 1px 1px;
    border-style: solid;
    border-color: #cccccc;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.medic-search-list > li:hover {
    background-color: #e8f7fe;
}
.medic-search-list > li > div {
    width: 50%;
    float: left;
}

.medic-search-list > li > p,
.medic-search-list > li > div {
    padding: 10px 15px 8px;
}
.medic-search-list > li p {
    margin: 0;
}
.medic-search-list > li > div > p:first-child {
    font-size: 13px;
    color: #999;
}
.medic-search-list > li > div > p:last-child {
    font-size: 13px;
}
.medic-search-list > li > div:first-child {
    border-right: 1px solid #cccccc;
}

.medic-search-result {
    width: 50%;
    float: left;
    padding: 10px;
}
.medic-search-limit-wrapper {
    margin-top: 20px;
    clear: both;
}
.medic-search-limit {
    clear: both;
    position: relative;
    padding-left: 30px;

    color: #54687b;
    font-size: 12px;
    line-height: 20px;
}

.medic-search-limit>span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}
.find_medic_result {
    width: 100%;
}
.find_medic_result > div {
    clear: both;
    margin-bottom: 10px;
}
.find_medic_result > div:first-child {
    margin-top: 20px;
}

.find_medic_result > div:after {
    content: '';
    clear: both;
    display: block;
}
.find_medic_result > div > div {
    position: relative;
    width: 50%;
    float: left;
}
.find_medic_result > div > div > img {
    position: absolute;
    top: 0;
    right: 0;
}
.find_medic_result p {
    font-size: 13px;
    line-height: 20px;
}

/* ------------------------------------------------------------ *\
    Buttons
\* ------------------------------------------------------------ */
button, .button, .btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    padding: 0 20px;
    font-size: 13px;
    line-height: 40px;
    font-weight: 700;

    -webkit-transition: .25s;
    -moz-transition: .25s;
    -ms-transition: .25s;
    -o-transition: .25s;
    transition: .25s;
}
.btn {
    padding: 0 20px !important;
    line-height: 50px !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}
.form-input > p > button,
.form-input > p > .button {
    line-height: 20px;
}
.button > span {
    font-size: 11px;
    line-height: 40px;
}
.button > span[class*="icon"] {
    margin-right: 10px;
}

button, .button{
    border: none;
    cursor: pointer;
    padding: 0 20px;
}

button.right,
.button.right{
    margin: 0 0 0 10px;
}

button.left,
.button.left{
    margin: 0 10px 0 0;
}
/* btn sizes */
.button-large {
    line-height: 50px;
}
.button-large > span {
    font-size: 14px;
    line-height: 50px;
}
.button-xl {
    width: 100%;
    font-size: 15px;
    line-height: 60px;
}
.button-xl > span {
    font-size: 15px;
    line-height: 60px;
}

/* btn colors */
button,
.button,
.button-ok,
.button-edit {
    color: #ffffff;
    background-color: #2ab5f7;
}
button:hover, button:focus,
.button:hover, .button:focus,
.btn:hover, .btn:focus,
.button-edit:hover, .button-edit:focus {
    background-color: #3570db;
}
.button-dark-blue,
.button-login, .btn,
button[type="submit"],
#applicationFilter_submit,
#application_save {
    color: #ffffff;
    background-color: #3570db !important;
    box-shadow: none;
}
.btn-grey {
    background: #f2f2f2 !important;
}
.btn:hover, .btn:focus,
button[type="submit"]:hover, button[type="submit"]:focus,
.button-dark-blue:hover, .button-dark-blue:focus,
.button-login:hover, .button-login:focus {
    background-color: #2ab5f7 !important;
}

/*button[type="submit"]:not(.button-login):not(#applicationFilter_submit):not(.button-dark-blue):not([name*="Referer"]) {
    background-color: #2ab5f7;
}
button[type="submit"]:hover:not(.button-login):not(#applicationFilter_submit):not(.button-dark-blue):not([name*="Referer"]) {
    background-color: #77cc66;
}*/


.button-cancel {
    background-color: transparent;
    font-weight: 400;
    color: #999999;
}
.button-cancel:hover, .button-cancel:focus {
    background-color: transparent;
    color: #2ab5f7;
}

.button-polite {
    background-color: transparent;
    color: #2ab5f7;
    font-weight: 400;
}
.button-polite:hover, .button-polite:focus {
    background-color: transparent;
    color: #77cc66;
}


.button-delete {
    color: #ffffff;
    background-color: #e63428;
}
.button-delete > span[class*="icon"] {
    margin-right: 2px;
}

.button-add {
    color: #ffffff;
    background-color: #181818;
}
.button-add:hover, .button-add:focus {
    color: #181818;
    background-color: #e3e3e3;
}

.contains-delete-button button {
    color: #ffffff !important;
    background-color: #e63428 !important;
}
.button-neutral, .button-create {
    background-color: #a3b1bf;
}
.button-ok:hover, .button-ok:focus,
.button-delete:hover, .button-delete:focus,
#applicationFilter_submit:hover, #applicationFilter_submit:focus {
    background-color: #77cc66;
}

.contains-delete-button button:hover, .contains-delete-button button:focus {
    background-color: #77cc66 !important;
}
#show-filter-button {
    background-color: #2ab5f7;
}
#show-filter-button:hover, #show-filter-button:focus {
    background-color: #f2f2f2;
    color: #151515;
}
.section-individuals .section-group-callout .btn {
    padding: 0 20px;
}
.btn:hover, .btn:focus,
#application_save:hover, #application_save:focus {
    background: #2954a3 !important;
}

button + button,
button + .button,
.button + button,
.button + .button {
    margin-left: 10px;
}

/* shy button */

.button-shy {
    padding: 0;
    background: transparent;
    color: #999999;
    font-size: 11px;
    font-weight: normal;
    line-height: 20px;
}
.button-shy + .button-shy {
    margin-left: 0;
}
.button-shy:hover, .button-shy:focus,
.shy-edit:hover, .shy-edit:focus {
    background: transparent;
    color: #2ab5f7;
}
.shy-cancel:hover, .shy-cancel:focus,
.shy-delete:hover, .shy-delete:focus {
    color: #e65c5c;
}
.shy-update {
    color: #77cc66;
}

/* bordered button */
.button-bordered {
    background: #ffffff;
    color: #181818;
    border: 3px solid #3570db;
    letter-spacing: 0 !important;
}
.button-bordered:hover {
    color: #ffffff !important;
    background-color: #3570db !important;
}


/* disabled */
a[disabled], a.disabled, a[disabled]:focus, a.disabled:focus,
button[disabled], button.disabled, button[disabled]:focus, button.disabled:focus {
    background-color: #e3e3e3 !important;
    color: #fff !important;
    cursor: default !important;
}
a[disabled]:hover, a.disabled:hover, button[disabled]:hover, button.disabled:hover {
    background-color: #cccccc !important;
    color: #fff !important;
}
input[type="submit"]:disabled, button[type="submit"]:disabled {
    cursor: default !important;
}

.button-delete-collection {
    position: absolute;
    top: 0;
    right: -10px;
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);

    background: none;
    border: 1px solid #e63428;
    border-radius: 2px;
    color: #e63428;
    width: 44px;
    padding: 0;
    height: 40px;

    opacity: 0.5;

    -webkit-transition: .125s;
    -moz-transition: .125s;
    -ms-transition: .125s;
    -o-transition: .125s;
    transition: .125s;
}
.button-delete-collection:focus,
.button-delete-collection:active,
.button-delete-collection:hover {
    color: #fff;
    background: #e63428;
    opacity: 1;
}


/* ------------------------------------------------------------ *\
    Portrait upload
\* ------------------------------------------------------------ */
.portrait-wrapper .file-preview {
    display: inline-block;
    width: 300px;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 50%;
}
.portrait-wrapper .file-preview > img {
    width: auto !important;
    max-width: none !important;
    height: 300px;
    margin-bottom: 20px;
    transform: translateX(-115px);
}



hr {
    border: none;
    border-bottom: 1px solid #e5e5e5;
}



/* ------------------------------------------------------------ *\
    Responsive
\* ------------------------------------------------------------ */
@media (max-width: 767px) {
    .section-results .form-search-secondary {
        padding: 15px !important;
    }
    .section-results .form-search-secondary .form-label {
        margin-bottom: 0 !important;
        margin-top: 10px !important;
    }
    .form-col-size-max-315 label,
    .section-results .form-search-secondary .form-col-size-max-315 .form-label {
        margin-top: 0 !important;
    }
    .find-organisation-widget .form-col-size-max-155,
    .find-organisation-widget .form-col-size-max-230 {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .form-col-size-max-230 label {
        margin-left: 0 !important;
        display: none !important;
    }
    .find-organisation-widget button,
    .find-organisation-widget .form-input {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 480px) {
    form h2, h2.events {
        margin-top: 20px;
        margin-bottom: 20px !important;
    }
    .form-field {
        margin-bottom: 0;
    }
    .form-label {
        width: 100%;
        margin-bottom: 5px;
    }
    .form-label label {
        text-align: left;
    }
    .form-input {
        width: 100%;
        max-width: 100%;
    }
    .form-input:first-child {
        margin-left: 0;
    }
    .address-manual-entry-wrapper {
        margin-top: 10px;
    }
    .input-size-m {
        max-width: 100%;
        width: 100%;
    }
    .input-size-sm {
        max-width: 70%;
    }
    .input-size-xs {
        max-width: 20%;
    }
    .input-extension {
        width: 100%;
        max-width: none;
        padding-left: 0;
    }
    .form-button-row > button, .form-button-row > .button, .form-button-row > div:last-child {
        margin-left: 0;
    }
}