/* ═══ Kalkulator Cicilan KUR — HitungBisnis v3 (redesign profesional, sesuai NN/g calc-UX) ═══ */
.kalk-kur {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #16324a;
  line-height: 1.65;
}
.kalk-kur h1 {
  font-size: 1.45em;
  line-height: 1.3;
  margin: 8px 0 14px;
  color: #0f2d4a;
}
.kalk-kur .intro {
  background: #ffffff;
  border: 2px solid #16324a;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.kalk-kur .intro p { font-size: .95em; margin-bottom: 8px; }
.kalk-kur .intro p:last-child { margin-bottom: 0; }
.kalk-kur .badge {
  display: inline-block;
  background: #dcf1d9;
  color: #1d6b2a;
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.kalk-kur .panel {
  background: #ffffff;
  border: 2px solid #d7e3ef;
  border-radius: 16px;
  padding: 18px 20px 20px;
  margin: 0 0 16px;
  box-shadow: 0 1px 3px rgba(15, 45, 74, .06);
}
.kalk-kur .panel-title {
  font-weight: 800;
  color: #0f2d4a;
  font-size: .95em;
  margin-bottom: 4px;
}
.kalk-kur label {
  display: block;
  font-size: .85em;
  font-weight: 700;
  color: #52627a;
  margin: 14px 0 5px;
}
.kalk-kur label:first-child { margin-top: 0; }
.kalk-kur input[type=number],
.kalk-kur select {
  width: 100%;
  border: 2px solid #c4d3e2;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  color: #16324a;
  background: #fbfdff;
  font-family: inherit;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.kalk-kur input::-webkit-outer-spin-button,
.kalk-kur input::-webkit-inner-spin-button { -webkit-appearance: none; }
.kalk-kur input:focus,
.kalk-kur select:focus { border-color: #2563eb; background: #fff; }
.kalk-kur .row { display: flex; gap: 12px; }
.kalk-kur .row > div { flex: 1; }
.kalk-kur .hint { font-size: .78em; color: #8a99a9; margin-top: 5px; }
.kalk-kur .hint.ballpark { color: #1d6b2a; font-weight: 700; }
.kalk-kur .btn-row { display: flex; gap: 10px; margin-top: 18px; }
.kalk-kur .btn-hitung {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
  transition: background .15s;
}
.kalk-kur .btn-hitung:hover { background: #1e4fd6; }
.kalk-kur .btn-reset {
  background: #fff;
  color: #52627a;
  border: 2px solid #c4d3e2;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.kalk-kur .btn-reset:hover { border-color: #8a99a9; color: #16324a; }
/* hasil — kartu gelap kontras tinggi, selalu terlihat setelah hitung */
.kalk-kur .hasil {
  background: #0f2d4a;
  color: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.kalk-kur .hasil.hidden { display: none; }
.kalk-kur .hasil .lbl {
  font-size: .78em;
  color: #9fb8cf;
  font-weight: 700;
  letter-spacing: .6px;
}
.kalk-kur .hasil .big {
  font-size: 2.1em;
  font-weight: 800;
  color: #ffd98a;
  margin: 6px 0 2px;
}
.kalk-kur .hasil .sub {
  font-size: .85em;
  color: #c9d7e6;
}
.kalk-kur .hasil-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.kalk-kur .hasil-grid > div {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 12px 14px;
}
.kalk-kur .hasil-grid .v { font-weight: 800; font-size: 1.05em; color: #fff; margin-top: 3px; }
.kalk-kur .hasil-grid .v.sehat { color: #4ade80; }
.kalk-kur .hasil-grid .v.agak { color: #ffd98a; }
.kalk-kur .hasil-grid .v.risiko { color: #ff8a8a; }
.kalk-kur .tabel-wrap { overflow-x: auto; margin-bottom: 16px; border-radius: 12px; border: 2px solid #d7e3ef; display: none; }
.kalk-kur .tabel-wrap.show { display: block; }
.kalk-kur table { width: 100%; border-collapse: collapse; background: #fff; font-size: .88em; min-width: 470px; }
.kalk-kur th { background: #0f2d4a; color: #fff; padding: 10px 12px; text-align: left; font-size: .92em; white-space: nowrap; }
.kalk-kur td { padding: 9px 12px; border-bottom: 1px solid #e8eef4; white-space: nowrap; }
.kalk-kur tr:hover td { background: #f0f6fc; }
.kalk-kur tr:last-child td { border-bottom: none; }
.kalk-kur td.muted { color: #8a99a9; text-align: center; }
.kalk-kur .ket {
  background: #ffffff;
  border: 2px solid #d7e3ef;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 45, 74, .06);
}
.kalk-kur .ket h2 { font-size: 1.08em; color: #0f2d4a; margin-bottom: 10px; }
.kalk-kur .ket p { font-size: .92em; margin-bottom: 10px; }
.kalk-kur .ket p:last-child { margin-bottom: 0; }
.kalk-kur .link-hpp {
  display: inline-block;
  background: #0f2d4a;
  color: #ffd98a;
  padding: 11px 20px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9em;
  margin-top: 6px;
}
.kalk-kur .link-hpp:hover { background: #16324a; }
.kalk-kur .footer {
  text-align: center;
  color: #8a99a9;
  font-size: .8em;
  margin-top: 22px;
}
/* responsif mobile */
@media (max-width: 600px) {
  .kalk-kur .row { flex-direction: column; gap: 0; }
  .kalk-kur .hasil-grid > div { min-width: 100%; }
  .kalk-kur .hasil .big { font-size: 1.75em; }
  .kalk-kur .btn-row { flex-direction: column; }
  .kalk-kur .btn-reset { width: 100%; }
}
/* ═══ DARK MODE (mengikuti pola html.hb-dark situs — light 0-pixel tersentuh) ═══ */
html.hb-dark .kalk-kur { color: #c9d7e6; }
html.hb-dark .kalk-kur h1 { color: #eef4fb; }
html.hb-dark .kalk-kur .intro {
  background: #16222f;
  border-color: #2b3d52;
}
html.hb-dark .kalk-kur .intro p { color: #c9d7e6; }
html.hb-dark .kalk-kur .intro a { color: #7db4f5; }
html.hb-dark .kalk-kur .badge { background: #1d3a26; color: #4ade80; }
html.hb-dark .kalk-kur .panel {
  background: #16222f;
  border-color: #2b3d52;
}
html.hb-dark .kalk-kur .panel-title { color: #eef4fb; }
html.hb-dark .kalk-kur label { color: #a9b8c9; }
html.hb-dark .kalk-kur input[type=number],
html.hb-dark .kalk-kur select {
  background: #1d2c3c;
  border-color: #2b3d52;
  color: #eef4fb;
}
html.hb-dark .kalk-kur input:focus,
html.hb-dark .kalk-kur select:focus { border-color: #2563eb; background: #1d2c3c; }
html.hb-dark .kalk-kur .hint { color: #7d92a6; }
html.hb-dark .kalk-kur .hint.ballpark { color: #4ade80; }
html.hb-dark .kalk-kur .btn-hitung { background: #2563eb; }
html.hb-dark .kalk-kur .btn-reset {
  background: #16222f;
  color: #a9b8c9;
  border-color: #2b3d52;
}
html.hb-dark .kalk-kur .hasil { background: #1d2c3c; }
html.hb-dark .kalk-kur .hasil-grid > div { background: rgba(255, 255, 255, .06); }
html.hb-dark .kalk-kur .tabel-wrap { border-color: #2b3d52; }
html.hb-dark .kalk-kur table { background: #16222f; }
html.hb-dark .kalk-kur td { border-bottom-color: #2b3d52; color: #c9d7e6; }
html.hb-dark .kalk-kur tr:hover td { background: #1d2c3c; }
html.hb-dark .kalk-kur td.muted { color: #7d92a6; }
html.hb-dark .kalk-kur .ket { background: #16222f; border-color: #2b3d52; }
html.hb-dark .kalk-kur .ket h2 { color: #eef4fb; }
html.hb-dark .kalk-kur .ket p { color: #c9d7e6; }
html.hb-dark .kalk-kur .ket a { color: #7db4f5; }
html.hb-dark .kalk-kur .link-hpp { background: #2b3d52; }
html.hb-dark .kalk-kur .footer { color: #7d92a6; }
