/* ============================================================
   auth.css (AccountService local)
   Все auth/whoami/public-layout/password-toggle стили живут в UiKit:
   - _content/Relive.App.UiKit/css/auth.css
   - _content/Relive.App.UiKit/css/public-layout.css
   - _content/Relive.App.UiKit/css/public-pages.css

   Здесь — только классы, ещё не вынесенные в UiKit:
   - find-therapist-* (страница /find-therapist)
   - tr-detail-*       (страница /admin/therapy-requests/{id})
   ============================================================ */

/* ===== FIND THERAPIST PAGE ===== */

.find-therapist-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.find-therapist-intro {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 0 10px;
    line-height: 1.5;
}

.find-therapist-optional {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 400;
}

.find-therapist-hint {
    font-size: 0.78rem;
    color: #6366f1;
    font-weight: 400;
}

.find-therapist-contacts-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
}

.find-therapist-required {
    color: #dc2626;
}

.find-therapist-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.find-therapist-success {
    text-align: center;
    padding: 12px 0;
}

.find-therapist-success-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 12px;
}

.find-therapist-success-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.find-therapist-success-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 8px;
}

.find-therapist-success-sub {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.find-therapist-budget-note {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.find-therapist-currency {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 14px;
}

.find-therapist-currency__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #334155;
    background: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.find-therapist-currency__button:hover:not(:disabled) {
    border-color: #64748b;
    background: #f8fafc;
}

.find-therapist-currency__button.active {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.find-therapist-currency__button:disabled {
    cursor: wait;
    opacity: .65;
}

.find-therapist-currency__button:focus-visible,
.find-therapist-budget-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .36);
    outline-offset: 2px;
}

.find-therapist-budget-status {
    min-height: 96px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: .88rem;
}

.find-therapist-budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.find-therapist-budget-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border-radius: 14px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    min-height: 96px;
    cursor: pointer;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.find-therapist-budget-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.find-therapist-budget-card.active {
    border-color: #1d4ed8;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.find-therapist-budget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.find-therapist-budget-range {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.45;
}

.find-therapist-budget-hint {
    font-size: .76rem;
    color: #64748b;
}

/* ===== THERAPY REQUEST DETAIL ===== */

.tr-detail-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tr-detail-row-col {
    flex-direction: column;
    gap: 6px;
}

.tr-detail-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 140px;
    font-size: 0.85rem;
}

.tr-detail-request-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e293b;
    white-space: pre-wrap;
}

.tr-detail-price-rate {
    margin-top: 5px;
    color: #64748b;
    font-size: .78rem;
}

:root[data-theme="dark"] .find-therapist-currency__button {
    color: #cbd5e1;
    background: #111827;
    border-color: #334155;
}

:root[data-theme="dark"] .find-therapist-currency__button:hover:not(:disabled) {
    color: #f8fafc;
    background: #172033;
    border-color: #64748b;
}

:root[data-theme="dark"] .find-therapist-currency__button.active {
    color: #bfdbfe;
    background: rgba(37, 99, 235, .22);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .16);
}

:root[data-theme="dark"] .find-therapist-budget-card {
    color: #e2e8f0;
    background: #111827;
    border-color: #334155;
}

:root[data-theme="dark"] .find-therapist-budget-card:hover {
    border-color: #64748b;
}

:root[data-theme="dark"] .find-therapist-budget-card.active {
    background: rgba(37, 99, 235, .18);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .14);
}

:root[data-theme="dark"] .find-therapist-budget-title {
    color: #f8fafc;
}

:root[data-theme="dark"] .find-therapist-budget-range {
    color: #cbd5e1;
}

:root[data-theme="dark"] .find-therapist-budget-note,
:root[data-theme="dark"] .find-therapist-budget-hint,
:root[data-theme="dark"] .find-therapist-budget-status,
:root[data-theme="dark"] .tr-detail-price-rate {
    color: #94a3b8;
}

:root[data-theme="dark"] .tr-detail-label {
    color: #94a3b8;
}

:root[data-theme="dark"] .tr-detail-request-text {
    color: #e2e8f0;
    background: #111827;
    border-color: #334155;
}

@media (max-width: 640px) {
    .find-therapist-currency {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .find-therapist-budget-grid {
        grid-template-columns: 1fr;
    }

    .find-therapist-budget-card {
        min-height: 88px;
    }

    .tr-detail-row {
        flex-direction: column;
        gap: 5px;
    }
}
