*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #3366cc;
    --primary-hover: #2952a3;
    --success: #28a745;
    --border: #dee2e6;
    --text: #212529;
    --text-muted: #6c757d;
    --radius: 8px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: #f5f7fa;
    padding: 0.75rem;
}

/* Container */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.wizard-header {
    background: var(--primary);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-header__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    filter: brightness(0) invert(1);
}

.wizard-header__logo {
    width: 48px;
    height: 48px;
}

.wizard-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.reset-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.reset-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.reset-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Step Indicator */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    background: #fafbfc;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    gap: 0.375rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 80px;
    cursor: pointer;
}

.wizard-step:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.wizard-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wizard-step__label {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.wizard-step--active .wizard-step__icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.wizard-step--active .wizard-step__label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step--completed .wizard-step__icon {
    background: var(--success);
    color: white;
}

.wizard-step--completed .wizard-step__label {
    color: var(--success);
}

.wizard-step--visited .wizard-step__icon {
    background: #ffc107;
    color: white;
}

.wizard-step--visited .wizard-step__label {
    color: #ffc107;
}

.wizard-step--skipped {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-step--skipped .wizard-step__icon {
    background: #e9ecef;
    color: var(--text-muted);
    text-decoration: line-through;
}

.wizard-step--skipped.wizard-step--completed .wizard-step__icon {
    background: #e9ecef;
    color: var(--text-muted);
}

.wizard-step--skipped.wizard-step--completed .wizard-step__label {
    color: var(--text-muted);
}

.wizard-step--skipped .wizard-step__label {
    text-decoration: line-through;
}

/* Content Area */
.wizard-content {
    padding: 1.25rem 1rem;
    min-height: 300px;
}

.step-content {
    animation: fadeIn 0.3s ease-in;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.75rem 0;
}

.step-description {
    margin-bottom: 1rem;
}

.step-description p {
    margin-bottom: 0.375rem;
}

/* Path Choice */
.path-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.path-option {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    background: white;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.path-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.path-option:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.path-option.selected {
    border-color: var(--primary);
    background: #e8f0fe;
}

.path-option__icon {
    font-size: 2.5rem;
    margin-bottom: 0.375rem;
}

.path-option__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.path-option__description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Checklist */
.checklist {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: background 0.2s, border-color 0.2s;
}

.checklist-item:hover {
    background: #f8f9fa;
}

.checklist-item input {
    width: 20px;
    height: 20px;
    margin: 2px 0.75rem 0 0;
    cursor: pointer;
}

.checklist-item label {
    cursor: pointer;
    flex: 1;
    transition: color 0.2s;
}

.checklist-item.completed {
    background: #f0fdf4;
    border-color: var(--success);
}

.checklist-item.completed label {
    color: var(--success);
}

/* Action Links */
.action-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.action-link {
    display: inline-block;
    padding: 1rem 1.25rem;
    background: var(--primary);
    border-radius: var(--radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(51, 102, 204, 0.2);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.action-link:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 102, 204, 0.3);
}

.action-link:active {
    transform: translateY(0);
}

.action-link:focus-visible {
    outline: 3px solid rgba(51, 102, 204, 0.3);
    outline-offset: 2px;
}

.action-link::after {
    content: "↗";
    font-size: 1.25rem;
    margin-left: 0.375rem;
}

/* Info Box */
.info-box {
    padding: 0.75rem 1rem;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: var(--radius);
    margin: 0.75rem 0;
    color: #004085;
}

.info-box__title {
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.info-box__content {
    font-size: 0.875rem;
}

.info-box__content li {
    margin-bottom: 0.375rem;
}

/* Completion Summary */
.completion-summary {
    background: #f0fdf4;
    border: 2px solid var(--success);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1rem 0;
}

.completion-summary__icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.completion-summary__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.75rem;
    text-align: center;
}

.completion-summary__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius);
}

.stat-item__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success);
}

.stat-item__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.next-steps {
    margin-top: 1rem;
}

.next-steps__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Navigation Buttons */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: background 0.2s, transform 0.2s;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .wizard-container {
        border-radius: 0;
    }

    .wizard-header {
        padding: 1rem;
    }

    .wizard-header__left {
        gap: 0.75rem;
    }

    .wizard-header__logo {
        width: 36px;
        height: 36px;
    }

    .wizard-header h1 {
        font-size: 1.25rem;
    }

    .reset-button {
        padding: 0.375rem;
        font-size: 0.75rem;
    }

    .wizard-steps {
        padding: 0.75rem;
    }

    .wizard-step {
        min-width: 60px;
    }

    .wizard-step__icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .wizard-content,
    .wizard-buttons {
        padding: 1rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .path-choice {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .wizard-step__label {
        display: none;
    }

    .wizard-steps {
        justify-content: space-around;
    }

    .completion-summary__stats {
        grid-template-columns: 1fr;
    }
}