/* ------------------------------ */
/* ------------ Form ------------ */
/* ------------------------------ */

.section__title + .section__form {
    margin-top: .9rem;
}

.quform {
    max-width: 1000px;
    margin-top: .5rem;
}

.quform-element-tree, .quform-form > .quform-default-submit, .quform-field-select-enhanced, .select2-search--hide, .select2-results__options li:first-child {
    display: none !important;
}

.quform-element-group > .quform-spacer > .quform-child-elements {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -.4rem .25rem;
}

.quform-element-group > .quform-spacer > .quform-child-elements > div {
    width: 50%;
    padding: 0 .4rem;
    margin: .55rem 0;
}

.quform-element-group > .quform-spacer > .quform-child-elements > div:nth-child(1), .quform-element-group > .quform-spacer > .quform-child-elements > div:nth-child(2) {
    margin-top: 0;
}

.quform-element-text .quform-label, .quform-element-email .quform-label, .quform-element-textarea .quform-label, 
.quform-element-checkbox .quform-label, .quform-element-select .quform-label {
    position: absolute;
    height: 1px;
    width: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    border: 0;
    overflow: hidden;
}

input[type="text"], input[type="email"], textarea {
    font-size: 1rem;
    width: 100%;
    padding: 8px 14px 5px;
    color: var(--brand-color);
    background-color: transparent;
    border-radius: 0;
    border: 2px solid var(--brand-link-color);
    line-height: 1.7;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.macos input[type="text"], .macos input[type="email"], .macos textarea, .ios input[type="text"], .ios input[type="email"], .ios textarea {
    padding: 6px 14px;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--brand-color);
}

textarea {
    padding: .65rem;
    resize: none;
}

.quform-inner-textarea, .quform-input-textarea, .quform-element-textarea textarea {
    height: 175px;
}

.quform-element-textarea.quform-has-error {
    margin-bottom: calc(1.5rem + 30px);
}

.quform-element-checkbox {
    margin-top: 1rem;
}

.quform-input-checkbox .quform-option-label {
    position: relative;
    display: inline-block;
    padding-left: 32px;
    font-size: .9rem;
    cursor: pointer;
}

.quform-option {
    position: relative;
}

.quform-option input[type="checkbox"] {
    position: absolute;
    top: 7px;
    left: 0;
    width: 19px;
    height: 19px;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.quform-input-checkbox .quform-option-label::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    height: 9px;
    width: 4px;
    border-style: solid;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(40deg);
        -ms-transform: rotate(40deg);
            transform: rotate(40deg);
    opacity: 0;
}

.quform-option input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.quform-element-select {
    padding-right: .25rem;
    margin: .25rem 0 .8rem;
    width: 50%;
}

.quform-input-select > .select2-container {
    display: block;
    padding: 0;
}

.quform-input-select > .select2-container span {
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
}

body > .select2-container--open {
    z-index: 5;
    background: var(--brand-color);
    color: white;
    margin-left: 16px;
    min-width: 320px;
}

.select2-results__option {
    padding: 8px 16px 5px;
    border-bottom: 2px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.select2-results__option:last-child {
    border-bottom: none;
}

.no-touchevents .select2-results__option:hover {
    color: rgba(255, 255, 255, .6);
}

.select2-selection__rendered {
    font-size: 1rem;
    padding: 8px 14px 5px;
    color: var(--brand-color);
    background-color: transparent;
    border-radius: 0;
    border: 2px solid var(--brand-link-color);
    line-height: 1.7;
    cursor: pointer;
    z-index: 1;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.macos .select2-selection__rendered, .ios .select2-selection__rendered {
    padding: 5px 14px 7px;
}

.select2-container--open .select2-selection__rendered {
    border-color: var(--brand-color);
}

.quform-input-select > .select2-container span.select2-selection__arrow {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 0;
}

.select2-selection__arrow b {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.select2-selection__arrow b::before {
    position: absolute;
    content: "‹";
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    font-size: 1.75rem;
    font-family: 'Dax';
    font-weight: normal;
    height: 100%;
    right: 20px;
    color: var(--brand-color);
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.select2-container--open .select2-selection__arrow b::before {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.quform-element-submit {
    margin-top: 1.25rem;
}

.quform-element-submit button.quform-submit {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 12px 12px 9px;
    background-color: var(--brand-color);
    border: 0;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.macos .quform-element-submit button.quform-submit, .ios .quform-element-submit button.quform-submit {
    padding: 10px 12px 11px;
}

.quform-element-submit button.quform-submit span {
    font-size: 17px;
    color: var(--brand-white);    
}


.no-touchevents button.quform-submit:hover {
    opacity: .6;
}

::-webkit-input-placeholder {
    color: var(--brand-color);
    opacity: .5;
}

::-moz-placeholder {
    color: var(--brand-color);
    opacity: .5;
}

:-ms-input-placeholder {
    color: var(--brand-color);
    opacity: .5;
}

::-ms-input-placeholder {
    color: var(--brand-color);
    opacity: .5;
}

::placeholder {
    color: var(--brand-color);
    opacity: .5;
}

.quform-has-error input, .quform-has-error textarea, .quform-has-error .select2-selection__rendered {
    border-color: #cc0000;
}

.quform-error {
    display: inline-block;
    position: relative;
    top: -3px;
    padding: 3px 10px 2px;
    font-size: 16px;
    background-color: #cc0000;
    color: var(--brand-white);
}

input:-webkit-autofill,
.no-touchevents input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
.no-touchevents textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
.no-touchevents select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 2px solid #edf3f1;
  -webkit-text-fill-color: var(--brand-color);
  -webkit-box-shadow: 0 0 0px 1000px var(--brand-white) inset;
  caret-color: var(--brand-color);
}

.firefox .quform-error {
    margin-top: 1px;
}

.macos .quform-error {
    top: -5px;
    padding: 2px 10px 1px;
}

.ios .quform-error {
    top: -7px;
    padding: 0 10px 1px;
}


/* Spinner */
.quform-element-submit {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.quform-loading {
    display: none;
    height: 26px;
    width: 22px;
    margin-top: -2px;
    margin-left: 1rem;
}

.quform-loading-inner {
    display: block;
    height: 26px;
    width: 22px;
}

.quform-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--brand-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-animation: rotation .75s linear infinite;
    animation: rotation .7s linear infinite;
}
  
.quform-loading-spinner:after {
    display: none;
}

@-webkit-keyframes rotation {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}
  
@keyframes rotation {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}



/* Media Queries */

@media all and (max-width: 1199.98px) {

    .quform-option input[type="checkbox"] {
        top: 5px;
    }

}


@media all and (max-width: 1023.98px) {

    .quform-element-group > .quform-spacer > .quform-child-elements {
        margin: 0 -.3rem .3rem;
    }

    .quform-element-group > .quform-spacer > .quform-child-elements > div {
        padding: 0 .3rem;
        margin: .3rem 0;
    }

    .quform-element-select {
        margin-bottom: .6rem;
    }

    .quform-error {
        top: -2px;
        font-size: 15px;
    }

    .firefox .quform-error, .macos .quform-error, .ios .quform-error {
        margin-top: 0;
    }

}


@media all and (max-width: 767.98px) {

    .section__title + .section__form {
        padding-top: 0;
    }

    .quform-input-checkbox .quform-option-label {
        padding-left: 28px;
    }

    .quform-input-checkbox .quform-option-label::after {
        top: 6px;
    }

    body > .select2-container--open {
        min-width: 180px;
    }

    .quform-error {
        top: -3px;
        font-size: 14px;
        padding: 4px 7px 2px;
    }

    .firefox .quform-error, .macos .quform-error, .ios .quform-error {
        margin-top: 1px;
    }

}


@media all and (max-width: 575.98px) {

    .quform-element-group > .quform-spacer > .quform-child-elements {
        margin: 0;
    }

    .quform-element-group > .quform-spacer > .quform-child-elements > div, .quform-element-select {
        width: 100%;
        padding: 0;
        margin: 0 0 .75rem;
    }

    body > .select2-container--open {
        min-width: 260px;
    }

}