.crw-wizard {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ffeef3, #ffffff);
    border-radius: 40px;
    padding: 32px;
    box-shadow: 0 40px 80px rgba(195, 28, 71, 0.16);
    color: #22223b;
    max-width: 1410px;
    margin: 0 auto;
}

.crw-wizard__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.crw-wizard__sidebar {
    flex: 0 0 260px;
    background: linear-gradient(180deg, #fff6f8, #ffffff);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(195, 28, 71, 0.12);
}

.crw-sidebar__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.crw-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.crw-stepper li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 24px;
    color: #a1a3b5;
    font-weight: 600;
    transition: 0.2s ease;
    cursor: default;
}

.crw-stepper li span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(214, 58, 90, 0.14);
    color: #d63a5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.crw-stepper li.active {
    background: linear-gradient(135deg, #d63a5a, #c81f4e);
    color: #fff;
    box-shadow: 0 18px 40px rgba(200, 31, 78, 0.35);
}

.crw-stepper li.active span {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.crw-stepper li:not(.active):hover {
    background: rgba(214, 58, 90, 0.12);
    color: #4c4f66;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(200, 31, 78, 0.16);
}

.crw-stepper li.completed span {
    background: rgba(214, 58, 90, 0.18);
    color: #d63a5a;
}

.crw-wizard__content {
    flex: 1 1 420px;
    background: #fff;
    border-radius: 36px;
    padding: 32px;
    box-shadow: 0 30px 90px rgba(31, 31, 43, 0.1);
}

.crw-alert {
    border-radius: 24px;
    padding: 16px 22px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(214, 58, 90, 0.2);
    background: rgba(214, 58, 90, 0.08);
    color: #c81f4e;
}

.crw-alert[data-type='success'] {
    border-color: rgba(10, 137, 62, 0.25);
    background: rgba(10, 137, 62, 0.08);
    color: #0a893e;
}

.crw-alert[data-type='info'] {
    border-color: rgba(34, 97, 172, 0.2);
    background: rgba(34, 97, 172, 0.08);
    color: #1f4a8a;
}

.crw-step {
    display: none;
}

.crw-step.active {
    display: block;
}

.crw-step header {
    margin-bottom: 28px;
}

.crw-step-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #c81f4e;
    margin-bottom: 8px;
    font-weight: 700;
}

.crw-step h2 {
    margin: 0;
    font-size: 2rem;
}

.crw-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.crw-fields--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.crw-field-group-title {
    grid-column: 1 / -1;
    margin: 4px 0 -2px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ae152d;
}

.crw-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #4c4f66;
}

.crw-fields input {
    border-radius: 18px;
    border: 1px solid #e2e3ee;
    padding: 14px 18px;
    font-size: 1rem;
    transition: 0.2s;
}

.crw-fields input[aria-invalid='true'] {
    border-color: #c81f4e;
    box-shadow: 0 0 0 2px rgba(200, 31, 78, 0.18);
}

.crw-fields input:focus {
    outline: none;
    border-color: #c81f4e;
    box-shadow: 0 0 0 3px rgba(200, 31, 78, 0.22);
}

.crw-step__actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.crw-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #f5f2ff;
    color: #6b6f92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.crw-btn--primary {
    background: linear-gradient(135deg, #d63a5a, #c81f4e);
    color: #fff;
    box-shadow: 0 15px 30px rgba(200, 31, 78, 0.35);
}

.crw-btn--primary:not(:disabled):hover {
    box-shadow: 0 18px 38px rgba(200, 31, 78, 0.45);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e1456a, #c81f4e);
}

.crw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.crw-btn.is-loading {
    opacity: 0.85;
    pointer-events: none;
    position: relative;
}

.crw-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
    right: 18px;
    top: 50%;
    margin-top: -8px;
    animation: crw-spin 0.9s linear infinite;
}

.crw-btn:not(.crw-btn--primary).is-loading::after {
    border-color: rgba(200, 31, 78, 0.35);
    border-top-color: #c81f4e;
}

@keyframes crw-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.crw-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(200, 31, 78, 0.22);
}

@media (max-width: 1200px) {
    .crw-step__actions {
        justify-content: center;
    }

    .crw-step__actions .crw-btn {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .crw-step__actions {
        justify-content: center;
    }

    .crw-step__actions .crw-btn {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }
}

.crw-branch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.crw-branch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 18px 45px rgba(200, 31, 78, 0.18);
    cursor: pointer;
    transition: 0.2s;
}

.crw-branch-card__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c3c3d6;
}

.crw-branch-card__title {
    font-size: 1.35rem;
    font-weight: 700;
}

.crw-branch-card__desc {
    color: #7c7f92;
}

.crw-branch-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: auto;
}

.crw-branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(200, 31, 78, 0.26);
}

.crw-branch-card.selected {
    border-color: #d63a5a;
    background: rgba(214, 58, 90, 0.08);
}

.crw-specialization__placeholder {
    padding: 24px;
    border-radius: 24px;
    background: rgba(214, 58, 90, 0.08);
    color: #9b1742;
    font-weight: 600;
    margin-bottom: 24px;
}

.crw-specialization-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.crw-specialization {
    display: none;
    border: 1px solid rgba(214, 58, 90, 0.1);
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(214, 58, 90, 0.04), #ffffff);
}

.crw-specialization.active {
    display: block;
}

.crw-specialization h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.crw-specialization__body {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: 24px;
}

.crw-specialization__radios,
.crw-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crw-specialization__empty {
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(174, 21, 45, 0.4);
    background: #fff;
    color: #751022;
    font-weight: 600;
}

.crw-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    padding-left: 56px;
    border-radius: 22px;
    border: 2px solid #f3e1e8;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    min-height: 72px;
    justify-content: center;
}

.crw-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.crw-choice::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 24px;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(214, 58, 90, 0.32);
    border-radius: 50%;
    background: #fff;
    transition: 0.2s;
}

.crw-choice--checkbox::before {
    border-radius: 6px;
}

.crw-choice__title {
    font-weight: 700;
    color: #2f2f44;
}

.crw-choice__desc {
    color: #6d6f88;
    font-size: 0.95rem;
}

.crw-choice:hover {
    border-color: #d63a5a;
    box-shadow: 0 18px 40px rgba(200, 31, 78, 0.2);
}

.crw-choice.selected {
    border-color: #d63a5a;
    background: rgba(214, 58, 90, 0.1);
}

.crw-choice.selected::before {
    border-color: #d63a5a;
    background: #d63a5a;
    box-shadow: 0 6px 14px rgba(200, 31, 78, 0.32);
}

.crw-specialization__checkboxes {
    border-radius: 24px;
    background: #fff;
    padding: 20px;
    min-height: 200px;
    box-shadow: inset 0 0 0 1px rgba(214, 58, 90, 0.16);
}

.crw-checkbox-panel {
    display: none;
}

.crw-checkbox-panel.active {
    display: block;
}

.crw-checkbox-panel__title {
    font-weight: 700;
    margin-top: 0;
}

.crw-checkbox-panel__empty {
    margin: 0;
    color: #8f8fa8;
}

.crw-checkbox-panel--placeholder {
    text-align: center;
    color: #9b1742;
}

.crw-success {
    text-align: center;
    padding: 40px;
}

@media (max-width: 960px) {
    .crw-wizard__inner {
        flex-direction: column;
    }

    .crw-wizard__sidebar,
    .crw-wizard__content {
        width: 100%;
    }

    .crw-specialization__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .crw-stepper {
        flex-direction: row;
        justify-content: space-between;
    }

    .crw-stepper li {
        flex-direction: column;
        align-items: center;
    }

    .crw-stepper li strong {
        font-size: 0.8rem;
    }

    .crw-wizard {
        padding: 20px;
    }

    .crw-wizard__content {
        padding: 24px;
    }

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