body {
	font-family: Arial, sans-serif;
	max-width: 800px;
	margin: 40px auto;
	padding: 20px;
	background: #fefefe;
	color: #333;
	font-size: 18px;
	line-height: 1.6;
}

h1 {
	text-align: center;
	font-size: 36px;
	margin-bottom: 30px;
}

.notice {
	font-size: 16px;
	color: #555;
	margin-bottom: 20px;
	padding: 12px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.form-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #f0f8ff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #ccc;
	margin-bottom: 20px;
}

label {
	display: flex;
	flex-direction: column;
	font-weight: bold;
	font-size: 16px;
}

.loan-term-wrapper {
  display: flex;
  align-items: center;
  margin-top: 4px;
  max-width: 200px;
}

.loan-term-wrapper input {
  flex: 1;
  padding: 10px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  outline: none;
}

.loan-term-wrapper select {
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  background: #f0f8ff;
}

input[type="number"], select {
	padding: 10px;
	font-size: 18px;
	border: 1px solid #ccc;
	border-radius: 6px;
	margin-top: 4px;
}

button {
	padding: 14px;
	font-size: 18px;
	border: none;
	cursor: pointer;
	background: #4CAF50;
	color: white;
	border-radius: 10px;
	transition: background 0.2s;
}
button:hover {
	background: #45a049;
}

.results-container {
	background: #e0f7fa;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 18px;
}

.results-container h3 {
	margin-top: 0;
	font-size: 24px;
}

.results-container ul {
	padding-left: 20px;
	list-style-type: disc;
	font-size: 17px;
}

strong {
	font-size: 26px;
	color: #2a7f62;
}

/* Chart container: responsive */
.chart-container {
	width: 100%;
	height: 400px;
}
.chart-container canvas {
	width: 100% !important;
	height: 100% !important;
}

#goBackBtn {
	padding: 10px 16px;
	font-size: 16px;
	background: #ff7f50;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	margin: 20px auto 40px; /* space above and below */
	display: block; /* center it */
	transition: background 0.2s ease, transform 0.1s ease;
}

#goBackBtn:hover {
	background: #ff6347;
	transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 1080px) {
	body {
		padding: 14px;
		font-size: 16px;
	}

	h1 {
		font-size: 28px;
	}

	input[type="number"], button, select {
		font-size: 16px;
		padding: 12px;
	}

	.results-container {
		font-size: 16px;
	}
}
