/* -----------------------------------------------------------
   Nawa WP – Simulasi Kredit Bank
   Style dasar versi 1.0
----------------------------------------------------------- */

.nawa-credit-form {
  max-width: 720px;
  margin: 20px auto;
  padding: 25px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #222;
}

.nawa-credit-form h2 {
  text-align: center;
  color: #1e3a8a;
  margin-bottom: 20px;
  font-weight: 600;
}

.nawa-credit-form label {
  display: block;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 4px;
}

.nawa-credit-form input[type="text"],
.nawa-credit-form input[type="number"],
.nawa-credit-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: all .15s;
}

.nawa-credit-form input:focus,
.nawa-credit-form select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 1px #2563eb33;
}

.nawa-credit-form button {
  margin-top: 18px;
  width: 100%;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}

.nawa-credit-form button:hover {
  background: #1d4ed8;
}

#result {
  margin-top: 25px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

#result h3 {
  color: #1f2937;
  margin-top: 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

#result p {
  margin: 5px 0;
  font-size: 15px;
}

/* tabel cicilan */
#tabel_cicilan {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

#tabel_cicilan thead th {
  background: #2563eb;
  color: #fff;
  text-align: left;
  padding: 10px;
  font-weight: 500;
}

#tabel_cicilan tbody td,
#tabel_cicilan tfoot td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}

#tabel_cicilan tbody tr:nth-child(even) {
  background: #f9fafb;
}

#tabel_cicilan tfoot {
  background: #eef2ff;
  color: #1e3a8a;
}

/* mobile responsiveness */
@media (max-width: 600px) {
  .nawa-credit-form {
    padding: 15px;
  }

  #tabel_cicilan {
    width: 700px; /* biar tetap proporsional dan bisa di-scroll */
    font-size: 13px;
  }

  #tabel_cicilan thead th,
  #tabel_cicilan tbody td,
  #tabel_cicilan tfoot td {
    white-space: nowrap;
    padding: 8px 10px;
  }
}
