/* The application page's feedback modal (UTI-173): the New job dialog's frame,
   with the interviewer form's look from the My Interviews redesign (UTI-169). */
/* Ink comes from the shell; the purple-tinted rules, ground and brand are the
   UTI-169 design's own values, which no --hs token carries. */
#rec-feedback-modal, .fbm-form { --fbm-ink: var(--hs-ink); --fbm-soft: var(--hs-ink-soft); --fbm-line: #e4dff0; --fbm-rule: #efebf6; --fbm-brand: #49338d; --fbm-brand-strong: #3f2b86; --fbm-ground: #f4f2f7; }
html:has(#rec-feedback-modal .fbm), html:has(#rec-feedback-modal .fbm) body { overflow: hidden; }
.fbm-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(24, 18, 43, 0.38); backdrop-filter: blur(1.5px); animation: fbm-fade 180ms ease-out both; }
@keyframes fbm-fade { from { opacity: 0; } }
@keyframes fbm-pop { from { opacity: 0; transform: translate(-50%, calc(-50% + 0.6rem)); } }
.fbm { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(78rem, calc(100vw - 4rem)); height: min(54rem, calc(100vh - 3rem)); margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--fbm-ground); border-radius: 16px; box-shadow: 0 24px 64px rgba(24, 18, 43, 0.28); overflow: hidden; color: var(--fbm-ink); font-family: var(--ub-font); animation: fbm-pop 200ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.fbm-h { display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--fbm-line); }
.fbm-id { flex: 1; min-width: 0; }
.fbm-h h2 { margin: 0; font-family: var(--ub-font-display); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--fbm-ink); }
.fbm-h p { margin: 2px 0 0; font-size: 14px; color: var(--fbm-soft); }
.fbm-h p b { color: var(--fbm-ink); font-weight: 600; }
.fbm-av { width: 44px; height: 44px; border-radius: 50%; background: #f2effa; color: var(--fbm-brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.fbm-x { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--fbm-line); background: #fff; color: var(--fbm-soft); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.fbm-x svg { width: 16px; height: 16px; }
.fbm-b { overflow: auto; padding: 22px 24px 28px; scrollbar-width: thin; scrollbar-color: #d6cfe6 transparent; }
.fbm-b::-webkit-scrollbar { width: 8px; }
.fbm-b::-webkit-scrollbar-track { background: transparent; }
.fbm-b::-webkit-scrollbar-thumb { background: #d6cfe6; border-radius: 999px; border: 2px solid var(--fbm-ground); }
.fbm-form { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.fbm-alert { margin: 0; padding: 12px 14px; border-left: 3px solid var(--ub-danger); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--ub-danger) 7%, #fff); font-size: 14px; line-height: 1.5; }
.fbm-alert a { color: var(--fbm-brand); font-weight: 600; }
.fbm-panel { background: #fff; border: 1px solid var(--fbm-line); border-radius: 14px; padding: 22px 24px 24px; }
.fbm-k { margin: 0; font-family: var(--ub-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fbm-soft); }
.fbm-secth { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.fbm-secth h3 { margin: 0; font-family: var(--ub-font-display); font-weight: 700; font-size: 19px; color: var(--fbm-ink); }
.fbm-q { border: 0; margin: 0; padding: 18px 0; border-top: 1px solid var(--fbm-rule); display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 12px; }
.fbm-q--first { border-top: 0; padding-top: 0; }
.fbm-qt { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.45; display: flex; gap: 10px; color: var(--fbm-ink); }
.fbm-n { font-family: var(--ub-font-mono); font-size: 12.5px; color: var(--fbm-soft); font-weight: 400; padding-top: 2px; }
.fbm-opt { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--fbm-soft); }
.fbm-guide { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fbm-soft); }
.fbm-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 8px; }
.fbm-scale label { position: relative; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rec-edge, var(--fbm-line)); border-radius: 8px; background: var(--rec-tint, #fff); cursor: pointer; font-size: 13.5px; color: var(--fbm-soft); }
.fbm-scale label b { font-family: var(--ub-font-mono); font-size: 13px; color: var(--fbm-ink); }
.fbm-scale input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fbm-scale label:has(input:checked) { border-color: var(--fbm-ink); box-shadow: inset 0 0 0 1px var(--fbm-ink); color: var(--fbm-ink); font-weight: 600; }
.fbm-scale label:has(input:focus-visible) { outline: 2px solid var(--fbm-brand); outline-offset: 2px; }
.fbm-rec--strong_no_hire { --rec-tint: #fbe4e8; --rec-edge: #e6b3bd; }
.fbm-rec--no_hire { --rec-tint: #fdf1f3; --rec-edge: #efd0d6; }
.fbm-rec--hire { --rec-tint: #edf7ef; --rec-edge: #bfdfc6; }
.fbm-rec--strong_hire { --rec-tint: #dcf1e1; --rec-edge: #93cca0; }
.fbm-form textarea, .fbm-line { width: 100%; box-sizing: border-box; border: 1px solid var(--fbm-line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--fbm-ink); background: #fff; }
.fbm-form textarea { min-height: 76px; resize: vertical; }
.fbm-form textarea:focus-visible, .fbm-line:focus-visible { outline: 2px solid var(--fbm-brand); outline-offset: 1px; }
.fbm-cl { font-size: 13px; color: var(--fbm-soft); }
/* The refused state, from UTI-169's "Feedback not submitted" board, shared by the modal and the page. */
.fbm-sum { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border: 1px solid #f0cfc9; border-radius: 14px; background: #fdf6f5; }
.fbm-sumh { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; color: var(--fbm-ink); }
.fbm-sumh svg { width: 18px; height: 18px; color: #c0392f; flex: none; }
.fbm-sumh span { font-weight: 400; color: var(--fbm-soft); }
.fbm-jumps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.fbm-jumps a { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; min-height: 32px; padding: 0 12px; border: 1px solid #f0cfc9; border-radius: 999px; background: #fff; color: var(--fbm-ink); font-size: 13px; text-decoration: none; }
.fbm-jumps a:hover { border-color: #c0392f; }
.fbm-jumps a i { width: 7px; height: 7px; border-radius: 999px; background: #c0392f; flex: none; }
.fbm-jumps a b { font-family: var(--ub-font-mono); font-size: 11.5px; font-weight: 500; color: #9b2f25; }
.fbm-jumps a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbm-miss { margin-left: auto; font-size: 12px; font-weight: 600; color: #9b2f25; padding: 2px 9px; border-radius: 999px; background: #fbeceb; white-space: nowrap; }
.fbm-q.is-missing .fbm-scale { padding: 6px; margin: -6px; border: 1px dashed #e3a8a0; border-radius: 12px; }
/* The page's submit row, UTI-169's .submit; the modal draws .fbm-f instead. */
.fbm-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--fbm-rule); }
.fbm-submit p { margin: 0; font-size: 13px; color: var(--fbm-soft); max-width: 48ch; }
.fbm-submit p b { color: var(--fbm-ink); font-weight: 600; }
.fbm-submit .fbm-left { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #9b2f25; }
.fbm-left i { width: 8px; height: 8px; border-radius: 999px; background: #c0392f; flex: none; }
.fbm-acts { display: flex; gap: 10px; }
/* On the page a jump lands below the shell's 56px bar, not under it. */
.mi-form .fbm-q { scroll-margin-top: calc(56px + 16px); }
.fbm-err { margin: 0; font-size: 13px; color: #9b2f25; }
.fbm-with { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0 0; border-top: 1px solid var(--fbm-rule); }
.fbm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--fbm-line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.fbm-chip input { margin: 0; accent-color: var(--fbm-brand); }
.fbm-chip:has(input:focus-visible) { outline: 2px solid var(--fbm-brand); outline-offset: 2px; }
.fbm-whint { font-size: 12.5px; color: var(--fbm-soft); }
.fbm-f { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: #fff; border-top: 1px solid var(--fbm-line); }
.fbm-f p { margin: 0 auto 0 0; flex: 0 1 60ch; font-size: 13px; color: var(--fbm-soft); }
.fbm-f p b { color: var(--fbm-ink); font-weight: 600; }
.fbm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--fbm-line); background: #fff; color: var(--fbm-brand); font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; text-decoration: none; }
.fbm-btn:hover { border-color: #cfc5e6; background: #faf9fd; }
.fbm-btn--p { min-width: 170px; background: var(--fbm-brand-strong); border-color: var(--fbm-brand-strong); color: #fff; }
.fbm-btn--p:hover { background: #18122b; color: #fff; }
.fbm-btn--p.htmx-request { opacity: 0.7; cursor: progress; }
.fbm-btn:focus-visible, .fbm-x:focus-visible { outline: 2px solid var(--fbm-brand); outline-offset: 2px; }
.fbm-cscrim { position: fixed; inset: 0; z-index: 62; background: rgba(24, 18, 43, 0.3); }
.fbm-confirm { position: fixed; z-index: 63; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(26rem, calc(100vw - 2rem)); box-sizing: border-box; padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 24px 64px rgba(24, 18, 43, 0.28); color: var(--fbm-ink); }
.fbm-confirm p { margin: 0 0 18px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.fbm-confirm div { display: flex; justify-content: flex-end; gap: 10px; }
.fbm-confirm .fbm-btn--p { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .fbm-scrim, .fbm { animation: none; } }
#rec-feedback-modal[data-redraw] .fbm-scrim, #rec-feedback-modal[data-redraw] .fbm { animation: none; }
@media (max-width: 720px) {
  .fbm { width: 100vw; height: 100dvh; border-radius: 0; }
  .fbm-f { flex-wrap: wrap; }
}
