/* ═══ Forms in one clean style (forms-pro.js) ════════════════════════
   Publish an event, Talent profile, Contact and the admin publish form:
   numbered steps, tiles with line icons, a live preview, quiet labels.
   Red only marks what is chosen and the main button. */
.fp-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; pointer-events: none !important; }

/* modal frame: header and buttons stay, the middle scrolls */
.overlay.fp .modal { display: flex !important; flex-direction: column !important; max-height: calc(100dvh - 40px) !important; overflow: hidden !important; }
.overlay.fp .modal > .modal-header, .overlay.fp .modal > .modal-footer { flex: none !important; }
.overlay.fp .modal > .modal-footer { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.07); }
.overlay.fp .fp-shell { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.overlay.fp .fp-shell > .form-body { overflow: visible !important; max-height: none !important; padding: 22px 28px 26px !important; }
.overlay.fp .fp-shell.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.overlay.fp:has(.fp-shell.has-side) .modal { max-width: 1060px !important; width: min(1060px, calc(100vw - 32px)); }

/* numbered steps with plain titles */
.fp .se-sec.fp-step, .fp-admin .se-sec.fp-step { display: flex !important; align-items: center; gap: 10px; margin: 30px 0 16px !important; padding-top: 22px !important;
  color: #fff !important; font-family: inherit !important; font-size: 1.02rem !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
.fp .se-sec.fp-step.se-sec-first, .fp-admin .se-sec.fp-step.se-sec-first { margin-top: 6px !important; padding-top: 0 !important; }
.fp-step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .8rem; font-weight: 700; color: #fff; }
.fp .field > label, .fp .field-label-row label, .fp-admin .field > label, .fp-admin .field-label-row label {
  font-size: .84rem !important; font-weight: 600 !important; color: rgba(255,255,255,.82) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* tiles */
.fp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.fp-tiles.compact { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.fp-tile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 12px; border-radius: 13px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: rgba(255,255,255,.86);
  font: inherit; font-size: .84rem; font-weight: 600; line-height: 1.25; transition: border-color .16s, background .16s, color .16s; }
.fp-tiles.compact .fp-tile { min-height: 46px; padding: 7px 10px; font-size: .8rem; }
.fp-tile:hover { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.fp-tile:focus-visible { outline: 2px solid #ff5c7a; outline-offset: 2px; }
.fp-tile-ic { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); transition: background .16s, color .16s; }
.fp-tiles.compact .fp-tile-ic { width: 28px; height: 28px; border-radius: 8px; }
.fp-tile.on { border-color: rgba(255,92,122,.85); background: rgba(200,16,46,.12); color: #fff; }
.fp-tile.on .fp-tile-ic { background: linear-gradient(135deg, #C8102E, #ff3a5c); color: #fff; }

/* preview column */
.fp-side { position: relative; padding: 22px 24px 26px; border-left: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.015); }
.fp-side-in { position: sticky; top: 0; }
.fp-prev-label { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.fp-prev-note { margin: 12px 2px 0; font-size: .74rem; line-height: 1.5; color: rgba(255,255,255,.45); }
.fp-card { border-radius: 18px; overflow: hidden; background: #1d1417; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.fp-card-body { padding: 14px 16px 16px; }
.fp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); }
.fp-chip.on { background: rgba(200,16,46,.16); color: #ff8098; }
.fp-card-title { margin-top: 10px; font-size: 1.12rem; font-weight: 800; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.fp-card-title.empty { color: rgba(255,255,255,.35); }
.fp-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.65); }
.fp-line svg { flex: none; margin-top: 1px; }
.fp-line[hidden], .fp-tn-ach[hidden], .fp-tn-bio[hidden], .fp-ev-date[hidden], .fp-ev-ph[hidden] { display: none !important; }

/* event card preview: cover with the white date tile */
.fp-ev-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #4a1220 0%, #1d1417 70%); }
.fp-ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-ev-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.55); font-size: .74rem; }
.fp-ev-date { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 10px 5px; border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f1f1f1 49.5%, #e6e6e6 50.5%, #f4f4f4 100%); box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.fp-ev-date b { font-size: 1.35rem; font-weight: 700; line-height: 1; color: #1a1a1a; }
.fp-ev-date i { font-style: normal; font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C8102E; margin-top: 3px; }

/* talent card preview */
.fp-tn-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #4a1220 0%, #1d1417 70%); }
.fp-tn-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-tn-ini { font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.85); }
.fp-tn-ach { margin-top: 4px; font-size: .82rem; font-weight: 600; color: #ffb3c1; }
.fp-tn-bio { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.72); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .overlay.fp .fp-shell.has-side { grid-template-columns: 1fr; }
  .fp-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .fp-side-in { position: static; }
  .fp-card { max-width: 340px; }
}
@media (max-width: 600px) {
  .overlay.fp .modal { max-height: calc(100dvh - 12px) !important; }
  .overlay.fp .fp-shell > .form-body { padding: 16px 16px 18px !important; }
  .fp-side { padding: 16px; }
  .fp-tiles, .fp-tiles.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .fp-tile, .fp-tile-ic { transition: none; } }

[data-theme="light"] .fp .se-sec.fp-step, [data-theme="light"] .fp-admin .se-sec.fp-step { color: #18090C !important; }
[data-theme="light"] .fp-step-n { background: #f4eeef; border-color: rgba(0,0,0,.1); color: #18090C; }
[data-theme="light"] .fp .field > label, [data-theme="light"] .fp-admin .field > label, [data-theme="light"] .fp .field-label-row label { color: #4a3438 !important; }
[data-theme="light"] .fp-tile { background: #fff; border-color: rgba(0,0,0,.1); color: #2a1a1e; }
[data-theme="light"] .fp-tile-ic { background: #f4eeef; color: #4a3438; }
[data-theme="light"] .fp-tile.on { background: #fff1f3; border-color: #C8102E; color: #18090C; }
[data-theme="light"] .fp-side { background: #fbf8f8; border-color: rgba(0,0,0,.07); }
[data-theme="light"] .fp-prev-label, [data-theme="light"] .fp-prev-note { color: #8a7a7e; }

/* ── Contact ── */
.fp-contact .se-sec.fp-step { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06);
  color: #fff; font-size: 1.02rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.fp-contact .se-sec.fp-step.se-sec-first { margin-top: 4px; padding-top: 0; border-top: 0; }
.fp-contact .field > label { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.82); text-transform: none; letter-spacing: 0; }
.fp-contact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fp-contact-topic { margin: 0 !important; }
.fp-contact-tip { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .82rem; line-height: 1.5;
  color: rgba(255,255,255,.82); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.fp-contact-tip svg { flex: none; margin-top: 2px; color: #ffb3c1; }
.fp-contact-tip[hidden] { display: none !important; }
.fp-contact-form .contact-footer { display: flex !important; align-items: center !important; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fp-contact-side { flex: 1 1 260px; min-width: 0; }
.fp-contact-card { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; font-size: .8rem; line-height: 1.45; color: rgba(255,255,255,.6); }
.fp-contact-card svg { grid-row: span 2; color: rgba(255,255,255,.7); margin-top: 1px; }
.fp-contact-card b { color: #fff; font-size: .84rem; }
.fp-contact-card p { margin: 2px 0 0; }
.fp-contact-form .contact-footer .btn-primary { flex: none; }
@media (max-width: 600px) { .fp-contact-two { grid-template-columns: 1fr; } .fp-contact-form .contact-footer .btn-primary { width: 100%; } }
[data-theme="light"] .fp-contact .se-sec.fp-step { color: #18090C; border-top-color: rgba(0,0,0,.07); }
[data-theme="light"] .fp-contact .field > label { color: #4a3438; }
[data-theme="light"] .fp-contact-tip { background: #faf6f6; border-color: rgba(0,0,0,.08); color: #3a2a2e; }
[data-theme="light"] .fp-contact-card { color: #6b5458; }
[data-theme="light"] .fp-contact-card b { color: #18090C; }
.fp-full { margin-top: 4px; }

/* ── Admin forms: preview beside the form on wide screens ── */
.fp-adm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.fp-adm-side { display: none; }
@media (min-width: 1280px) {
  .fp-adm-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .fp-adm-side { display: block; position: sticky; top: 12px; padding-top: 6px; }
  .fp-adm-side .fp-side-in { position: static; }
}

/* ── Contact: a wider window, so the topics and fields breathe ── */
#contactOverlay .contact-modal { max-width: 680px !important; width: min(680px, calc(100vw - 32px)) !important; }
#contactOverlay .fp-tiles.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { #contactOverlay .fp-tiles.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#contactOverlay .fp-contact-side { flex: none !important; width: 100%; }
#contactOverlay .fp-contact-card { display: flex !important; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
#contactOverlay .fp-contact-card svg { flex: none; margin-top: 2px; }
.fp-adm-side { padding-right: 18px; }
