:root{
  --bg:#1b4479;        /* deep blue background */
  --text:#eaf0f7;      /* light text */
  --muted:#cfe0eb;     /* faint label text */
  --line:#eaf0f7;      /* underline color */
  --card:#9dc2c8;      /* teal card background */
  --card-text:#0b1f35; /* dark text on card */
  --cta-bg:#ffffff;    /* button bg */
  --cta-text:#2f3b52;  /* button text */
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
  line-height:1.35;
}

/* number inputs */
input[type="number"]{
  background:transparent!important;
  border:0!important;
  color:#fff!important;
  width:100%;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* layout */
.panel{ padding:8px 18px; }
.container{ max-width:960px; margin:0 auto; }
.grid{ display:grid; gap:28px 44px; }

/* top grid: left column for fields, right column for compact cards */
.grid--inputs{
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 1fr);
  align-items:start;
}

/* bottom stats: three across */
.grid--stats{
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  margin-top: 28px;
  gap: 24px;
  margin-left: -23px;
	
}

/* fields */
.field .label{
  display:block;
  font-size:18px;
  color:var(--text);
  margin-bottom:14px;
  opacity:.95;
}
.field2 .label{
  display:block;
  font-size:18px;
  color:var(--text);
  margin-bottom:14px;
  opacity:.95;
  margin-top: -45px;
}

.field3 .label{
  display:block;
  font-size:18px;
  color:var(--text);
  margin-bottom:14px;
  opacity:.95;
	margin-top: -65px;
}

#currentBill {
  width: 100%;
}

.input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:8px;
  border-bottom:3px solid var(--line);
  max-width:360px;
}
.input-wrap2 {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}
.prefix{
  font-weight:700;
  letter-spacing:.5px;
  opacity:.95;
}

/* radio group (Tempoh Pinjaman) */
.field input[type="radio"]{
  appearance:none;
  width:14px;
  height:14px;
  border:2px solid var(--text);
  border-radius:999px;
  display:inline-block;
  position:relative;
  margin:0;
}
.field input[type="radio"]:checked{
  background:var(--text);
}
.field input[type="radio"] + span{
  font-size:16px;
  color:var(--text);
  opacity:.95;
}

/* stat cards */
.stat{
  background:var(--card);
  color:var(--card-text);
  border-radius:22px;
  padding: 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 105px;
}
.stat-value{
  font-size:25px;
  font-weight:800;
  letter-spacing:.4px;
}
.stat-sub{
  margin-top:8px;
  font-size:16px;
  opacity:.95;
}

input[type="number"]
{
	font-size: 16px;
}

/* compact stats only for the two cards on the right side of the top grid */
.grid--inputs > .stat{
  min-height:96px;
  padding:22px 20px;
}
.grid--inputs > .stat .stat-value{ font-size:20px; }
.grid--inputs > .stat .stat-sub{ font-size:16px; }

/* button */
.cta-row{
  display:flex;
  justify-content:center;
  margin-top:34px;
}
.cta{
  background:var(--cta-bg);
  color: #6c7f89;
  font-size: 18px;
  padding: 20px 28px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
  transition:all .3s ease;
}
.cta:hover{
  background-color:#6c7f89;
  color:#fff;
	border: none !important;
}

/* footnote */
.note{
  text-align:center;
  opacity:.9;
  margin-top: 10px !important;
  font-size: 18px;
  margin-bottom: 0px !important;
}

/* responsive */
@media (max-width: 900px){
  .grid--inputs{ grid-template-columns: 1fr; gap:22px; }
}
@media (max-width: 720px){
  .grid--stats{ grid-template-columns: 1fr; }
  .input-wrap{ max-width:100%; }
  .stat{ min-height:110px; }
}
