.sfc-fare-calculator {
	max-width: 1000px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
	padding: 32px 40px 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.sfc-fare-calculator * {
	box-sizing: border-box;
}

.sfc-title {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 700;
	font-size: 40px;
	color: #ec6a2f;
	text-align: center;
	margin: 0 0 28px;
}

.sfc-form-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.sfc-form-row-second {
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
}

.sfc-field {
	display: flex;
	flex-direction: column;
	position: relative;
}

.sfc-field label {
	font-size: 14px;
	font-weight: 600;
	color: #2b2b2b;
	margin-bottom: 8px;
}

.sfc-field input[type="text"],
.sfc-field input[type="number"],
.sfc-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d9dbe0;
	border-radius: 8px;
	font-size: 15px;
	color: #2b2b2b;
	background: #fff;
	appearance: none;
}

.sfc-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23555' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 32px;
}

.sfc-field input:focus,
.sfc-field select:focus {
	outline: none;
	border-color: #ec6a2f;
	box-shadow: 0 0 0 3px rgba(236, 106, 47, 0.15);
}

.sfc-field-button {
	display: flex;
	align-items: stretch;
}

#sfc-calculate-btn {
	width: 100%;
	background: #ec6a2f;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

#sfc-calculate-btn:hover:not(:disabled) {
	background: #d85a20;
}

#sfc-calculate-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.sfc-suggestions {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #e2e3e8;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(20, 20, 20, 0.12);
	max-height: 240px;
	overflow-y: auto;
	z-index: 1000;
}

.sfc-suggestion-item {
	padding: 10px 14px;
	font-size: 14px;
	color: #2b2b2b;
	cursor: pointer;
	border-bottom: 1px solid #f1f1f3;
}

.sfc-suggestion-item:last-child {
	border-bottom: none;
}

.sfc-suggestion-item:hover {
	background: #fbeee6;
}

.sfc-error {
	background: #fdecec;
	color: #b3261e;
	border: 1px solid #f6c6c4;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	margin-bottom: 20px;
}

.sfc-result {
	background: #fbf8f4;
	border: 1px solid #f0e4d8;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 24px;
}

.sfc-result-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #444;
	padding: 5px 0;
}

.sfc-result-total {
	display: flex;
	justify-content: space-between;
	font-size: 18px;
	font-weight: 700;
	color: #ec6a2f;
	border-top: 1px solid #eadfd0;
	margin-top: 8px;
	padding-top: 10px;
}

.sfc-min-fare-note {
	font-size: 12px;
	color: #888;
	margin-top: 6px;
	font-style: italic;
}

.sfc-map {
	width: 100%;
	height: 360px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e3e8;
}

@media (max-width: 860px) {
	.sfc-fare-calculator {
		padding: 24px 20px 28px;
	}

	.sfc-title {
		font-size: 30px;
	}

	.sfc-form-row,
	.sfc-form-row-second {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.sfc-form-row,
	.sfc-form-row-second {
		grid-template-columns: 1fr;
	}

	.sfc-map {
		height: 280px;
	}
}
