.wizard-page {
    padding-top: 28px;
}

.wizard-page .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.wizard-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
    margin-bottom: 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3765ad 0%, #4f80cd 100%);
    box-shadow: 0 12px 32px rgba(42, 74, 123, 0.22);
}

.wizard-page-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wizard-page-header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.wizard-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.wizard-back-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
    border: none;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(30, 58, 107, 0.14);
}

.wizard-back-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    width: 100%;
}

.wizard-page-header-empty {
    margin-bottom: 24px;
}

.wizard-empty-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.wizard-empty-state,
.wizard-empty-preview {
    height: 100%;
}

.wizard-empty-state .card-body,
.wizard-empty-preview .card-body,
.wizard-empty-state {
    display: flex;
    flex-direction: column;
}

.wizard-empty-state {
    align-items: center;
    justify-content: center;
    padding: 44px 34px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(79, 128, 205, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wizard-empty-illustration {
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, #3765ad 0%, #4f80cd 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 18px 30px rgba(55, 101, 173, 0.22);
}

.wizard-empty-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1f4f91;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wizard-empty-state h2 {
    margin: 18px 0 10px;
    color: #10233f;
    font-size: 1.8rem;
    line-height: 1.2;
}

.wizard-empty-state p {
    max-width: 560px;
    margin: 0;
    color: #526277;
    font-size: 0.98rem;
    line-height: 1.7;
}

.wizard-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.wizard-empty-steps {
    display: grid;
    gap: 16px;
}

.wizard-empty-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.wizard-empty-step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4e89;
    font-weight: 700;
}

.wizard-empty-step h4 {
    margin: 0 0 6px;
    color: #1e293b;
    font-size: 1rem;
}

.wizard-empty-step p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.wizard-main-column,
.wizard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card-modern {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf2;
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 700;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.wizard-overview-card .card-body {
    padding-bottom: 22px;
}

.wizard-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5eaf2;
}

.wizard-intro h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 1.55rem;
    font-weight: 700;
}

.wizard-intro p {
    margin: 0;
    color: #64748b;
}

.wizard-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    min-width: min(100%, 460px);
}

.meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
}

.meta-label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.meta-card strong {
    color: #1e293b;
    font-size: 0.96rem;
}

.wizard-alert {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #dbe7fa;
    background: #f8fbff;
    display: flex;
    gap: 14px;
    align-items: center;
}

.wizard-alert h4 {
    margin: 0 0 4px;
    font-size: 0.96rem;
    color: #1f365c;
}

.wizard-alert p {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
}

.wizard-alert.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.wizard-alert.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.wizard-alert.info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.wizard-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wizard-step-pill {
    border: 1px solid #d7e0ef;
    background: #f8faff;
    color: #1f365c;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wizard-step-pill span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1e3a6b;
}

.wizard-step-pill.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.wizard-step-pill.is-active span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-step-panel {
    display: none;
}

.wizard-step-panel.is-active {
    display: block;
}

.panel-subtitle {
    margin: 0 0 18px;
    color: #64748b;
}

.panel-grid,
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-card,
.review-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #f8fbff;
}

.info-card h4 {
    margin: 0 0 10px;
    color: #1f365c;
    font-size: 0.96rem;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li,
.sidebar-list li {
    padding: 7px 0;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
    font-size: 0.9rem;
}

.info-list li:last-child,
.sidebar-list li:last-child {
    border-bottom: 0;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #edf2f7;
    color: #334155;
}

.pill-badge.success,
.document-row.verified .pill-badge {
    background: #dcfce7;
    color: #166534;
}

.pill-badge.warning,
.document-row.pending .pill-badge {
    background: #fef9c3;
    color: #854d0e;
}

.pill-badge.danger,
.document-row.missing .pill-badge,
.document-row.rejected .pill-badge {
    background: #fee2e2;
    color: #991b1b;
}

.document-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.summary-tile {
    border: 1px solid #dbe5f5;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px 16px;
}

.summary-tile.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.tile-label,
.review-card span {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}

.tile-value,
.review-card strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f365c;
}

.document-list {
    display: grid;
    gap: 12px;
}

.document-row {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
}

.document-row.verified {
    border-left: 4px solid #16a34a;
}

.document-row.pending {
    border-left: 4px solid #f59e0b;
}

.document-row.missing,
.document-row.rejected {
    border-left: 4px solid #ef4444;
}

.document-meta h4 {
    margin: 0 0 6px;
    color: #1f365c;
    font-size: 0.98rem;
}

.document-meta p {
    margin: 3px 0;
    color: #475569;
    font-size: 0.86rem;
}

.doc-note {
    color: #92400e;
}

.document-state {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.terms-box {
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #fcfdff;
}

.terms-box h4 {
    margin: 0 0 10px;
    color: #1f365c;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: #334155;
    font-size: 0.92rem;
}

.wizard-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.summary-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 700;
}

.summary-name {
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.summary-email {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    word-break: break-word;
}

.summary-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-bottom: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #334155;
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    background: #f8fbff;
    border: 1px solid #dbe5f5;
}

.sidebar-link:hover {
    color: var(--primary);
    background: #eff6ff;
}

.wizard-toast {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 9999;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.wizard-toast.success { background: #16a34a; }
.wizard-toast.warning { background: #d97706; }
.wizard-toast.error { background: #dc2626; }
.wizard-toast.info { background: #2563eb; }

@media (max-width: 1100px) {
    .wizard-layout,
    .wizard-empty-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .wizard-page-header,
    .wizard-intro {
        flex-direction: column;
    }

    .wizard-meta-grid {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .wizard-page .container {
        width: 100%;
        max-width: 1200px;
        padding: 0 16px;
    }

    .wizard-page-header {
        padding: 22px 20px;
    }

    .wizard-empty-state {
        padding: 32px 22px;
    }

    .wizard-empty-state h2 {
        font-size: 1.45rem;
    }

    .wizard-stepper,
    .document-summary-grid,
    .panel-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .document-row {
        flex-direction: column;
    }

    .document-state {
        align-items: flex-start;
        text-align: left;
    }

    .wizard-navigation > * {
        width: 100%;
    }

    .wizard-empty-actions > * {
        width: 100%;
    }
}
