/* =========================================================================
   HWI Pages — komponen untuk halaman dalam (lowongan, informasi,
   cek status, paklaring, konseling, form rekrutmen).
   Dimuat SETELAH hwi-modern.css.
   ========================================================================= */

/* ---------- Navbar: link aktif + menu mobile ---------- */
.hx-nav__links a.is-active { color: var(--hx-blue); background: var(--hx-blue-50); }

.hx-nav__toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--hx-blue-50); color: var(--hx-blue); font-size: 22px;
    align-items: center; justify-content: center;
}
@media (max-width: 960px) {
    .hx-nav--pages .hx-nav__links { display: none; }
    .hx-nav--pages .hx-nav__toggle { display: inline-flex; }
}
@media (max-width: 1100px) { .hx-nav--pages .hx-brand__text { display: none; } }

.hx-sheet { position: fixed; inset: 0; z-index: 1150; visibility: hidden; pointer-events: none; }
.hx-sheet.is-open { visibility: visible; pointer-events: auto; }
.hx-sheet__backdrop { position: absolute; inset: 0; background: rgba(7, 29, 59, .5); opacity: 0; transition: opacity .3s var(--hx-ease); }
.hx-sheet.is-open .hx-sheet__backdrop { opacity: 1; }
.hx-sheet__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
    background: var(--hx-surface); padding: 20px; display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%); transition: transform .45s var(--hx-ease);
    box-shadow: -20px 0 60px -20px rgba(7, 29, 59, .45); overflow-y: auto;
}
.hx-sheet.is-open .hx-sheet__panel { transform: none; }
.hx-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hx-sheet__head img { height: 34px; width: auto; }
.hx-sheet a.hx-sheet__link {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px;
    text-decoration: none; color: var(--hx-ink); font-weight: 600;
    opacity: 0; transform: translateX(16px); transition: background .2s, opacity .4s var(--hx-ease), transform .4s var(--hx-ease);
}
.hx-sheet.is-open a.hx-sheet__link { opacity: 1; transform: none; }
.hx-sheet a.hx-sheet__link i { color: var(--hx-blue); font-size: 18px; }
.hx-sheet a.hx-sheet__link:hover, .hx-sheet a.hx-sheet__link.is-active { background: var(--hx-blue-50); }
.hx-sheet form { margin-top: 12px; }

/* ---------- Page header ---------- */
.hx-pagehead { padding-top: 8px; }
.hx-pagehead__frame {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--hx-r-lg); background: var(--hx-navy); color: #fff;
    padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 56px) clamp(64px, 8vw, 92px);
}
.hx-pagehead__frame::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: var(--hx-ph-img, none) center 60% / cover no-repeat;
    opacity: .6; transform: scale(1.08);
    animation: hx-drift 18s var(--hx-ease) both;
}
.hx-pagehead__frame::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(7, 29, 59, .94) 15%, rgba(11, 46, 92, .62) 55%, rgba(11, 46, 92, .15) 100%);
}
@keyframes hx-drift { from { transform: scale(1.16); } to { transform: scale(1.04); } }
.hx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.hx-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.hx-crumbs a:hover { color: #fff; text-decoration: underline; }
.hx-crumbs i { font-size: 11px; opacity: .6; }
.hx-pagehead h1 { color: #fff !important; font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.hx-pagehead__lead { margin-top: 12px !important; max-width: 60ch; color: rgba(255, 255, 255, .8); font-size: clamp(15px, 1.5vw, 17px); }
.hx-pagehead__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hx-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    font-size: 13px; font-weight: 600; color: #fff;
}
.hx-chip i { color: var(--hx-sun); }

/* Konten pertama yang menimpa page header */
.hx-lift { position: relative; z-index: 2; margin-top: calc(-1 * clamp(40px, 6vw, 64px)); }
.hx-page { padding-bottom: 8px; }

/* ---------- Panel / kartu ---------- */
.hx-card {
    background: var(--hx-surface); border-radius: var(--hx-r-md); border: 1px solid var(--hx-line);
    padding: clamp(18px, 3vw, 28px);
}
.hx-card--raised { border-color: transparent; box-shadow: var(--hx-shadow-2); border-radius: var(--hx-r-lg); }
.hx-card + .hx-card { margin-top: 18px; }
.hx-card__title { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.hx-card__sub { margin-top: 4px !important; color: var(--hx-ink-2); font-size: 14px; }
.hx-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.hx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hx-layout > * { min-width: 0; }
.hx-sticky { position: sticky; top: 88px; }
.hx-layout--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 960px) { .hx-layout, .hx-layout--split { grid-template-columns: 1fr; } .hx-sticky { position: static; } }
.hx-grid--3.hx-dob { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1fr); }

.hx-stack { display: grid; gap: 14px; }
.hx-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hx-muted { color: var(--hx-ink-3); }
.hx-small { font-size: 13px; }
.hx-center { text-align: center; }

/* ---------- Badge ---------- */
.hx-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: var(--hx-paper); color: var(--hx-ink-2); white-space: nowrap;
}
.hx-badge--blue { background: var(--hx-blue-50); color: var(--hx-blue-600); }
.hx-badge--ok { background: #e3f5ea; color: #17643a; }
.hx-badge--warn { background: #fdf3cf; color: #7a5b00; }
.hx-badge--bad { background: #fde4e4; color: #9b1f1f; }
.hx-badge--dark { background: var(--hx-navy); color: #fff; }

/* ---------- Notice / alert ---------- */
.hx-notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--hx-r-sm);
    background: var(--hx-blue-50); color: var(--hx-navy); font-size: 14px; line-height: 1.5;
}
.hx-notice > i { font-size: 18px; flex-shrink: 0; margin-top: 1px; color: var(--hx-blue); }
.hx-notice > div > strong:first-child { display: block; margin-bottom: 2px; }
.hx-notice ul { margin: 6px 0 0; padding-left: 18px; }
.hx-notice--ok { background: #e7f6ee; color: #135c34; } .hx-notice--ok > i { color: #1f8a4c; }
.hx-notice--warn { background: #fff6dc; color: #6b4f00; } .hx-notice--warn > i { color: #b98900; }
.hx-notice--bad { background: #fdecec; color: #8f1d1d; } .hx-notice--bad > i { color: var(--hx-red); }
.hx-notice + .hx-notice { margin-top: 10px; }
.hx-notice.is-shake { animation: hx-shake .5s var(--hx-ease); }

/* ---------- Form fields (standar, untuk form panjang) ---------- */
.hx-fieldset { border: 0; margin: 0; padding: 0; }
.hx-fieldset + .hx-fieldset { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hx-line); }
.hx-legend { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 4px; }
.hx-legend b {
    width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
    background: var(--hx-blue); color: #fff; font-size: 14px; flex-shrink: 0;
}
.hx-legend-sub { color: var(--hx-ink-3); font-size: 14px; margin: 0 0 18px 42px !important; }

.hx-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-grid .hx-span-all { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .hx-grid, .hx-grid--4 { grid-template-columns: 1fr; }
    .hx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .hx-grid--4.hx-keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hx-control { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-label { font-size: 14px; font-weight: 600; color: var(--hx-ink); }
.hx-label .hx-req { color: var(--hx-red); margin-left: 2px; }
.hx-label small { font-weight: 500; color: var(--hx-ink-3); }
.hx-help { font-size: 12.5px; color: var(--hx-ink-3); line-height: 1.45; }
.hx-control.has-error .hx-help, .hx-help.is-error { color: var(--hx-red); }

.hx-input, .hx-select, .hx-textarea {
    width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--hx-ink);
    background: var(--hx-surface); border: 1.5px solid var(--hx-line); border-radius: var(--hx-r-sm);
    padding: 12px 14px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.hx-input[readonly], .hx-input:disabled { background: var(--hx-paper); color: var(--hx-ink-2); }
.hx-textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.hx-select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a8798' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.1a.75.75 0 0 1 1.06 0L8 10.44l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 6.16a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.hx-input:focus, .hx-select:focus, .hx-textarea:focus { border-color: var(--hx-blue); box-shadow: 0 0 0 4px rgba(21, 96, 189, .12); }
.hx-control.has-error .hx-input, .hx-control.has-error .hx-select, .hx-control.has-error .hx-textarea,
.hx-input.is-invalid { border-color: var(--hx-red); }
.hx-input.is-valid { border-color: #2e9d5b; }
.hx-input-group { display: flex; gap: 8px; }
.hx-input-group .hx-input { flex: 1; }

/* Pilihan berbentuk pil (radio / checkbox) */
.hx-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-choice { position: relative; }
.hx-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hx-choice span {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    border: 1.5px solid var(--hx-line); background: var(--hx-surface); font-weight: 600; font-size: 14px; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, transform .2s var(--hx-ease);
}
.hx-choice span:hover { border-color: var(--hx-blue); }
.hx-choice input:checked + span { border-color: var(--hx-blue); background: var(--hx-blue); color: #fff; }
.hx-choice input:focus-visible + span { outline: 3px solid var(--hx-sun); outline-offset: 2px; }
.hx-choice input:active + span { transform: scale(.97); }

.hx-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--hx-ink-2); }
.hx-check input { width: 18px; height: 18px; accent-color: var(--hx-blue); }

/* Upload file */
.hx-file {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: var(--hx-r-sm); border: 1.5px dashed #c5d2e2; background: var(--hx-paper);
    transition: border-color .2s, background .2s;
}
.hx-file:hover, .hx-file.is-drag { border-color: var(--hx-blue); background: var(--hx-blue-50); }
.hx-file input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hx-file__icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--hx-surface); color: var(--hx-blue); font-size: 20px; box-shadow: var(--hx-shadow-1);
    transition: transform .35s var(--hx-ease-spring);
}
.hx-file:hover .hx-file__icon { transform: translateY(-2px); }
.hx-file__text { min-width: 0; flex: 1; }
.hx-file__name { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-file__hint { display: block; font-size: 12.5px; color: var(--hx-ink-3); }
.hx-file.is-filled { border-style: solid; border-color: #2e9d5b; background: #f0faf4; }
.hx-file.is-filled .hx-file__icon { color: #1f8a4c; }
.hx-file.is-too-big { border-style: solid; border-color: var(--hx-red); background: #fdf1f1; }
.hx-file.is-too-big .hx-file__icon { color: var(--hx-red); }

/* Tombol sekunder & ukuran */
.hx-btn--sm { padding: 9px 16px; font-size: 14px; }
.hx-btn--lg { padding: 15px 26px; font-size: 16px; }
.hx-btn--soft { background: var(--hx-blue-50); color: var(--hx-blue-600) !important; }
.hx-btn--soft:hover { background: #d8e7f8; box-shadow: none; }
.hx-btn--ok { background: #1f8a4c; } .hx-btn--ok:hover { background: #18703d; box-shadow: 0 10px 24px -10px rgba(31, 138, 76, .7); }
.hx-btn[disabled], .hx-btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------- Definition list (data diri) ---------- */
.hx-dl { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); margin: 0; }
.hx-dl dt, .hx-dl dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--hx-line); font-size: 14.5px; }
.hx-dl dt { color: var(--hx-ink-3); padding-right: 12px; }
.hx-dl dd { font-weight: 600; word-break: break-word; }
.hx-dl > :nth-child(1), .hx-dl > :nth-child(2) { border-top: 0; }
@media (max-width: 520px) {
    .hx-dl { grid-template-columns: 1fr; }
    .hx-dl dt { padding-bottom: 0; }
    .hx-dl dd { border-top: 0; padding-top: 2px; }
    .hx-dl > :nth-child(2) { border-top: 0; }
}

/* ---------- Tabel ---------- */
.hx-table-wrap { overflow-x: auto; border: 1px solid var(--hx-line); border-radius: var(--hx-r-sm); -webkit-overflow-scrolling: touch; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hx-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--hx-ink-2); background: var(--hx-paper); padding: 11px 14px; white-space: nowrap; }
.hx-table td { padding: 12px 14px; border-top: 1px solid var(--hx-line); vertical-align: top; }
.hx-table tbody tr { transition: background .2s; }
.hx-table tbody tr:hover { background: #fafcfe; }
.hx-table input, .hx-table textarea { width: 100%; min-width: 0; font: inherit; font-size: 14px; border: 1.5px solid var(--hx-line); border-radius: 10px; padding: 9px 10px; background: var(--hx-surface); }
.hx-table input:focus, .hx-table textarea:focus { outline: 0; border-color: var(--hx-blue); }

/* ---------- Stepper progres lamaran ---------- */
.hx-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; counter-reset: s; }
.hx-step { position: relative; padding-top: 46px; text-align: center; font-size: 13.5px; }
.hx-step::before {
    content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 4px; border-radius: 4px;
    background: var(--hx-line);
}
.hx-step:first-child::before { display: none; }
.hx-step::after {
    content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 4px; border-radius: 4px;
    background: var(--hx-blue); transform-origin: 0 50%; transform: scaleX(0);
    transition: transform .7s var(--hx-ease); transition-delay: calc(var(--i, 0) * .18s);
}
.hx-step:first-child::after { display: none; }
.hx-step.is-done::after, .hx-step.is-current::after { transform: scaleX(1); }
.hx-step__dot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0;
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
    background: var(--hx-surface); border: 3px solid var(--hx-line); color: var(--hx-ink-3); font-weight: 800; font-size: 14px;
    transition: transform .5s var(--hx-ease-spring), opacity .4s, background .3s, border-color .3s;
    transition-delay: calc(var(--i, 0) * .18s);
}
.is-in .hx-step__dot, .hx-stepper.is-static .hx-step__dot { transform: translateX(-50%) scale(1); opacity: 1; }
.hx-step.is-done .hx-step__dot { background: var(--hx-blue); border-color: var(--hx-blue); color: #fff; }
.hx-step.is-current .hx-step__dot { border-color: var(--hx-blue); color: var(--hx-blue); box-shadow: 0 0 0 6px rgba(21, 96, 189, .15); }
.hx-step.is-failed .hx-step__dot { background: var(--hx-red); border-color: var(--hx-red); color: #fff; }
.hx-step__name { display: block; font-weight: 700; color: var(--hx-ink); }
.hx-step__hint { display: block; color: var(--hx-ink-3); font-size: 12px; }
@media (max-width: 640px) {
    .hx-stepper { grid-auto-flow: row; gap: 4px; }
    .hx-step { padding: 8px 0 8px 52px; text-align: left; min-height: 46px; }
    .hx-step__dot { left: 0; top: 4px; transform: scale(.6); }
    .is-in .hx-step__dot, .hx-stepper.is-static .hx-step__dot { transform: scale(1); }
    .hx-step::before, .hx-step::after { top: -16px; bottom: auto; left: 17px; right: auto; width: 4px; height: 22px; transform-origin: 50% 0; }
    .hx-step.is-done::after, .hx-step.is-current::after { transform: scaleY(1); }
    .hx-step::after { transform: scaleY(0); }
}

/* ---------- Pagination ---------- */
.hx-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; list-style: none; padding: 0; }
.hx-pagination a, .hx-pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; text-decoration: none; color: var(--hx-ink-2);
    background: var(--hx-surface); border: 1px solid var(--hx-line); transition: background .2s, color .2s, border-color .2s;
}
.hx-pagination a:hover { border-color: var(--hx-blue); color: var(--hx-blue); }
.hx-pagination .is-active span { background: var(--hx-blue); color: #fff; border-color: var(--hx-blue); }
.hx-pagination .is-disabled span { opacity: .45; }

/* ---------- Artikel ---------- */
.hx-prose { font-size: 17px; line-height: 1.75; color: #263241; max-width: 70ch; }
.hx-prose > * + * { margin-top: 1em; }
.hx-prose h2, .hx-prose h3, .hx-prose h4 { margin-top: 1.6em; letter-spacing: -0.015em; }
.hx-prose img { border-radius: var(--hx-r-sm); height: auto; }
.hx-prose a { color: var(--hx-blue); }
.hx-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.hx-prose td, .hx-prose th { border: 1px solid var(--hx-line); padding: 8px 10px; }
.hx-prose iframe, .hx-prose video { max-width: 100%; }
.hx-cover { border-radius: var(--hx-r-lg); overflow: hidden; background: var(--hx-navy); aspect-ratio: 16 / 9; max-width: 100%; }
.hx-cover img { width: 100%; height: 100%; object-fit: cover; }

.hx-mini { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hx-line); text-decoration: none; color: var(--hx-ink); }
.hx-mini:first-child { border-top: 0; padding-top: 0; }
.hx-mini img { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--hx-line); }
.hx-mini strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; }
.hx-mini span { font-size: 12.5px; color: var(--hx-ink-3); }
.hx-mini:hover strong { color: var(--hx-blue); }

/* ---------- Daftar lowongan (job portal) ---------- */
.hx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hx-toolbar h2 { font-size: 20px; font-weight: 800; }
.hx-joblist { display: grid; gap: 14px; }
.hx-jobrow {
    --accent: var(--hx-blue);
    position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center;
    padding: 18px 20px; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-r-md);
    text-decoration: none; color: var(--hx-ink); overflow: hidden;
    transition: transform .4s var(--hx-ease), box-shadow .4s var(--hx-ease), border-color .3s;
}
.hx-jobrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s var(--hx-ease); }
.hx-jobrow:hover { transform: translateY(-3px); box-shadow: var(--hx-shadow-2); border-color: transparent; }
.hx-jobrow:hover::before { transform: scaleY(1); }
.hx-jobrow__logo { width: 56px; height: 56px; border-radius: 16px; background: var(--hx-blue-50); display: grid; place-items: center; padding: 8px; }
.hx-jobrow__logo img { width: 100%; height: auto; }
.hx-jobrow__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.hx-jobrow__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: var(--hx-ink-2); }
.hx-jobrow__meta span { display: inline-flex; align-items: center; gap: 5px; }
.hx-jobrow__meta i { color: var(--hx-ink-3); }
.hx-jobrow__side { text-align: right; font-size: 12.5px; color: var(--hx-ink-3); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hx-jobrow__side strong { color: var(--hx-ink); font-size: 13.5px; }
@media (max-width: 640px) {
    .hx-jobrow { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
    .hx-jobrow__logo { width: 44px; height: 44px; border-radius: 12px; }
    .hx-jobrow__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; border-top: 1px dashed var(--hx-line); padding-top: 12px; }
}

.hx-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-filter a {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hx-line); background: var(--hx-surface);
    text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--hx-ink-2); transition: all .2s;
}
.hx-filter a:hover { border-color: var(--hx-blue); color: var(--hx-blue); }
.hx-filter a.is-active { background: var(--hx-navy); border-color: var(--hx-navy); color: #fff; }
@media (max-width: 640px) {
    .hx-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; width: calc(100% + 8px); }
    .hx-filter::-webkit-scrollbar { display: none; }
    .hx-filter a { white-space: nowrap; flex-shrink: 0; }
}
.hx-card.hx-lift { margin-left: clamp(0px, 2.5vw, 32px); margin-right: clamp(0px, 2.5vw, 32px); }

/* Info list di sidebar */
.hx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hx-facts li { display: flex; gap: 12px; align-items: flex-start; }
.hx-facts i {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--hx-blue-50); color: var(--hx-blue); font-size: 18px;
}
.hx-facts span { display: block; font-size: 12.5px; color: var(--hx-ink-3); }
.hx-facts strong { font-size: 14.5px; }

.hx-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-checklist li { position: relative; padding-left: 30px; line-height: 1.55; }
.hx-checklist li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--hx-blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%231560bd'%3E%3Cpath d='M13.5 3.6a1 1 0 0 1 .1 1.4l-6.5 7.5a1 1 0 0 1-1.5 0L2.4 9.1a1 1 0 1 1 1.5-1.3l2.5 2.8 5.8-6.8a1 1 0 0 1 1.3-.2z'/%3E%3C/svg%3E") center no-repeat;
}

/* CTA melayang di mobile */
.hx-mobile-cta { display: none; }
@media (max-width: 960px) {
    .hx-mobile-cta {
        display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -10px 30px -16px rgba(11, 46, 92, .4);
        transform: translateY(110%); transition: transform .45s var(--hx-ease);
    }
    .hx-mobile-cta.is-visible { transform: none; }
    .hx-mobile-cta .hx-btn { flex: 1; }
    body.has-mobile-cta .hx-top { bottom: 86px; }
}

/* ---------- Kartu pilihan besar (menu paklaring / konseling) ---------- */
.hx-actions { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hx-action {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 180px;
    padding: 22px; border-radius: var(--hx-r-md); background: var(--hx-surface); border: 1px solid var(--hx-line);
    text-decoration: none; color: var(--hx-ink); overflow: hidden;
    transition: transform .4s var(--hx-ease), box-shadow .4s var(--hx-ease), border-color .3s;
}
.hx-action:hover { transform: translateY(-5px); box-shadow: var(--hx-shadow-2); border-color: transparent; }
.hx-action__icon {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--hx-blue-50); color: var(--hx-blue); font-size: 24px;
    transition: transform .45s var(--hx-ease-spring);
}
.hx-action:hover .hx-action__icon { transform: rotate(-6deg) scale(1.06); }
.hx-action h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.hx-action p { color: var(--hx-ink-2); font-size: 14px; }
.hx-action__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hx-blue); font-size: 14px; }
.hx-action__go i { transition: transform .3s var(--hx-ease); }
.hx-action:hover .hx-action__go i { transform: translateX(4px); }
.hx-action.is-off { pointer-events: none; background: var(--hx-paper); }
.hx-action.is-off .hx-action__icon { background: #e9edf3; color: var(--hx-ink-3); }
.hx-action.is-off .hx-action__go { color: var(--hx-ink-3); }

/* Status jam layanan */
.hx-hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.hx-hours::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2e9d5b; box-shadow: 0 0 0 4px rgba(46, 157, 91, .2); }
.hx-hours.is-closed::before { background: var(--hx-red); box-shadow: 0 0 0 4px rgba(217, 58, 58, .18); }

/* Toggle mode (paklaring cek status) */
.hx-tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--hx-paper); border: 1px solid var(--hx-line); gap: 4px; }
.hx-tabs button {
    border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--hx-ink-2);
    padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.hx-tabs button[aria-selected="true"] { background: var(--hx-surface); color: var(--hx-blue); box-shadow: var(--hx-shadow-1); }
.hx-tabpanel[hidden] { display: none !important; }
.hx-tabpanel { animation: hx-pop .4s var(--hx-ease) both; }

/* Kuesioner rating 1–4 */
.hx-q { padding: 16px; border-radius: var(--hx-r-sm); background: var(--hx-paper); }
.hx-q + .hx-q { margin-top: 10px; }
.hx-q__text { font-weight: 600; font-size: 14.5px; margin-bottom: 12px !important; }
.hx-scale { display: grid; grid-template-columns: auto repeat(4, minmax(40px, 56px)) auto; gap: 8px; align-items: center; }
.hx-scale small { font-size: 11.5px; color: var(--hx-ink-3); line-height: 1.2; max-width: 9ch; }
.hx-scale small:last-child { text-align: right; justify-self: end; }
.hx-scale label { position: relative; }
.hx-scale input { position: absolute; opacity: 0; }
.hx-scale label span {
    display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--hx-surface); border: 1.5px solid var(--hx-line);
    font-weight: 800; cursor: pointer; transition: all .2s var(--hx-ease);
}
.hx-scale input:checked + span { background: var(--hx-blue); border-color: var(--hx-blue); color: #fff; transform: scale(1.06); }
.hx-scale input:focus-visible + span { outline: 3px solid var(--hx-sun); outline-offset: 2px; }
@media (max-width: 460px) {
    .hx-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hx-scale small { grid-row: 2; font-size: 11px; max-width: none; }
    .hx-scale small:first-child { grid-column: 1 / 3; }
    .hx-scale small:last-child { grid-column: 3 / 5; }
}

/* Slot jadwal konseling */
.hx-slots { display: grid; gap: 12px; }
.hx-slot {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit;
    padding: 16px 18px; border-radius: var(--hx-r-md); background: var(--hx-surface); border: 1.5px solid var(--hx-line); cursor: pointer;
    transition: border-color .25s, background .25s, transform .3s var(--hx-ease), box-shadow .3s;
}
.hx-slot:hover { border-color: var(--hx-blue); transform: translateY(-2px); }
.hx-slot__time { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hx-slot__body { flex: 1; min-width: 0; }
.hx-slot__date { font-size: 13px; color: var(--hx-ink-3); }
.hx-slot__check {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--hx-line); flex-shrink: 0;
    display: grid; place-items: center; color: transparent; transition: all .25s var(--hx-ease-spring);
}
.hx-slot.is-selected { border-color: var(--hx-blue); background: var(--hx-blue-50); box-shadow: 0 0 0 4px rgba(21, 96, 189, .12); }
.hx-slot.is-selected .hx-slot__check { background: var(--hx-blue); border-color: var(--hx-blue); color: #fff; transform: scale(1.1); }
.hx-slot.is-booked { cursor: not-allowed; background: var(--hx-paper); opacity: .75; }
.hx-slot.is-booked:hover { transform: none; border-color: var(--hx-line); }

/* Panel yang muncul bertahap */
.hx-reveal-panel { animation: hx-pop .5s var(--hx-ease) both; }

/* ---------- Kuis MindMatters ---------- */
.hx-quiz { max-width: 640px; margin: 0 auto; }
.hx-quiz__bar { height: 8px; border-radius: 8px; background: var(--hx-line); overflow: hidden; margin: 6px 0 22px; }
.hx-quiz__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--hx-blue), #4b9be8); transition: width .5s var(--hx-ease); }
.hx-quiz__q { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; min-height: 2.5em; }
.hx-quiz__opts { display: grid; gap: 10px; margin-top: 20px; }
.hx-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
    font: inherit; font-weight: 600; font-size: 15.5px; padding: 16px 18px; border-radius: var(--hx-r-sm);
    border: 1.5px solid var(--hx-line); background: var(--hx-surface); color: var(--hx-ink); cursor: pointer;
    transition: border-color .2s, background .2s, transform .25s var(--hx-ease);
}
.hx-opt:hover { border-color: var(--hx-blue); transform: translateX(4px); }
.hx-opt.is-picked { border-color: var(--hx-blue); background: var(--hx-blue); color: #fff; }
.hx-opt:disabled:not(.is-picked) { opacity: .5; cursor: default; transform: none; }
.hx-q-enter { animation: hx-qin .45s var(--hx-ease) both; }
@keyframes hx-qin { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.hx-score {
    width: 148px; height: 148px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
    background: conic-gradient(var(--tone, var(--hx-blue)) calc(var(--p, 0) * 1%), var(--hx-line) 0);
    position: relative; transition: --p 1s;
}
.hx-score::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--hx-surface); }
.hx-score b { position: relative; z-index: 1; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hx-score__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 4px; }
.hx-score small { font-size: 12px; color: var(--hx-ink-3); }

/* ---------- Halaman sukses ---------- */
.hx-success { text-align: center; max-width: 620px; margin: 0 auto; }
.hx-success__mark { width: 112px; height: 112px; margin: 0 auto 22px; }
.hx-success__mark circle { fill: none; stroke: #2e9d5b; stroke-width: 5; stroke-dasharray: 302; stroke-dashoffset: 302; animation: hx-draw 1s var(--hx-ease) .2s forwards; }
.hx-success__mark path { fill: none; stroke: #2e9d5b; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: hx-draw .6s var(--hx-ease) 1s forwards; }
.hx-success__mark .hx-fill { fill: #e7f6ee; stroke: none; opacity: 0; animation: hx-fade .6s var(--hx-ease) .9s forwards; stroke-dasharray: none; }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }
@keyframes hx-fade { to { opacity: 1; } }

/* Embed PDF */
.hx-pdf { width: 100%; height: min(78vh, 900px); border: 0; border-radius: var(--hx-r-sm); background: var(--hx-paper); display: block; }

/* ---------- Select2 mengikuti gaya input ---------- */
.hx-body .select2-container { width: 100% !important; }
.hx-body .select2-container--default .select2-selection--single {
    height: 50px; border: 1.5px solid var(--hx-line); border-radius: var(--hx-r-sm); display: flex; align-items: center;
}
.hx-body .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.3; padding-left: 14px; padding-right: 36px; color: var(--hx-ink); font-size: 16px; }
.hx-body .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }
.hx-body .select2-container--default.select2-container--focus .select2-selection--single,
.hx-body .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--hx-blue); box-shadow: 0 0 0 4px rgba(21, 96, 189, .12); }
.select2-dropdown { border: 1.5px solid var(--hx-line) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--hx-shadow-2); font-family: var(--hx-font); }
.select2-search--dropdown .select2-search__field { border: 1.5px solid var(--hx-line) !important; border-radius: 10px; padding: 8px 10px !important; font-size: 16px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--hx-blue) !important; }
.select2-results__option { padding: 9px 12px !important; font-size: 14.5px; }

/* Flatpickr */
.flatpickr-calendar { font-family: var(--hx-font) !important; border-radius: 14px !important; box-shadow: var(--hx-shadow-2) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--hx-blue) !important; border-color: var(--hx-blue) !important; }

/* ---------- SweetAlert2 mengikuti gaya ---------- */
.swal2-popup { font-family: var(--hx-font) !important; border-radius: 22px !important; }
.swal2-styled.swal2-confirm { background: var(--hx-blue) !important; border-radius: 999px !important; font-weight: 700 !important; }
.swal2-styled.swal2-cancel { border-radius: 999px !important; font-weight: 700 !important; }

/* Footer halaman dalam sedikit lebih ringkas */
.hx-footer--compact { margin-top: clamp(48px, 7vw, 88px); }

/* ---------- Animasi masuk header halaman ---------- */
.hx-pagehead .hx-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hx-pagehead .hx-line > span { display: inline-block; }
.hx-js .hx-pagehead [data-intro] { opacity: 0; transform: translateY(14px); }
.hx-js .hx-pagehead .hx-line > span { transform: translateY(110%); }
.hx-js .hx-lift[data-intro] { opacity: 0; transform: translateY(32px); }
.hx-ready .hx-pagehead [data-intro], .hx-ready .hx-lift[data-intro] { opacity: 1; transform: none; transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease); transition-delay: var(--d, 0s); }
.hx-ready .hx-pagehead .hx-line > span { transform: none; transition: transform .9s var(--hx-ease); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
    .hx-js .hx-pagehead [data-intro], .hx-js .hx-lift[data-intro], .hx-js .hx-pagehead .hx-line > span { opacity: 1 !important; transform: none !important; }
    .hx-pagehead__frame::before { animation: none; }
    .hx-step__dot { opacity: 1 !important; }
}
.hx-body [hidden] { display: none !important; }

/* ---------- Footer selalu di dasar layar (halaman pendek) ---------- */
body.hx-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.hx-body > .hx-page { flex: 1 0 auto; }
body.hx-body > .hx-footer { flex-shrink: 0; }
