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

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    /* Efek Pola Titik (Dotted Background) */
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 25px 25px;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* =========================================
   2. NAVBAR DESKTOP (PILL-SHAPE)
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 25px;
    border-radius: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 0 auto 20px;
}

.nav-logo img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ed8805;
}

.text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 14px;
    text-align: center;
}

/* =========================================
   3. FORM LAYOUT & CONTAINER
   ========================================= */
.form-container {
    max-width: 1100px;
    margin: 40px auto;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-back {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-back:hover {
    background: #f1f5f9;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.form-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.form-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   4. INPUT & UPLOAD STYLES
   ========================================= */
.upload-box {
    border: 2px dashed #ffead4;
    background: #fffcf9;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.upload-box:hover {
    background: #fff4e6;
    border-color: #ed8805;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #475569;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fcfcfc;
    font-family: inherit;
    box-sizing: border-box; /* Sangat penting untuk mobile */
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ed8805;
    background: white;
}

/* =========================================
   5. PREVIEW CARD & SUBMIT
   ========================================= */
.preview-card-container {
    position: sticky;
    top: 100px;
}

.community-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.preview-cover {
    height: 120px;
    background: #ed8805;
    background-position: center;
    background-size: cover;
}

.mini-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    position: absolute;
    top: -25px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.btn-submit {
    width: 100%;
    background: #ed8805;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(237, 136, 5, 0.2);
}

.btn-submit:hover {
    background: #d67a04;
    transform: translateY(-2px);
}

/* =========================================
   6. RESPONSIVE MOBILE (HP)
   ========================================= */
@media screen and (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .preview-card-container {
        position: static;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 100px;
        background-image: none; /* Bersihkan background di HP agar ringan */
    }

    .navbar {
        display: none !important;
    }

    /* Mobile Bottom Nav */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 70px;
        background: white;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 9999;
        border-radius: 20px 20px 0 0;
    }

    .form-container {
        margin: 20px 0;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    input, textarea {
        font-size: 16px !important; /* Mencegah auto-zoom */
    }
}

/* Utility Mobile Nav */
.mobile-nav { display: none; }
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #94a3b8; font-size: 10px; gap: 4px;
}
.mobile-nav-item.active { color: #ed8805; }
.mobile-nav-item i { font-size: 20px; }