/* =========================================
   1. GLOBAL & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fefaf6;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 25px 25px;
    margin: 0;
    padding: 0; /* Reset agar navbar mobile full width */
    color: #334155;
}

/* =========================================
   2. NAVBAR DESKTOP (SLIM & CLEAN)
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 0 30px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 1250px;
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 20px auto;
    height: 65px;
}

.nav-logo img { height: 35px; object-fit: contain; }
.nav-links { display: flex; list-style: none; gap: 15px; margin: 0; padding: 0; align-items: center; }
.nav-links li a { 
    text-decoration: none; 
    color: #475569; 
    font-weight: 700; 
    font-size: 13.5px; 
    display: flex; 
    align-items: center; 
    gap: 7px; 
}
.nav-links li a:hover { color: #ea580c; }
.text-stack { display: flex; flex-direction: column; line-height: 1.1; font-size: 14px; text-align: center; }

/* =========================================
   3. CONTAINER & FORM CARD
   ========================================= */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 25px;
    transition: 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.btn-back:hover { transform: translateX(-5px); color: #ea580c; }

.form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.form-title {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.form-group { margin-bottom: 25px; }
.form-label {
    display: block;
    font-weight: 800;
    color: #334155;
    margin-bottom: 10px;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}
.form-control:focus { border-color: #ea580c; box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1); }

/* Grid 2 Kolom */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Fasilitas Pills */
.facilities-container { display: flex; flex-wrap: wrap; gap: 12px; }
.facility-label {
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 20px;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 700;
}
.facility-checkbox { display: none; }
.facility-checkbox:checked + .facility-label {
    border-color: #ea580c;
    background: #fff7ed;
    color: #ea580c;
}

/* Area Tombol Simpan */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.btn-cancel { color: #64748b; font-weight: 800; background: none; border: none; cursor: pointer; font-size: 16px; }

.btn-save {
    background: #f97316;
    color: white;
    padding: 14px 35px;
    border-radius: 12px;
    border: none;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 0 #c2410c;
    transition: all 0.1s;
}
.btn-save:active { transform: translateY(4px); box-shadow: 0 1px 0 #c2410c; }

/* =========================================
   4. RESPONSIVE MOBILE (OPTIMASI HP TOTAL)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Paksa Hilangkan Navbar Desktop */
    .navbar { 
        display: none !important; 
    }

    /* 2. Beri ruang di atas dan bawah body */
    body { 
        padding: 15px 10px; 
        padding-top: 25px !important; /* Jarak aman dari notch/status bar HP */
        padding-bottom: 110px !important; /* Ruang bernapas di atas mobile nav */
    }

    /* 3. Container Menyesuaikan Layar */
    .container { 
        margin: 0 auto; 
        padding: 0 5px; 
    }

    /* 4. Perkecil Padding Card agar Input Lebih Luas */
    .form-card { 
        padding: 25px 18px; 
        border-radius: 20px; 
    }

    /* 5. Kecilkan Ukuran Judul Form */
    .form-title {
        font-size: 22px !important;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    /* 6. Grid Otomatis Menjadi 1 Kolom */
    .grid-2 { 
        grid-template-columns: 1fr !important; 
        gap: 15px;
    }

    /* 7. Centang Fasilitas (Pills) Menyesuaikan */
    .facilities-container {
        gap: 8px;
    }
    .facility-label {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* 8. Tombol Aksi Menjadi Tumpuk Vertikal */
    .form-actions { 
        flex-direction: column-reverse; /* Simpan di atas, Batal di bawah */
        gap: 15px; 
        align-items: stretch; 
        margin-top: 30px;
        padding-top: 20px;
    }

    .btn-save { 
        width: 100%; 
        text-align: center; 
        padding: 14px 0;
        font-size: 15px;
    }
    
    .btn-cancel { 
        text-align: center; 
        padding: 5px 0;
        font-size: 15px;
    }

    /* Jika ada Upload Box Foto, Buat Otomatis ke Tengah */
    .photo-upload-box {
        margin: 0 auto;
    }

    /* 9. Tampilkan Navbar Bawah dengan Sempurna */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 75px;
        background: white;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -3px 20px rgba(0,0,0,0.06);
        z-index: 10000;
        border-radius: 25px 25px 0 0;
    }
}

/* Nav Mobile Items Utility */
.mobile-nav { display: none; }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #94a3b8; font-size: 11px; font-weight: 700; gap: 5px; }
.mobile-nav-item.active { color: #ed8805; }
.mobile-nav-item i { font-size: 22px; }