/* === WIZARD FRAMEWORK === */
html, body { overflow-x: hidden; max-width: 100%; }
.wizard { max-width: 760px; margin: 0 auto; padding: 1.5rem; overflow-x: hidden; }

/* Step Indicator */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.wizard-steps::-webkit-scrollbar { display: none; }

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    position: relative;
}
.wizard-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #2a2a2a;
    z-index: 0;
}
.wizard-step-item.done:not(:last-child)::after { background: #e8b84b; }

.wizard-step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #2a2a2a;
    background: #141414;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    color: #6b6055;
    position: relative; z-index: 1;
    transition: all 0.25s ease;
    cursor: default;
    min-width: 36px;
}
.wizard-step-item.active .wizard-step-dot {
    border-color: #e8b84b;
    background: #e8b84b;
    color: #0a0a0a;
    box-shadow: 0 0 0 4px rgba(232,184,75,0.15);
}
.wizard-step-item.done .wizard-step-dot {
    border-color: #e8b84b;
    background: transparent;
    color: #e8b84b;
}
.wizard-step-label {
    font-size: 0.65rem;
    color: #6b6055;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}
.wizard-step-item.active .wizard-step-label { color: #e8b84b; }
.wizard-step-item.done .wizard-step-label { color: #a09070; }

/* Step Content */
.wizard-content {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    min-height: 400px;
    opacity: 1;
    visibility: visible;
}
@media(max-width:600px) { .wizard-content { padding: 1.25rem; } }

.wizard-step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0e6d0;
    margin-bottom: 0.4rem;
}
.wizard-step-subtitle {
    font-size: 0.9rem;
    color: #6b6055;
    margin-bottom: 2rem;
}

/* Form Fields */
.wizard-field { margin-bottom: 1.5rem; }
.wizard-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a09070;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.wizard-field input[type=text],
.wizard-field input[type=email],
.wizard-field input[type=url],
.wizard-field textarea,
.wizard-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #f0e6d0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    min-height: 44px;
    box-sizing: border-box;
}
.wizard-field input:focus,
.wizard-field textarea:focus,
.wizard-field select:focus {
    outline: none;
    border-color: #e8b84b;
    box-shadow: 0 0 0 3px rgba(232,184,75,0.1);
}
.wizard-field .field-hint {
    font-size: 0.78rem;
    color: #6b6055;
    margin-top: 0.4rem;
}
.wizard-field .field-error {
    font-size: 0.78rem;
    color: #e05050;
    margin-top: 0.4rem;
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
    gap: 1rem;
}
.wizard-nav-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #a09070;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    text-decoration: none;
}
.wizard-nav-back:hover { border-color: #a09070; color: #f0e6d0; }

.wizard-nav-next {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #e8b84b;
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}
.wizard-nav-next:hover { background: #f5cc6a; transform: translateY(-1px); }
.wizard-nav-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Card Grid */
.wizard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.wizard-card {
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #0a0a0a;
    min-height: 44px;
}
.wizard-card:hover { border-color: #a09070; }
.wizard-card.selected { border-color: #e8b84b; box-shadow: 0 0 0 3px rgba(232,184,75,0.15); }
.wizard-card-preview {
    width: 100%; height: 80px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.wizard-card-label { font-size: 0.85rem; font-weight: 600; color: #f0e6d0; }
.wizard-card-desc { font-size: 0.75rem; color: #6b6055; margin-top: 0.2rem; }

.wizard-error {
    padding: 2rem;
    color: #e05050;
    text-align: center;
    font-size: 1rem;
}

.wizard-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(232,184,75,0.15);
    border: 1px solid rgba(232,184,75,0.3);
    border-radius: 20px;
    font-size: 0.72rem;
    color: #e8b84b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@keyframes wizardSlideIn {
    from { transform: translateY(6px); }
    to   { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .wizard-content { animation: wizardSlideIn 0.2s ease; }
}

@media(max-width:480px) {
    .wizard-step-label { display: none; }
    .wizard-step-dot { width: 30px; height: 30px; font-size: 0.7rem; }
    .wizard-card-grid { grid-template-columns: 1fr 1fr; }
}
