/* Support Finder - questionnaire + results UI. Loaded only on /support-finder/ pages. */

.finder {
    max-width: 680px;
    margin: 0 auto;
    padding-block: 2.5rem 4rem;
}

.finder-progress {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
}
.finder-progress span {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--border);
}
.finder-progress span.is-done,
.finder-progress span.is-current { background: var(--primary); }

.finder-crisis-link {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}
.finder-crisis-link a { font-weight: 600; }

.finder-step { display: none; }
.finder-step.is-active { display: block; animation: finder-fade 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .finder-step.is-active { animation: none; } }
@keyframes finder-fade { from { opacity: 0; } to { opacity: 1; } }

.finder-step h2 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--primary-deep);
}
.finder-step .finder-hint {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.finder-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.finder-option {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.finder-option:hover { border-color: var(--primary); }
.finder-option.is-selected {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    font-weight: 600;
}
/* .finder-option's own `display: block` has the same specificity as the
   browser's [hidden] rule and would otherwise win on source order - force
   it explicitly so JS-driven conditional options actually hide. */
.finder-option[hidden] { display: none !important; }
.finder-option-limit-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: -1rem;
    margin-bottom: 1.25rem;
}

.finder-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.finder-nav button { font: inherit; }
.finder-btn-back {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-weight: 600;
    cursor: pointer;
    padding: 0.7rem 0.5rem;
}
.finder-btn-back:disabled { visibility: hidden; }
.finder-btn-next:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Results ---- */
.finder-results-intro { text-align: center; margin-bottom: 2rem; }
.finder-results-intro h1 { color: var(--primary-deep); }

.finder-result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.finder-result-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.finder-result-card p { color: var(--ink-muted); margin: 0 0 0.9rem; }
.finder-result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.finder-result-actions .btn-secondary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.finder-result-actions .btn-secondary:hover { background: var(--surface-alt); text-decoration: none; }

.finder-self-guided-resources {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}
.finder-self-guided-resources h4 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: var(--primary-deep);
}
.finder-self-guided-resources ul {
    margin: 0 0 0.75rem;
    padding-left: 1.2rem;
}
.finder-self-guided-resources li { margin-bottom: 0.35rem; }
.finder-self-guided-note {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin: 0;
}

.finder-loading { text-align: center; color: var(--ink-muted); padding: 3rem 0; }
.finder-error { text-align: center; color: #a13b30; padding: 1rem 0; }
