/* Seminar registration — custom styles on top of Bootstrap 5 */
:root {
    --brand: #086ad8;
    --brand-dark: #0550a8;
    --brand-2: #7141b1;
    --ink: #14213d;
    --muted: #5b6b86;
    --soft: #f3f6fb;
    --line: #e2e8f2;
    --ok: #12a150;
    --radius: 14px;
    --bs-primary: #086ad8;
    --bs-primary-rgb: 8, 106, 216;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: #334155;
}
body { background: var(--soft); }
h1, h2, h3, h4, h5, .fw-bold { color: var(--ink); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.text-brand { color: var(--brand) !important; }
.form-control, .form-select { border-color: #d3dbe8; padding: .7rem .9rem; border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(114, 115, 116, 0.15); }
.form-label { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.form-label .req { color: #dc3545; }
.input-group-text { border-color: #d3dbe8; background: var(--soft); font-weight: 600; border-radius: 10px 0 0 10px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 46px 0 120px;
    background: radial-gradient(1200px 400px at 85% -10%, rgba(114, 115, 116,.45), transparent 60%),
                linear-gradient(135deg, #020202 0%, #555555 55%, #9b9997 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
    background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero > .container { position: relative; z-index: 1; }
.hero .organiser { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; opacity: .9; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 14px 0 8px; letter-spacing: -.02em; }
.hero p.lead { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.08rem; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: .92rem; font-weight: 500; }

/* ---------- Cards ---------- */
.lift { margin-top: -84px; position: relative; z-index: 2; }
.card-soft { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 44px rgba(20, 33, 61, .08); }
.form-card { padding: 34px 36px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; }
.section-head .num { width: 30px; height: 30px; border-radius: 50%; background: rgba(8,106,216,.1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; flex: 0 0 30px; }
.section-head h2 { font-size: 1.12rem; font-weight: 700; margin: 0; }
.section-divider { border-top: 1px dashed var(--line); margin: 28px 0 22px; }
.char-count { font-size: .8rem; color: var(--muted); }
.char-count.near { color: #c2410c; }

/* Fee + pay */
.pay-box { margin-top: 28px; padding: 20px 22px; border-radius: 12px; background: linear-gradient(135deg, rgba(8,106,216,.07), rgba(113,65,177,.07)); border: 1px solid rgba(8,106,216,.18); }
.pay-box .fee-label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pay-box .fee { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.pay-box .fee small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.btn-pay { padding: .95rem 1.6rem; font-weight: 700; font-size: 1.05rem; border-radius: 12px; box-shadow: 0 10px 24px rgba(8,106,216,.3); white-space: nowrap; }
.secure-note { font-size: .82rem; color: var(--muted); }
.secure-note i { color: var(--ok); }

/* Sidebar */
.side-card { padding: 26px; position: sticky; top: 20px; }
.side-card .fee-big { font-size: 2.3rem; font-weight: 800; color: var(--brand); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.side-list li:last-child { border-bottom: 0; }
.side-list i { color: var(--brand); font-size: 1.1rem; margin-top: 1px; }

/* Category fee list (sidebar) */
.fee-list { list-style: none; padding: 0; margin: 8px 0 6px; }
.fee-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: .94rem; }
.fee-list li strong { color: var(--ink); }
.fee-list li.active { background: rgba(8,106,216,.1); }
.fee-list li.active strong { color: var(--brand); }

/* Help links + WhatsApp */
.help-row .help-links { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
.help-links { display: flex; flex-direction: column; gap: 6px; }
.help-links a { text-decoration: none; word-break: break-word; }
.help-links i { margin-right: 4px; }
.wa-link { color: #128c4b; font-weight: 600; }
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #fff; font-size: 1.7rem;
    box-shadow: 0 10px 24px rgba(37,211,102,.45); text-decoration: none; transition: transform .2s;
}
.wa-float:hover { color: #fff; transform: scale(1.07); }

/* Processing overlay */
.processing { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 26, 48, .65); display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.processing.show { display: flex; }
.processing .box { background: #fff; border-radius: 16px; padding: 30px 34px; text-align: center; max-width: 320px; }

/* ---------- Confirmation ---------- */
.confirm-head { text-align: center; padding: 34px 24px 26px; border-bottom: 1px solid var(--line); }
.confirm-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff; background: var(--ok); box-shadow: 0 12px 28px rgba(18,161,80,.35); }
.confirm-icon.pending { background: #f59e0b; box-shadow: 0 12px 28px rgba(245,158,11,.35); }
.ref-box { display: inline-block; margin-top: 14px; padding: 12px 22px; border-radius: 12px; background: var(--soft); border: 1px dashed #b9c6dc; }
.ref-box .ref { font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.detail-table { width: 100%; }
.detail-table th { width: 42%; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 9px 0; vertical-align: top; }
.detail-table td { color: var(--ink); font-weight: 600; padding: 9px 0; word-break: break-word; }
.detail-table tr + tr { border-top: 1px solid var(--line); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- Admin ---------- */
.admin-nav { background: var(--ink); }
.admin-nav .navbar-brand { font-weight: 800; }
.stat { padding: 20px 22px; height: 100%; }
.stat .label { font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.stat .icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.table-admin { font-size: .9rem; }
.table-admin thead th { background: var(--soft); color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table-admin td { vertical-align: middle; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, #0a3f8f, #086ad8 60%, #7141b1); }
.auth-card { width: 100%; max-width: 420px; padding: 34px; }

@media (max-width: 767.98px) {
    .hero { padding: 30px 0 100px; }
    .form-card { padding: 24px 18px; }
    .pay-box { padding: 18px; }
    .btn-pay { width: 100%; }
    .side-card { position: static; }
}
@media print {
    .no-print, .hero, nav, .wa-float { display: none !important; }
    body { background: #fff; }
    .card-soft { box-shadow: none; border: 0; }
    .lift { margin-top: 0; }
}
