#need-form[data-quote-compact] .quote-match-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px 16px;
}

#need-form[data-quote-compact] .quote-match-row > * {
    min-width: 0;
    margin-block: 0;
    gap: 4px;
}

#need-form[data-quote-compact] .w2-need-description {
    margin-block: 8px;
    padding-block: 12px;
}

#need-form[data-quote-compact] .w2-need-description > .field:first-child {
    margin: 0;
    gap: 5px;
}

#need-form[data-quote-compact] #need-description {
    min-block-size: 84px;
}

#need-form[data-quote-compact] .w2-need-description > .n-note {
    margin-block: 4px 8px;
}

#need-form[data-quote-compact] :is(.quote-applicant, .need-order-types) {
    min-width: 0;
    margin: 6px 0 10px;
    padding: 0;
    border: 0;
}

#need-form[data-quote-compact] :is(.quote-applicant, .need-order-types) legend {
    margin-block-end: 0;
    padding: 0;
    font-weight: 650;
}

#need-form[data-quote-compact] .need-order-types {
    display: block;
}

#need-form[data-quote-compact] .need-order-options {
    gap: 6px;
    margin-block-start: 4px;
}

#need-form[data-quote-compact] .quote-applicant-options {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0 8px;
}

#need-form[data-quote-compact] .quote-applicant-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    max-width: 100%;
    cursor: pointer;
    overflow-wrap: break-word;
}

#need-form[data-quote-compact] .quote-applicant-options input[type="radio"] {
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #193e50;
}

#need-form[data-quote-compact] .quote-applicant-options label:focus-within {
    outline: 2px solid #315d76;
    outline-offset: 2px;
    border-radius: 4px;
}

#need-form[data-quote-compact] #quote-customer-hint {
    margin: 0;
    line-height: 1.35;
}

#need-form[data-quote-compact] :is(#technical-details, #quote-preferences, .guest-contact-options) {
    margin-block: 5px;
    padding: 0 12px;
}

#need-form[data-quote-compact] :is(#technical-details, #quote-preferences, .guest-contact-options)[open] {
    padding-block-end: 12px;
}

#need-form[data-quote-compact] :is(#technical-details, #quote-preferences, .guest-contact-options) > summary {
    display: list-item;
    align-content: center;
    min-block-size: 44px;
    margin: 0;
    padding-block: 0;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: break-word;
}

#need-form[data-quote-compact] .quote-match-row .select-search-query-wrap {
    order: 1;
}

#need-form[data-quote-compact] .quote-match-row :is(#quote-technology-guide, .need-field-error) {
    order: 2;
    margin-block: 0;
}

body[data-journey] [data-workflow="needs"] > .n-heading[data-simple-quote] {
    margin-block: 8px 6px;
}

body[data-journey] [data-workflow="needs"] .n-heading[data-simple-quote] h1 {
    margin-block: 0 6px;
}

[data-simple-quote] .quote-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    max-width: 36rem;
    padding: 5px 0;
    margin: 0;
    border-block: 1px solid #cad8e3;
    list-style: none;
    color: #39566a;
    font-size: .875rem;
    line-height: 1.35;
}

[data-simple-quote] .quote-steps li {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding-inline-end: 4px;
    overflow-wrap: break-word;
}

[data-simple-quote] .quote-steps li + li {
    border-inline-start: 1px solid #cad8e3;
    padding-inline-start: 5px;
}

[data-simple-quote] .quote-steps [aria-current="step"] {
    padding-inline-start: 4px;
    color: #102b45;
    background: #dfebf2;
    box-shadow: inset 0 -2px #315d76;
    font-weight: 700;
}

[data-simple-quote] .quote-steps [data-quote-next-step] {
    color: #304d61;
    font-weight: 650;
}

body[data-journey] [data-workflow="needs"] .n-heading[data-simple-quote] p.quote-scope {
    margin: 6px 0 0;
    color: #39566a;
    font-size: .875rem;
    line-height: 1.4;
}

#need-form[data-quote-compact] .need-action-area {
    margin-block-start: 8px;
}

#need-form[data-quote-compact] .need-action-area[data-quote-primary] {
    padding-block-start: 0;
}

#need-form[data-quote-compact] .need-action-area .guest-preview-entry {
    padding-block-start: 8px;
}

@media (min-width: 360px) {
    #need-form[data-quote-compact] #need-description {
        block-size: 84px;
    }
}

@media (min-width: 760px) {
    #need-form[data-quote-compact] .w2-need-description {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    #need-form[data-quote-compact] .w2-need-description > :not(.quote-applicant, .need-order-types) {
        grid-column: 1 / -1;
    }

    #need-form[data-quote-compact] .quote-match-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
