/* P26M — Find a Provider: option grids, rows, chips, search, lead fields.
 * Page-scoped. References base tokens.
 */

/* ── Search input ───────────────────────────────────────────────────────── */
.finder__search {
    position: relative;
    display: flex;
    align-items: center;
}
.finder__search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--color-text-tertiary);
    pointer-events: none;
}
.finder__search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    transition: border-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
}
.finder__search-input::placeholder { color: var(--color-text-tertiary); }
.finder__search-input:focus-visible {
    outline: none;
    border-color: rgba(115, 196, 75, 0.5);
    box-shadow: 0 0 0 3px rgba(115, 196, 75, 0.18);
}

/* ── Option grid (industry) ─────────────────────────────────────────────── */
.finder__optgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}
.finder-opt {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    min-height: 76px;
    padding: 16px 18px;
    text-align: left;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}
.finder-opt:hover {
    border-color: var(--color-border-strong);
    background: var(--color-overlay);
}
.finder-opt:focus-visible {
    outline: none;
    border-color: rgba(115, 196, 75, 0.55);
    box-shadow: 0 0 0 3px rgba(115, 196, 75, 0.18);
}
.finder-opt.is-selected {
    border-color: var(--color-brand);
    background: rgba(115, 196, 75, 0.08);
    box-shadow: var(--shadow-inset);
}
.finder-opt__label { font-weight: 500; }

/* Ensure the HTML [hidden] attribute wins over display:flex/flex rules on
   option buttons and chips. The browser UA [hidden]{display:none} has no
   !important in all engines, so an explicit author rule is required. */
.finder-opt[hidden],
.finder-chip-btn[hidden] { display: none; }

/* ── Option list (country — single select, scrollable) ──────────────────── */
.finder__optlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.finder-opt--row {
    justify-content: space-between;
    padding: 12px 16px;
}
.finder-opt__hint {
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-wide);
}

/* ── Chips (multi-select: currencies, methods) ──────────────────────────── */
.finder__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    max-height: 340px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
}
.finder-chip-btn {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}
.finder-chip-btn:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text);
}
.finder-chip-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(115, 196, 75, 0.18);
}
.finder-chip-btn.is-selected {
    border-color: rgba(115, 196, 75, 0.45);
    background: rgba(115, 196, 75, 0.12);
    color: var(--color-brand-strong);
}

/* Static chip (summary, detail) */
.finder-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-elevated);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

/* ── Lead form fields ───────────────────────────────────────────────────── */
.finder__fieldgroup {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.finder__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
}
.finder__label {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.finder__label-req {
    color: var(--color-brand);
    font-weight: 700;
    margin-inline-start: var(--space-1);
}
.finder__input {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    transition: border-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
}
.finder__input::placeholder { color: var(--color-text-tertiary); }
.finder__input:focus-visible {
    outline: none;
    border-color: rgba(115, 196, 75, 0.5);
    box-shadow: 0 0 0 3px rgba(115, 196, 75, 0.18);
}
.finder__input[aria-invalid="true"] {
    border-color: var(--color-danger);
}
.finder__field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 480px) {
    .finder__field-row { grid-template-columns: 1fr 1fr; }
}
.finder__privacy {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    border-inline-start: 2px solid var(--color-border);
    border-radius: 0;
    margin: 0;
}
.finder__error {
    display: none;
    color: var(--color-danger);
    font-size: var(--fs-xs);
}
.finder__error[data-visible] { display: block; }

/* Honeypot — visually removed, kept for bots */
.finder__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 560px) {
    .finder__optgrid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .finder__input { transition: none; }
}
