.unc-wizard {
    margin-top: 22px;
}

.unc-wizard-head {
    margin-bottom: 26px;
}

.unc-wizard-position {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #52606d;
}

.unc-wizard-progress {
    width: 100%;
    height: 6px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #e3e7eb;
    border-radius: 999px;
}

.unc-wizard-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: #52606d;
    border-radius: inherit;
    transition: width .18s ease;
}

.unc-wizard-steps {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unc-wizard-step-item button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    background: #fff;
    color: #4a5560;
    font: inherit;
    font-size: 12px;
    text-align: left;
}

.unc-wizard-step-item.is-current button {
    border-color: #aeb8c2;
    background: #f7f9fa;
    color: #1f2933;
    font-weight: 700;
}

.unc-wizard-step-item.is-complete button {
    cursor: pointer;
}

.unc-wizard-step-item button:disabled {
    opacity: 1;
    cursor: default;
}

.unc-wizard-step-number {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd2d9;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.unc-wizard-panel-heading {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e7eb;
}

.unc-wizard-panel-heading h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.unc-wizard-panel-heading p {
    max-width: 780px;
    margin: 0;
    color: #52606d;
    line-height: 1.6;
}

.unc-wizard-notices .notice p {
    white-space: pre-line;
}

.unc-wizard-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #d6a8a8;
    border-radius: 8px;
    background: #fffafa;
    line-height: 1.45;
}

.wizard-invalid input,
.wizard-invalid select,
.wizard-invalid textarea {
    border-color: #b96a6a !important;
}

.wizard-invalid.notice,
.wizard-invalid .notice {
    border-color: #b96a6a;
}

.unc-wizard-review {
    margin-bottom: 22px;
}

.unc-wizard-review h4 {
    margin: 0 0 14px;
    font-size: 18px;
}

.unc-wizard-review-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 16px 18px;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    background: #f7f9fa;
}

.unc-wizard-review-row {
    min-width: 0;
}

.unc-wizard-review-label {
    display: block;
    margin-bottom: 3px;
    color: #68737d;
    font-size: 12px;
}

.unc-wizard-review-row strong {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.unc-wizard-final-actions {
    margin-top: 22px;
}

.unc-wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e3e7eb;
}

.unc-wizard-button {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid #cbd2d9;
    background: #fff;
    color: #1f2933;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.unc-wizard-next {
    margin-left: auto;
    background: #1f2933;
    border-color: #1f2933;
    color: #fff;
}

.unc-wizard-button:hover {
    filter: brightness(.98);
}

.unc-wizard-button:focus-visible,
.unc-wizard-step-item button:focus-visible {
    outline: 2px solid #52606d;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .unc-wizard-steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .unc-wizard-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .unc-wizard-step-item {
        flex: 0 0 180px;
        scroll-snap-align: start;
    }

    .unc-wizard-review-list {
        grid-template-columns: 1fr;
    }

    .unc-wizard-nav {
        align-items: stretch;
    }

    .unc-wizard-button {
        flex: 1 1 0;
    }
}
