.hh-wizard {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.hh-wizard-container {
    width: 100%;
    max-width: 640px;
}

.hh-wizard-progress {
    height: 6px;
    background: var(--hh-surface-soft-alt);
    border: 1px solid var(--hh-glass-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.hh-wizard-progress-bar {
    height: 100%;
    background: var(--hh-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.hh-wizard-progress-meta {
    margin-bottom: 1rem;
}

.hh-wizard-reassurance {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-surface-soft);
    color: var(--hh-text-muted);
    font-size: 0.8rem;
}

.hh-wizard-step-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    margin-bottom: 0.45rem;
}

.hh-wizard-step-label span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-surface-soft);
    color: var(--hh-text-secondary);
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 600;
}

.hh-wizard-step-remaining {
    background: rgba(var(--hh-primary-rgb), 0.12) !important;
    border-color: rgba(var(--hh-primary-rgb), 0.28) !important;
    color: var(--hh-text-primary) !important;
}

.hh-wizard-step-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hh-text-primary);
    margin-bottom: 0.6rem;
    text-align: left;
}

.hh-wizard-step-dots {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.hh-wizard-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--hh-surface-soft-hover);
    border: 1px solid var(--hh-glass-border);
}

.hh-wizard-step-dot.done {
    background: rgba(var(--hh-success-rgb), 0.82);
    border-color: rgba(var(--hh-success-rgb), 0.85);
}

.hh-wizard-step-dot.active {
    background: rgba(var(--hh-primary-rgb), 0.88);
    border-color: rgba(var(--hh-primary-rgb), 0.9);
    box-shadow: 0 0 0 3px rgba(var(--hh-primary-rgb), 0.16);
}

.hh-wizard-card {
    padding: 2rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: var(--hh-radius-card);
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-dark-surface);
    box-shadow: var(--hh-shadow-md);
}

.hh-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
}

.hh-wizard-icon-wrapper {
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(var(--hh-primary-rgb), 0.12);
    margin-bottom: 1rem;
}

.hh-wizard-celebration {
    animation: none;
}

.hh-wizard-step h1,
.hh-wizard-step h2 {
    margin: 0 0 0.5rem;
}

.hh-wizard-desc {
    color: var(--hh-text-secondary);
    margin-bottom: 1.15rem;
    line-height: 1.6;
    max-width: 500px;
}

.hh-wizard-desc-compact {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.hh-wizard-autosave-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-surface-soft);
    color: var(--hh-text-muted);
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.hh-wizard-trust-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.46rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--hh-security-rgb), 0.26);
    background: rgba(var(--hh-security-rgb), 0.12);
    color: var(--hh-text-secondary);
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.hh-wizard-trust-notes {
    width: 100%;
    max-width: 560px;
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.hh-wizard-trust-notes span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.8rem;
    color: var(--hh-text-muted);
}

.hh-wizard-checklist {
    width: 100%;
    max-width: 520px;
}

.hh-wizard-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hh-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--hh-glass-border);
    background: var(--hh-surface-soft);
    font-size: 0.95rem;
    color: var(--hh-text-secondary);
}

.hh-wizard-input-group {
    width: 100%;
    max-width: 420px;
}

.hh-wizard-inline-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hh-wizard-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    background: rgba(var(--hh-success-rgb), 0.14);
    color: var(--hh-success);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hh-wizard-upload-area {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.hh-wizard-upload-area input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hh-wizard-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 2px dashed rgba(var(--hh-primary-rgb), 0.35);
    border-radius: 16px;
    background: rgba(var(--hh-primary-rgb), 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--hh-text-secondary);
}

.hh-wizard-upload-label:hover {
    border-color: var(--hh-primary);
    background: rgba(var(--hh-primary-rgb), 0.12);
}

.hh-wizard-upload-area:focus-within .hh-wizard-upload-label {
    outline: 3px solid rgba(var(--hh-primary-rgb), 0.35);
    outline-offset: 3px;
}

.hh-wizard-upload-label.is-disabled,
.hh-wizard-upload-area.is-dom-locked .hh-wizard-upload-label {
    cursor: wait;
    opacity: 0.72;
    pointer-events: none;
}

.hh-wizard-upload-hint {
    margin: 0.65rem 0 0;
    color: var(--hh-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.hh-wizard-photo-preview {
    margin-bottom: 1rem;
}

.hh-wizard-photo-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(var(--hh-primary-rgb), 0.4);
    box-shadow: var(--hh-shadow-sm);
}

.hh-consent-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    width: 100%;
    max-width: 480px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 14px;
}

.hh-consent-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--hh-text-secondary);
}

.hh-consent-actions {
    width: 100%;
    max-width: 420px;
}

.hh-age-range {
    width: 100%;
    max-width: 100%;
}

.hh-age-range-field {
    margin-bottom: 0.75rem;
}

.hh-age-range-field label {
    font-size: 0.95rem;
    color: var(--hh-text-secondary);
    margin-bottom: 0.25rem;
    display: block;
}

.hh-wizard-panel {
    width: 100%;
    max-width: 520px;
    margin: 0.25rem auto 0;
    padding: 1rem;
}

.hh-wizard-panel--wide {
    max-width: 560px;
}

.hh-wizard-panel-title {
    margin: 0 0 0.7rem;
    font-size: 0.92rem;
    color: var(--hh-text-primary);
    text-align: left;
    font-weight: 700;
}

.hh-wizard-split-grid {
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.hh-wizard-split-item {
    padding: 1rem;
    border-radius: 14px;
}

/* ─── Nav buttons ──────────────────────────────────────── */
.hh-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hh-glass-border);
    gap: 0.75rem;
}

.hh-wizard-nav-spacer {
    width: 96px;
    min-height: 1px;
}

.hh-wizard-back-btn {
    min-width: 96px;
    justify-content: center;
}

.hh-wizard-next-btn {
    min-width: 176px;
    font-weight: 700;
}

/* ─── Shared chip/tag picker styles come from components.css ───────── */
.hh-checkbox-group {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.hh-radio-group {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    max-width: 100%;
}

.hh-radio-option {
    min-height: 52px;
    padding: 0.85rem 1rem;
}

.hh-interest-tags {
    gap: 0.55rem;
}

.hh-interest-tag-btn {
    font-size: 0.9rem;
}

.hh-interest-custom {
    max-width: 100%;
    margin: 0.9rem auto 0;
}

.hh-interest-custom-label {
    display: block;
    text-align: left;
    font-size: 0.8rem;
    color: var(--hh-text-muted);
    margin-bottom: 0.35rem;
}

.hh-interest-custom-input-row {
    gap: 0.5rem;
}

.hh-custom-interest-list {
    margin-top: 0.8rem;
    justify-content: flex-start;
    gap: 0.5rem;
}

.hh-custom-interest-tag .mud-icon-root {
    font-size: 0.9rem !important;
}

@media (max-width: 700px) {
    .hh-wizard-step-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .hh-wizard-step-name {
        font-size: 0.98rem;
    }

    .hh-wizard-checklist-grid {
        grid-template-columns: 1fr;
    }

    .hh-wizard-panel {
        padding: 0.85rem;
    }

    .hh-radio-group {
        grid-template-columns: 1fr;
    }

    .hh-wizard-split-grid {
        grid-template-columns: 1fr;
    }

    .hh-wizard-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .hh-wizard-nav-spacer {
        display: none;
    }

    .hh-wizard-back-btn,
    .hh-wizard-next-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hh-wizard-card {
        padding: 1.5rem 1rem;
    }

    .hh-checkbox-group {
        grid-template-columns: 1fr;
    }

    .hh-interest-custom-input-row {
        flex-direction: column;
    }

    .hh-interest-add-btn {
        width: 100%;
    }
}

/* ── Time estimate pill ── */
.hh-wizard-time-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hh-text-muted);
    background: var(--hh-surface-soft-alt);
    border: 1px solid var(--hh-glass-border);
}

/* ── Required / Optional badges ── */
.hh-badge-required,
.hh-badge-optional {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.hh-badge-required {
    color: var(--hh-primary);
    background: rgba(var(--hh-primary-rgb), 0.1);
}

.hh-badge-optional {
    color: var(--hh-text-muted);
    background: var(--hh-surface-soft-alt);
}

/* ── Collapsible privacy section ── */
.hh-wizard-collapsible {
    margin-top: 1.5rem;
    border: 1px solid var(--hh-glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.hh-wizard-collapsible-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--hh-text-primary);
    background: var(--hh-surface-soft-alt);
    list-style: none;
    user-select: none;
    transition: background var(--hh-transition-fast);
}

.hh-wizard-collapsible-summary::-webkit-details-marker {
    display: none;
}

.hh-wizard-collapsible-summary:hover {
    background: rgba(var(--hh-primary-rgb), 0.06);
}

.hh-wizard-collapsible[open] .hh-wizard-collapsible-summary {
    border-bottom: 1px solid var(--hh-glass-border);
}

.hh-wizard-trust-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hh-text-muted);
}

.hh-wizard-collapsible-body {
    padding: 1.2rem;
}
