/* Savings Growth Calculator Styles */
.sgc-calculator {
	margin: 1.5rem auto;
	max-width: 640px;
	padding: 1.25rem;
	background: #ffffff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
	font-family: inherit;
	color: #1d2327;
}

.sgc-calculator *,
.sgc-calculator *::before,
.sgc-calculator *::after {
	box-sizing: border-box;
}

.sgc-form {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.sgc-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sgc-field label {
	font-weight: 600;
	font-size: 0.95rem;
	color: #101517;
}

.sgc-field input,
.sgc-field select {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid #c3c6c9;
	border-radius: 4px;
	background: #fdfdfd;
	font-size: 1rem;
	color: #1d2327;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sgc-field input:focus,
.sgc-field select:focus {
	border-color: #007cba;
	box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.3);
	outline: none;
}

.sgc-submit {
	align-self: flex-start;
	padding: 0.65rem 1.5rem;
	background: #007cba;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.sgc-submit:hover,
.sgc-submit:focus {
	background: #005f8d;
	outline: none;
}

.sgc-submit:active {
	transform: translateY(1px);
}

.sgc-submit[disabled],
.sgc-submit[aria-disabled='true'] {
	cursor: not-allowed;
	opacity: 0.65;
}

.sgc-message {
	min-height: 1.5rem;
	font-size: 0.95rem;
	color: #1d2327;
}

.sgc-message--error {
	color: #b32d2e;
}

.sgc-message--success {
	color: #008a20;
}

.sgc-results {
	display: grid;
	gap: 0.75rem;
	padding: 1rem;
	background: #f7f9fa;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
}

.sgc-result {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e6e9ec;
}

.sgc-result:last-child {
	border-bottom: none;
}

.sgc-result__label {
	font-size: 0.95rem;
	color: #555d66;
}

.sgc-result__value {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1d2327;
}

@media (min-width: 600px) {
	.sgc-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sgc-field:nth-last-child(3),
	.sgc-field:nth-last-child(2),
	.sgc-submit {
		grid-column: span 2;
	}

	.sgc-results {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}

	.sgc-result {
		flex-direction: column;
		align-items: flex-start;
		border: none;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgc-field input,
	.sgc-field select,
	.sgc-submit {
		transition: none;
	}
}