.calculator {
	width: 100%;
	border-radius: 32px;
	padding: 32px 0;
	transition: all 0.2s ease;
}

.subhead {
	font-size: 15px;
	color: #5b6f82;
	margin-bottom: 28px;
	padding-bottom: 18px;
}

.subhead span {
	display:inline-block;
	border-radius: 40px;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	border:1px solid #666;
	padding:15px 30px;
}

.param-grid {
	display: flex;
	flex-wrap:wrap;
	gap:20px;
	justify-content: space-between;
	margin-bottom: 32px;
}
.param-card {
	border-radius: 20px;
	padding:20px 20px;
	border: 1px solid #666;
	transition: border 0.15s;
	width:calc(100% / 2 - 10px);
}
.param-card:first-child {
	width:100%;
}
.param-card:focus-within {
	border-color: #ccc;
	box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.08);
}

.param-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.param-label {
	color:#fff;
	font-family: "GothamProRegular";
	font-weight:normal;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.param-label i {
	font-size: 18px;
	opacity: 0.7;
}

.param-value {
	font-weight: 700;
	font-size: 20px;
	color: #333;
	background: #f6f6f6;
	padding:10px 20px;
	border-radius: 40px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.param-unit {
	font-size: 16px;
	font-weight: 400;
	color: #666;
	margin-left: 2px;
}

.input-group {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 15px;
}

.slider-container {
	flex: 1;
	min-width: 200px;
}

input[type="range"] {
	width: 100%;
	height: 6px;
	background: #d9e2ec;
	border-radius: 20px;
	-webkit-appearance: none;
	appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	background: #C20E1A;
	border-radius: 22px;
	box-shadow: 0 4px 8px rgba(45, 122, 255, 0.3);
	border: 2px solid white;
	cursor: pointer;
	transition: 0.1s;
}

input[type="range"]::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background: #2d7aff;
	border-radius: 22px;
	box-shadow: 0 4px 8px rgba(45, 122, 255, 0.3);
	border: 2px solid white;
	cursor: pointer;
}

.number-input {
	width: 120px;
	flex-shrink: 0;
	display:none;
}

.number-input input {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px;
	font-weight: 500;
	color: #0b1c2f;
	background: white;
	border: 1.5px solid #d0dde9;
	border-radius: 18px;
	text-align: right;
	transition: border 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.number-input input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.15);
}

.number-input input[type="number"]::-webkit-inner-spin-button {
	opacity: 0.5;
	height: 24px;
}

.result-panel {
	background: linear-gradient(135deg, #333 0%, #7E050D 100%);
	border-radius: 26px;
	padding: 28px 28px;
	color: white;
	margin: 10px 0 18px;
	box-shadow: 0 12px 24px -8px rgba(10, 37, 64, 0.2);
}

.payback-main {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.payback-label {
	font-size: 30px;
	font-weight: 500;
}

.payback-value {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.payback-detail {
	margin-top: 16px;
	display: flex;
	gap: 24px;
	font-size: 0px;
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 18px;
	color: #c9dff3;
	flex-wrap: wrap;
}

.profit-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
}

.badge {
	background: rgba(255,255,255,0.1);
	padding: 4px 12px;
	border-radius: 40px;
	font-weight: 500;
	background:none;
}

.reset-btn {
	border: 1px solid #666;
	color: #b3b3b3;
	padding: 10px 22px;
	border-radius: 40px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
	margin-top: 8px;
	background:none;
}

.reset-btn:hover {
	color: #fff;
	background:#333;
	border: 1px solid #C20E1B;
}
.footnote {
	font-size: 0px;
	color: #7f95aa;
	margin-top: 20px;
	text-align: center;
}
@media screen and (max-width: 900px) {
	.param-card {width:100%;}
}
@media (max-width: 524px) {
	.param-card { padding: 20px 15px; }
	.input-group { flex-wrap: wrap; gap: 12px; }
	.number-input { width: 100%; }
	.payback-value { font-size: 40px; }
	.param-value { font-size: 18px;}
	.param-label {display:block;width:100%;margin-bottom:15px;}
}