:root{
    --blue:#1555a2;
    --blue-dark:#0b3975;
    --navy:#08285e;
    --orange:#ff7200;
    --text:#17324d;
    --muted:#687f95;
    --line:#dce6f0;
    --soft:#f5f8fc;
    --green:#178453;
    --shadow:0 16px 42px rgba(11,57,117,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    color:var(--text);
    background:#f7f9fc;
    font-family:Inter,Arial,Helvetica,sans-serif;
}
body.modal-open{overflow:hidden}
button,input,textarea{font:inherit}
button,a{transition:.18s ease}
a{text-decoration:none;color:inherit}

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid rgba(220,230,240,.95);
    backdrop-filter:blur(14px);
}
.site-header-inner{
    width:min(1180px,calc(100% - 36px));
    min-height:78px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.site-brand img{
    display:block;
    width:auto;
    height:50px;
    object-fit:contain;
}
.site-nav{
    display:flex;
    align-items:center;
    gap:8px;
}
.site-nav a{
    padding:10px 14px;
    border-radius:10px;
    color:#536c84;
    font-size:14px;
    font-weight:700;
}
.site-nav a:hover,.site-nav a.active{
    color:var(--blue);
    background:#eef5fc;
}
.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    padding:9px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
}
.menu-toggle span{
    display:block;
    height:2px;
    margin:5px 0;
    background:var(--navy);
}

.agenda-container{
    width:min(1180px,calc(100% - 36px));
    margin:auto;
}

.agenda-hero{
    padding:58px 0;
    color:#fff;
    background:
        radial-gradient(circle at 90% 15%,rgba(255,114,0,.28),transparent 28%),
        linear-gradient(135deg,#0b3975,#1555a2);
}
.hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
    gap:42px;
    align-items:center;
}
.eyebrow{
    display:block;
    margin-bottom:8px;
    color:var(--orange);
    font-size:11px;
    font-weight:900;
    letter-spacing:.12em;
}
.agenda-hero .eyebrow{color:#ffc18f}
.agenda-hero h1{
    max-width:680px;
    margin:0;
    font-size:clamp(34px,5vw,54px);
    line-height:1.07;
    letter-spacing:-.035em;
}
.agenda-hero p{
    max-width:690px;
    margin:18px 0 0;
    color:#dbe9f8;
    font-size:16px;
    line-height:1.75;
}
.hero-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.hero-stats article{
    padding:20px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:18px;
    background:rgba(255,255,255,.10);
}
.hero-stats span,.hero-stats small{
    display:block;
    color:#dceafa;
    font-size:11px;
    font-weight:700;
}
.hero-stats strong{
    display:block;
    margin:5px 0;
    font-size:34px;
}

.agenda-content{padding:42px 0 70px}
.agenda-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    margin-bottom:24px;
}
.agenda-heading h2{
    margin:0;
    color:var(--navy);
    font-size:28px;
}
.agenda-heading p{
    margin:8px 0 0;
    color:var(--muted);
    line-height:1.6;
}
.agenda-search{
    display:flex;
    min-width:min(470px,100%);
    gap:8px;
}
.agenda-search input{
    min-width:0;
    flex:1;
    height:44px;
    padding:0 14px;
    border:1px solid var(--line);
    border-radius:11px;
    background:#fff;
    outline:none;
}
.agenda-search input:focus{
    border-color:#8db4dd;
    box-shadow:0 0 0 3px rgba(21,85,162,.08);
}
.agenda-search button,.agenda-search a{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 15px;
    border:0;
    border-radius:11px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.agenda-search button{color:#fff;background:var(--blue)}
.agenda-search a{color:var(--blue);background:#eaf2fb}

.agenda-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.agenda-card{
    display:flex;
    min-width:0;
    flex-direction:column;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 28px rgba(11,57,117,.055);
}
.agenda-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow);
}
.agenda-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    padding:20px 20px 0;
}
.date-box{
    display:grid;
    width:58px;
    height:62px;
    place-items:center;
    align-content:center;
    border-radius:14px;
    color:#fff;
    background:linear-gradient(145deg,var(--blue),var(--navy));
}
.date-box strong{font-size:22px;line-height:1}
.date-box span{margin-top:4px;font-size:9px;font-weight:900;letter-spacing:.08em}
.status-badge{
    padding:6px 9px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}
.status-badge.aktif{color:#13774a;background:#e9f8f0}
.status-badge.selesai{color:#697583;background:#eef2f6}

.agenda-card-body{
    flex:1;
    padding:18px 20px 20px;
}
.agenda-card h3{
    min-height:52px;
    margin:0 0 10px;
    color:#16395f;
    font-size:18px;
    line-height:1.45;
}
.description{
    margin:0 0 15px;
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}
.agenda-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:14px 0;
    border-top:1px solid #edf2f7;
    border-bottom:1px solid #edf2f7;
}
.agenda-meta span,.people span,.quota span{
    display:block;
    margin-bottom:4px;
    color:#8495a7;
    font-size:9px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.agenda-meta strong,.people strong,.quota strong{
    display:block;
    color:#36516a;
    font-size:11px;
    line-height:1.45;
}
.people{
    display:grid;
    gap:10px;
    margin-top:14px;
}
.people div{
    padding:10px 12px;
    border-radius:10px;
    background:var(--soft);
}
.quota{margin-top:15px}
.quota>div:first-child{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.quota-track{
    height:6px;
    margin-top:8px;
    overflow:hidden;
    border-radius:999px;
    background:#e8eef5;
}
.quota-track span{
    height:100%;
    margin:0;
    border-radius:inherit;
    background:var(--orange);
}
.agenda-card-footer{
    padding:14px 20px 20px;
}
.register-button{
    width:100%;
    min-height:43px;
    border:0;
    border-radius:11px;
    color:#fff;
    background:var(--blue);
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}
.register-button:hover{background:var(--blue-dark)}
.register-button.completed,.register-button.disabled{
    color:#6d7c8b;
    background:#edf1f5;
    cursor:not-allowed;
}
.register-button.disabled{
    color:#a35f00;
    background:#fff3df;
}

.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:30px;
}
.pagination>a,.page-numbers a{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:0 13px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    color:#536b82;
    font-size:11px;
    font-weight:800;
}
.page-numbers{display:flex;gap:6px}
.page-numbers a{min-width:38px;padding:0}
.page-numbers a.active{
    color:#fff;
    border-color:var(--blue);
    background:var(--blue);
}

.empty-state{
    padding:60px 24px;
    border:1px dashed #cad8e6;
    border-radius:18px;
    background:#fff;
    text-align:center;
}
.empty-state strong{color:var(--navy);font-size:18px}
.empty-state p{color:var(--muted)}

.agenda-modal{
    position:fixed;
    z-index:3000;
    inset:0;
    display:grid;
    place-items:center;
    padding:24px;
}
.agenda-modal[hidden]{display:none}
.agenda-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(5,18,38,.78);
    backdrop-filter:blur(7px);
}
.agenda-modal-dialog{
    position:relative;
    z-index:1;
    width:min(720px,100%);
    max-height:calc(100dvh - 48px);
    overflow:hidden;
    border-radius:20px;
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.28);
}
.agenda-modal-dialog>header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:20px 22px;
    border-bottom:1px solid var(--line);
}
.agenda-modal-dialog h2{
    margin:0;
    color:var(--navy);
    font-size:22px;
}
.agenda-modal-dialog header p{
    margin:6px 0 0;
    color:var(--muted);
    font-size:12px;
}
.modal-close{
    width:38px;
    height:38px;
    border:0;
    border-radius:10px;
    color:#5d7287;
    background:#f0f4f8;
    font-size:22px;
    cursor:pointer;
}
#agendaRegisterForm{
    display:flex;
    min-height:0;
    flex-direction:column;
    max-height:calc(100dvh - 150px);
}
.agenda-modal-body{
    min-height:0;
    overflow-y:auto;
    padding:20px 22px;
}
.participant-switch{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:5px;
    border-radius:12px;
    background:#edf3f8;
}
.type-button{
    min-height:39px;
    border:0;
    border-radius:9px;
    color:#61768b;
    background:transparent;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}
.type-button.active{
    color:#fff;
    background:var(--blue);
    box-shadow:0 5px 14px rgba(21,85,162,.18);
}
.form-section{margin-top:20px}
.form-section[hidden]{display:none}
.section-heading h3{
    margin:0;
    color:#244665;
    font-size:15px;
}
.section-heading p{
    margin:5px 0 0;
    color:var(--muted);
    font-size:11px;
}
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px;
    margin-top:14px;
}
.form-grid label{display:block}
.form-grid label.wide{grid-column:1/-1}
.form-grid label>span{
    display:block;
    margin-bottom:6px;
    color:#526b82;
    font-size:10px;
    font-weight:800;
}
.form-grid input,.form-grid textarea{
    width:100%;
    border:1px solid #d6e1eb;
    border-radius:10px;
    background:#fff;
    color:var(--text);
    outline:none;
}
.form-grid input{height:42px;padding:0 12px}
.form-grid textarea{padding:10px 12px;resize:vertical}
.form-grid input:focus,.form-grid textarea:focus{
    border-color:#8db4dd;
    box-shadow:0 0 0 3px rgba(21,85,162,.08);
}
.registration-note{
    margin-top:18px;
    padding:13px 14px;
    border:1px solid #d8e8f8;
    border-radius:11px;
    background:#f1f7fd;
}
.registration-note strong{color:var(--blue);font-size:12px}
.registration-note p{
    margin:5px 0 0;
    color:#61788f;
    font-size:10.5px;
    line-height:1.55;
}
.agreement{
    display:flex;
    align-items:flex-start;
    gap:9px;
    margin-top:16px;
    color:#60758a;
    font-size:10.5px;
    line-height:1.5;
}
.agreement input{margin-top:2px;accent-color:var(--blue)}
.form-message{
    margin-top:14px;
    padding:10px 12px;
    border-radius:9px;
    font-size:11px;
    font-weight:700;
}
.form-message.error{color:#b62d2d;background:#fff0f0;border:1px solid #f4d1d1}
.form-message.success{color:#17794d;background:#e9f8f0;border:1px solid #ccebdc}
.agenda-modal-dialog footer{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    padding:14px 22px;
    border-top:1px solid var(--line);
}
.primary-button,.secondary-button{
    min-height:40px;
    padding:0 16px;
    border:0;
    border-radius:10px;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}
.primary-button{color:#fff;background:var(--blue)}
.primary-button:hover{background:var(--blue-dark)}
.primary-button:disabled{opacity:.6;cursor:wait}
.secondary-button{color:#536c84;background:#edf2f6}

.hp-field{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    opacity:0!important;
}

.success-dialog{width:min(470px,100%)}
.success-content{
    padding:38px 30px;
    text-align:center;
}
.success-icon{
    display:grid;
    width:58px;
    height:58px;
    margin:0 auto 16px;
    place-items:center;
    border-radius:50%;
    color:#fff;
    background:var(--green);
    font-size:25px;
    font-weight:900;
}
.success-content h2{
    margin:0;
    color:var(--navy);
}
.success-content p{
    margin:10px 0 20px;
    color:var(--muted);
    line-height:1.6;
}

.site-footer{
    padding:28px 0;
    border-top:1px solid var(--line);
    background:#fff;
}
.site-footer .agenda-container{
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:#71869a;
    font-size:11px;
}
.site-footer strong{color:#35526d}

@media(max-width:980px){
    .agenda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .hero-grid{grid-template-columns:1fr}
    .hero-stats{max-width:520px}
    .agenda-heading{align-items:stretch;flex-direction:column}
    .agenda-search{min-width:0}
}

@media(max-width:760px){
    .site-header-inner{min-height:68px}
    .site-brand img{height:42px}
    .menu-toggle{display:block}
    .site-nav{
        position:absolute;
        top:68px;
        right:18px;
        left:18px;
        display:none;
        padding:10px;
        border:1px solid var(--line);
        border-radius:14px;
        background:#fff;
        box-shadow:var(--shadow);
    }
    .site-nav.open{display:grid}
    .agenda-hero{padding:42px 0}
    .agenda-grid{grid-template-columns:1fr}
    .agenda-search{flex-wrap:wrap}
    .agenda-search input{flex-basis:100%}
    .form-grid{grid-template-columns:1fr}
    .form-grid label.wide{grid-column:auto}
    .agenda-modal{padding:12px}
    .agenda-modal-dialog{max-height:calc(100dvh - 24px)}
    #agendaRegisterForm{max-height:calc(100dvh - 120px)}
    .site-footer .agenda-container{flex-direction:column}
}

@media(max-width:520px){
    .agenda-container,.site-header-inner{width:min(100% - 24px,1180px)}
    .agenda-hero h1{font-size:34px}
    .hero-stats{grid-template-columns:1fr 1fr}
    .agenda-meta{grid-template-columns:1fr}
    .pagination{flex-wrap:wrap}
    .participant-switch{grid-template-columns:1fr}
}


/* =========================================================
   AGENDA V2 - TAMPILAN TABEL
   ========================================================= */
.agenda-table-panel{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 28px rgba(11,57,117,.055);
}
.agenda-table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
.agenda-table{
    width:100%;
    min-width:1120px;
    border-collapse:collapse;
    table-layout:auto;
}
.agenda-table thead th{
    padding:13px 12px;
    border-bottom:1px solid #dce6f0;
    background:#f4f7fb;
    color:#60758a;
    font-size:9.5px;
    font-weight:900;
    letter-spacing:.045em;
    text-align:left;
    white-space:nowrap;
}
.agenda-table tbody td{
    padding:14px 12px;
    border-bottom:1px solid #edf2f7;
    color:#4e667d;
    font-size:11px;
    vertical-align:middle;
}
.agenda-table tbody tr:last-child td{border-bottom:0}
.agenda-table tbody tr:hover{background:#fbfdff}
.agenda-table .number-cell{
    width:48px;
    color:#71879b;
    text-align:center;
}
.agenda-table .activity-cell{min-width:240px}
.agenda-table .activity-cell strong{
    display:block;
    color:#234665;
    font-size:12px;
    line-height:1.45;
}
.agenda-table .activity-cell small{
    display:block;
    max-width:300px;
    margin-top:4px;
    color:#8294a6;
    font-size:9.5px;
    line-height:1.45;
}
.agenda-table .schedule-cell{min-width:155px}
.agenda-table .schedule-cell strong{
    display:block;
    color:#36516a;
    font-size:11px;
}
.agenda-table .schedule-cell small,
.agenda-table .speaker-cell small{
    display:block;
    margin-top:4px;
    color:#8496a8;
    font-size:9.5px;
}
.agenda-table .speaker-cell{
    min-width:180px;
    max-width:220px;
}
.agenda-table .speaker-cell strong{
    display:block;
    color:#36516a;
    font-size:10.5px;
    line-height:1.4;
}
.price-label{
    display:inline-flex;
    min-width:64px;
    justify-content:center;
    padding:6px 9px;
    border-radius:999px;
    color:#1555a2;
    background:#eaf3ff;
    font-size:9.5px;
    font-weight:900;
    white-space:nowrap;
}
.participant-count{
    display:flex;
    align-items:baseline;
    gap:3px;
    white-space:nowrap;
}
.participant-count strong{
    color:#234665;
    font-size:13px;
}
.participant-count span{
    color:#8496a8;
    font-size:9.5px;
}
.agenda-table .status-badge{
    display:inline-flex;
    min-width:68px;
    justify-content:center;
    white-space:nowrap;
}
.action-cell{
    width:100px;
    text-align:right;
}
.table-register-button{
    min-width:72px;
    min-height:35px;
    padding:0 13px;
    border:1px solid #bfd6ed;
    border-radius:9px;
    color:#1555a2;
    background:#fff;
    font-size:10.5px;
    font-weight:900;
    cursor:pointer;
}
.table-register-button:hover{
    color:#fff;
    border-color:#1555a2;
    background:#1555a2;
}
.action-state{
    display:inline-flex;
    min-width:76px;
    min-height:32px;
    align-items:center;
    justify-content:center;
    padding:0 9px;
    border-radius:8px;
    font-size:9px;
    font-weight:900;
    white-space:nowrap;
}
.action-state.full{
    color:#a35f00;
    background:#fff3df;
}
.action-state.finished{
    color:#6d7c8b;
    background:#edf1f5;
}

@media(max-width:760px){
    .agenda-table-panel{
        margin-right:-2px;
        border-radius:14px;
    }
}
