/* Import FontAwesome (still used for animated arrow/chevron icons) */
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

/* =========================================================
   Form card
   ========================================================= */
.form-container {
    background-color: #fff;
    margin: 0 auto !important;
    margin-bottom: 25px !important;
    margin-left: 0;
    width: 90%;
    position: inherit;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-container .form-fields {
    padding: 1em 1.25em 1.25em;
}

form.oc-form fieldset {
    display: none;
}

.form-container header {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    background-color: var(--brand-050);
}

.form-container header p {
    font-weight: 700;
    color: var(--brand-800);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 16px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 8px;
}

.form-label {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    padding: 4px 2px;
    margin-top: 12px;
    display: inline-block;
    text-align: left;
}


/* =========================================================
   Inputs, selects, textareas
   ========================================================= */
input, select, textarea {
    background-color: #fff;
}

input {
    border: 1px solid var(--line);
    font-size: 16px !important;
    font-weight: 500;
    padding: 11px 14px !important;
}

select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fb0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-size: 18px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid var(--line);
    font-size: 16px !important;
    font-weight: 500;
    padding: 11px 40px 11px 14px !important;
}

.form-control {
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm) !important;
    height: 48px !important;
    color: var(--ink);
    box-shadow: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(47, 111, 176, .18);
    outline: none;
}

textarea.form-control {
    height: auto !important;
    min-height: 90px;
}

::placeholder {
    color: #9aa3b0;
    opacity: 1;
}


/* =========================================================
   Custom radio / checkbox controls (.with-font)
   ========================================================= */
input[type=radio].with-font,
input[type=checkbox].with-font {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

input[type=radio].with-font ~ label,
input[type=checkbox].with-font ~ label {
    cursor: pointer;
}

input[type=radio].with-font ~ label:before,
input[type=checkbox].with-font ~ label:before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    vertical-align: -5px;
    border: 2px solid var(--brand-400);
    background: #fff;
    transition: all var(--transition);
}

input[type=radio].with-font ~ label:before {
    border-radius: 50%;
}

input[type=checkbox].with-font ~ label:before {
    border-radius: 6px;
}

input[type=radio].with-font:checked ~ label:before,
input[type=checkbox].with-font:checked ~ label:before {
    background: var(--accent) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    border-color: var(--accent);
}

input[type=radio].with-font:focus ~ label:before,
input[type=checkbox].with-font:focus ~ label:before {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .25);
}


/* =========================================================
   Validation states
   ========================================================= */
.form-group.has-error {
    background-color: transparent !important;
}

.has-error .form-control {
    border: 1px solid var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .14);
    color: var(--ink);
}

.has-error p {
    color: var(--error);
}

.has-error .inline p {
    margin: 0;
}

.help-block {
    font-size: 14px;
    font-weight: 600;
}

.has-error .radio-input label,
.has-error .radio-input input[type=radio].with-font ~ label:before,
.has-error .radio-input input[type=checkbox].with-font ~ label:before {
    color: var(--error);
    border-color: var(--error);
}


/* =========================================================
   Spinners
   ========================================================= */
.lds-dual-ring {
  display: inline-block;
  width: 26px;
  margin-left: 10px;
}
.lds-dual-ring:after {
  content: " ";
  display: inline-flex;
  width: 26px;
  height: 26px;
  margin: 1px;
  border-radius: 50%;
  border: 5px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-border {
    width: 2.4rem;
    height: 2.4rem;
    margin-left: 15px !important;
}


/* =========================================================
   Masthead / banner helpers
   ========================================================= */
#masthead {
    width: 100%;
    background: var(--brand-900);
    height: 3.5em;
    z-index: 10;
    padding: 0;
}
#masthead h1 {
    padding-top: 1em;
    color: #fff;
    float: left;
    font-size: 18px;
    font-size: 1.8rem;
    font-weight: 500;
}

.banner-text {
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 50px;
}

.banner-text ul.checks li .icon-checkmark {
    display: block;
    position: absolute;
    left: -2px;
    top: -2px;
    width: 2em;
    height: 2em;
}

.icon-checkmark {
    background-image: url(../images/arrow.svg);
    background-repeat: no-repeat;
}

.cta-bar {
    padding-top: 1.2em;
    padding-bottom: 1.15em;
}

.messages {
    text-align: left;
    padding: 5px 0;
    background-color: transparent;
}

.messages span {
    font-size: 14px;
    color: var(--error);
}

.has-error .form-element {
    border-color: var(--error);
    background-color: #fdecec;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.has-success .form-element {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.shell span {
    display: none !important;
}

.consent {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 12px;
    color: var(--muted);
}


/* =========================================================
   Responsive
   ========================================================= */
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    .form-container .form-fields {
        padding-left: 2em;
        padding-right: 2em
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    #step_two label {
        margin-top: 0px !important;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .form-container .form-fields {
        padding-left: 1.5em;
        padding-right: 1.5em
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

    #masthead h1 {
        font-size: 1.6rem;
        padding-top: 1.2em;
        margin: 0 auto;
    }

    .banner-text {
        padding-top: 15px;
    }

    .form-container {
        margin-top: .2em;
    }

    .banner-text h2 {
        line-height: 1.4;
    }

    .form-container header p {
        font-size: 1.4rem;
    }

    .form-label {
        margin-top: 8px;
        font-size: 1.6rem;
    }

    .last-button {
        font-size: 1.5rem !important;
    }
}

/* Extra small devices (phones, 320px and down) */
@media only screen and (max-width: 320px) {

    #masthead h1 {
        font-size: 1.4rem;
        padding-top: 1.6em;
        margin: 0 auto;
    }

    .form-container header p {
        font-size: 1.3rem;
    }

    .last-button {
        font-size: 1.3rem !important;
        height: 50px;
    }
}


/* =========================================================
   Alternate form wrapper (everscale layout)
   ========================================================= */
.ar-form-wrapper {
    background: #fff;
    padding: 2em;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-right: 2em;
    margin-bottom: 2em;
    border: 1px solid var(--line);
}

.form-top {
    padding-bottom: 1.2em;
    text-align: center;
    margin-bottom: 1.2em;
    border-bottom: 1px solid var(--line);
}

h4.form-top-text, span.form-top-text {
    color: var(--brand-700);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 18px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-head);
}

p.form-top-step {
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-size: 14px;
    font-size: 1.4rem;
}

.form-lable-date {
    line-height: 1.25em;
    font-size: 16px;
    font-size: 1.6rem;
    padding-bottom: .625em;
    display: block;
    text-align: left;
    color: var(--ink);
}

.injury-wrapper {
    padding-left: 1em;
}

.radio-input-inj {
    text-align: left;
    color: var(--muted);
    font-size: 15px;
    font-size: 1.5rem;
}

.radio-input-inj>.radio-opt {}

.form-radio-qes {
    line-height: 1.25em;
    font-size: 16px;
    font-size: 1.6rem;
    padding-bottom: .625em;
    display: block;
    text-align: left;
    color: var(--ink);
}

.radio-inj {
    padding-left: .5em;
}

.otherOptions {
    padding-top: 1em;
}

.radio-input {
    text-align: center;
}

.radio-input>span {
    padding-right: 1em;
    text-align: left;
    color: var(--muted);
    font-size: 16px;
    font-size: 1.6rem;
}

.radio-input>span.radio-opt {
    padding-right: 1em;
}

.parent-table {
    width: 100%;
    height: 100%;
    display: table;
    position: relative;
}

.child-table {
    width: 100%;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: .625em .75em;
}

.ar-button {
    margin-left: auto;
    margin-right: auto;
    background: var(--accent);
    color: #fff;
    transition: color .3s;
    transition-timing-function: ease;
    -webkit-transition-timing-function: cubic-bezier(.2, 1, .3, 1);
}


/* =========================================================
   Primary buttons
   ========================================================= */
.btn {
    background: var(--accent);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 16px;
    font-size: 1.6rem;
    color: #fff;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    padding: 14px 26px;
    font-family: var(--font-head);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px rgba(22, 163, 74, .28);
    transition: all var(--transition);
}

.btn:hover {
    color: #fff;
    background: var(--accent-hover);
    outline: 0;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, .34);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    color: #fff;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .35);
}

/* Form CTAs go full-width for prominence */
.form-container .btn,
.ar-form-wrapper .btn {
    width: 100%;
}

.legal-checkbox {
    background: #fff;
    padding: .28125em .5em .21875em 1.5em;
    float: left;
    position: relative;
    margin: .2em .5em 0 -1.5em;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
}

.terms {
    margin-bottom: .625em;
    font-size: 13px;
    font-size: 1.3rem;
    text-align: left;
    padding-top: .4em;
    font-weight: 400;
    color: var(--muted);
}

.terms-ck {
    padding-left: 1.6em;
    font-size: 14px;
    font-size: 1.4rem;
    color: var(--muted);
    font-style: italic;
}


/* =========================================================
   CTA bar (everscale)
   ========================================================= */
.ar-cta-bar {
    background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
    padding-top: 1.875em;
    padding-bottom: 1.25em;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    padding-left: 3em;
}

.cta-wrapper>h3 {
    color: #fff;
    margin-bottom: .4em;
    line-height: 1.2;
    font-size: 30px;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-head);
}

.cta-wrapper>p {
    color: #dbe7f5;
    margin: 0;
    line-height: 1.4;
    font-size: 15px;
    font-size: 1.5rem;
}

.footer-link a {
    color: var(--muted);
}

.footer-link a:hover {
    text-decoration: none;
    color: var(--brand-800);
}

.error-msg,
.error-msg2,
.error-msg3 {
    color: var(--error);
    text-align: center;
    font-size: 13px;
    font-size: 1.3rem;
    margin-bottom: -1em;
}

.input-error {
    border-color: var(--error);
}

.success-msg {
    padding: 1em 1.25em;
    background-color: var(--accent-100);
    border: 1px solid #86efac;
    border-radius: var(--radius-sm);
    color: #166534;
    font-weight: 500;
    margin-bottom: 1em;
}


/* =========================================================
   Yes / No segmented toggle buttons
   ========================================================= */
.button-wrap {
    text-align: left;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-label {
    display: inline-block;
    padding: .6em 1.6em;
    margin: 0;
    cursor: pointer;
    color: var(--brand-800);
    border: 1.5px solid var(--brand-200);
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: 600;
    transition: all var(--transition);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.button-label h1 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 !important;
}
.button-label:hover {
    background: var(--brand-050);
    border-color: var(--brand-400);
    color: var(--brand-900);
}

/* Checked state — brand fill (applies to every yes/no group) */
#yesFault:checked + .button-label,
#noFault:checked + .button-label,
#yesInjured:checked + .button-label,
#noInjured:checked + .button-label,
#yesHospitalized:checked + .button-label,
#noHospitalized:checked + .button-label,
#yesAttorney:checked + .button-label,
#noAttorney:checked + .button-label,
#yesPast:checked + .button-label,
#noPast:checked + .button-label {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
    box-shadow: 0 4px 12px rgba(47, 111, 176, .25);
}

#yesFault:checked + .button-label:hover,
#noFault:checked + .button-label:hover,
#yesInjured:checked + .button-label:hover,
#noInjured:checked + .button-label:hover,
#yesHospitalized:checked + .button-label:hover,
#noHospitalized:checked + .button-label:hover,
#yesAttorney:checked + .button-label:hover,
#noAttorney:checked + .button-label:hover,
#yesPast:checked + .button-label:hover,
#noPast:checked + .button-label:hover {
    background: var(--brand-700);
    color: #fff;
}

.hidden {
    display: none;
}


/* =========================================================
   Progress stepper
   ========================================================= */
.progressBox {
    width: 100%;
    position: relative;
    z-index: 1;
}

.progressbar {
    margin: 8px 0 4px;
    overflow: hidden;
    padding: 0;
    counter-reset: step;
}

.progressbar li {
    float: left;
    width: 33.333%;
    position: relative;
    text-align: center;
    list-style-type: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 36px;
    height: 36px;
    border: 2px solid var(--line);
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    line-height: 32px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    transition: all var(--transition);
}

.progressbar li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--line);
    top: 17px;
    left: -50%;
    z-index: -1;
}

.progressbar li:first-child:after {
    content: none;
}

.progressbar li.active {
    color: var(--brand-800);
}

.progressbar li.active:before {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 4px 10px rgba(47, 111, 176, .3);
}

.progressbar li.active:after {
    background: var(--brand-600);
}


/* Below 992px the hero columns stack — show the form full-width, spaced
   from the hero copy, sitting as a white card over the hero background. */
@media only screen and (max-width: 991px) {
    .form-container {
        width: 100%;
        margin-top: 1.75em !important;
        margin-bottom: 1.5em !important;
    }
}
