/* Detail acara publik (public/event_detail.php) */
:root {
    --ed-navy: #0f2a4f;
    --ed-blue: #0059ab;
    --ed-ink: #1f2d3a;
    --ed-muted: #6d7a88;
    --ed-line: #e3eaf2;
    --ed-soft: #f4f8fc;
}

/* ---------- Hero ---------- */
.ed-hero {
    background:
        radial-gradient(closest-side, rgba(73, 163, 255, .10), rgba(73, 163, 255, 0)) right -120px top -80px / 620px 520px no-repeat,
        linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
    padding: 36px 0 44px;
}
.ed-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ed-muted); margin-bottom: 22px; }
.ed-crumb a { color: var(--ed-muted); text-decoration: none; }
.ed-crumb a:hover { color: var(--ed-blue); }
.ed-crumb i { font-size: 11px; opacity: .6; }
.ed-crumb span { color: var(--ed-ink); font-weight: 600; }

.ed-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.ed-poster {
    position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
    background: linear-gradient(160deg, #0b2546 0%, #0f2a4f 55%, #123a6b 100%);
    box-shadow: 0 24px 50px rgba(15, 42, 79, .18);
}
.ed-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ed-poster .ed-poster-logo { inset: 22%; width: 56%; height: 56%; opacity: .92; }

.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ed-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; background: #fff; color: var(--ed-navy); border: 1px solid var(--ed-line);
}
.ed-chip i { font-size: 15px; color: var(--ed-blue); }
.ed-status { color: #fff; border-color: transparent; }
.ed-status i { color: #fff; }
.ed-status.is-open { background: #1e8e5a; }
.ed-status.is-warning { background: #d68a00; }
.ed-status.is-danger { background: #c0392b; }
.ed-status.is-muted { background: #5b687b; }
.ed-status.is-live { background: var(--ed-blue); }

.ed-title { font-size: 2rem; font-weight: 800; line-height: 1.25; color: var(--ed-navy); margin: 0 0 10px; letter-spacing: -.01em; }
.ed-lead { font-size: 1.02rem; color: var(--ed-muted); line-height: 1.7; margin: 0 0 18px; }

.ed-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.ed-facts li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ed-ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0, 89, 171, .08); color: var(--ed-blue); font-size: 19px;
}
.ed-facts small { display: block; font-size: 12px; color: var(--ed-muted); }
.ed-facts strong { display: block; font-size: 14.5px; color: var(--ed-ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }

.ed-quota { margin-top: 20px; max-width: 520px; }
.ed-quota-text { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ed-muted); margin-bottom: 6px; }
.ed-quota-text strong { color: var(--ed-navy); }
.ed-quota-bar { height: 8px; border-radius: 999px; background: #e6edf5; overflow: hidden; }
.ed-quota-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0059ab, #2a8cf0); }

/* ---------- Isi ---------- */
.ed-body { padding: 8px 0 70px; }
.ed-card {
    background: #fff; border: 1px solid var(--ed-line); border-radius: 20px; padding: 26px 28px; margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(15, 42, 79, .05);
}
.ed-h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; color: var(--ed-navy); margin: 0 0 16px; }
.ed-h2 i { color: var(--ed-blue); }
.ed-h3 { font-size: 1.1rem; font-weight: 700; color: var(--ed-navy); margin: 0 0 14px; }
.ed-description { color: #3c4a5e; line-height: 1.85; font-size: 15px; overflow-wrap: anywhere; }
.ed-description img { max-width: 100%; height: auto; border-radius: 12px; }
.ed-description p:last-child { margin-bottom: 0; }

.ed-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ed-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ed-soft); }
.ed-avatar { flex: 0 0 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ed-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 10px rgba(15, 42, 79, .08); }
.ed-person strong { display: block; font-size: 14.5px; color: var(--ed-ink); }
.ed-person small { color: var(--ed-muted); font-size: 12.5px; }

/* ---------- Kartu pendaftaran ---------- */
@media (min-width: 992px) {
    .ed-register { position: sticky; top: 100px; }
}
.ed-register .form-group label { font-size: 13px; font-weight: 600; color: var(--ed-ink); margin-bottom: 4px; }
.ed-register .form-control { border-radius: 12px; border-color: #d5dfea; min-height: 44px; }
.ed-register .form-control:focus { border-color: var(--ed-blue); box-shadow: 0 0 0 3px rgba(0, 89, 171, .12); }

.ed-price-box { background: var(--ed-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.ed-price-box small { display: block; font-size: 12px; color: var(--ed-muted); }
.ed-price-box strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--ed-navy); line-height: 1.3; }
.ed-price-box strong.is-free { color: #1e8e5a; }
.ed-price-box span { display: block; font-size: 12px; color: var(--ed-muted); margin-top: 2px; }

.ed-ppl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ed-ppl div { border: 1px solid var(--ed-line); border-radius: 12px; padding: 10px 12px; text-align: center; }
.ed-ppl small { display: block; font-size: 11.5px; color: var(--ed-muted); font-weight: 600; letter-spacing: .02em; }
.ed-ppl strong { font-size: 1.25rem; color: #17754a; }

.ed-btn-primary, .ed-btn-success, .ed-btn-ghost, .ed-btn-ghost-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px; font-weight: 700; padding: 11px 16px; font-size: 15px; transition: all .2s ease;
}
.ed-btn-primary { background: linear-gradient(135deg, #0059ab, #0a78d8); color: #fff; border: 0; box-shadow: 0 10px 22px rgba(0, 89, 171, .22); }
.ed-btn-primary:hover, .ed-btn-primary:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px rgba(0, 89, 171, .28); }
.ed-btn-success { background: #1e8e5a; color: #fff; border: 0; }
.ed-btn-success:hover { background: #18774b; color: #fff; }
.ed-btn-ghost { background: #fff; color: var(--ed-blue); border: 1px solid #cddcec; font-weight: 600; }
.ed-btn-ghost:hover { background: var(--ed-soft); color: var(--ed-blue); }
.ed-btn-ghost-danger { background: #fff; color: #c0392b; border: 1px solid #f0c7c1; font-weight: 600; font-size: 14px; }
.ed-btn-ghost-danger:hover { background: #fdf1ef; color: #a83226; }

.ed-small { font-size: 12.5px; color: var(--ed-muted); margin: 8px 0 0; }
.ed-small a { color: var(--ed-blue); font-weight: 600; }
.ed-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #f1f4f8; color: #3c4a5e; font-size: 14px; margin-bottom: 12px; }
.ed-note i { font-size: 18px; margin-top: 1px; }
.ed-note.is-danger { background: #fdf1ef; color: #a83226; }
.ed-note.is-ok { background: #e8f5ee; color: #17754a; }

.ed-lock { text-align: center; }
.ed-lock-ico { display: inline-flex; width: 58px; height: 58px; border-radius: 18px; align-items: center; justify-content: center; background: rgba(0, 89, 171, .08); color: var(--ed-blue); font-size: 28px; margin-bottom: 12px; }
.ed-lock p { color: var(--ed-muted); font-size: 14px; line-height: 1.65; }

.ed-summary { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: 14px; margin-bottom: 14px; }
.ed-summary dt { color: var(--ed-muted); font-weight: 500; }
.ed-summary dd { margin: 0; color: var(--ed-ink); font-weight: 600; overflow-wrap: anywhere; }
.ed-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ed-badge.is-ok { background: #e8f5ee; color: #17754a; }
.ed-badge.is-wait { background: #fdf4e1; color: #9a6400; }

.ed-tc { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; background: #fafcfe; }
.ed-tc i { color: var(--ed-blue); }
.ed-link-sm { font-size: 12.5px; font-weight: 600; color: var(--ed-blue); }

.ed-back { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 22px 4px; color: var(--ed-muted); font-size: 14px; text-decoration: none; }
.ed-back:hover { color: var(--ed-blue); }

/* Ringkasan checkout (SweetAlert) */
.ed-swal { text-align: left; font-size: 14.5px; }
.ed-swal > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.ed-swal span { color: #6d7a88; }
.ed-swal b { color: #1f2d3a; text-align: right; overflow-wrap: anywhere; }
.ed-swal .ed-swal-total { border-bottom: 0; padding-top: 12px; }
.ed-swal .ed-swal-total b { font-size: 1.3rem; color: #0059ab; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
    .ed-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .ed-title { font-size: 1.6rem; }
}
@media (max-width: 575px) {
    .ed-hero { padding: 22px 0 28px; }
    .ed-facts { grid-template-columns: 1fr; }
    .ed-card { padding: 20px 18px; border-radius: 18px; }
    .ed-title { font-size: 1.4rem; }
}
