.wizard-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.wizard-heading {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2f7d5b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wizard-heading h1 {
    margin: 10px 0 8px;
    color: #263238;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.03em;
}

.wizard-heading p {
    margin: 0;
    color: #687184;
}

.wizard-progress {
    display: flex;
    align-items: center;
    max-width: 720px;
    margin: 0 auto 28px;
}

.wizard-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a9b3;
    font-size: .82rem;
    white-space: nowrap;
}

.wizard-progress-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dce1e6;
    border-radius: 50%;
    background: #fff;
    font-weight: 700;
}

.wizard-progress-item.active,
.wizard-progress-item.complete {
    color: #2f7d5b;
}

.wizard-progress-item.active span,
.wizard-progress-item.complete span {
    border-color: #2f7d5b;
    background: #e9f5ef;
    color: #2f7d5b;
}

.wizard-progress-item.complete span {
    font-size: 0;
}

.wizard-progress-item.complete span::before {
    content: '✓';
    font-size: 15px;
}

.wizard-progress-line {
    height: 1px;
    flex: 1;
    margin: 0 14px;
    background: #e1e5e9;
}

.wizard-step {
    display: none;
    padding: 28px;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(33, 37, 41, .06);
}

.wizard-step.active {
    display: block;
    animation: wizardFadeIn .25s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 26px;
}

.wizard-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 10px;
    background: #e9f5ef;
    color: #2f7d5b;
    font-weight: 700;
    letter-spacing: .04em;
}

.wizard-step h2 {
    margin: 0 0 5px;
    color: #263238;
    font-size: 1.35rem;
    font-weight: 700;
}

.wizard-step-header p {
    margin: 0;
    color: #687184;
    line-height: 1.6;
}

.wizard-search-box {
    padding: 20px;
    border-radius: 9px;
    background: #f8f9fb;
}

.wizard-search-box label {
    display: block;
    margin-bottom: 8px;
    color: #263238;
    font-weight: 600;
}

.wizard-search-box small {
    display: block;
    margin-top: 10px;
}

.wizard-inline-message {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 7px;
    font-size: .9rem;
}

.wizard-inline-message.info {
    background: #edf7fb;
    color: #287e9a;
}

.wizard-inline-message.success {
    background: #e9f5ef;
    color: #26734e;
}

.wizard-inline-message.warning {
    background: #fff5df;
    color: #936719;
}

.wizard-result {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #b8ddc8;
    border-radius: 9px;
    background: #f6fcf8;
}

.wizard-result.chosen {
    border-color: #2f9e68;
    box-shadow: 0 0 0 2px rgba(47, 158, 104, .1);
}

.wizard-result-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #d9f1e3;
    color: #26734e;
    font-size: 21px;
}

.wizard-result .result-label {
    display: block;
    margin-bottom: 3px;
    color: #26734e;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.wizard-result h5 {
    margin: 0 0 3px;
    font-size: 1rem;
}

.wizard-result p {
    margin: 0;
    color: #687184;
    font-size: .85rem;
}

.wizard-pks-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.wizard-pks-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #e5e9ed;
    border-radius: 9px;
    background: #fff;
}

.wizard-pks-card:hover,
.wizard-pks-card.selected {
    border-color: #2f9e68;
    background: #f8fcf9;
    box-shadow: 0 4px 16px rgba(33, 37, 41, .06);
}

.wizard-pks-card-main { min-width: 0; }
.wizard-pks-card-main h5 { overflow-wrap: break-word; word-break: break-word; }
.wizard-pks-status { display: inline-block; margin-bottom: 6px; color: #26734e; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wizard-pks-card h5 { margin: 0 0 10px; color: #263238; font-size: 1rem; font-weight: 700; }
.wizard-pks-details { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #687184; font-size: .82rem; }
.wizard-pks-details span { display: inline-flex; align-items: flex-start; gap: 5px; }
.wizard-pks-details i { color: #2f7d5b; font-size: 16px; }
.wizard-pks-details strong { margin-right: 3px; color: #4d5965; font-weight: 600; }
.wizard-pagination { margin-top: 18px; }
.wizard-pagination .page-link { color: #2f7d5b; }
.wizard-pagination .active .page-link { border-color: #2f7d5b; background: #2f7d5b; }
.wizard-loading { padding: 25px; color: #687184; text-align: center; }

.wizard-unavailable { margin-top: 22px; }
.wizard-unavailable-card {
    text-align: center;
    padding: 36px 28px;
    border: 1px solid #e5e9ed;
    border-radius: 12px;
    background: #fffaf5;
}
.wizard-unavailable-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef3e6;
    color: #e6952a;
    font-size: 32px;
    margin-bottom: 16px;
}
.wizard-unavailable-card h3 { margin: 0 0 8px; color: #263238; font-weight: 700; }
.wizard-unavailable-card p { color: #687184; max-width: 520px; margin: 0 auto; }

.wizard-result-heading {
    margin: 20px 0 10px;
    color: #263238;
    font-size: 1rem;
    font-weight: 700;
}

.wizard-question-primary {
    padding: 20px;
    border: 2px solid #d6e9de;
    border-radius: 10px;
    background: #f8fcf9;
}

.wizard-question-primary small {
    margin-top: 7px;
}

.wizard-choice:focus-visible,
.wizard-search-box input:focus-visible,
.wizard-search-box button:focus-visible,
.wizard-mou-actions a:focus-visible,
.wizard-actions button:focus-visible,
.wizard-actions a:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .35);
    outline-offset: 2px;
}

.wizard-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #edf0f2;
}

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

.wizard-question small {
    margin-top: 5px;
    color: #687184;
}

.wizard-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.wizard-choice.selected {
    color: #fff;
    background: #2f7d5b;
    border-color: #2f7d5b;
}

.wizard-context-chip,
.wizard-instruction {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 13px;
    border-radius: 7px;
    background: #e9f5ef;
    color: #26734e;
    font-size: .86rem;
}

.wizard-instruction {
    margin-top: 16px;
    margin-bottom: 0;
    background: #f8f9fb;
    color: #687184;
}

.wizard-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.wizard-summary > div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f1f7f3;
    color: #26734e;
    font-size: .85rem;
}

.wizard-form-section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #edf0f2;
    border-radius: 9px;
}

.wizard-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #263238;
    font-weight: 700;
}

.wizard-form-section-title i {
    color: #2f7d5b;
    font-size: 20px;
}

.wizard-template-link {
    display: block;
    margin-top: 7px;
    color: #2f7d5b;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.wizard-template-link:hover {
    text-decoration: underline;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.wizard-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-footer-links {
    padding: 22px 0 8px;
    color: #687184;
    text-align: center;
    font-size: .88rem;
}

.wizard-footer-links a {
    color: #2f7d5b;
    font-weight: 600;
    text-decoration: none;
}

.wizard-footer-links a:hover {
    text-decoration: underline;
}

.wizard-mou-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.wizard-select-card {
    position: relative;
    cursor: pointer;
    padding-right: 56px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .2s ease;
}

/* Subtle animation when cards first appear to draw attention */
@keyframes wizardCardPulse {
    0% { transform: scale(1); box-shadow: 0 4px 16px rgba(33, 37, 41, .06); }
    50% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(47, 158, 104, .15); border-color: #7fc3a1; }
    100% { transform: scale(1); box-shadow: 0 4px 16px rgba(33, 37, 41, .06); }
}

.wizard-select-card.animate-pulse:first-child {
    animation: wizardCardPulse 0.8s ease-in-out 1;
}

.wizard-select-card:hover {
    border-color: #7fc3a1;
}

.wizard-select-card:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .35);
    outline-offset: 2px;
}

.wizard-select-card.selected {
    border: 2px solid #2f9e68;
    background: #f2fbf6;
}

.wizard-card-check {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #dce1e6;
    background: transparent;
    color: transparent;
    font-size: 15px;
    transition: all .2s ease;
}

.wizard-select-card:hover .wizard-card-check {
    border-color: #7fc3a1;
}

.wizard-select-card.selected .wizard-card-check {
    border-color: #2f9e68;
    background: #2f9e68;
    color: #fff;
}

.wizard-status-registered {
    color: #2563eb !important;
}

.wizard-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2f7d5b;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.wizard-doc-link:hover {
    text-decoration: underline;
}

.wizard-not-found-link-wrap {
    text-align: center;
    margin-top: 4px;
}

.wizard-not-found-link {
    color: #687184;
    font-size: .9rem;
    text-decoration: underline;
}

.wizard-not-found-link:hover {
    color: #263238;
}

.wizard-actions .btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .wizard-step {
        padding: 20px 16px;
    }

    .wizard-progress-item strong {
        display: none;
    }

    .wizard-progress-line {
        margin: 0 8px;
    }

    .wizard-question {
        align-items: flex-start;
        flex-direction: column;
    }

    .wizard-choice-group {
        justify-content: flex-start;
        width: 100%;
    }

    .wizard-choice-group .btn {
        flex: 1;
    }

    .wizard-result {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .wizard-result .btn,
    .wizard-pks-card .btn {
        width: 100%;
    }

    .wizard-pks-card {
        align-items: stretch;
        flex-direction: column;
    }

    .wizard-mou-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .wizard-mou-actions .btn {
        flex: 1;
    }

    .wizard-actions,
    .wizard-actions-right {
        flex-wrap: wrap;
    }

    .wizard-actions-right {
        justify-content: flex-end;
        flex: 1;
    }
}
