/* ==========================================================================
   IDSpeaker v2 — Rancang Acara (Event Organizing / /event-planner)
   Semua kelas dan id yang dibaca event-planner.js dipertahankan; yang di sini hanya tampilan.
   ========================================================================== */

/* ---------- Tata letak halaman ---------- */
.ih--eo { padding-bottom: 118px; }
.eo { position: relative; z-index: 3; margin-top: -64px; padding-bottom: 120px; }
.eo__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.eo__side { position: sticky; top: 104px; display: grid; gap: 20px; }
.ep-form { display: grid; gap: 28px; }

/* ---------- Kartu ---------- */
.ep-card { background: #fff; border: var(--stk); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); padding: 30px 32px 34px; }
.ep-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.ep-card__num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); font-weight: 800; font-size: 20px; }
.ep-card__titlewrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; flex: 1; min-width: 0; }
.ep-card__title { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ep-card__head > .ep-card__title { flex: 1; }
.ep-session-counter { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ep-session-counter:empty { display: none; }
.ep-legend { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: -10px; }
.ep-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border: var(--stk); border-radius: 20px; background: var(--sun); font-weight: 700; font-size: 15px; }
.ep-notice svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.display-zero { display: none; }

/* ---------- Kolom isian ---------- */
.ep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
.ep-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ep-field--wide { grid-column: 1 / -1; }
.ep-label { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.ep-label--req::after { content: ' *'; color: var(--red); }
.ep-help { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ep-input { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; background: #fff; border: 2.5px solid rgba(26, 10, 12, .22); font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.ep-input::placeholder { color: #9a8a8d; font-weight: 500; }
.ep-input:hover { border-color: rgba(26, 10, 12, .5); }
.ep-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(204, 0, 0, .16); }
.ep-input:disabled { background: var(--warm); color: var(--ink-2); cursor: not-allowed; border-color: var(--line); }
textarea.ep-input { padding: 14px 18px; min-height: 130px; resize: vertical; line-height: 1.55; }
select.ep-input:has(option[value=""]:checked) { color: #9a8a8d; font-weight: 500; }
select.ep-input option { color: var(--ink); font-weight: 600; }
select.ep-input { appearance: none; -webkit-appearance: none; padding-right: 48px; 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='%231a0a0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.ep-input-ico { position: relative; }
.ep-input-ico > svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--red); pointer-events: none; }
.ep-input-ico .ep-input { padding-left: 46px; }

/* ---------- Poster ---------- */
.ep-poster-zone { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; }
.ep-poster-zone input[type="file"] { position: absolute; left: 0; top: 0; width: calc(100% - 168px); height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.ep-poster-zone__label { display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 200px; padding: 20px; text-align: center; border-radius: 22px; border: 3px dashed rgba(26, 10, 12, .3); background: var(--paper); transition: border-color .2s, background .2s; }
.ep-poster-zone:hover .ep-poster-zone__label, .ep-poster-zone:focus-within .ep-poster-zone__label { border-color: var(--red); background: #fff2ee; }
.ep-poster-zone__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: #fff; border: 2.5px solid var(--ink); color: var(--red); }
.ep-poster-zone__ico svg { width: 26px; height: 26px; }
.ep-poster-zone__text { font-weight: 700; font-size: 14.5px; color: var(--ink-2); max-width: 340px; word-break: break-word; }
.ep-poster-zone__preview { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 2.5px solid var(--ink); background: var(--paper); }
.ep-poster-zone__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-poster-zone__placeholder { position: absolute; inset: 0; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; letter-spacing: .1em; color: rgba(26, 10, 12, .28); }

/* ---------- Tombol tambah sesi ---------- */
.ep-add { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--red); color: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s; }
.ep-add:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.ep-add:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.ep-add svg { width: 18px; height: 18px; }
.ep-add[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Sesi ---------- */
.ep-sessions { counter-reset: ses; display: grid; gap: 22px; }
.ep-sessions .clone { display: grid; gap: 22px; }
.ep-sessions .clone:empty { display: none; }
.ep-session { counter-increment: ses; padding: 26px 26px 28px; border-radius: 28px; background: var(--paper); border: 2.5px solid var(--line); display: grid; gap: 24px; }
.ep-session__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ep-session__no { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.ep-session__no::before { content: attr(data-l) ' ' counter(ses); }
.ep-fieldset--inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-remove { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 2.5px solid var(--line); color: var(--red); font-weight: 800; font-size: 14px; transition: border-color .2s, background .2s; }
.ep-remove:hover { border-color: var(--red); background: #ffe9e9; }
.ep-remove svg { width: 17px; height: 17px; }
.ep-remove[disabled] { opacity: .4; cursor: not-allowed; }

/* kontrol Offline / Online (radio asli tetap ada agar JS lama bekerja) */
.ep-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); }
.ep-seg__opt { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14.5px; cursor: pointer; color: var(--ink-2); background: transparent; transition: background .2s, color .2s; }
.ep-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ep-seg__opt svg { width: 17px; height: 17px; }
.ep-seg__opt.btn-solid { background: var(--red); color: #fff; }
.ep-seg__opt:not(.btn-solid):hover { background: var(--warm); }
.ep-seg__opt:focus-within { box-shadow: 0 0 0 3px rgba(204, 0, 0, .28); }

/* tanggal + jam */
.ep-when { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.ep-duration-wrap { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 2.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ep-duration-wrap svg { width: 16px; height: 16px; color: var(--red); }
.ep-duration-value { color: var(--ink); font-weight: 800; }
.ep-time-error { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--red); }
.ep-online-fields { min-width: 0; }

/* ---------- Pembicara per sesi ---------- */
.ep-speakers { display: grid; gap: 10px; }
.ep-speakers__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.ep-speakers__title svg { width: 20px; height: 20px; color: var(--red); }
.ep-speakers__title small { flex-basis: 100%; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.ep-slot { display: grid; grid-template-columns: 96px minmax(0, 1fr) 140px 128px; align-items: center; gap: 12px 18px; padding: 14px 18px; background: #fff; border: 2.5px solid var(--line); border-radius: 22px; transition: border-color .2s, box-shadow .2s; }
.ep-slot--main { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.ep-slot__badge { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--warm); font-weight: 800; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ep-slot--main .ep-slot__badge { background: var(--sun); }
.ep-slot__who { display: grid; gap: 2px; min-width: 0; }
.ep-slot__name { font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.ep-slot__name:empty::before { content: attr(data-empty); color: #9a8a8d; font-weight: 600; }
.ep-institution-small { font-size: 13.5px; font-weight: 700; color: var(--red); }
.ep-institution-small:empty { display: none; }
.ep-expertise { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-expertise:empty { display: none; }
.ep-empty-backup-hint { display: none; }
.ep-slot__price { display: grid; gap: 1px; }
.ep-slot__price small { font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.ep-honorarium-cell { font-weight: 800; font-size: 16px; }
.ep-honorarium-cell:empty::before { content: attr(data-placeholder); color: #9a8a8d; font-weight: 600; font-size: 13.5px; }
.ep-slot__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; }
.ep-btn-action { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14.5px; white-space: nowrap; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); transition: background .2s, color .2s, transform .25s var(--ease); }
.ep-btn-action svg { width: 17px; height: 17px; }
.ep-btn-action:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.ep-btn-action.is-main { background: var(--red); color: #fff; border-color: var(--ink); }
.ep-btn-action.is-main:hover { background: #b30000; }
/* teks tombol selalu terlihat (skrip lama sempat menyembunyikannya sebelum kolom sesi lengkap) */
.ep-btn-action span[id^="link-"] { display: inline !important; }
.ep-clear a { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ep-clear a:hover { color: #8f0000; }
.ep-clear:empty { display: none; }

/* ---------- Bar aksi ---------- */
.ep-action-bar { position: sticky; bottom: 18px; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: var(--stk); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink); }
.ep-action-bar__sp { flex: 1; }
.ep-action-bar .btn svg { width: 18px; height: 18px; }
.ep-action-bar .btn[disabled] { opacity: .5; cursor: progress; transform: none; }

/* ---------- Panel samping ---------- */
.eo-flow { background: #fff; border: var(--stk); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); padding: 26px 26px 22px; }
.eo-flow__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.eo-flow__list { list-style: none; display: grid; gap: 4px; }
.eo-flow__item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 20px; }
.eo-flow__item:last-child { padding-bottom: 6px; }
.eo-flow__item::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--line); }
.eo-flow__item:last-child::before { display: none; }
.eo-flow__num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; font-weight: 800; font-size: 15px; transition: background .3s, color .3s; }
.eo-flow__item.is-now .eo-flow__num { background: var(--red); color: #fff; }
.eo-flow__item.is-done .eo-flow__num { background: var(--mint); }
.eo-flow__item strong { display: block; font-weight: 800; font-size: 16px; line-height: 1.3; padding-top: 6px; }
.eo-flow__item p { margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.5; }
.eo-flow__note { display: flex; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 2.5px dashed var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.eo-flow__note svg { flex: none; width: 18px; height: 18px; color: var(--red); margin-top: 1px; }
.eo-help { display: grid; justify-items: start; gap: 12px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--sun); border: var(--stk); box-shadow: 5px 5px 0 var(--ink); }
.eo-help strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.eo-help__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 2.5px solid var(--ink); }
.eo-help__ico svg { width: 22px; height: 22px; color: var(--red); }
.eo-help .btn--line { background: #fff; }
.eo-help .btn--line:hover { background: var(--ink); }

/* ---------- Status draf & overlay ---------- */
.info-saving-draft { display: none; position: fixed; z-index: 120; left: 24px; bottom: 112px; align-items: center; gap: 9px; padding: 11px 20px 11px 15px; border-radius: 999px; background: #fff; border: var(--stk); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; font-size: 14.5px; }
.info-saving-draft svg { width: 19px; height: 19px; color: #17a56a; }
#overlay { display: none; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center; background: rgba(26, 10, 12, .6); backdrop-filter: blur(4px); }
#overlay .cv-spinner { display: grid; justify-items: center; gap: 16px; color: #fff; font-weight: 800; font-size: 17px; }
#overlay .spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .3); border-top-color: var(--sun); animation: spin .8s linear infinite; }

/* ---------- Modal ---------- */
.v2-modal--sm .v2-modal__panel { width: min(480px, 100%); }
.ep-guest { display: grid; gap: 18px; margin-top: 22px; }
.ep-link { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ep-success { text-align: center; }
.ep-success .v2-modal__title { padding-right: 0; }
.ep-success__ico { width: 72px; height: 72px; margin: 6px auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.ep-success__ico svg { width: 36px; height: 36px; }
.ep-success .v2-modal__foot { justify-content: center; }

/* ---------- Kalender (jQuery UI datepicker) ---------- */
.ui-helper-hidden-accessible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.ui-datepicker { display: none; position: absolute; z-index: 500 !important; width: 308px; padding: 16px; background: #fff; border: var(--stk); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); font-family: inherit; color: var(--ink); }
.ui-datepicker .ui-datepicker-header { position: relative; display: flex; align-items: center; justify-content: center; padding: 2px 44px 14px; }
.ui-datepicker .ui-datepicker-title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-transform: capitalize; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position: absolute; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; cursor: pointer; transition: background .2s; }
.ui-datepicker .ui-datepicker-prev { left: 0; }
.ui-datepicker .ui-datepicker-next { right: 0; }
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover { background: var(--sun); }
.ui-datepicker .ui-datepicker-prev .ui-icon, .ui-datepicker .ui-datepicker-next .ui-icon { font-size: 0; line-height: 0; }
.ui-datepicker .ui-datepicker-prev::after, .ui-datepicker .ui-datepicker-next::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; line-height: 1; padding-bottom: 3px; pointer-events: none; }
.ui-datepicker .ui-datepicker-prev::after { content: '‹'; }
.ui-datepicker .ui-datepicker-next::after { content: '›'; }
.ui-datepicker .ui-state-disabled.ui-datepicker-prev, .ui-datepicker .ui-state-disabled.ui-datepicker-next { opacity: .3; cursor: default; }
.ui-datepicker table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.ui-datepicker th { padding: 6px 0; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.ui-datepicker td { padding: 0; text-align: center; }
.ui-datepicker td a, .ui-datepicker td span { display: block; padding: 9px 0; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; transition: background .15s; }
.ui-datepicker td a:hover { background: var(--sun); }
.ui-datepicker td .ui-state-highlight { box-shadow: inset 0 0 0 2.5px var(--ink); }
.ui-datepicker td .ui-state-active, .ui-datepicker td a.ui-state-active:hover { background: var(--red); color: #fff; }
.ui-datepicker td.ui-state-disabled span, .ui-datepicker td.ui-datepicker-unselectable span { color: rgba(26, 10, 12, .28); }
.ui-datepicker td.ui-datepicker-other-month span, .ui-datepicker td.ui-datepicker-other-month a { opacity: .45; }

/* ---------- Pemilih jam (jquery.timepicker 1.3.5) ---------- */
.ui-timepicker-container { z-index: 500 !important; border-radius: 20px; background: #fff; border: var(--stk); box-shadow: 5px 5px 0 var(--ink); overflow: hidden !important; font-family: inherit; }
.ui-timepicker-container .ui-timepicker { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 6px 0; }
.ui-timepicker-container .ui-timepicker-viewport { list-style: none; margin: 0; }
.ui-timepicker-container .ui-menu-item { list-style: none; margin: 0; padding: 0 6px; }
.ui-timepicker-container .ui-menu-item a { display: block; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s; }
.ui-timepicker-container .ui-menu-item a:hover, .ui-timepicker-container .ui-menu-item a.ui-state-hover, .ui-timepicker-container .ui-menu-item a.ui-state-focus { background: var(--sun); color: var(--ink); }
.ui-timepicker-container .ui-menu-item a.ui-state-active, .ui-timepicker-container .ui-menu-item a.ui-state-selected { background: var(--red); color: #fff; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .ih--eo { padding-bottom: 96px; }
  .eo { margin-top: -52px; }
  .eo__grid { grid-template-columns: 1fr; }
  .eo__side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .ih--eo .ih__deco { display: none; }
}
@media (max-width: 860px) {
  .eo__side { grid-template-columns: 1fr; }
  .ep-slot { grid-template-columns: minmax(0, 1fr) auto; }
  .ep-slot__badge { grid-column: 1 / -1; }
  .ep-slot__price { grid-column: 1; }
  .ep-slot__act { grid-column: 2; grid-row: 3; }
}
@media (max-width: 640px) {
  .ep-card { padding: 22px 18px 24px; border-radius: 26px; box-shadow: 4px 4px 0 var(--ink); }
  .ep-card__head { flex-wrap: wrap; }
  .ep-card__titlewrap { flex-basis: calc(100% - 64px); }
  .ep-add { width: 100%; justify-content: center; }
  .ep-grid, .ep-when { grid-template-columns: 1fr; }
  .ep-session { padding: 20px 16px 22px; }
  .ep-remove { margin-left: 0; }
  .ep-poster-zone { grid-template-columns: 1fr; }
  .ep-poster-zone input[type="file"] { width: 100%; height: calc(100% - 218px); }
  .ep-poster-zone__preview { width: 150px; }
  .ep-slot { grid-template-columns: 1fr; }
  .ep-slot__act { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .ep-action-bar { gap: 8px; padding: 8px; bottom: 12px; }
  .ep-action-bar__sp { display: none; }
  .ep-action-bar .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .ep-action-bar .ep-back { flex: none; width: 44px; padding: 0; }
  .ep-action-bar .ep-back .ep-bl { display: none; }
  .info-saving-draft { left: 16px; bottom: 84px; }
  body.page-eo .wa-float { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { #overlay .spinner { animation-duration: 2.4s; } }
