/* =========================================
   Kalkulator Angsuran Kredit — Tema Coklat
   ========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #d7b899 0%, #a47551 50%, #6f4e37 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #fdf8f3;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(74, 51, 34, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  width: 100%;
  max-width: 480px;
  padding: 30px;
  position: relative;
  border: 1px solid #ecdcc9;
}

/* ===== Tombol kembali ===== */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f2e6d9;
  color: #8b5e34;
  border: 1px solid #e2cfb8;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 15px;
}

.btn-back:hover {
  background: #e8d5bd;
  transform: translateX(-2px);
  box-shadow: 0 4px 10px rgba(139, 94, 52, 0.15);
}

.btn-back svg {
  width: 14px;
  height: 14px;
}

/* ===== Judul ===== */
h1 {
  text-align: center;
  color: #6f4e37;
  font-size: 22px;
  margin-bottom: 25px;
  letter-spacing: 0.3px;
}

/* ===== Field & input ===== */
.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  color: #7a5c44;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 45px 12px 14px;
  border: 2px solid #e8d7c3;
  background: #fffdfa;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
  font-weight: 600;
  color: #5a3e2b;
}

input::placeholder {
  color: #c4ab93;
  font-weight: 500;
}

input:focus {
  border-color: #b08968;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176, 137, 104, 0.15);
}

.input-group {
  position: relative;
}

.input-group span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a8896c;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.hint {
  font-size: 12px;
  color: #a8896c;
  margin-top: 4px;
  font-style: italic;
}

/* ===== Tombol hitung ===== */
button.hitung {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #b08968 0%, #8b5e34 100%);
  color: #fff8f0;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 15px rgba(139, 94, 52, 0.25);
}

button.hitung:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(139, 94, 52, 0.35);
}

button.hitung:active {
  transform: translateY(0);
}

/* ===== Hasil ===== */
.result {
  margin-top: 25px;
  background: #f8efe4;
  border-radius: 14px;
  padding: 20px;
  display: none;
  animation: fadeIn 0.4s ease;
  border: 1px solid #ecdcc9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result h2 {
  font-size: 16px;
  color: #8b5e34;
  margin-bottom: 15px;
  text-align: center;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #d9c4a9;
  font-size: 14px;
  color: #7a5c44;
}

.row:last-child {
  border-bottom: none;
}

.row .value {
  font-weight: 700;
  color: #5a3e2b;
}

.highlight {
  background: linear-gradient(135deg, #a47551 0%, #6f4e37 100%);
  color: #fff8f0;
  padding: 18px;
  border-radius: 12px;
  margin-top: 15px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(111, 78, 55, 0.3);
}

.highlight .label {
  font-size: 13px;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.highlight .amount {
  font-size: 26px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ===== Error ===== */
.error {
  color: #b3541e;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  display: none;
  background: #fbe9dd;
  padding: 8px;
  border-radius: 8px;
}