body {
    margin: 0
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --main-red: rgba(156, 0, 21, 1);
    --main-gold: rgba(181, 149, 86, 1);
    --borders: rgba(199, 199, 199, 1);
    --font-open: "Open Sans", sans-serif;
}

#form-container {
    font-family: "Montserrat", sans-serif;
    max-width: 768px;
    padding: 24px;
}

/* Progress bar */
#form-progress {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.progress-bar-item {
    width: 100%;
    background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress.png);
    background-size: cover;
    background-position: center;
    min-height: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.progress-bar-item span {
    font-size: 12px;
    line-height: 16px;
    color: rgba(124, 124, 127, 1);
}

.progress-bar-item.active span {
    color: rgba(9, 24, 51, 1);
    font-weight: 700;
}

.progress-bar-item.active {
    background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress-active.png);
    background-size: cover;
    background-position: center;
}

.progress-bar-item:first-of-type {
    background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress-first.png);
    background-size: cover;
    background-position: center;
}

.progress-bar-item:first-of-type.active {
    background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress-first-active.png);
    background-size: cover;
    background-position: center;
}

/* Form */
.question-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.question-row span.question {
    font-weight: 600;
    font-size: 25px;
    line-height: 125%;
    margin-bottom: 8px;
    color: #272727;
}

.question-row small {
    color: #8F8F8F;
    font-size: 16px;
    line-height: 125%;
    margin-bottom: 8px;
}

.question-row small.field-error {
    display: none;
    color: var(--main-red);
    margin: 0;
    margin-top: 12px;
    font-weight: 600;
}

.question-row input[type="text"],
.question-row input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--borders);
    border-radius: 2px;
    height: 46px;
    max-height: 46px;
    font-size: 16px;
    font-family: var(--font-open);
    color: #595959;
    padding: 8px 12px;
}

.question-row select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 12px;
    background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/dropdown.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 12px);
    background-size: 10px;
    border: 1px solid var(--borders);
    border-radius: 4px;
    color: rgba(89, 89, 89, 1);
    min-height: 46px;
    font-size: 20px;
    font-family: var(--font-open);
}

.question-row textarea {
    min-height: 160px;
    border: 1px solid var(--borders);
    border-radius: 2px;
    font-family: var(--font-open);
    font-size: 20px;
    line-height: 125%;
    padding: 8px 12px;
}

.buttons-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.submit-row .form-submit {
    box-shadow: 0px 4px 20px 0px #0000001F;
    background-color: var(--main-gold);
    border: none;
    border-radius: 4px;
    width: 100%;
    min-height: 70px;
    color: #fff;
    font-weight: 700;
    font-size: 25px;
    line-height: 150%;
    cursor: pointer;
}

.form-step strong {
    display: block;
    text-align: center;
    color: #272727;
    margin-top: 16px;
    font-size: 14px;
}

.form-step .dislcaimer {
    display: block;
    font-family: var(--font-open);
    color: #8F8F8F;
    text-align: center;
    font-size: 12px;
    line-height: 125%;
    margin-top: 24px;
}

.form-step .dislcaimer a {
    font-family: var(--font-open);
    color: #8F8F8F;
    font-size: 12px;
    line-height: 125%;
}

/* Step 1 */
#step-1-heading {
    margin-bottom: 24px;
}

#step-1-heading h1 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 39px;
    line-height: 125%;
    margin-bottom: 24px;
}

#step-1-heading hr {
    margin: 0;
}

.buttons-container label {
    box-shadow: 0px 4px 20px 0px #0000001F;
    border: 1px solid var(--main-red);
    color: var(--main-red);
    border-radius: 4px;
    min-height: 65px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-open);
    font-size: 19px;
    line-height: 150%;
}

.buttons-container label.active {
    background-color: var(--main-red);
    color: #fff;
}

.buttons-container label input[type="radio"] {
    display: none;
}

#prior-offense-row,
#charge-date-row {
    display: none;
}

/* Step 2 */
.form-step[data-step="2"] {
    display: none;
}

/* Step 3 */
.form-step[data-step="3"] {
    display: none;
}

/* Step 4 */
.form-step[data-step="4"] {
    display: none;
}

.form-step[data-step="4"] .input-row {
    position: relative;
}

.input-row:first-of-type {
    margin-top: 16px;
}

.input-row {
    margin-bottom: 14px;
}

.input-row:last-of-type {
    margin-bottom: 0;
}

label[for="fname"],
label[for="lname"],
label[for="email"],
label[for="phone"] {
    display: none;
}

label[for="fname"].visible,
label[for="lname"].visible,
label[for="email"].visible,
label[for="phone"].visible {
    display: block;
    position: absolute;
    top: -8px;
    left: 8px;
    color: #494E67DE;
    font-family: var(--font-open);
    font-size: 12px;
    padding: 1px;
    background-color: #fff;
}

input#fname,
input#lname,
input#email,
input#phone {
    border-radius: 5px;
}

@media(max-width:767px) {
    .mobile-hidden {
        display: none !important;
    }

    #form-container {
        padding: 24px 16px;
    }

    .progress-bar-item {
        max-width: 24.5%;
        min-height: 36px;
        background-size: 100% 100%;
        padding: 0 3px 0 10px;
    }

    .progress-bar-item.active {
        background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress-active.png);
        background-size: 100% 100%;
    }

    .progress-bar-item:first-of-type {
        background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress-first.png);
        background-size: 100% 100%;
        ;
    }

    .progress-bar-item:first-of-type.active {
        background: url(https://www.nolo.com/files/frontend/optimization/convopt-800/progress-first-active.png);
        background-size: 100% 100%;
        ;
    }

    .progress-bar-item span {
        font-size: 10px;
        text-align: left;
    }

    /* Step 2 */
    #mobile-charge-date-options,
    #mobile-test-type-row,
    #mobile-alcohol-content-row,
    #mobile-dui-charge-row,
    #mobile-payment-row {
        flex-direction: column;
    }
}