/*
 * "What do you want to get better at?" on /mentorship
 * (livewire/session-finder + x-mentorship.finder-result). A navy band: the
 * question and its goals on one side, the live results panel on the other.
 * Type: 13 meta · 15 body · 20 panel title · 32 question. Prefix .mfd-.
 */
.mfd {
    --mfd-navy: #1c1c6e;
    --mfd-brand: #4242d6;
    --mfd-gold: #efc15a;
    --mfd-wash: #f5f4ff;
    --mfd-ink: #1c1c6e;
    --mfd-body: #403d59;
    --mfd-muted: #6e6a85;
    --mfd-line: #e7e5f2;
    --mfd-ok: #2c7a51;
    --mfd-star: #e8a317;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center;
    margin-bottom: 48px; padding: 32px; border-radius: 20px; background: var(--mfd-navy); color: #fff;
    scroll-margin-top: 96px;
}

/* The question */
.mfd__ask { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.mfd__kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mfd-gold); }
:lang(ar) .mfd__kicker { letter-spacing: 0; text-transform: none; }
.mfd__title { margin: 0 0 12px; font-size: 32px; font-weight: 800; line-height: 1.15; color: #fff; text-wrap: balance; }
.mfd__goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mfd-goal {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: transparent;
    font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; text-align: start; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mfd-goal:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); }
.mfd-goal:focus-visible { outline: 2px solid var(--mfd-gold); outline-offset: 2px; }
.mfd-goal.is-picked { background: #fff; border-color: #fff; color: var(--mfd-ink); }
.mfd-goal__name { min-width: 0; overflow-wrap: anywhere; }
.mfd-goal__count { flex: none; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.mfd-goal.is-picked .mfd-goal__count { color: var(--mfd-brand); }

/* The answer */
.mfd__panel {
    display: flex; flex-direction: column; gap: 12px; min-height: 100%; padding: 20px 24px;
    border-radius: 16px; background: #fff; color: var(--mfd-body); transition: opacity .15s ease;
}
.mfd__panel.is-loading { opacity: .55; }
.mfd-panel__head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.mfd-panel__heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mfd-panel__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--mfd-ink); text-align: start; }
.mfd-panel__sub { margin: 0; font-size: 13px; line-height: 1.4; color: var(--mfd-muted); }

.mfd-level { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: #f1f0f6; }
.mfd-level__opt {
    min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
    font-size: 13px; font-weight: 600; color: var(--mfd-muted); cursor: pointer; white-space: nowrap;
}
.mfd-level__opt:hover { color: var(--mfd-ink); }
.mfd-level__opt.is-picked { background: #fff; color: var(--mfd-ink); box-shadow: 0 1px 2px rgba(28, 28, 110, .12); }
.mfd-level__opt:focus-visible { outline: 2px solid var(--mfd-brand); outline-offset: 1px; }

.mfd-panel__note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--mfd-wash); font-size: 13px; line-height: 1.5; color: var(--mfd-body); }
.mfd-panel__note i { flex: none; font-size: 16px; line-height: 1; color: var(--mfd-brand); }

.mfd-panel__list { margin: 0 -12px; padding: 0; list-style: none; }
.mfd-panel__list li + li { border-top: 1px solid var(--mfd-line); }
.mfd-row {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s ease;
}
.mfd-row:hover { background: var(--mfd-wash); color: inherit; }
.mfd-row:focus-visible { outline: 2px solid var(--mfd-brand); outline-offset: -2px; }
.mfd-row__face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mfd-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mfd-row__title {
    font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--mfd-ink); text-align: start; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mfd-row:hover .mfd-row__title { color: var(--mfd-brand); }
.mfd-row__meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; line-height: 1.4; color: var(--mfd-muted); }
.mfd-row__dot { margin-inline: 6px; color: #c9c6da; font-weight: 800; }
.mfd-row__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--mfd-body); font-weight: 600; }
.mfd-row__rating i { color: var(--mfd-star); line-height: 1; }
.mfd-row__price { font-size: 15px; font-weight: 800; color: var(--mfd-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mfd-row__price.is-free { color: var(--mfd-ok); }

.mfd-empty { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--mfd-wash); }
.mfd-empty__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--mfd-ink); }
.mfd-empty__body { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mfd-muted); }

.mfd-panel__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--mfd-muted); }
.mfd-panel__clear, .mfd-panel__browse {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none;
    font-size: 13px; font-weight: 600; color: var(--mfd-brand); text-decoration: none; cursor: pointer;
}
.mfd-panel__browse { margin-inline-start: auto; }
.mfd-panel__clear:hover, .mfd-panel__browse:hover { text-decoration: underline; }
.mfd-panel__browse i { line-height: 1; }

@media (max-width: 991.98px) {
    .mfd { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
    .mfd__title { font-size: 26px; }
}
@media (max-width: 575.98px) {
    .mfd { margin-inline: -4px; padding: 20px 16px; border-radius: 16px; }
    .mfd__panel { padding: 16px; }
    .mfd-goal { min-height: 44px; padding: 8px 12px; font-size: 14px; }
    .mfd-level { width: 100%; }
    .mfd-level__opt { flex: 1 1 auto; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .mfd-goal, .mfd-row, .mfd__panel { transition: none; }
}
