/* CSS KHUSUS HALAMAN PMBM */

/* Hero Section PMBM (Gradien Hijau Terang - Identitas Madrasah) */

/* PMBM Layout Grid (2.5fr Form : 1fr Sidebar) */
.pmbm-section {
    padding: 50px 0;
    background-color: #f1f5f9; /* Slate 100 - bg lembut agar form box menonjol */
}
.pmbm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 1024px) {
    .pmbm-grid {
        grid-template-columns: 2.5fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* ===== FORM STYLING (KOLOM KIRI) ===== */
.pmbm-form-container {
    background: transparent;
}
.form-section-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: #e6f4ea; /* green tint */
    color: var(--primary-green);
    border-radius: 8px;
    font-size: 16px;
}

/* Grid Input Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .form-row.col-2 { grid-template-columns: 1fr 1fr; }
    .form-row.col-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 8px;
}
.form-group label span.req { color: #dc2626; } /* Bintang merah wajib */

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: var(--charcoal);
    transition: all 0.3s;
    font-family: inherit;
}
.form-control:focus, .form-select:focus {
    outline: none;
    background: white;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.form-control::placeholder {
    color: #94a3b8;
}

/* Custom Radio & Checkbox Container */
.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 400 !important;
}

/* ===== UPLOAD AREA MODERN ===== */
.upload-wrapper {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    margin-bottom: 16px;
}
.upload-wrapper:hover {
    border-color: var(--primary-green);
    background: #f0fdf4; /* green-50 */
}
.upload-icon {
    width: 48px; height: 48px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}
.upload-sub {
    font-size: 13px;
    color: var(--slate-light);
}
.file-input-hidden {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview Box */
.preview-box {
    display: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: white;
    align-items: center;
    gap: 16px;
}
.preview-box.active {
    display: flex;
}
.preview-img {
    width: 80px; height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}
.preview-info {
    flex: 1;
}
.preview-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}
.preview-action {
    font-size: 13px;
    color: #dc2626;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Tombol Submit Utama */
.btn-submit-form {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.btn-submit-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* ===== SIDEBAR STYLING (KOLOM KANAN) ===== */
.sidebar-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alur List */
.alur-list {
    position: relative;
    padding-left: 24px;
}
.alur-list::before {
    content: '';
    position: absolute;
    top: 10px; bottom: 10px; left: 9px;
    width: 2px;
    background: #e2e8f0;
}
.alur-item {
    position: relative;
    margin-bottom: 20px;
}
.alur-item:last-child { margin-bottom: 0; }
.alur-bullet {
    position: absolute;
    left: -24px; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}
.alur-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}
.alur-item p {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.5;
}

/* Syarat List */
.syarat-list {
    list-style: none;
}
.syarat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.syarat-item:last-child {
    border-bottom: none;
}
.syarat-icon {
    color: var(--primary-green);
    margin-top: 2px;
}
.syarat-text {
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 500;
}