/* Animasi untuk Modal Popup */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in { 
    animation: fadeIn 0.2s ease-out forwards; 
}

.animate-slide-up { 
    animation: slideUp 0.3s ease-out forwards; 
}

/* Fluent Form Wrapper Fix */
.fluent-form-style-wrapper .ff-el-group {
    margin-bottom: 15px;
}

.fluent-form-style-wrapper input,
.fluent-form-style-wrapper select,
.fluent-form-style-wrapper textarea {
    width: 100%;
}

/* --- FIX FOOTER & SEARCH (PENTING) --- */
/* Kod ini akan membuang elemen 'sampah' di bahagian bawah page */

/* 1. Sembunyikan semua jenis Search Widget, Form, SIDE MENU, dan elemen rosak lain */
.widget_search, 
.search-form,
.footer-search,
.modal-search-form,
.search-modal,
.search-overlay,
#search-drawer,
.site-search,
.widget-area,
#sidr-main,          /* Menu Sisi Mobile */
.wpex-sidr-overlay,  /* Overlay Menu Sisi */
.sidr,               /* Class umum Sidr */
#mobile-menu-search, /* Carian menu mobile (kotak biru di bawah) */
#site-scroll-top,    /* Butang back-to-top yang rosak */
.skip-to-content     /* Link skip-to-content yang terkeluar */
{
    display: none !important;
}

/* 2. Sembunyikan teks 'undefined' atau kod debug yang mungkin terkeluar */
body > pre, 
body > code {
    display: none !important;
}

/* 3. Sembunyikan elemen 'skip-link' atau 'screen-reader-text' jika ia rosak */
.screen-reader-text,
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* 4. Pastikan Footer Asal (Hitam) kekal kemas jika perlu */
.site-footer {
    position: relative;
    z-index: 10;
    /* Pastikan tiada elemen pelik di bawahnya */
    margin-bottom: 0 !important; 
}