/* Alur Booking -> E-Form (13 Nov 2026): kartu status, progres form, koneksi terputus */
.ef-scope, .ef-ov {
  --ef-r: #E31E24; --ef-rd: #B5121B; --ef-ink: #1F2937; --ef-mut: #6B7280; --ef-ln: #E5E7EB;
  --ef-g: #16A34A; --ef-gs: #DCFCE7; --ef-a: #D97706; --ef-as: #FEF3C7; --ef-b: #2563EB; --ef-bs: #E8F1FF;
}

.ef-scope, .ef-scope *, .ef-scope *::before, .ef-scope *::after { box-sizing: border-box; }

/* ---------- kartu status ---------- */
.ef-card { position: relative; background: #fff; border: 1px solid var(--ef-ln); border-radius: 18px; padding: 18px 16px 16px; box-shadow: 0 14px 34px -22px rgba(15,23,42,.35); color: var(--ef-ink); text-align: left; animation: efUp .25s ease; }
.ef-card + .ef-card { margin-top: 12px; }
@keyframes efUp { from { transform: translateY(12px); opacity: 0; } }
.ef-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: #9CA3AF; cursor: pointer; padding: 4px 6px; }
.ef-hi { font-size: 12px; color: var(--ef-mut); text-align: center; margin: 0 0 6px; }
.ef-hero { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin: 2px auto 10px; font-size: 29px; }
.ef-hero.g { background: var(--ef-gs); } .ef-hero.a { background: var(--ef-as); } .ef-hero.b { background: var(--ef-bs); } .ef-hero.r { background: #FEE2E2; }
.ef-card h3, .ef-sheet h3 { text-align: center; margin: 0; font-size: 18px; font-weight: 800; color: var(--ef-ink); }
.ef-en { text-align: center; color: var(--ef-mut); font-size: 12.5px; font-style: italic; margin: 3px 0 12px; }
.ef-bi { font-size: 13.5px; line-height: 1.6; margin: 0 0 4px; color: var(--ef-ink); }
.ef-bi.en2 { color: var(--ef-mut); font-style: italic; font-size: 12.5px; margin-bottom: 12px; }
.ef-tix { border: 1px dashed #CBD5E1; border-radius: 14px; padding: 10px 12px; font-size: 12.5px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; background: #FAFBFD; margin: 4px 0 12px; }
.ef-tix .full { grid-column: 1 / -1; }
.ef-tix span { display: block; font-size: 10.5px; font-weight: 700; color: var(--ef-mut); text-transform: uppercase; letter-spacing: .05em; }
.ef-tix b { display: block; font-size: 13.5px; margin-top: 2px; word-break: break-word; }
.ef-tix b.strike { text-decoration: line-through; color: #94A3B8; }
.ef-tl { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ef-tl li { position: relative; text-align: center; font-size: 11.5px; color: var(--ef-mut); padding-top: 20px; line-height: 1.25; }
.ef-tl li::before { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #CBD5E1; z-index: 1; }
.ef-tl li::after { content: ""; position: absolute; top: 8px; left: 50%; width: 100%; height: 2px; background: #E2E8F0; }
.ef-tl li:last-child::after { display: none; }
.ef-tl li.ok { color: #15803D; } .ef-tl li.ok::before { background: var(--ef-g); } .ef-tl li.ok::after { background: #86EFAC; }
.ef-tl li.now { color: var(--ef-rd); font-weight: 700; } .ef-tl li.now::before { background: var(--ef-r); box-shadow: 0 0 0 4px #FEE2E2; }
.ef-tl li.warn { color: #B45309; font-weight: 700; } .ef-tl li.warn::before { background: var(--ef-a); box-shadow: 0 0 0 4px var(--ef-as); }
.ef-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ef-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; font: inherit; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 12px 14px; cursor: pointer; text-decoration: none !important; border: 1.5px solid transparent; transition: filter .15s, background .15s; }
.ef-btn.p { background: linear-gradient(135deg, var(--ef-r), var(--ef-rd)); color: #fff !important; }
.ef-btn.p:hover { filter: brightness(1.05); }
.ef-btn.o { background: #fff; border-color: var(--ef-ln); color: var(--ef-ink) !important; }
.ef-btn.o:hover { border-color: var(--ef-r); color: var(--ef-r) !important; }
.ef-btn[disabled], .ef-btn.dis { opacity: .5; pointer-events: none; }
.ef-note { font-size: 12.5px; border-radius: 12px; padding: 9px 12px; margin: 0 0 10px; line-height: 1.5; }
.ef-note.a { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.ef-note.b { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.ef-note.r { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* ---------- progres + daftar form (kartu status) ---------- */
.ef-prog { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px; border-radius: 14px; background: #F8FAFC; border: 1px solid var(--ef-ln, #E5E7EB); text-align: left; }
.ef-prog.all { background: #F0FDF4; border-color: #BBF7D0; }
.ef-prog b { display: block; font-size: 14px; color: #1F2937; }
.ef-prog small { display: block; font-size: 12px; color: #6B7280; margin-top: 2px; }
.ef-ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#16A34A calc(var(--p) * 1%), #E5E7EB 0); display: grid; place-items: center; flex: none; }
.ef-ring span { width: 41px; height: 41px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: #1F2937; }
.ef-fl { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ef-fl li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--ef-ln); border-radius: 11px; font-size: 13px; }
.ef-fl li i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-style: normal; font-weight: 800; font-size: 13px; }
.ef-fl li.d { background: #FAFFFB; } .ef-fl li.d i { background: var(--ef-gs); color: var(--ef-g); }
.ef-fl li.t i { background: var(--ef-as); color: var(--ef-a); }
.ef-fl li span { flex: 1; min-width: 0; } .ef-fl li small { display: block; color: var(--ef-mut); font-size: 11.5px; }

/* ---------- pilih form: item sudah / belum diisi ---------- */
#pilihFormContainer .ef-prog { margin: 6px 0 14px; }
#pilihFormContainer .card-body .btn.ef-todo, #pilihFormContainer .card-body .btn.ef-done { padding-right: 14px !important; }
#pilihFormContainer .card-body .btn.ef-todo::after, #pilihFormContainer .card-body .btn.ef-done::after { content: none; }
#pilihFormContainer .card-body .btn h5 { flex: 1; min-width: 0; }
#pilihFormContainer .card-body .btn .ef-st { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; color: #B45309; }
#pilihFormContainer .card-body .btn .ef-act { flex: none; font-size: 12px; font-weight: 700; border-radius: 9px; padding: 6px 10px; background: #E31E24; color: #fff; white-space: nowrap; }
#pilihFormContainer .card-body .btn-success.ef-done { background: #F7FEF9; border-color: #BBF7D0; }
#pilihFormContainer .card-body .btn-success.ef-done .ef-st { color: #15803D; }
#pilihFormContainer .card-body .btn-success.ef-done .ef-act { background: #F1F5F9; color: #334155; }
#pilihFormContainer .card-body .btn-success.ef-done.ef-done::before { background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23fff' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }
@media (max-width: 420px) {
  #pilihFormContainer .card-body .btn .ef-act { padding: 5px 8px; font-size: 11.5px; }
}

/* ---------- konteks dari booking (pilih form) ---------- */
.ef-ctx { border: 1px solid var(--ef-ln); border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; background: #fff; text-align: left; }
.ef-ctx .src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ef-mut); margin-bottom: 10px; }
.ef-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.ef-chip.g { background: var(--ef-gs); color: #15803D; } .ef-chip.b { background: var(--ef-bs); color: var(--ef-b); } .ef-chip.a { background: var(--ef-as); color: #B45309; }
.ef-ctx .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 13px; }
.ef-ctx .grid .full { grid-column: 1 / -1; }
.ef-ctx .grid span { display: block; font-size: 10.5px; font-weight: 700; color: var(--ef-mut); text-transform: uppercase; letter-spacing: .05em; }
.ef-ctx .grid b { display: block; font-size: 13.5px; margin-top: 2px; word-break: break-word; }

/* ---------- overlay koneksi terputus / masuk ulang ---------- */
.ef-ov { position: fixed; inset: 0; z-index: 20000; background: rgba(15,23,42,.55); display: flex; align-items: flex-end; justify-content: center; padding: 14px; font-family: inherit; }
@media (min-width: 640px) { .ef-ov { align-items: center; } }
.ef-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20001; background: #111827; color: #fff; font-size: 12.5px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.ef-bar i { width: 8px; height: 8px; border-radius: 50%; background: #F87171; display: inline-block; }
.ef-bar.on i { background: #4ADE80; }
.ef-sheet { background: #fff; border-radius: 20px; padding: 20px 18px 18px; width: 100%; max-width: 440px; max-height: calc(100vh - 28px); overflow: auto; color: var(--ef-ink); animation: efUp .25s ease; box-shadow: 0 30px 60px -20px rgba(15,23,42,.5); }
.ef-sheet .ef-card { border: 0; box-shadow: none; padding: 0; }
.ef-lb { display: block; font-size: 11px; font-weight: 700; color: var(--ef-mut); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ef-in { width: 100%; font: inherit; font-size: 15px; border: 1.5px solid #D7DBE3; border-radius: 12px; padding: 11px 12px; margin: 0 0 12px; color: var(--ef-ink); background: #fff; }
.ef-in:focus { outline: none; border-color: var(--ef-r); box-shadow: 0 0 0 3px #FEE2E2; }
.ef-wait { font-size: 12px; color: var(--ef-mut); text-align: center; margin-top: 10px; }
.ef-err { font-size: 12.5px; color: #B91C1C; margin: -4px 0 10px; }
.ef-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: efSpin .7s linear infinite; display: inline-block; }
@keyframes efSpin { to { transform: rotate(360deg); } }

/* tambahan di swal sukses booking */
.ef-next { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #FFF7ED; border: 1px solid #FED7AA; font-size: 13px; line-height: 1.55; text-align: left; color: #7C2D12; }
.ef-next.ok { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }
.ef-next.info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }

/* wadah kartu status di halaman booking */
.ef-status-wrap { margin: 0 0 18px; }
.ef-status-wrap .ef-card { padding: 22px 18px 18px; }
@media (min-width: 640px) { .ef-status-wrap .ef-card { padding: 26px 26px 22px; } }
.ef-ctx .alt { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ef-mut); text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; }

/* indikator pembaruan status form (pilih form) */
.ef-refresh { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 0 auto 12px; font-size: 12.5px; font-weight: 600; color: #1E40AF; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 999px; padding: 6px 14px; }
.ef-rs-sp { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #BFDBFE; border-top-color: #2563EB; animation: efSpin .7s linear infinite; display: inline-block; }
