/* Two Moons family recruitment popup (js/family-recruit.js) */
html.fr-open { overflow: hidden; }
.fr-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8, 6, 14, .72);
}
.fr-overlay[hidden] { display: none; }
.fr-panel {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  border: 1px solid rgba(214, 178, 94, .55); border-radius: 14px;
  background: #15111d; color: var(--ink, #f2ece2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  overscroll-behavior: contain;
}
.fr-x {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(10, 8, 16, .7); color: #f2ece2; font-size: 26px; line-height: 1; cursor: pointer;
}
.fr-x:hover, .fr-back:hover { background: rgba(10, 8, 16, .92); }
.fr-back {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(10, 8, 16, .7); color: #f2ece2; font-size: 30px; line-height: 1; padding-bottom: 4px; cursor: pointer;
}
.fr-back[hidden] { display: none; }
.fr-poster-wrap { line-height: 0; }
.fr-poster { display: block; width: 100%; height: auto; border-radius: 13px 13px 0 0; }
.fr-foot {
  position: sticky; bottom: 0; display: grid; gap: .6rem;
  padding: .75rem .9rem .9rem; background: #15111d; border-top: 1px solid rgba(214, 178, 94, .3);
}
.fr-today { display: inline-flex; align-items: center; justify-content: center; justify-self: center; gap: .35rem; font-size: .76rem; color: var(--faint, #a69db1); opacity: .75; cursor: pointer; }
.fr-today:hover { opacity: 1; }
.fr-today input { width: 14px; height: 14px; margin: 0; accent-color: #8f8899; }
.fr-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.fr-actions button { min-height: 44px; padding: .5rem 1rem; font: inherit; }
.fr-apply, .fr-submit, .fr-done-close { flex: 1 1 auto; background: #d6b25e !important; color: #1d1508 !important; border-color: #d6b25e !important; font-weight: 700; }
.fr-apply:hover, .fr-submit:hover, .fr-done-close:hover { background: #e6c779 !important; }
.fr-view-form, .fr-view-done { padding: 1.1rem 1.2rem 1.2rem; }
.fr-view-form .fr-lead, .fr-view-done .fr-lead { text-align: center; }
.fr-view h2 { margin: .3rem 2.6rem .6rem; font-size: 1.2rem; color: #e6c779; text-align: center; }
.fr-view h2:focus { outline: none; }
.fr-lead { margin: 0 0 1rem; color: var(--muted, #cfc6d8); font-size: .92rem; line-height: 1.55; }
.fr-form { display: grid; }
.fr-label { margin: .4rem 0 .3rem; font-weight: 600; font-size: .92rem; }
.fr-req { margin-left: .2rem; padding: 0 .35rem; border-radius: 4px; background: #d6b25e; color: #1d1508; font-size: .7rem; vertical-align: middle; }
.fr-opt { color: var(--faint, #a69db1); font-weight: 400; font-size: .8rem; }
.fr-form input[type="text"], .fr-form textarea {
  width: 100%; box-sizing: border-box; padding: .6rem .7rem; min-height: 44px;
  border: 1px solid rgba(246, 240, 229, .25); border-radius: 8px; background: rgba(0, 0, 0, .3);
  color: inherit; font: inherit;
}
.fr-form textarea { resize: vertical; min-height: 80px; }
.fr-form input[aria-invalid="true"] { border-color: #e98b8b; }
.fr-help { margin: .3rem 0 .4rem; color: var(--faint, #a69db1); font-size: .8rem; }
.fr-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fr-status { min-height: 1.4em; margin: .6rem 0; font-size: .88rem; color: var(--muted, #cfc6d8); }
.fr-status[data-kind="error"] { color: #f0a0a0; }
@media (max-width: 480px) {
  .fr-overlay { padding: 8px; }
  .fr-panel { max-height: calc(100dvh - 16px); }
}
.fr-panel .fr-label { display: flex; align-items: center; gap: .4rem; width: auto; }
.fr-panel .fr-req, .fr-panel .fr-opt { display: inline-block; width: auto; margin: 0; }
.fr-panel .fr-actions button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.fr-panel .fr-today input[type="checkbox"] { width: 14px !important; height: 14px !important; min-width: 0; min-height: 0; padding: 0; }
