/* ============================================
   ACCENDO RFID DIAGNOSTIC WIZARD
   Premium B2B Enterprise
   ============================================ */

:root {
    --wiz-navy:      #0d1f42;
    --wiz-blue:      #1a56db;
    --wiz-blue-lt:   rgba(26, 86, 219, 0.06);
    --wiz-teal:      #0e7a6a;
    --wiz-ink:       #0f1923;
    --wiz-muted:     #64748b;
    --wiz-border:    #dde3ed;
    --wiz-bg:        #f7faff;
    --wiz-white:     #ffffff;
    --wiz-gradient:  linear-gradient(135deg, #0d1f42 0%, #1a56db 100%);
    --wiz-radius:    3px;
    --wiz-radius-lg: 4px;
}

/* --- STEP TRANSITIONS --- */
@keyframes wizardSlideIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes wizardSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-24px); }
}
.wizard-slide-in { animation: wizardSlideIn 0.25s ease forwards; }

/* --- MOBILE STEP NAME --- */
.wizard-mobile-step {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wiz-navy);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.75rem 0 0.25rem;
    border-bottom: 2px solid var(--wiz-border);
}

/* --- DIAGNOSTIC SCORE (legacy, kept for reference) --- */
.wizard-nav .wizard-score {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
.wizard-nav .wizard-score .score-ring {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}
.wizard-score .score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.wizard-score .score-bg {
    fill: none;
    stroke: var(--wiz-border);
    stroke-width: 2;
}
.wizard-score .score-fill {
    fill: none;
    stroke: var(--wiz-teal);
    stroke-width: 2.5;
    stroke-dasharray: 100;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}
.wizard-score .score-text {
    fill: var(--wiz-ink);
    font-size: 0.55rem;
    text-anchor: middle;
    font-weight: 800;
    transform: rotate(90deg);
    transform-origin: center;
}
.wizard-score .score-label {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wiz-muted);
    line-height: 1.2;
    white-space: nowrap;
}

/* --- PROGRESS INDICATOR --- */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    padding: 1.75rem 0 0.5rem;
}
.wizard-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wizard-progress-step .step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: 1.5px solid var(--wiz-border);
    color: var(--wiz-muted);
    background: var(--wiz-white);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.wizard-progress-step .step-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    color: var(--wiz-muted);
    white-space: nowrap;
    transition: color 0.3s;
}
.wizard-progress-step.active .step-number {
    background: var(--wiz-navy);
    border-color: var(--wiz-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 31, 66, 0.25);
}
.wizard-progress-step.active .step-label { color: var(--wiz-ink); }
.wizard-progress-step.completed .step-number {
    background: var(--wiz-teal);
    border-color: var(--wiz-teal);
    color: #fff;
}
.wizard-progress-step.completed .step-label { color: var(--wiz-teal); }
.wizard-progress-connector {
    width: 1.5rem;
    height: 2px;
    background: var(--wiz-border);
    margin: 0 0.25rem;
    transition: background 0.4s;
    flex-shrink: 0;
}
.wizard-progress-connector.completed { background: var(--wiz-teal); }

/* --- STEP PANELS --- */
.wizard-step { animation: wizardSlideIn 0.3s ease; }

/* --- SECTION HEADERS --- */
.wizard-section-title { /* JS scroll target — visual styling comes from card-header-title */ }
.wizard-section-subtitle {
    font-size: 0.9rem;
    color: var(--wiz-muted);
    margin-bottom: 2rem;
    max-width: 38rem;
    line-height: 1.6;
}

.wizard-field-hint { font-size: 0.78rem; color: var(--wiz-muted); margin-top: 0.25rem; }

/* --- SELECTION CARDS --- */
.wizard-card-grid { display: grid; gap: 0.75rem; }
.wizard-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wizard-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wizard-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wizard-card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 767.98px) {
    .wizard-card-grid.cols-3, .wizard-card-grid.cols-4, .wizard-card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .wizard-card-grid.cols-2, .wizard-card-grid.cols-3, .wizard-card-grid.cols-4, .wizard-card-grid.cols-5 { grid-template-columns: 1fr; }
}
.wizard-select-card {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 1.375rem;
    border: 1px solid var(--wiz-border);
    border-left: 3px solid transparent;
    border-radius: var(--wiz-radius-lg);
    background: var(--wiz-white);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
    text-align: left;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wizard-select-card:hover {
    border-color: var(--wiz-border);
    border-left-color: var(--wiz-blue);
    background: var(--wiz-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.wizard-select-card.selected {
    border-color: var(--wiz-border);
    border-left-color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.12);
    transform: translateY(0);
}
.wizard-select-card.selected::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--wiz-blue);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 0.65rem;
    background-repeat: no-repeat;
    background-position: center;
    animation: wizardCheckPop 0.25s ease;
}
@keyframes wizardCheckPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.wizard-select-card .card-icon { font-size: 1.375rem; margin-bottom: 0.625rem; color: var(--wiz-blue); }
.wizard-select-card .card-title { font-weight: 600; font-size: 0.875rem; color: var(--wiz-ink); line-height: 1.35; }
.wizard-select-card .card-sub { font-size: 0.75rem; color: var(--wiz-muted); margin-top: 0.2rem; line-height: 1.35; }
.wizard-select-card .card-desc { font-size: 0.775rem; color: var(--wiz-muted); margin-top: 0.25rem; line-height: 1.45; }
.wizard-select-card .card-tip { font-size: 0.75rem; color: var(--wiz-teal); font-style: italic; margin-top: 0.375rem; line-height: 1.4; }
.wizard-optional-notice { background: #f0f5ff; border: 1px solid #c7d8f8; border-radius: var(--wiz-radius); padding: 0.625rem 0.875rem; font-size: 0.825rem; color: #2c5282; margin-bottom: 1.5rem; }
.wizard-card-sub-inline { font-size: 0.75rem; color: var(--wiz-muted); font-weight: 400; }

/* Crossroads large cards */
.wizard-crossroads-card { padding: 1.75rem 1.5rem; text-align: center; border-left: 1px solid var(--wiz-border); border-left-width: 1px; }
.wizard-crossroads-card:hover, .wizard-crossroads-card.selected { border-left-width: 1px; border-top: 2px solid var(--wiz-blue); }
.wizard-crossroads-card .card-icon { font-size: 2rem; display: block; text-align: center; }
.wizard-crossroads-card .card-title { font-size: 1rem; text-align: center; }

/* Tech cards (BLE / LoRa / 4G) */
.wizard-tech-card .card-desc { font-size: 0.72rem; color: var(--wiz-muted); margin-top: 0.25rem; line-height: 1.45; }
.wizard-tech-card .card-icon { font-size: 1.5rem; margin-bottom: 0.375rem; color: var(--wiz-blue); }

/* Multi-select */
.wizard-select-card.multi-select.selected::after { border-radius: 2px; }

/* --- FORM INPUTS --- */
.wizard-input {
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius);
    padding: 0.7rem 0.875rem;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--wiz-white);
    color: var(--wiz-ink);
}
.wizard-input:focus { border-color: var(--wiz-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08); outline: none; }
.wizard-input.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08); background-color: rgba(220, 53, 69, 0.02); }
.wizard-textarea { min-height: 6rem; resize: vertical; }

/* intl-tel-input */
.wizard-phone-wrap .iti { width: 100%; }
.wizard-phone-wrap .iti__tel-input {
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius);
    padding: 0.7rem 0.875rem;
    padding-left: 5rem;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto;
    color: var(--wiz-ink);
}
.wizard-phone-wrap .iti__tel-input:focus { border-color: var(--wiz-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08); outline: none; }

/* --- VALIDATION --- */
.wizard-error { font-size: 0.775rem; color: #dc3545; margin-top: 0.35rem; min-height: 1.2em; opacity: 0; transition: opacity 0.2s; }
.wizard-error.visible { opacity: 1; }
@keyframes wizardFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* --- COMPLETION BAR --- */
.wizard-completion {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--wiz-white);
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius-lg);
}
.completion-track {
    flex: 1;
    height: 6px;
    background: var(--wiz-border);
    border-radius: 3px;
    overflow: hidden;
}
.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wiz-teal) 0%, var(--wiz-blue) 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}
.completion-meta {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    white-space: nowrap;
}
.completion-pct {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wiz-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.completion-txt {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--wiz-muted);
}

/* --- NAVIGATION BUTTONS --- */
.wizard-nav-error { color: #dc3545; font-size: 0.825rem; font-weight: 500; text-align: center; padding: 0.4rem 0.75rem; background: #fff5f5; border: 1px solid #f5c6cb; border-radius: var(--wiz-radius); margin-bottom: 0.75rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--wiz-border); }

/* --- INLINE ANNUAL --- */
.wizard-inline-annual { font-size: 0.82rem; font-weight: 600; color: var(--wiz-blue); white-space: nowrap; }
.wizard-inline-annual-mixed { font-size: 0.82rem; font-weight: 600; color: var(--wiz-blue); }


/* --- RTLS WARNING --- */
.wizard-rtls-warning { background: #fffbeb; border: 1px solid #f59e0b; border-left: 3px solid #f59e0b; border-radius: var(--wiz-radius-lg); padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.875rem; margin-top: 1rem; animation: wizardFadeIn 0.3s ease; }
.wizard-rtls-warning .warning-icon { font-size: 1.125rem; flex-shrink: 0; color: #b45309; }
.wizard-rtls-warning .warning-text { font-size: 0.85rem; color: #78350f; line-height: 1.55; }

/* --- PORTAL TIP --- */
.wizard-portal-tip { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 3px solid var(--wiz-blue); border-radius: var(--wiz-radius-lg); padding: 0.875rem 1.125rem; display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.82rem; color: var(--wiz-ink); line-height: 1.55; }
.wizard-portal-tip .tip-icon { font-size: 1rem; flex-shrink: 0; color: var(--wiz-blue); }

/* --- TAG CARDS (2-column grid with inline qty) --- */
.wizard-tag-card { display: flex; flex-direction: column; gap: 0.75rem; background: var(--wiz-white); border: 1px solid var(--wiz-border); border-radius: var(--wiz-radius-lg); padding: 1rem 1.125rem; transition: border-color 0.2s; }
.wizard-tag-card:focus-within { border-color: var(--wiz-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.06); }
.tag-card-info { display: flex; align-items: flex-start; gap: 0.75rem; }
.wizard-tag-card .tag-qty-input { max-width: 100%; width: 100%; }
.wizard-tag-consultant-note { font-size: 0.78rem; color: var(--wiz-muted); background: var(--wiz-bg); border: 1px solid var(--wiz-border); border-radius: var(--wiz-radius-lg); padding: 0.625rem 0.875rem; display: flex; align-items: flex-start; gap: 0.25rem; }
/* --- TAG MATERIALS (legacy rows, used in inventory branch) --- */
.wizard-tag-materials { display: flex; flex-direction: column; gap: 0.5rem; }
.tag-material-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--wiz-white); border: 1px solid var(--wiz-border); border-radius: var(--wiz-radius-lg); padding: 0.75rem 1.125rem; transition: border-color 0.2s; }
.tag-material-row:focus-within { border-color: var(--wiz-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.06); }
.tag-material-info { display: flex; align-items: center; gap: 0.875rem; flex: 1; min-width: 0; }
.tag-material-icon { font-size: 1.125rem; color: var(--wiz-blue); flex-shrink: 0; }
.tag-material-name { font-size: 0.85rem; font-weight: 600; color: var(--wiz-ink); }
.tag-material-hint { font-size: 0.72rem; color: var(--wiz-muted); margin-top: 1px; }
.tag-qty-input { width: 130px !important; text-align: center; flex-shrink: 0; font-weight: 600; }
.sensor-qty-input-wrap { flex-shrink: 0; }

/* --- RESUME BANNER --- */
.wizard-resume-banner { background: #fefce8; border: 1px solid #fde047; border-left: 3px solid #ca8a04; border-radius: var(--wiz-radius-lg); padding: 0.875rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; animation: wizardFadeIn 0.35s ease; }
.wizard-resume-banner .resume-text { font-size: 0.85rem; color: #713f12; font-weight: 500; }
.wizard-resume-banner .resume-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* --- INTRO SCREEN --- */
.wizard-intro {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    max-width: 520px;
    margin: 0 auto;
}
.intro-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
    border: 1px solid rgba(26,86,219,.15);
    border-radius: 100px;
    padding: 0.3rem 0.875rem;
    margin-bottom: 1.25rem;
}
.intro-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--wiz-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
    line-height: 1.2;
}
.intro-subtitle {
    font-size: 0.975rem;
    color: var(--wiz-muted);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}
.intro-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    display: inline-block;
}
.intro-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--wiz-ink);
    font-weight: 500;
    padding: 0.45rem 0;
}
.intro-benefit-icon {
    color: var(--wiz-blue);
    font-size: 1rem;
    flex-shrink: 0;
}
.intro-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
}
.btn-wizard-intro-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wiz-blue);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--wiz-radius-lg);
    padding: 0.875rem 2.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(26,86,219,.25);
    min-width: 220px;
}
.btn-wizard-intro-start:hover {
    background: #1444b8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,86,219,.3);
}
.btn-wizard-intro-talk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wiz-muted);
    text-decoration: none;
    border: 1px solid var(--wiz-border);
    border-radius: var(--wiz-radius-lg);
    padding: 0.625rem 1.5rem;
    background: var(--wiz-white);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    min-width: 220px;
}
.btn-wizard-intro-talk:hover {
    color: var(--wiz-blue);
    border-color: var(--wiz-blue);
    background: var(--wiz-blue-lt);
}
@media (max-width: 479.98px) {
    .intro-actions { gap: 0.75rem; width: 100%; }
    .btn-wizard-intro-start, .btn-wizard-intro-talk { width: 100%; min-width: 0; }
}

/* --- UNKNOWN CARDS --- */
.wizard-card-unknown { border-style: dashed !important; opacity: 0.8; }
.wizard-card-unknown.selected { border-left-color: #94a3b8 !important; background: rgba(148, 163, 184, 0.05) !important; opacity: 1; }
.wizard-card-unknown.selected::after { background-color: #94a3b8 !important; }

/* --- SUMMARY --- */
.wizard-summary-section { background: var(--wiz-white); border: 1px solid var(--wiz-border); border-radius: var(--wiz-radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; }
.wizard-summary-section .summary-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.875rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--wiz-border); }
.wizard-summary-section .summary-title { font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--wiz-navy); }
.wizard-summary-section .summary-edit { font-size: 0.775rem; color: var(--wiz-blue); cursor: pointer; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.wizard-summary-section .summary-edit:hover { color: #1446c0; }
.wizard-summary-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.85rem; }
.wizard-summary-row .summary-label { color: var(--wiz-muted); font-weight: 400; }
.wizard-summary-row .summary-value { color: var(--wiz-ink); font-weight: 600; text-align: right; max-width: 60%; }
.wizard-summary-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.wizard-summary-tags .tag { background: var(--wiz-bg); color: var(--wiz-navy); border: 1px solid var(--wiz-border); padding: 0.15rem 0.55rem; border-radius: 2px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }

/* --- PROCESSING (RFID wave) --- */
.wizard-processing { text-align: center; padding: 4rem 2rem; }
.wizard-processing .processing-wave { margin: 0 auto 2rem; width: 120px; height: 60px; }
.rfid-wave-svg { width: 100%; height: 100%; }
.wave-ring { fill: none; animation: waveExpand 2s ease-in-out infinite; transform-origin: center; }
.wave-ring-1 { animation-delay: 0s; }
.wave-ring-2 { animation-delay: 0.4s; }
.wave-ring-3 { animation-delay: 0.8s; }
@keyframes waveExpand {
    0% { opacity: 0.8; transform: scale(0.8); }
    50% { opacity: 0.3; transform: scale(1.2); }
    100% { opacity: 0.8; transform: scale(0.8); }
}
.wizard-processing .processing-title { font-size: 1.25rem; font-weight: 700; color: var(--wiz-ink); margin-bottom: 1.5rem; letter-spacing: -0.2px; }
.wizard-processing .processing-steps { display: flex; flex-direction: column; gap: 0.625rem; max-width: 20rem; margin: 0 auto 2rem; }
.wizard-processing .processing-step { font-size: 0.85rem; color: var(--wiz-muted); display: flex; align-items: center; gap: 0.75rem; transition: all 0.4s; }
.wizard-processing .processing-step.active { color: var(--wiz-navy); font-weight: 600; }
.wizard-processing .processing-step.done { color: var(--wiz-teal); }
.wizard-processing .processing-step .step-check { width: 1.1rem; text-align: center; }
.wizard-processing .progress-bar-track { width: 100%; max-width: 20rem; height: 2px; background: var(--wiz-border); border-radius: 1px; margin: 0 auto; overflow: hidden; }
.wizard-processing .progress-bar-fill { height: 100%; background: var(--wiz-gradient); width: 0%; transition: width 0.9s ease; }

/* --- SUCCESS SCREEN --- */
.wizard-success { text-align: center; padding: 4rem 2rem; animation: wizardFadeIn 0.5s ease; }
.success-icon-wrap { width: 4rem; height: 4rem; margin: 0 auto 1.5rem; }
.success-checkmark { width: 100%; height: 100%; }
.checkmark-circle { stroke: var(--wiz-teal); stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; fill: none; animation: checkCircle 0.6s ease 0.2s forwards; }
.checkmark-check { stroke: var(--wiz-teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; fill: none; animation: checkCheck 0.3s ease 0.6s forwards; }
@keyframes checkCircle { to { stroke-dashoffset: 0; } }
@keyframes checkCheck { to { stroke-dashoffset: 0; } }
.wizard-success .success-title { font-size: 1.625rem; font-weight: 800; color: var(--wiz-ink); letter-spacing: -0.4px; margin-bottom: 0.75rem; }
.wizard-success .success-desc { font-size: 0.9rem; color: var(--wiz-muted); line-height: 1.65; max-width: 26rem; margin: 0 auto; }
.success-next-steps { display: inline-block; margin-top: 1.75rem; padding: 1rem 1.75rem; background: var(--wiz-bg); border: 1px solid var(--wiz-border); border-radius: var(--wiz-radius-lg); font-size: 0.85rem; color: var(--wiz-muted); line-height: 1.8; text-align: left; }
.next-step-item { display: flex; align-items: center; gap: 0.25rem; }
.next-steplink { color: var(--wiz-blue); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.next-steplink:hover { color: #1446c0; }
.success-actions { margin-top: 2rem; }

/* --- ERROR STATE --- */
.wizard-error-state { text-align: center; padding: 4rem 2rem; }
.wizard-error-state .error-icon { font-size: 2.5rem; color: #dc3545; margin-bottom: 1rem; }
.wizard-error-state .error-title { font-size: 1.25rem; font-weight: 700; color: var(--wiz-ink); margin-bottom: 0.5rem; }
.wizard-error-state .error-desc { font-size: 0.9rem; color: var(--wiz-muted); line-height: 1.6; max-width: 24rem; margin: 0 auto 1.5rem; }
.btn-wizard-retry { background: var(--wiz-navy); border: none; color: #fff; padding: 0.625rem 2rem; border-radius: var(--wiz-radius); font-weight: 700; font-size: 0.825rem; letter-spacing: 0.5px; text-transform: uppercase; transition: all 0.2s; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-wizard-retry:hover { background: #162d5c; box-shadow: 0 4px 12px rgba(13, 31, 66, 0.25); }

/* --- RESPONSIVE --- */
@media (max-width: 767.98px) {
    .wizard-progress { flex-wrap: wrap; gap: 0.25rem; }
    .wizard-progress-connector { width: 1.25rem; }
    .wizard-progress-step .step-label { display: none; }
    .wizard-nav { flex-direction: column-reverse; gap: 0.75rem; }
    .wizard-nav > div { width: 100%; }
    .wizard-nav .btn { width: 100%; justify-content: center; text-align: center; }
    .wizard-nav-error { width: 100%; }
    .wizard-resume-banner { flex-direction: column; text-align: center; }
    .wizard-resume-banner .resume-actions { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
    .tag-material-row { flex-wrap: wrap; }
    .tag-qty-input { width: 100% !important; }
    .sensor-qty-row { flex-wrap: wrap; }
}