:root {
    --red: #FF0000;
}

.reload-form {
    color: #000;
    text-decoration: underline;
    text-underline-position: under;
    font-weight: bold;
}

.reload-form:hover {
    text-decoration: none;
}

.fusion-modal.needs_quiz .modal-content {
    min-height: 70vh;
}

.fusion-modal.needs_quiz .modal-dialog {
    width: 1400px;
    max-width: 97vw;
    max-height: none;
}

.fusion-modal.needs_quiz .modal-dialog .modal-body {
    padding: 30px max(30px, 5vw);
}

.fusion-modal.needs_quiz .modal-header {
    border-bottom: 0;
    position: absolute;
    right: 0;
    z-index: 2;
}

.fusion-modal.needs_quiz .modal-header .close {
    opacity: 1;
    font-size: 40px;
}

.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_step_number {
    display: none;
}

.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps {
    margin-bottom: 25px;
    border-bottom: 0;
    display: flex;
    gap: 12px;
}

.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step {
    margin-right: 0;
    flex-grow: 1;
}

.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step:has(.gf_step_label:empty) {
    display: none;
}

.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step_label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    padding-left: 0;
    padding-bottom: 10px;
    border-bottom: 6px solid #D1D3D4;
    color: #D1D3D4;
    display: block;
}

.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step_completed .gf_step_label,
.fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step_active .gf_step_label {
    border-bottom: 6px solid var(--red);
    color: var(--red);
}

.gform_wrapper.gravity-theme .top_label .gsection_description {
    display: none !important;
}

.gsection.step-number {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    margin-bottom: -20px;
}

.gsection.step-number h3 {
    font-size: 16px;
    margin-top: 10px;
}

.fusion-modal.needs_quiz .gform-field-label {
    text-transform: uppercase;
    font-size: var(--h3_typography-font-size);
    line-height: 1;
    color: #000 !important;
}

.fusion-modal.needs_quiz .gfield[data-conditional-logic] legend.gform-field-label {
    font-size: var(--h4_typography-font-size);
    padding-top: 20px;
}

.fusion-modal.needs_quiz .gfield[data-conditional-logic][class*="matters-"] legend.gform-field-label {
    padding-top: 0;
}

.fusion-modal.needs_quiz .gfield--type-email .gform-field-label {
    font-size: var(--h5_typography-font-size);
}

.fusion-modal.needs_quiz .gform-field-label + .ginput_container {
    margin-top: 10px;
}

.gform_page .gform_page_footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.gform_page .gform_page_footer .gform_previous_button {
    margin-right: auto;
}

.fusion-modal.needs_quiz .gform_wrapper .gform_body .gform_page_footer button.gform_previous_button {
    color: var(--red);
}

.fusion-modal.needs_quiz .gform_wrapper .gform_body .gform_page_footer button.gform_previous_button:hover {
    color: #000;
    border-color: #000;
}

.fusion-modal.needs_quiz .gfield_description {
    padding-top: 0;
    font-size: 16px;
}

.fusion-modal.needs_quiz .gfield_description.validation_message {
    padding: 10px;
    border-color: #f00;
}

.fusion-modal.needs_quiz .gfield_required {
    display: none;
}

.fusion-modal.needs_quiz .gfield_radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fusion-modal.needs_quiz .gfield_radio .gchoice {
    position: relative;
}

.fusion-modal.needs_quiz .gfield_radio .gchoice input {
    opacity: 0;
    left: -99px;
    position: absolute;
    width: 1px;
    height: 1px;
}

.fusion-modal.needs_quiz .gfield_radio .gchoice label {
    cursor: pointer;
    background: #fff;
    padding: 20px;
    padding-right: 50px !important;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    border-left: 3px solid #D1D3D4;
    display: block;
    max-width: 100%;
}

.fusion-modal.needs_quiz .gfield_radio .gchoice label:focus {
    outline: 2px solid var(--black);
}

.fusion-modal.needs_quiz .gfield_radio .gchoice label:hover {
    border-color: var(--black);
}

.fusion-modal.needs_quiz .gfield_radio .gchoice input:checked + label {
    border-color: var(--red);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.fusion-modal.needs_quiz .gfield_radio .gchoice label:after {
    content: '';
    display: block;
    width: 28px;
    height: 20px;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.fusion-modal.needs_quiz .gfield_radio .gchoice label:hover:after {
    background: url('img/icon-circle.svg') no-repeat center center;
    background-size: contain;
}

.fusion-modal.needs_quiz .gfield_radio .gchoice input:checked + label:after {
    background: url('img/icon-checkmark.svg') no-repeat center center;
    background-size: contain;
}

.fusion-modal.needs_quiz .gfield_radio .gchoice label span {
    text-transform: none;
    font-weight: normal;
    margin-top: 8px;
    display: block;
}

.fusion-modal.needs_quiz .modal-dialog .gfield--type-html .additional-context {
    background: #000;
    color: #fff;
}

.fusion-modal.needs_quiz .modal-dialog .gfield--type-html .additional-context .image-wrapper {
    aspect-ratio: 16 / 9;
    position: relative;
}

.fusion-modal.needs_quiz .modal-dialog .gfield--type-html .additional-context .image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.fusion-modal.needs_quiz .modal-dialog .gfield--type-html .additional-context .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4em;
}

.fusion-modal.needs_quiz .modal-dialog .gfield--type-html .additional-context .body strong {
    display: block;
    text-transform: uppercase;
}

.fusion-modal.needs_quiz .modal-dialog .gfield--type-html em {
    color: #58595B;
    font-size: 14px;
    line-height: 1.4em;
    display: block;
    margin-top: 20px;
}

.fusion-modal.needs_quiz .your-track {
    margin-bottom: 20px;
    border-top: 3px solid var(--red);
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
}

.fusion-modal.needs_quiz .your-track .track-name {
    text-transform: uppercase;
    font-weight: bold;
}

.fusion-modal.needs_quiz .your-track:has(.track-name:empty) {
    display: none;
}

/* hide extra subtext - easier than trimming it out */
.fusion-modal.needs_quiz .your-track .track-name span,
#for_your span {
    display: none;
}

.gform_page:has(#machine_results_wrapper) .gform-page-footer {
    flex-direction: column-reverse;
}

.gform_page:has(#machine_results_wrapper) .gform-page-footer .gform_previous_button {
    border: 0;
    background: transparent;
    letter-spacing: 0;
    padding: 0;
    text-decoration: underline;
    color: #000;
    border-radius: 0;
}

.gform_page:has(#machine_results_wrapper) .gform-page-footer .gform_previous_button:hover {
    text-decoration: none;
}

.gform_page:has(#machine_results_wrapper) .gform-page-footer *[type="submit"] {
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 30px;
    background: transparent;
    color: #000;
    border-color: #000;
}

.gform_page:has(#machine_results_wrapper) .gform-page-footer *[type="submit"]:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* hide footer and email until results pop in */
.gform_page:has(#machine_results_wrapper .analyzing) .gfield--type-email,
.gform_page:has(#machine_results_wrapper .analyzing) .gform-page-footer {
    display: none;
}

.recommendations-wrapper {
    display: flex;
    gap: max(4vw, 30px);
    flex-wrap: wrap;
}

#machine_results_wrapper > div {
    padding-bottom: 50px;
}

#machine_results_wrapper > div + div {
    border-top: 1px solid #D1D3D4;
    padding-top: 50px;
}

.recommendations-wrapper .machine-snippet {
    flex: 1 1 300px;
    background: #fff;
    padding: 30px;
}

.recommendations-wrapper .machine-snippet img {
    display: block;
    margin: 0 auto 20px;
    max-height: 325px;
    height: auto;
    width: auto;
}

.recommendations-wrapper + .fusion-button {
    margin-top: 30px;
}

#machine_results_wrapper .eyebrow {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--red);
    margin-bottom: 0px;
}

#machine_results_wrapper .eyebrow:first-child {
    margin-top: 0;
}

#machine_results_wrapper .eyebrow.grey {
    color: #58595B;
}

#machine_results_wrapper h3 {
    color: #000;
    margin-bottom: 10px;
}

#machine_results_wrapper .machine-snippet h3 {
    font-size: var(--h5_typography-font-size);
}

.recommendations-wrapper .machine-snippet ul {
    border-top: 1px solid #D1D3D4;
    padding-left: 0;
}

.recommendations-wrapper .machine-snippet ul li {
    border-bottom: 1px solid #D1D3D4;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}

.recommendations-wrapper .machine-snippet ul li * {
    flex: 1 1 0;
}

.tech-details-wrapper {
    margin-top: 10px;
}

.tech-details-wrapper .tech-item {
    border-top: 1px solid #D1D3D4;
    padding-top: 12px;
    padding-bottom: 12px;
}

.tech-details-wrapper .tech-item strong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-details-wrapper .tech-item strong .availability {
    padding: 3px 10px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.4;
}

.tech-details-wrapper .tech-item strong .availability.included {
    background: var(--red);
}

.tech-details-wrapper .tech-item strong .availability.unavailable {
    background: #D1D3D4;
    color: #000;
}

.tech-details-wrapper .tech-item p {
    margin-top: 5px;
    margin-bottom: 5px;
}

.bonus-tech-recommendation {
    background: #000;
    padding: 40px max(30px, 5vw);
    color: #fff;
    margin-left: calc(max(30px, 5vw) * -1);
    margin-right: calc(max(30px, 5vw) * -1);
    margin-bottom: 20px;
}

#machine_results_wrapper .bonus-tech-recommendation h3 {
    color: #fff;
}

.bonus-tech-recommendation .inner-content {
    background: #fff;
    color: #000;
    padding: min(4vw, 40px);
}

#machine_results_wrapper .bonus-tech-recommendation .inner-content h3 {
    color: #000;
}

.bonus-tech-recommendation .features-callout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.bonus-tech-recommendation .features-callout .feature {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    border-left: 3px solid #D1D3D4;
    gap: 6px;
}

.bonus-tech-recommendation .features-callout .feature p {
    margin: 0;
}

.bonus-tech-recommendation .inner-content .buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bonus-tech-recommendation .inner-content .fineprint {
    margin-top: 20px;
    font-size: 14px;
    color: #58595B;
    font-style: italic;
}

.fusion-modal.needs_quiz .ginput_container input {
    --form_border_color: #222;
    --form_border_radius: 0;
}

@media(max-width: 767px) {
    .fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step_label {
        padding-bottom: 5px;
    }

    .fusion-modal.needs_quiz .gform_wrapper.gravity-theme .gf_page_steps .gf_step_label .hide-mobile {
        display: none;
    }
}

@media(min-width: 768px) {
    .recommendations-wrapper {
        flex-wrap: nowrap;
    }

    .gsection.step-number h3 .show-mobile {
        display: none;
    }
}

@media(min-width: 641px) {
    .fusion-modal.needs_quiz .gfield_radio .gchoice label {
        padding: 25px;
    }

    .gform_page .gform_page_footer {
        max-width: 74.5%;
    }

    .fusion-modal.needs_quiz .your-track {
        border-top: 0;
        border-left: 3px solid var(--red);
    }
}

@media(max-width: 640px) {
    .fusion-modal.needs_quiz .your-track,
    .fusion-modal.needs_quiz .modal-dialog .gfield--type-html .additional-context {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}