.quote-hero {
    padding: 68px 0 76px;
}

.quote-hero h1 {
    margin-bottom: .8rem;
}

.quote-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.4rem;
    margin-top: 1.5rem;
    color: #d4e4f0;
    font-size: .74rem;
    font-weight: 700;
}

.quote-hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.quote-hero-proof i {
    color: #ff9a54;
    font-size: .95rem;
}

.quote-wizard-page {
    padding: 82px 0 100px;
    background: #f3f7fa;
}

.quote-wizard-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.wizard-sidebar {
    position: sticky;
    top: 96px;
    padding: 1.8rem;
    color: #fff;
    background: linear-gradient(145deg, #052b50, #074876);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(6, 43, 82, .18);
}

.wizard-sidebar h2 {
    margin: .6rem 0 1.7rem;
    font: 800 1.45rem/1.25 "Manrope", sans-serif;
    letter-spacing: -.035em;
}

.wizard-progress {
    position: relative;
    display: grid;
    gap: .3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-progress::before {
    content: "";
    position: absolute;
    top: 27px;
    bottom: 27px;
    left: 20px;
    width: 1px;
    background: rgba(255, 255, 255, .18);
}

.wizard-progress li {
    position: relative;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 64px;
    color: #9fbbcf;
}

.wizard-progress b {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    display: grid;
    place-items: center;
    color: #aac2d4;
    background: #0a3b65;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    font-size: .72rem;
}

.wizard-progress strong,
.wizard-progress small {
    display: block;
}

.wizard-progress strong {
    color: inherit;
    font: 700 .78rem "Manrope", sans-serif;
}

.wizard-progress small {
    margin-top: .12rem;
    color: inherit;
    font-size: .63rem;
}

.wizard-progress li.active,
.wizard-progress li.complete {
    color: #fff;
}

.wizard-progress li.active b {
    color: #fff;
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 0 5px rgba(244, 120, 32, .16);
}

.wizard-progress li.complete b {
    color: #fff;
    background: #16a765;
    border-color: #16a765;
}

.wizard-assurance {
    display: flex;
    gap: .7rem;
    margin-top: 1.7rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.wizard-assurance > i {
    color: #58dda0;
    font-size: 1.25rem;
}

.wizard-assurance strong,
.wizard-assurance small {
    display: block;
}

.wizard-assurance strong {
    font-size: .72rem;
}

.wizard-assurance small {
    margin-top: .25rem;
    color: #b3cadb;
    font-size: .62rem;
    line-height: 1.5;
}

.quote-wizard {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe8ee;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(6, 43, 82, .09);
}

.wizard-honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.wizard-alert {
    margin: 1.5rem 2rem 0;
    align-items: flex-start;
}

.wizard-alert strong {
    display: block;
    margin-bottom: .15rem;
}

.wizard-mobile-progress {
    display: none;
}

.wizard-step {
    padding: 2.2rem;
    border-bottom: 1px solid #e6edf2;
}

.quote-wizard.enhanced .wizard-step:not(.active) {
    display: none;
}

.wizard-step-heading {
    margin-bottom: 1.7rem;
}

.wizard-step-heading > span {
    color: var(--orange);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.wizard-step-heading h2 {
    margin: .35rem 0 .45rem;
    color: var(--navy);
    font: 800 clamp(1.7rem, 3vw, 2.35rem)/1.12 "Manrope", sans-serif;
    letter-spacing: -.045em;
}

.wizard-step-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.wizard-product-search {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.2rem;
    padding: .8rem 1rem;
    background: #f8fafb;
    border: 1px solid #dce6ed;
    border-radius: 10px;
}

.wizard-product-search i {
    color: #7690a4;
}

.wizard-product-search input {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
}

.wizard-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    max-height: 650px;
    overflow-y: auto;
    padding: 3px 7px 10px 3px;
    scrollbar-color: #aec4d3 transparent;
    scrollbar-width: thin;
}

.wizard-product {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.wizard-product.selected {
    border-color: #1680c4;
    box-shadow: 0 0 0 3px rgba(22, 128, 196, .1);
}

.wizard-product[hidden] {
    display: none;
}

.wizard-product-choice {
    min-height: 95px;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: stretch;
    cursor: pointer;
}

.wizard-product-choice > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-product-choice img {
    width: 74px;
    height: 100%;
    min-height: 95px;
    object-fit: cover;
}

.wizard-product-choice > span {
    min-width: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: .75rem;
}

.wizard-product-choice small,
.wizard-product-choice strong {
    display: block;
}

.wizard-product-choice small {
    overflow: hidden;
    color: var(--orange);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.wizard-product-choice strong {
    margin-top: .18rem;
    color: var(--navy);
    font: 700 .8rem "Manrope", sans-serif;
}

.wizard-product-choice em {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .45rem;
    color: var(--blue);
    font-size: .61rem;
    font-style: normal;
    text-transform: uppercase;
}

.wizard-product-choice em b {
    font-weight: 800;
}

.wizard-product.selected .wizard-product-choice em {
    color: #128753;
}

.wizard-product.selected .wizard-product-choice em i::before {
    content: "\f26e";
}

.wizard-product-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    padding: 1rem;
    background: #f4f8fb;
    border-top: 1px solid #dfe8ee;
}

.wizard-product-config[hidden] {
    display: none;
}

.wizard-product-config .wide,
.wizard-fields .wide,
.custom-product-fields .wide {
    grid-column: 1 / -1;
}

.wizard-product-config label,
.wizard-fields > label,
.custom-product-fields label {
    color: #36546b;
    font-size: .67rem;
    font-weight: 700;
}

.wizard-product-config input,
.wizard-product-config select,
.wizard-fields input,
.wizard-fields select,
.wizard-fields textarea,
.custom-product-fields input,
.custom-product-fields select {
    width: 100%;
    min-height: 46px;
    margin-top: .32rem;
    padding: .7rem .8rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d6e1e9;
    border-radius: 8px;
    outline: 0;
    font: 500 .77rem "DM Sans", sans-serif;
}

.wizard-product-config :is(input, select):focus,
.wizard-fields :is(input, select, textarea):focus,
.custom-product-fields :is(input, select):focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 85, 149, .1);
}

.custom-product-panel {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px dashed #b9cad7;
    border-radius: 12px;
}

.custom-product-panel > button {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    color: var(--navy);
    background: #f8fbfd;
    border: 0;
    text-align: left;
}

.custom-product-panel > button > i:first-child {
    color: var(--orange);
    font-size: 1.25rem;
}

.custom-product-panel > button > i:last-child {
    margin-left: auto;
}

.custom-product-panel button strong,
.custom-product-panel button small {
    display: block;
}

.custom-product-panel button strong {
    font-size: .78rem;
}

.custom-product-panel button small {
    margin-top: .12rem;
    color: var(--muted);
    font-size: .64rem;
}

.custom-product-fields {
    display: grid;
    grid-template-columns: 1.4fr .6fr .6fr;
    gap: .8rem;
    padding: 1rem;
    border-top: 1px dashed #c8d5df;
}

.custom-product-fields[hidden] {
    display: none;
}

.wizard-inline-error {
    margin: 1rem 0 0;
    padding: .7rem .85rem;
    color: #a12828;
    background: #feeeee;
    border-radius: 8px;
    font-size: .72rem;
}

.wizard-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.wizard-fields textarea {
    resize: vertical;
}

.wizard-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.wizard-choice-group legend {
    width: 100%;
    margin-bottom: .1rem;
    color: #36546b;
    font-size: .67rem;
    font-weight: 700;
}

.wizard-choice-group label {
    flex: 1 1 120px;
    cursor: pointer;
}

.wizard-choice-group input {
    position: absolute;
    opacity: 0;
}

.wizard-choice-group span {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem;
    color: #536d81;
    background: #f8fafb;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    font-size: .68rem;
    font-weight: 700;
}

.wizard-choice-group input:checked + span {
    color: var(--navy);
    background: #eaf5fc;
    border-color: #1680c4;
    box-shadow: 0 0 0 2px rgba(22, 128, 196, .08);
}

.wizard-choice-group input:focus-visible + span {
    outline: 3px solid rgba(11, 85, 149, .18);
}

.wizard-file-field > span,
.wizard-file-field > span small {
    display: block;
}

.wizard-file-field > span small {
    margin-top: .12rem;
    color: #7a8f9f;
    font-weight: 500;
}

.wizard-file-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-file-field em {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .45rem;
    color: var(--blue);
    background: #f5fafe;
    border: 1px dashed #9bbbd1;
    border-radius: 10px;
    font-size: .72rem;
    font-style: normal;
    cursor: pointer;
}

.wizard-file-field em i {
    font-size: 1.2rem;
}

.wizard-review {
    display: grid;
    gap: .8rem;
}

.wizard-review-card {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e0e8ee;
    border-radius: 10px;
}

.wizard-review-card > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #e7f3fb;
    border-radius: 9px;
    font-size: 1.15rem;
}

.wizard-review-card strong,
.wizard-review-card small {
    display: block;
}

.wizard-review-card strong {
    color: var(--navy);
    font-size: .79rem;
}

.wizard-review-card small {
    margin-top: .22rem;
    color: var(--muted);
    font-size: .68rem;
}

.wizard-review-card button {
    min-height: 38px;
    padding: .4rem .65rem;
    color: var(--blue);
    background: #fff;
    border: 1px solid #d6e1e9;
    border-radius: 7px;
    font-size: .62rem;
    font-weight: 800;
}

.wizard-consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-top: 1.2rem;
    color: #516b7e;
    font-size: .72rem;
}

.wizard-consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--blue);
}

.wizard-consent a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
}

.wizard-submit-assurance {
    display: flex;
    gap: .7rem;
    margin-top: 1.2rem;
    padding: .85rem;
    color: #246247;
    background: #edf9f3;
    border-radius: 9px;
}

.wizard-submit-assurance > i {
    color: #16a765;
    font-size: 1.1rem;
}

.wizard-submit-assurance strong,
.wizard-submit-assurance small {
    display: block;
}

.wizard-submit-assurance strong {
    font-size: .7rem;
}

.wizard-submit-assurance small {
    margin-top: .16rem;
    font-size: .63rem;
}

.wizard-actions {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 2.2rem;
    background: #fbfcfd;
}

.wizard-back {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .9rem;
    color: #4e687d;
    background: #fff;
    border: 1px solid #d8e2e9;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 800;
}

.wizard-selection-count {
    margin-left: auto;
    color: #718698;
    font-size: .68rem;
}

.wizard-next,
.wizard-submit {
    min-width: 160px;
}

.wizard-actions > [hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .quote-wizard-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .wizard-sidebar {
        padding: 1.4rem;
    }

    .wizard-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .quote-hero {
        padding: 52px 0 58px;
    }

    .quote-hero h1 {
        font-size: 2.45rem;
    }

    .quote-wizard-page {
        padding: 28px 0 155px;
    }

    .quote-wizard-layout {
        display: block;
    }

    .wizard-sidebar {
        display: none;
    }

    .quote-wizard {
        border-radius: 16px;
    }

    .wizard-mobile-progress {
        display: block;
        padding: 1rem 1.2rem 0;
        color: var(--navy);
        font-size: .65rem;
        font-weight: 800;
    }

    .wizard-mobile-progress > div {
        height: 5px;
        margin-top: .45rem;
        overflow: hidden;
        background: #e5edf2;
        border-radius: 10px;
    }

    .wizard-mobile-progress i {
        width: 25%;
        height: 100%;
        display: block;
        background: linear-gradient(90deg, var(--orange), #ff9b55);
        border-radius: inherit;
        transition: width .25s;
    }

    .wizard-step {
        padding: 1.35rem 1.2rem 1.6rem;
    }

    .wizard-step-heading {
        margin-bottom: 1.3rem;
    }

    .wizard-step-heading h2 {
        font-size: 1.7rem;
    }

    .wizard-fields {
        grid-template-columns: 1fr;
    }

    .wizard-fields .wide {
        grid-column: auto;
    }

    .wizard-actions {
        position: fixed;
        z-index: 1280;
        right: 12px;
        bottom: calc(var(--mobile-nav-height, 68px) + 30px + env(safe-area-inset-bottom));
        left: 12px;
        min-height: 74px;
        padding: .8rem 1rem;
        border: 1px solid #dfe8ee;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 25px rgba(6, 43, 82, .08);
    }

    .wizard-selection-count {
        display: none;
    }

    .wizard-next,
    .wizard-submit {
        min-width: 0;
        flex: 1;
    }

    .wizard-alert {
        margin: 1rem 1.2rem 0;
    }
}

@media (max-width: 480px) {
    .quote-hero h1 {
        font-size: 2.05rem;
    }

    .quote-hero-proof {
        gap: .55rem 1rem;
    }

    .wizard-product-choice {
        grid-template-columns: 68px 1fr;
    }

    .wizard-product-choice img {
        width: 68px;
    }

    .wizard-product-config {
        grid-template-columns: 1fr;
    }

    .wizard-product-config .wide {
        grid-column: auto;
    }

    .custom-product-fields {
        grid-template-columns: 1fr 1fr;
    }

    .custom-product-fields label:first-child,
    .custom-product-fields .wide {
        grid-column: 1 / -1;
    }

    .wizard-choice-group label {
        flex-basis: calc(50% - .4rem);
    }

    .wizard-review-card {
        grid-template-columns: 38px 1fr;
    }

    .wizard-review-card > i {
        width: 38px;
        height: 38px;
    }

    .wizard-review-card button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .wizard-product-grid {
        max-height: none;
        overflow: visible;
        padding: 0;
    }
}
