/* ===== Wizard ===== */
.wizard {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Progress Bar --- */
.wizard__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.progress-step__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border-strong);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .progress-step__circle {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.progress-step.done .progress-step__circle {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.progress-step__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.progress-step.active .progress-step__label {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-step.done .progress-step__label {
    color: var(--accent-success);
}

.progress-step__line {
    flex: 1;
    height: 2px;
    background: var(--border-strong);
    min-width: 40px;
    max-width: 80px;
    margin-bottom: 1.5rem;
}

/* --- Card --- */
.wizard__card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.wizard__header {
    margin-bottom: 1.75rem;
}

.wizard__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.wizard__subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* --- Fields --- */
.wizard__fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.field__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field__optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
}

.field__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.field__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field__input::placeholder {
    color: var(--text-muted);
}

.field__textarea {
    resize: vertical;
    min-height: 80px;
}

.field__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Error state */
.field--error .field__input {
    border-color: var(--accent-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field__error {
    font-size: 0.8125rem;
    color: var(--accent-danger);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field__error::before {
    content: '⚠';
    font-size: 0.75rem;
}

/* Hint */
.field__hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.field__hint a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.field__hint a:hover {
    color: #60a5fa;
}

/* --- Checkboxes --- */
.field__checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item__check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-item input:checked~.checkbox-item__check {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-item input:checked~.checkbox-item__check::after {
    content: '✓';
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
}

.checkbox-item input:checked~.checkbox-item__label {
    color: var(--text-primary);
}

.checkbox-item__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

/* --- Chips --- */
.field__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.chip {
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chip--selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* --- Actions --- */
.wizard__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .wizard {
        padding: 1.25rem 1rem;
        padding-bottom: 6rem;
    }

    .wizard__card {
        padding: 1.5rem 1.25rem;
    }

    .field__checkboxes {
        grid-template-columns: 1fr;
    }

    .wizard__actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-top: 1px solid var(--border);
        padding: 1rem 1.5rem;
        margin-top: 0;
        z-index: 100;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    }

    .progress-step__label {
        font-size: 0.6875rem;
    }

    .progress-step__circle {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 375px) {
    .wizard__title {
        font-size: 1.25rem;
    }

    .wizard__card {
        padding: 1.25rem 1rem;
    }
}

.wizard__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 0.5rem;
}

.wizard__brand-logo {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.wizard__brand-tagline {
  font-size: 0.85em;
  color: var(--text-muted);
}