/* Halaman pendaftaran Fun Match Minisoccer. Mobile-first. */
.fm-badge {
  display: inline-block; padding: 6px 14px; background: #ffd700; color: #675600;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transform: skewX(-10deg);
}
.fm-share-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  background: #f57c00; color: #fff; font-weight: 800; font-size: 16px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transition: background .2s ease, transform .15s ease; font-family: inherit;
}
.fm-share-hero:hover { background: #d86d00; }
.fm-share-hero:active { transform: scale(.97); }
.fm-share-hero:focus-visible, .fm-btn:focus-visible, .fm-chip:focus-visible, .fm-drop:focus-visible,
.fm-mini:focus-visible, .fm-copy:focus-visible, .fm-submit:focus-visible, .fm-link:focus-visible { outline: 3px solid #f57c00; outline-offset: 2px; }

/* Kartu */
.fm-card { min-width: 0; background: #fff; border: 1px solid #e2e8f0; border-top: 4px solid #003366; padding: 20px 18px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); box-sizing: border-box; }
.fm-center { text-align: center; padding: 28px 18px; }
.fm-cardhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fm-cardn { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: #003366; color: #fff; font-weight: 800; font-size: 14px; transform: skewX(-8deg); }
.fm-h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: #003366; margin: 0; line-height: 1.25; }
.fm-muted { font-size: 14px; color: #64748b; line-height: 1.55; }
.fm-label { display: block; font-size: 14px; font-weight: 800; color: #334155; margin-bottom: 8px; }
.fm-fs { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Input */
.fm-input {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; box-sizing: border-box;
  font-size: 16px; font-family: inherit; color: #0f172a; background: #fff;
  border: 1px solid #cbd5e1; border-bottom-width: 3px; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.fm-input:focus { outline: none; border-color: #cbd5e1; border-bottom-color: #f57c00; }
.fm-input.is-bad { border-color: #dc2626; }
.fm-select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.fm-err { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #dc2626; }

/* Penanda kemajuan */
.fm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.fm-step { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 8px 4px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 800; transition: background .2s, color .2s; }
.fm-step-n { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: #cbd5e1; color: #fff; font-size: 11px; }
.fm-step-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-step.is-done { background: #e8f5e9; color: #2e7d32; }
.fm-step.is-done .fm-step-n { background: #2e7d32; }

/* Posisi */
.fm-note-ic { flex: none; display: inline-flex; margin-top: 2px; }
.fm-note-t { min-width: 0; flex: 1 1 auto; }
.fm-sumpos { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 6px; font-size: 14px; font-weight: 800; color: #9a3412; line-height: 1.5; overflow-wrap: anywhere; }
.fm-sumpos.is-empty { background: #f8fafc; border-color: #e2e8f0; color: #64748b; font-weight: 700; }
.fm-grp { margin-top: 14px; min-width: 0; }
.fm-grp-t { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; max-width: 100%;
  background: #fff; color: #334155; font-size: 15px; font-weight: 700; font-family: inherit;
  border: 2px solid #cbd5e1; cursor: pointer; transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.fm-chip-n { display: none; flex: none; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 9999px; background: #fff; color: #003366; font-size: 13px; font-weight: 800; }
.fm-chip.is-on { background: #003366; border-color: #003366; color: #fff; }
.fm-chip.is-on .fm-chip-n { display: inline-flex; }
.fm-chip.is-dim { opacity: .4; }
/* Posisi ditutup panitia: redup, tidak bisa diketuk, label gembok */
.fm-chip-lock { display: none; flex: none; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #9a3412; }
.fm-chip-lock svg { width: 14px; height: 14px; }
.fm-chip.is-tutup { opacity: .6; background: #f1f5f9; border-style: dashed; color: #64748b; cursor: not-allowed; }
.fm-chip.is-tutup .fm-chip-lock { display: inline-flex; }
.fm-grp-note { margin: -2px 0 8px; font-size: 12px; font-weight: 700; color: #9a3412; }
.fm-grp-note:empty { display: none; }
.fm-tutupnote { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 12px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 6px; font-size: 13px; font-weight: 700; color: #9a3412; line-height: 1.5; }
.fm-poshint { margin: 12px 0 0; min-height: 0; font-size: 13px; font-weight: 700; color: #64748b; line-height: 1.5; }
.fm-poshint:empty { display: none; }
.fm-poshint.is-flash { animation: fmFlash .6s ease; }
@keyframes fmFlash { 0%, 100% { color: #64748b; } 30% { color: #dc2626; transform: translateX(3px); } 60% { transform: translateX(-3px); } }

/* Pembayaran */
.fm-pay { background: #f8fafc; border: 1px solid #e2e8f0; padding: 14px; }
.fm-pay.is-wait { background: #fffbeb; border-color: #fde68a; }
.fm-pay-wait { display: flex; gap: 12px; align-items: flex-start; color: #92400e; }
.fm-pay-wait svg { flex: none; margin-top: 2px; }
.fm-pay-wait-t { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.fm-pay-t { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #003366; margin-bottom: 4px; }
.fm-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #cbd5e1; }
.fm-pay-row:last-of-type { border-bottom: 0; }
.fm-pay-k { font-size: 12px; font-weight: 700; color: #64748b; }
.fm-pay-v { font-size: 17px; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.fm-pay-v.is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.fm-pay-note { margin: 8px 0 0; font-size: 13px; color: #475569; line-height: 1.5; }
.fm-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: #fff; color: #003366; border: 2px solid #003366; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit;
}
.fm-copy:hover { background: #003366; color: #fff; }

/* Unggah */
.fm-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 150px; padding: 18px;
  background: #f8fafc; border: 2px dashed #94a3b8; color: #003366; cursor: pointer; font-family: inherit; box-sizing: border-box; text-align: center;
}
.fm-drop:hover { background: #eff6ff; border-color: #003366; }
.fm-drop-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #003366; color: #fff; border-radius: 9999px; }
.fm-drop-t { font-size: 17px; font-weight: 800; }
.fm-drop-s { font-size: 13px; color: #64748b; font-weight: 600; }
.fm-drop.is-busy { cursor: default; flex-direction: row; gap: 12px; font-weight: 800; }
.fm-up.is-bad .fm-drop { border-color: #dc2626; }
.fm-spin { width: 22px; height: 22px; border: 3px solid #cbd5e1; border-top-color: #003366; border-radius: 9999px; animation: fmSpin .8s linear infinite; }
@keyframes fmSpin { to { transform: rotate(360deg); } }
.fm-file { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid #e2e8f0; background: #fff; min-width: 0; }
.fm-thumb { flex: none; width: 88px; height: 88px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-direction: column; color: #dc2626; }
.fm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-thumb-pdf { font-size: 12px; font-weight: 800; }
.fm-file-n { font-size: 14px; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.fm-file-s { font-size: 12px; color: #64748b; font-weight: 600; margin-top: 2px; }
.fm-file-a { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fm-mini { min-height: 44px; padding: 0 16px; background: #fff; border: 2px solid #003366; color: #003366; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; }
.fm-mini.is-del { border-color: #dc2626; color: #dc2626; }

/* Tombol */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  background: #f57c00; color: #fff; border: 2px solid #f57c00; font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none; font-family: inherit; box-sizing: border-box;
}
.fm-btn:hover { background: #d86d00; border-color: #d86d00; }
.fm-btn.is-ghost { background: #fff; color: #003366; border-color: #003366; }
.fm-btn.is-ghost:hover { background: #f1f5f9; }
.fm-link { background: none; border: 0; color: #0055a4; font-weight: 800; font-size: 15px; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 12px; font-family: inherit; }
.fm-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 480px) { .fm-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pesan kesalahan kirim */
.fm-errbox { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; color: #b91c1c; }
.fm-errbox-b { min-width: 0; flex: 1 1 auto; }
.fm-errbox-t { margin: 0; font-size: 14px; font-weight: 700; color: #991b1b; line-height: 1.55; }

/* Bilah kemajuan kirim */
.fm-progress { height: 6px; background: #e2e8f0; overflow: hidden; position: relative; }
.fm-progress span { position: absolute; top: 0; bottom: 0; width: 40%; background: #f57c00; animation: fmBar 1.1s ease-in-out infinite; }
@keyframes fmBar { 0% { left: -40%; } 100% { left: 100%; } }

/* Tombol kirim lengket */
.fm-bar { position: sticky; bottom: 0; z-index: 30; margin: 0 -4px; padding: 12px 4px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%); }
.fm-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 20px;
  background: #f57c00; color: #fff; border: 0; font-size: 18px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 22px rgba(245, 124, 0, .35);
}
.fm-submit:hover:not(:disabled) { background: #d86d00; }
.fm-submit:disabled { background: #cbd5e1; color: #64748b; box-shadow: none; cursor: not-allowed; }
.fm-bar-note { margin: 8px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: #92400e; }
.fm-bar-note:empty { display: none; }

/* Layar sukses / ditutup */
.fm-bigicon { width: 76px; height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 9999px; }
.fm-bigicon.is-green { background: #2e7d32; color: #fff; animation: fmPop .5s cubic-bezier(.16, 1, .3, 1); }
.fm-bigicon.is-gray { background: #f1f5f9; color: #64748b; }
@keyframes fmPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fm-no-lbl { margin-top: 16px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #94a3b8; }
.fm-no { font-size: 52px; line-height: 1.1; color: #003366; overflow-wrap: anywhere; }
.fm-sum { margin: 18px 0 0; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 14px; }
.fm-sum dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin-top: 8px; }
.fm-sum dt:first-child { margin-top: 0; }
.fm-sum dd { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; overflow-wrap: anywhere; }
.fm-status-note { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 14px; background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 800; }
.fm-status-note.is-ok { flex-wrap: wrap; justify-content: center; background: #f0fdf4; color: #166534; }
.fm-status-note.is-ok .fm-link { min-height: 32px; padding: 0 4px; font-size: 13px; color: #166534; }
.fm-banner { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.fm-banner-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9999px; background: #f1f5f9; color: #475569; }
.fm-banner-t { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 14px; color: #334155; overflow-wrap: anywhere; }
.fm-banner-t strong { font-weight: 800; color: #003366; }
.fm-banner-k { font-size: 13px; color: #64748b; }
.fm-banner-k .fm-link { min-height: 0; padding: 0; font-size: 13px; }
.fm-closed-count { margin: 14px 0 0; font-size: 18px; font-weight: 800; color: #003366; }

/* Jebakan bot */
.fm-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .fm-bigicon.is-green, .fm-spin, .fm-progress span, .fm-poshint.is-flash { animation: none; }
  #fmRoot { transition: none; }
}

/* Kuota: peringatan sisa slot dan spanduk penuh */
.fm-sisa { margin: 0 0 8px; padding: 8px 12px; text-align: center; background: #fff7ed; border: 1px solid #fdba74; border-radius: 6px; font-size: 14px; font-weight: 800; color: #9a3412; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fm-banner.is-penuh { background: #fff7ed; border-color: #fdba74; }
.fm-banner.is-tutup { background: #f8fafc; border-color: #cbd5e1; }
.fm-banner.is-penuh .fm-banner-ic { background: #fff7ed; color: #c2410c; }
.fm-banner.is-penuh .fm-banner-t strong { color: #9a3412; }
.fm-banner.is-penuh .fm-banner-k { flex-basis: 100%; }

/* Transisi pergantian tampilan (tertutup -> formulir) */
#fmRoot { transition: opacity .2s ease; }
#fmRoot.is-fade { opacity: 0; }

/* Lencana Exhibition dengan ikon bola */
.fm-badge { display: inline-flex; align-items: center; gap: 6px; }
.fm-badge > svg { flex: none; }

/* Ilustrasi gawang kecil di latar hero (dekoratif) */
.fm-hero-gawang { position: absolute; right: -10px; top: 14px; width: 140px; height: 94px; color: #fff; opacity: .1; pointer-events: none; z-index: 0; overflow: hidden; }
.fm-hero-gawang svg { width: 100%; height: 100%; display: block; }
@media (min-width: 768px) { .fm-hero-gawang { right: 6%; top: 40px; width: 280px; height: 187px; opacity: .12; } }
