﻿.old-form {
    background-color: #fff;
}

.EPiServerForms {
    background-color: #fff;
}

.Form__Title {
    max-width: 900px;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 auto;
    color: #000;
}

.Form__MainBody {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 11rem 0;
}

section#__field_ {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.FormTextbox, .FormSelection {
    width: calc(50% - 1.5rem);
}

.Form__Description {
    max-width: 900px;
    font-size: 1.6rem !important;
    font-weight: 600;
    line-height: 1.1;
    margin: 2rem auto 6rem auto;
}

.EPiServerForms .FormImageSubmitButton {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none
}

.EPiServerForms .Form__Status .Form__Status__Message {
    display: block;
    padding: 1rem;
    margin: 1rem 0
}

.EPiServerForms .Form__Status .Form__Success__Message {
    background-color: #84c8e4;
    color: #333
}

.EPiServerForms .Form__Status .Form__Warning__Message {
    background-color: #fff8aa;
    color: rgb(220, 38, 38);
}

.EPiServerForms .Form__Status .Form__Readonly__Message {
    display: block;
    padding: 1rem;
    margin: 1rem 0;
    background-color: #fff8aa;
    color: rgb(220, 38, 38);
}

.EPiServerForms .Form__NavigationBar .Form__NavigationBar__Action {
    display: inline-block;
    padding: inherit;
    vertical-align: middle;
    text-align: center;
    border: 1px solid rgba(41, 128, 189, 0.5);
    border-radius: 4px;
    font-size: inherit;
    height: 2em;
    width: 10em;
    max-width: 10rem;
    color: initial;
    background-image: linear-gradient(to top, #fff, #e6e6e6);
    background-image: -moz-linear-gradient(top, #fff, #e6e6e6);
    background-image: -ms-linear-gradient(top, #fff, #e6e6e6);
    background-image: -webkit-linear-gradient(top, #fff, #e6e6e6)
}

    .EPiServerForms .Form__NavigationBar .Form__NavigationBar__Action:disabled {
        cursor: not-allowed;
        opacity: .4
    }

.EPiServerForms .Form__NavigationBar .Form__NavigationBar__ProgressBar {
    display: inline-block;
    border: 1px solid rgba(41, 128, 189, 0.5);
    vertical-align: middle;
    width: 40%
}

    .EPiServerForms .Form__NavigationBar .Form__NavigationBar__ProgressBar .Form__NavigationBar__ProgressBar--Progress {
        background-color: rgba(41, 128, 189, 0.5);
        width: 0%;
        height: 1rem
    }

    .EPiServerForms .Form__NavigationBar .Form__NavigationBar__ProgressBar .Form__NavigationBar__ProgressBar--Text {
        display: none
    }

.EPiServerForms .FormStep .FormStep__Description {
    margin-bottom: 1rem
}

.EPiServerForms .Form__Element {
    /*margin: 0 0 1.5rem 0*/
}

    .EPiServerForms .Form__Element .Form__Element__Caption {
        display: inline-block;
        /*min-width: 15%;*/
        vertical-align: top
    }

    .EPiServerForms .Form__Element .Form__Element__ValidationError {
        color: rgb(220, 38, 38);
        display: block;
        word-wrap: break-word
    }

.EPiServerForms .hide {
    display: none
}

.EPiServerForms .visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap
}

.EPiServerForms .FormSubmitButton:disabled {
    cursor: not-allowed;
    opacity: .4
}

.EPiServerForms .FormCaptcha .FormTextbox__Input {
    width: 8rem
}

.EPiServerForms .FormCaptcha .FormCaptcha__Refresh {
    font-size: 1em;
    width: auto;
    height: auto
}

.EPiServerForms .FormChoice--Image .FormChoice--Image__Item {
    display: inline-block;
    max-width: 40%;
    text-align: center;
    margin: .5rem
}

.EPiServerForms .FormChoice--Image .FormChoice__Input:checked ~ img {
    border: 1px solid rgba(41, 128, 189, 0.5)
}

.EPiServerForms .FormRange .FormRange__Input {
    max-width: 60%;
    display: inline
}

.EPiServerForms .EditView__InvisibleElement.FormStep {
    display: block;
    border-radius: 4px;
    border-color: rgba(184, 192, 197, 0.6);
    background-color: rgba(184, 192, 197, 0.6);
    color: #000;
    padding: .2rem;
    box-shadow: 3px 3px 5px #ccc
}

    .EPiServerForms .EditView__InvisibleElement.FormStep .FormStep__Warning {
        color: rgb(220, 38, 38);
        background-color: #fff8aa;
        display: block;
        word-wrap: break-word
    }

.EPiServerForms .EditView__InvisibleElement.FormHidden {
    display: inline-block;
    border-radius: 4px;
    border: 1.5px outset rgba(184, 192, 197, 0.6);
    padding: .2rem 1rem;
    min-width: 18rem
}

.EPiServerForms .Warning {
    color: red;
    background-color: #fff8aa;
    display: block;
    word-wrap: break-word
}

.EPiServerForms .Form__Warning {
    color: red;
    background-color: #fff8aa;
    display: block;
    word-wrap: break-word
}

/* additional styling migrated from styles.css */
.Form__Element input[type="text"], .Form__Element input[type="email"], .Form__Element input[type="url"], .Form__Element input[type="password"], .Form__Element input[type="search"], .Form__Element input[type="number"], .Form__Element input[type="tel"], .Form__Element input[type="range"], .Form__Element input[type="date"], .Form__Element input[type="month"], .Form__Element input[type="week"], .Form__Element input[type="time"], .Form__Element input[type="datetime"], .Form__Element input[type="datetime-local"], .Form__Element input[type="color"], .Form__Element textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 2.6rem 2.2rem !important;
    border: 1px solid #ccc;
    margin: 0;
}

.Form__Element {
}

    .Form__Element label {
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        color: #000;
        padding: 0 .8rem;
        margin-left: .6rem;
        background: #ffffff;
        letter-spacing: .01em;
    }

.Form__Element {
    position: relative;
}

.FormTextbox label, .FormSelection label, .FormTextbox--Textarea label {
    position: absolute;
    top: -9px;
    left: 12px;
    display: inline-block;
    padding: 5px;
    background-color: #ffffff;
    z-index: 1;
}

.Form__Element input[type="select"] {
    height: 56px;
}

.Form__Element textarea.FormTextbox__Input {
    height: 200px;
}

.FormSelection select {
    border: 1px solid rgba(0, 0, 0, 0.23);
    color: #000;
    border-radius: 4px;
}

.FormSelection:after {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 15px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.0562 7.48535L7.98508 14.5564.914017 7.48535' stroke='%230A2240' stroke-width='1.5'/%3E%3C/svg%3E");
}

.FormSelection select {
    border: 1px solid #E5E4E6;
    padding: 13px 50px 9px 15px;
    font-weight: normal;
    font-size: 1.125rem;
    line-height: 1.22;
    color: #5B6670;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    -webkit-appearance: none;
    width: 100%;
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 1.6rem 1.2rem 1.2rem 1.2rem !important;
    border: 1px solid #ccc;
    border-radius: 0;
}

.Form__Element.FormTextbox.FormTextbox--Textarea {
    width: 100% !important;
}

.FormSelection select:focus, .custom-select select:active {
    outline: none;
    border: 1px solid #cccacd;
}

.FormSelection:after {
    right: 30px;
    width: 10px;
    height: 5px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0l5 5 5-5H0z' fill='%235B6670'/%3E%3C/svg%3E");
}

.Form__Element__Caption {
    font-size: 1.125rem;
    line-height: 1.33;
    color: #0A2240;
    margin-bottom: 20px;
}

.Form__Description {
    font-size: 1rem;
    line-height: auto;
    color: #0A2240;
}

/*.FormChoice { padding-left: 35px; }

.FormChoice input[type="checkbox"] { float: left; margin-left: -1.5em; }*/
.FormChoice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.5px;
    vertical-align: middle;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.23);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    -webkit-transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.FormChoice input[type="checkbox"] {
    border-radius: 4px;
}

.FormChoice input[type="radio"] {
    border-radius: 50%;
}

.FormChoice .FormChoice__Input--Checkbox:active, .FormChoice .FormChoice__Input--Radio:active {
    -webkit-filter: brightness(90%);
    filter: brightness(90%);
}

.FormChoice .FormChoice__Input--Checkbox:focus, .FormChoice .FormChoice__Input--Radio:focus {
    border-color: #86b7fe;
    -webkit-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.FormChoice .FormChoice__Input--Checkbox:checked, .FormChoice .FormChoice__Input--Radio:checked {
    background-color: #0033A1;
    border-color: #0033A1;
}

    .FormChoice .FormChoice__Input--Checkbox:checked[type=checkbox] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    }

    .FormChoice .FormChoice__Input--Radio:checked[type=radio] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    }

.FormChoice input[type="checkbox"]:indeterminate {
    background-color: #0033A1;
    border-color: #0033A1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
}

.FormChoice .FormChoice__Input--Checkbox:disabled, .FormChoice .FormChoice__Input--Radio:disabled {
    pointer-events: none;
    -webkit-filter: none;
    filter: none;
    opacity: 0.5;
}

.FormChoice .FormChoice__Input--Checkbox[disabled], .FormChoice .FormChoice__Input--Radio[disabled] ~ .form-check-label, .form-check-input:disabled ~ .form-check-label {
    opacity: 0.5;
}

.FormChoice label {
    font-size: 1rem;
    line-height: 1;
    color: #0A2240;
    display: block;
}

    .FormChoice label input {
        margin-right: 10px;
    }

    .FormChoice label:not(:last-child) {
        margin-bottom: 27px;
    }

/* Placeholder color */
.page.contact .contact-form .Form__Element ::-webkit-input-placeholder {
    color: #98A2B3;
}

.page.contact .contact-form .Form__Element :-ms-input-placeholder {
    color: #98A2B3;
}

.page.contact .contact-form .Form__Element ::placeholder {
    color: #98A2B3;
}

/* Focus state with teal accent */
.page.contact .contact-form .Form__Element:focus-within {
    border-color: #0EA5A8;
    box-shadow: inset 0 0 0 1px #0EA5A8;
}

.ValidationFail input[required],
.ValidationFail select[required] {
    /*border: 1px solid red;
    border-color: rgb(220, 38, 38) !important;
    box-shadow: rgb(220, 38, 38) 0px 0px 0px 1px inset;*/
}

.ValidationFail .FormSelection:after {
    top: 35%;
}

.FormSubmitButton,
.FormResetButton {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--bancorp-primary-teal) !important;
    display: inline-block;
    padding: .8rem 3.4rem;
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-duration) ease;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .5s;
    margin-bottom: 5rem;
}

    .FormSubmitButton:hover,
    .FormResetButton:hover {
        background-color: var(--bancorp-primary-teal);
        color: var(--black);
        border-color: var(--bancorp-primary-teal);
        transition: all .5s;
    }

.FormRecaptcha {
    display: none;
}

@media (max-width: 1000px) {
    .Form__Title {
        max-width: 100%;
        padding: 0 2rem;
    }

    .Form__Description {
        max-width: 100%;
        padding: 0 2rem;
    }

    .Form__MainBody {
        width: 100%;
        max-width: 100%;
        padding: 0 2rem;
    }

    .Form__Description {
        margin: 2rem auto 2rem auto;
    }
}

@media (max-width: 767px) {
    .FormTextbox, .FormSelection {
        width: calc(100%);
    }
}
