/* --- Page Container --- */
.daftar-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  /* max-width: 900px; */
  margin: 40px auto;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: #1c1c1c;
}

/* --- Form Grid --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.container {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.form-group.container .jalan {
  grid-column: 1 / 9;
}
.form-group.container .no-rumah {
  grid-column: 9 / 11;
}
.form-group.container .rt {
  grid-column: 11 / 12;
}
.form-group.container .rw {
  grid-column: 12 / 13;
}
.form-group.container .dusun {
  grid-column: 1 / 5;
}
.form-group.container .kelurahan {
  grid-column: 5 / 9;
}
.form-group.container .kecamatan {
  grid-column: 9 / 13;
}
.form-group.container .kota {
  grid-column: 1 / 5;
}
.form-group.container .provinsi {
  grid-column: 5 / 9;
}
.form-group.container .kode-pos {
  grid-column: 9 / 13;
}

.form-group.full {
  grid-column: 1 / -1;
}

/* --- Input Styles --- */
.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
  outline: none;
  background: #fff;
}

/* --- File Input --- */
.form-group input[type="file"] {
  padding: 6px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

.form-group input[type="file"]:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.form-note {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  display: block;
}

/* --- Checkbox List --- */
.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.checkbox-list.column {
  flex-direction: column;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #333;
}

.checkbox-list input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: #0073aa;
  cursor: pointer;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* --- Submit Button --- */
.form-submit {
  margin-top: 30px;
  text-align: center;
}

.btn-submit {
  background: #1d72b8;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-submit:hover {
  background: #155d8b;
}

/* --- Messages --- */
.success-message,
.error-message,
.information-message {
  background: #e8f9f1;
  border-left: 4px solid #28a745;
  padding: 12px 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: 500;
  color: #155724;
  width: 100%;
  display: block;
}

.error-message {
  background: #fdecea;
  border-left-color: #dc3545;
  color: #721c24;
}

.information-message {
  background: #e7f3fe;
  border-left-color: #17a2b8;
  color: #0c5460;
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .form-group.container {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-group.container .jalan,
  .form-group.container .dusun,
  .form-group.container .kota {
    grid-column: 1 / 3;
  }
  .form-group.container .no-rumah,
  .form-group.container .rt,
  .form-group.container .rw,
  .form-group.container .kelurahan,
  .form-group.container .kecamatan,
  .form-group.container .provinsi,
  .form-group.container .kode-pos {
    grid-column: 1 / 2;
  }
}

@media (max-width: 768px) {
  .daftar-wrapper {
    padding: 20px;
  }
  .form-group.container {
    grid-template-columns: 1fr;
  }
  .form-group.container > div {
    grid-column: 1 / -1 !important;
  }
}
