body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.category-type-btn.active {
    background-color: #ffb200;
    color: white;
    border-color: #ffb200;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid #e5e7eb;
}
.timeline-item:last-child {
    border-left: 2px solid transparent;
}
.timeline-dot {
    position: absolute;
    left: -0.6rem;
    top: 0;
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 50%;
    background-color: #ffb200;
    border: 4px solid white;
    box-shadow: 0 0 0 1px #e5e7eb;
    z-index: 10;
}
.t-dot {
    transition: all 0.3s ease;
}
/* Animation for Success Icon */
@keyframes pop-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.animate-success {
    animation: pop-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* Floating Animation for the image */
@keyframes float {
    0% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    100% { transform: translateY(0px) rotate(3deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Confetti decorative background */
.bg-confetti {
    background-image: radial-gradient(#ffb200 2px, transparent 2px), radial-gradient(#22c55e 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.1;
}

/* Smooth Scrolling adjustment for sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.term-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.sidebar-link.active {
    color: #ffb200;
    border-left-color: #ffb200;
    background-color: #fff9e6;
    font-weight: 600;
}

/* Prose custom styling for lists inside translations */
.prose-custom ul { list-style-type: disc; margin-left: 1.25rem; margin-bottom: 1rem; }
.prose-custom li { margin-bottom: 0.5rem; }
.prose-custom strong { font-weight: 700; color: #1f2937; }
.prose-custom h3 { font-size: 1.125rem; font-weight: 700; color: #111827; margin-top: 1.5rem; margin-bottom: 0.75rem; }

.policy-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.sidebar-link.active {
    color: #ffb200;
    border-left-color: #ffb200;
    background-color: #fff9e6;
    font-weight: 600;
}

.sidebar-link.active {
    background-color: #fff9e6;
    color: #ffb200;
    border-right: 3px solid #ffb200;
}
.tab-btn.active {
    color: #ffb200;
    border-bottom: 2px solid #ffb200;
}
/* Hide scrollbar for horizontal tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.page-btn.active {
    background-color: #ffb200;
    color: white;
    border-color: #ffb200;
}

/* Menargetkan Link di dalam LI yang aktif */
.active-page a {
    background-color: #ffb200 !important; /* Warna Tema Anda */
    color: white !important;
    border-color: #ffb200 !important;
}

/* Opsional: Memastikan icon prev/next rata tengah sempurna */
.pagination li {
    display: inline-flex;
}

/* --- PERBAIKAN TOTAL LAYOUT KARTIK FILEINPUT --- */

.select2-container--krajee-bs5 .select2-selection {
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 0%);
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    color: #212529;
    outline: 0;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.select2-container--krajee-bs5 .select2-selection--single {
    background-color: #f9fafb;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    height: calc(3rem + 4px);
    line-height: 1.5;
    padding: 0.375rem 2rem 0.375rem 0.5rem;
}

.select2-container--krajee-bs5 .select2-selection--single .select2-selection__rendered {
    color: #212529;
    padding: 0;
    padding-top: 7px;
}

select.is-valid + .select2-container--krajee-bs5 .select2-selection--single, .has-success.select2-container--krajee-bs5 .select2-dropdown, .has-success .select2-container--krajee-bs5 .select2-selection {
    border-color: #ced4da !important;
}

select.is-invalid + .select2-container--krajee-bs5 .select2-selection--single, .has-error.select2-container--krajee-bs5 .select2-dropdown, .has-error .select2-container--krajee-bs5 .select2-selection {
    border-color: #ced4da;
}

/* =========================================================
   1. LAYOUT INPUT & TOMBOL (Bagian Atas)
   ========================================================= */

/* Reset Container Utama Input agar satu baris (Flexbox) */
.file-input .input-group {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
    position: relative;
    margin-bottom: 0;
}

/* Styling Kotak Caption (Nama File) */
.file-input .file-caption {
    flex-grow: 1;
    position: relative;
    border: 1px solid #d1d5db; /* border-gray-300 */
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 0.75rem;    /* rounded-xl */
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: auto;
}

/* Teks nama file */
.file-input .file-caption-name {
    width: 100%;
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
}

/* Hapus icon kecil di kiri caption */
.file-input .file-caption-icon {
    margin-right: 0.5rem;
    color: #6b7280;
}

/* Container Tombol Kanan */
.file-input .input-group-btn {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Styling Dasar Tombol (Browse, Remove) */
.file-input .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem; /* rounded-xl */
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.25rem;
    text-decoration: none;
    height: 100%;
}

/* Tombol BROWSE (Pilih Photo) - Kuning/Emas */
.file-input .btn-file {
    background-color: #ffb200;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(255, 178, 0, 0.3);
}
.file-input .btn-file:hover {
    background-color: #e6a100;
}

/* Tombol REMOVE - Merah */
.file-input .fileinput-remove-button,
.file-input .fileinput-remove {
    background-color: #ef4444;
    color: white;
    border: 1px solid transparent;
}
.file-input .fileinput-remove-button:hover,
.file-input .fileinput-remove:hover {
    background-color: #dc2626;
}

/* Tombol CANCEL - Abu-abu */
.file-input .fileinput-cancel-button {
    background-color: #9ca3af;
    color: white;
}

/* Icon dalam tombol */
.file-input .btn i {
    margin-right: 0.5rem;
}


/* =========================================================
   2. PREVIEW AREA & KARTU GAMBAR (Bagian Bawah)
   ========================================================= */

/* Reset Wrapper Preview Luar */
.file-preview {
    border: none !important; /* Hapus border luar ganda */
    padding: 0 !important;
    margin-bottom: 1rem;
    background: transparent !important;
}

/* DROP ZONE: Area garis putus-putus */
/* Flex Column: Agar Thumbnail (atas) dan Error (bawah) tersusun vertikal */
.file-drop-zone {
    display: flex !important;
    flex-direction: column !important; /* Susun vertikal: Gambar atas, Error bawah */
    align-items: center !important;
    justify-content: center !important;

    /* Style Box */
    border: 2px dashed #d1d5db !important;
    background-color: #f9fafb !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;

    /* UKURAN FIX */
    min-height: 230px !important; /* Tinggi tetap agar layout tidak lompat */
    position: relative;
}

/* Hapus teks default 'Drag & drop files here' */
.file-drop-zone-title {
    display: none;
}

/* KARTU PREVIEW (FRAME) */
.file-preview-frame {
    /* Style Kartu */
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem !important;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* UKURAN FIX KARTU */
    width: 150px !important;
    height: 150px !important;

    /* Layout */
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 0 10px 0 !important; /* Beri jarak bawah ke pesan error */
}

/* Styling Konten Gambar agar pas (Contain) */
.kv-file-content, .kv-preview-data {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important; /* Hapus border bawaan */
    object-fit: cover;
}
.kv-preview-data img {
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* FIX: Icon File Besar (Jika bukan gambar) */
.file-preview-other-frame {
    width: 100% !important;
    height: 100% !important;
}
.file-other-icon {
    font-size: 3rem !important;
}

/* Sembunyikan elemen footer kartu yang mengganggu */
.file-preview-frame .file-thumbnail-footer,
.file-preview-frame .file-drag-handle {
    display: none !important;
}


/* =========================================================
   3. PESAN ERROR (Alert Merah)
   ========================================================= */

/* Styling Kotak Error agar rapi di bawah gambar */
.kv-fileinput-error {
    /* PENTING: Jangan gunakan display: block !important disini.
       Biarkan plugin mengatur display (none/block).
       Kita hanya atur styling visualnya saja. */

    width: 90% !important; /* Lebar alert */
    margin-top: 0.5rem !important;
    padding: 0.5rem 1rem !important;

    /* Warna Alert Style */
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
    border-radius: 0.5rem !important;

    font-size: 0.8rem !important;
    text-align: center !important;
    box-shadow: none !important;
    float: none !important;
}

.kv-fileinput-error[style*="display: none"],
.kv-fileinput-error[style*="display:none"] {
    display: none !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

/* Tombol Close (x) pada Error */
.kv-error-close {
    float: right;
    font-size: 1rem;
    font-weight: bold;
    color: #ef4444;
    opacity: 0.6;
    background: none;
    border: none;
    margin-left: 5px;
}
.kv-error-close:hover {
    opacity: 1;
}

/* Wrapper Thumbnail Flex Fix */
.file-preview-thumbnails {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}
.file-zoom-dialog {
    display: none !important;
}

.star-rating svg {
    transition: color 0.2s, fill 0.2s, transform 0.2s;
}
.star-rating svg.active {
    fill: #ffb200;
    color: #ffb200;
}
.star-rating svg.inactive {
    fill: none;
    color: #cbd5e1; /* Gray-300 */
}