:root {
    --wbs-primary: #0a1020;
    /* Hampir Hitam, Modern */
    --wbs-accent: #3b82f6;
    /* Biru Terang */
    --wbs-accent-light: #eff6ff;
    /* Biru Sangat Muda */
    --wbs-bg-subtle: #fbfdff;
    --wbs-border-subtle: #e5e7eb;
    --wbs-text-main: #334155;
    --wbs-text-muted: #64748b;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--wbs-text-main);
    background-color: #ffffff;
    font-size: 0.9rem;
    /* Mengecilkan sedikit ukuran teks dasar */
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Container khusus halaman publik — sedikit lebih ramping dari default Bootstrap */
@media (min-width: 992px) {
    .container {
        max-width: 900px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1040px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1180px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.5px;
    color: var(--wbs-primary);
}

.text-accent {
    color: var(--wbs-accent) !important;
}

/* aksen judul dengan gradient tipis — sedikit lebih hidup dari flat color */
h1 .text-accent,
.section-title .text-accent {
    background: linear-gradient(120deg, var(--wbs-accent), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* --- Navbar (Glassmorphism Effect) --- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    padding: 0.75rem 0;
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.navbar.is-scrolled {
    border-bottom-color: var(--wbs-border-subtle);
    box-shadow: 0 8px 24px -12px rgba(10, 16, 32, 0.15);
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wbs-primary) !important;
}

.navbar-brand-logo {
    height: 30px;
    width: auto;
}

.footer-brand-logo {
    height: 46px;
    width: auto;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wbs-text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--wbs-accent) !important;
    background-color: var(--wbs-accent-light);
}

/* --- Hero Section: Interaktif --- */
.hero-section {
    position: relative;
    padding: 9rem 0 5rem;
    background: linear-gradient(160deg, #14275a 0%, #1c3a7a 55%, #2f57a8 100%);
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-section::before {
    width: 480px;
    height: 480px;
    top: -220px;
    right: -140px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.35),
        transparent 70%
    );
}

.hero-section::after {
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(
        circle,
        rgba(56, 198, 108, 0.18),
        transparent 70%
    );
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-logos img {
    height: 44px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 6.5rem 0 3.5rem;
    }

    .hero-logos img {
        height: 36px;
    }

    .hero-section::before {
        width: 260px;
        height: 260px;
        top: -120px;
        right: -80px;
    }

    .hero-section::after {
        width: 200px;
        height: 200px;
        bottom: -90px;
        left: -70px;
    }
}

.hero-title {
    color: #ffffff;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.65);
}

.hero-lead strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-section .btn-wbs-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.hero-section .btn-wbs-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.badge-hero {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #a8c6ff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    box-shadow: none;
}

.badge-hero .pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wbs-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* --- Custom Buttons --- */
.btn-custom {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-wbs-primary {
    background-color: var(--wbs-primary);
    color: white;
}

.btn-wbs-primary:hover {
    background-color: #1e293b;
    color: white;
    transform: translateY(-2px);
}

.btn-wbs-accent {
    background: linear-gradient(135deg, var(--wbs-accent), #2563eb);
    color: white;
    box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.55);
    border: 1px solid transparent;
}

.btn-wbs-accent:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.55);
}

.btn-wbs-outline {
    border: 1px solid var(--wbs-border-subtle);
    background-color: white;
    color: var(--wbs-text-main);
}

.btn-wbs-outline:hover {
    background-color: #f8fafc;
    border-color: var(--wbs-accent);
    color: var(--wbs-accent);
    transform: translateY(-2px);
}

/* --- Section Titles --- */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
}

/* --- Flow/Alur Section (VISUAL & ICON DOMINANT) --- */
.flow-section {
    background-color: var(--wbs-bg-subtle);
    padding: 5rem 0;
}

.flow-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Garis penghubung alur */
.flow-container::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--wbs-border-subtle),
        var(--wbs-border-subtle) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 1;
}

.flow-step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.flow-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border: 1px solid var(--wbs-border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.flow-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--wbs-primary);
}

.flow-step:hover .flow-icon-wrapper {
    border-color: var(--wbs-accent);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
}

.flow-step:hover .flow-icon-wrapper i {
    color: var(--wbs-accent);
}

.flow-step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--wbs-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Kerahasiaan Section --- */
.kerahasiaan-section {
    position: relative;
    padding: 5.5rem 0;
    overflow: hidden;
    /* background: linear-gradient(160deg, #101c3f 0%, #1a2957 55%, #2a4488 100%); */
}

.kerahasiaan-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.kerahasiaan-glow.g1 {
    width: 460px;
    height: 460px;
    top: -180px;
    left: -120px;
    background: radial-gradient(
        circle,
        rgba(56, 198, 108, 0.22),
        transparent 70%
    );
}

.kerahasiaan-glow.g2 {
    width: 380px;
    height: 380px;
    bottom: -160px;
    right: -100px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.22),
        transparent 70%
    );
}

.kerahasiaan-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
}

.kerahasiaan-card h2 {
    font-size: 1.65rem;
    line-height: 1.3;
    color: #ffffff;
}

.kerahasiaan-icon-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 198, 108, 0.12);
    border: 1px solid rgba(56, 198, 108, 0.3);
    animation: kerahasiaanPulseRing 2.4s ease-in-out infinite;
}

.kerahasiaan-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38c66c, #22a559);
    color: #0d2b1a;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px -8px rgba(56, 198, 108, 0.65);
}

@keyframes kerahasiaanPulseRing {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(56, 198, 108, 0.28);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(56, 198, 108, 0);
    }
}

.kerahasiaan-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.kerahasiaan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 40px;
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    /* color: rgba(255, 255, 255, 0.85); */
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.kerahasiaan-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(56, 198, 108, 0.4);
    transform: translateY(-2px);
    cursor: pointer;
}

.kerahasiaan-badge-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 198, 108, 0.18);
    color: #4ade80;
    font-size: 0.72rem;
}

@media (max-width: 767.98px) {
    .kerahasiaan-section {
        padding: 4rem 0;
    }

    .kerahasiaan-glow.g1 {
        width: 220px;
        height: 220px;
        top: -90px;
        left: -70px;
    }

    .kerahasiaan-glow.g2 {
        width: 180px;
        height: 180px;
        bottom: -80px;
        right: -60px;
    }

    .kerahasiaan-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .kerahasiaan-badge {
        justify-content: flex-start;
    }
}

/* --- Footer (Clean & Detailed) --- */
footer {
    background-color: #0d2b57;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 4rem 0 2rem;
}

footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    margin-top: 3rem;
    color: #64748b;
}

/* --- Nav auth buttons --- */
.nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* --- Hero protection card: glass + icon chips --- */
.hero-protect-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 48px -20px rgba(10, 16, 32, 0.18);
}

.icon-chip {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.icon-chip-sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.icon-chip-danger {
    background: #fee2e2;
    color: #dc2626;
}

.icon-chip-success {
    background: #dcfce7;
    color: #16a34a;
}

.icon-chip-warning {
    background: #fef3c7;
    color: #d97706;
}

.icon-chip-accent {
    background: var(--wbs-accent-light);
    color: var(--wbs-accent);
}

.protect-row {
    background: #fff;
    border: 1px solid var(--wbs-border-subtle);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.protect-row:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 18px -10px rgba(10, 16, 32, 0.18);
}

/* --- Kriteria icon chips --- */
.kriteria-card {
    background: #fff !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.kriteria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -16px rgba(10, 16, 32, 0.2);
    border-color: rgba(59, 130, 246, 0.35) !important;
}

/* --- Footer accent line --- */
footer {
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--wbs-accent),
        transparent
    );
    opacity: 0.7;
}

/* --- Staff login link (nav) --- */
.link-staff {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--wbs-text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition:
        color 0.15s,
        background-color 0.15s;
}

.link-staff:hover {
    color: var(--wbs-primary);
    background-color: #f1f5f9;
}

/* ══════════════════════════════
   FORM PAGES (Buat Laporan / Cek Status)
   ══════════════════════════════ */
.form-shell {
    position: relative;
    padding: 4.5rem 0 5rem;
    background: radial-gradient(100% 50% at 50% 0%, #f1f5f9 0%, #ffffff 100%);
    overflow: hidden;
}

.form-shell::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -200px;
    right: -140px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.14),
        transparent 70%
    );
    pointer-events: none;
}

.form-shell .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .form-shell::before {
        width: 220px;
        height: 220px;
        top: -100px;
        right: -70px;
    }
}

.form-card {
    background: #ffffff;
    border: 1px solid var(--wbs-border-subtle);
    border-radius: 20px;
    box-shadow: 0 24px 48px -28px rgba(10, 16, 32, 0.18);
    padding: 2.2rem;
}

.form-group-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wbs-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
}

.form-group-title .step-dot {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--wbs-accent-light);
    color: var(--wbs-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.form-section + .form-section {
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px dashed var(--wbs-border-subtle);
}

.wbs-body .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wbs-text-main);
    margin-bottom: 0.4rem;
}

.wbs-body .form-control,
.wbs-body .form-select {
    font-size: 0.85rem;
    border: 1px solid var(--wbs-border-subtle);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.wbs-body .form-control:focus,
.wbs-body .form-select:focus {
    border-color: var(--wbs-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wbs-body .form-text {
    font-size: 0.74rem;
}

.privacy-note {
    background: var(--wbs-accent-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.78rem;
    color: #1e40af;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.privacy-note i {
    margin-top: 0.15rem;
}

/* --- Status lookup / timeline --- */
.ticket-display {
    background: linear-gradient(135deg, #0d2b57, #1e3a70);
    color: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ticket-display .label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.25rem;
}

.ticket-display .value {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.ticket-copy-btn {
    font-size: 0.76rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.45rem 0.85rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.15s;
}

.ticket-copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.ticket-copy-btn:active {
    transform: translateY(1px);
}

.ticket-copy-btn.is-copied {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(134, 239, 172, 0.5);
    color: #bbf7d0;
}

.status-track {
    display: flex;
    flex-direction: column;
}

.status-track-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.8rem;
}

.status-track-item:last-child {
    padding-bottom: 0;
}

.status-track-item .node-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-track-item .node {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.status-track-item .node-line {
    flex: 1;
    min-height: 28px;
    width: 3px;
    border-radius: 2px;
    margin: 4px 0;
}

.status-track-item.done .node {
    background: #16a34a;
    color: #fff;
}

.status-track-item.done .node-line {
    background: #16a34a;
}

.status-track-item.active .node {
    background: var(--wbs-accent);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18);
    animation: wbsPulseNode 1.8s ease-in-out infinite;
}

.status-track-item.active .node-line {
    background: linear-gradient(#2563eb, #cbd5e1);
}

.status-track-item.pending .node-line {
    background: #d7dee8;
}

.status-track-item.pending .node {
    background: #f1f5f9;
    border: 1px solid #d7dee8;
    color: var(--wbs-text-muted);
}

@keyframes wbsPulseNode {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
    }
}

.status-track-item .step-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--wbs-primary);
    margin-bottom: 0.2rem;
}

.status-track-item .step-desc {
    font-size: 0.78rem;
    color: var(--wbs-text-muted);
}

.success-banner {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
}

/* --- Scroll reveal --- */
.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
