
* { box-sizing: border-box; }

body.pendataan-page {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(46,125,50,.07), transparent 28%),
    linear-gradient(180deg, #fafbf8 0%, #f5f7f2 100%);
  color: #1c2c1f;
  line-height: 1.55;
}

.pendataan-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dce5d7;
  backdrop-filter: blur(12px);
}

.pendataan-header-inner {
  width: min(1100px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pendataan-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #1b5e20;
  font-weight: 800;
  text-decoration: none;
}

.pendataan-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #dce5d7;
  box-shadow: 0 6px 16px rgba(27,94,32,.1);
}

.pendataan-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pendataan-nav a {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: #3d5a42;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.pendataan-nav a:hover {
  background: #edf7ee;
  color: #1b5e20;
}

.pendataan-main {
  width: min(1000px, calc(100% - 32px));
  margin: 34px auto 56px;
}

.pendataan-intro {
  margin-bottom: 26px;
  padding: 28px;
  border: 1px solid #d9e5d4;
  border-left: 5px solid #2e7d32;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,122,0,.12), transparent 28%),
    linear-gradient(145deg, #eef7ee, #ffffff);
  box-shadow: 0 12px 28px rgba(27,94,32,.055);
}

.pendataan-intro h1 {
  margin: 0 0 10px;
  color: #1b5e20;
  font-size: clamp(28px, 5vw, 40px);
}

.pendataan-intro p {
  margin: 0;
  color: #617064;
  line-height: 1.7;
}

.pendataan-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #fff2e2;
  border: 1px solid #ffd2a4;
  color: #8b4400;
  font-size: 14px;
}

fieldset {
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid #dce5d7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17,24,39,.035);
}

legend {
  padding: 0 8px;
}

legend strong { color: #1b5e20; }

label {
  display: block;
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 47px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cad8c6;
  border-radius: 12px;
  background: #fff;
  color: #1c2c1f;
  outline: none;
}

textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 4px rgba(46,125,50,.11);
}
input[readonly] { background: #f5f7f2; cursor: not-allowed; }

button {
  min-height: 44px;
  padding: 10px 15px;
  margin-top: 5px;
  border: 1px solid #b8ccb3;
  border-radius: 12px;
  background: #fff;
  color: #1b5e20;
  font-weight: 750;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #edf7ee; }
button:disabled { cursor: not-allowed; opacity: .6; }

#btnKirim {
  width: 100%;
  min-height: 56px;
  border: 0;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(27,94,32,.15);
}
#btnKirim:hover:not(:disabled) { background: linear-gradient(135deg, #27722c, #174f1b); }

#btnCekStatus,
#btnLokasi,
#btnTambahAnggota,
#btnMulaiRevisi {
  border-color: #8fbc8f;
  color: #1b5e20;
  background: #f7fbf7;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-space { margin-top: 18px; }
.anggota-list { margin-top: 18px; }

.anggota {
  margin-bottom: 15px;
  padding: 17px;
  border: 1px solid #dce5d7;
  border-left: 4px solid #2e7d32;
  border-radius: 15px;
  background: #fbfdf9;
  scroll-margin-top: 20px;
}

.anggota-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.anggota-header h3 { margin: 0; color: #1b5e20; }
.btnHapus { width: auto; white-space: nowrap; color: #9b1c1c; border-color: #f0b5b5; background: #fff8f8; }

.hidden { display: none !important; }
.info,
.umurCaption {
  display: block;
  margin-top: 6px;
  color: #667067;
  font-size: 13px;
  font-weight: normal;
}
.hubunganKeluargaLain { margin-top: 10px; }

.ktp-anggota {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #cbd7c7;
}

#mapLokasi {
  width: 100%;
  height: 380px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid #d4dfd0;
  border-radius: 15px;
}
#hasilLokasi { word-break: break-word; }

.previewDokumen { margin-top: 12px; }
.previewDokumen img {
  display: block;
  max-width: 320px;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 5px;
  border: 1px solid #d9e2d5;
  border-radius: 12px;
  background: #fafcf9;
}
.previewDokumen object {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 350px;
  margin-top: 5px;
  border: 1px solid #d9e2d5;
  border-radius: 12px;
}
.previewInfo {
  margin-top: 8px;
  color: #5b665d;
  font-size: 14px;
  word-break: break-word;
}
.dokumen-item { margin-bottom: 22px; }

.submission-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d9e3d5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(31,41,55,.035);
}
.submission-panel h2 { margin: 0 0 8px; color: #1b5e20; font-size: 19px; }
.result-message {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #4b5563;
  line-height: 1.6;
}
.result-message.success { color: #1b5e20; }
.result-message.error { color: #9b1c1c; }

.status-card { margin-top: 16px; }
.status-card dl {
  display: grid;
  grid-template-columns: minmax(130px,180px) 1fr;
  gap: 8px 14px;
  margin: 0;
}
.status-card dt { font-weight: 700; color: #526057; }
.status-card dd { margin: 0; color: #1f2937; }
.status-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf7ee;
  color: #1b5e20;
  font-weight: 800;
  text-transform: capitalize;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #e1e9de;
  border-radius: 12px;
  background: #fbfdf9;
  font-weight: 700;
}
.radio-option input { width: auto; min-height: auto; margin: 0; accent-color: #2e7d32; }

.inline-actions,
.status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.status-heading h2 { margin-bottom: 4px; }

.pendataan-footer {
  padding: 24px 16px 36px;
  text-align: center;
  color: #788078;
  font-size: 13px;
}

@media (max-width: 700px) {
  .pendataan-header-inner {
    min-height: 70px;
    align-items: center;
  }
  .pendataan-brand span { display: none; }
  .pendataan-nav { gap: 3px; }
  .pendataan-nav a { padding: 0 8px; font-size: 12px; }
  .pendataan-main {
    width: min(100% - 22px, 1000px);
    margin-top: 20px;
  }
  .pendataan-intro { padding: 20px; }
  .grid { grid-template-columns: 1fr; }
  fieldset { padding: 18px; }
  #mapLokasi { height: 300px; }
  .previewDokumen img { max-width: 100%; }
  .previewDokumen object { height: 300px; }
  .status-card dl { grid-template-columns: 1fr; gap: 3px; }
  .status-card dd { margin-bottom: 10px; }
  .status-heading { align-items: stretch; }
  .status-heading > div,
  .status-heading button { width: 100%; }
}

/* Logo resmi LKM */
.pendataan-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  border: 0;
  background: transparent;
}


/* Kontak petugas setelah pengajuan berhasil dibuat. */
.pengajuan-contact-box {
  margin-top: 16px;
}
