.cgt-tool {
	box-sizing: border-box;
	margin: 2rem 0;
	color: #223044;
	font-family: inherit;
}

.cgt-tool *,
.cgt-tool *::before,
.cgt-tool *::after {
	box-sizing: border-box;
}

.cgt-card {
	max-width: 820px;
	margin: 0 auto;
	padding: 28px;
	background: #ffffff;
	border: 1px solid #dbe7f3;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(36, 59, 85, 0.08);
}

.cgt-title {
	margin: 0 0 12px;
	color: #1f334d;
	font-size: 1.55rem;
	line-height: 1.45;
	letter-spacing: 0;
}

.cgt-intro {
	margin: 0 0 22px;
	color: #556577;
	line-height: 1.8;
}

.cgt-form {
	display: grid;
	gap: 20px;
}

.cgt-field,
.cgt-fieldset {
	margin: 0;
	padding: 18px;
	border: 1px solid #e3ebf4;
	border-radius: 8px;
	background: #fbfdff;
}

.cgt-field label,
.cgt-fieldset legend {
	display: block;
	margin: 0 0 10px;
	color: #20334d;
	font-weight: 700;
	line-height: 1.45;
}

.cgt-field label span {
	color: #607086;
	font-weight: 600;
}

.cgt-field input[type="number"] {
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border: 1px solid #cfddea;
	border-radius: 8px;
	background: #ffffff;
	color: #223044;
	font-size: 1.05rem;
	line-height: 1.4;
}

.cgt-field input[type="number"]:focus {
	border-color: #69a0d4;
	box-shadow: 0 0 0 3px rgba(82, 144, 205, 0.14);
	outline: 0;
}

.cgt-options {
	display: grid;
	gap: 10px;
}

.cgt-options--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cgt-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #d8e4f0;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
	line-height: 1.5;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cgt-option:hover,
.cgt-option:focus-within {
	border-color: #79a8d8;
	background: #f6fbff;
	box-shadow: 0 0 0 3px rgba(82, 144, 205, 0.12);
}

.cgt-option input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #2f6fa9;
}

.cgt-option span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.cgt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	width: 100%;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: #2f6fa9;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.cgt-button:hover,
.cgt-button:focus {
	background: #245d91;
	color: #ffffff;
	transform: translateY(-1px);
}

.cgt-button--secondary {
	margin-top: 18px;
	background: #eef4fb;
	color: #21405f;
	border: 1px solid #cbdceb;
}

.cgt-button--secondary:hover,
.cgt-button--secondary:focus {
	background: #dfeaf5;
	color: #21405f;
}

.cgt-errors {
	padding: 12px 14px;
	border: 1px solid #e5a5a5;
	border-radius: 8px;
	background: #fff5f5;
	color: #9d2020;
	font-weight: 700;
}

.cgt-errors ul,
.cgt-intake-list,
.cgt-related ul {
	margin: 0;
	padding-left: 1.2em;
	line-height: 1.8;
}

.cgt-errors li + li,
.cgt-intake-list li + li,
.cgt-related li + li {
	margin-top: 4px;
}

.cgt-result {
	margin-top: 26px;
}

.cgt-result-card {
	padding: 24px;
	border: 1px solid #d4e6f4;
	border-radius: 8px;
	background: #f8fbff;
}

.cgt-result-card h3 {
	margin: 0 0 16px;
	color: #1f334d;
	font-size: 1.35rem;
	line-height: 1.45;
	letter-spacing: 0;
}

.cgt-result-card h4 {
	margin: 0 0 8px;
	color: #263b55;
	font-size: 1rem;
	line-height: 1.45;
	letter-spacing: 0;
}

.cgt-result-card p {
	margin: 0;
	line-height: 1.8;
}

.cgt-result-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.cgt-metric {
	padding: 18px;
	border: 1px solid #dfe9f2;
	border-radius: 8px;
	background: #ffffff;
}

.cgt-metric--wide {
	grid-column: 1 / -1;
}

.cgt-metric p {
	color: #556577;
	font-size: 0.95rem;
}

.cgt-metric strong {
	display: block;
	margin-top: 10px;
	color: #1d5f98;
	font-size: 1.35rem;
	line-height: 1.35;
}

.cgt-intake-list span {
	color: #43566c;
}

.cgt-intake-list strong {
	display: inline;
	margin: 0;
	font-size: 1.05rem;
}

.cgt-result-section,
.cgt-alert,
.cgt-related {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #dfe9f2;
}

.cgt-result-section p + p {
	margin-top: 10px;
}

.cgt-alert {
	padding: 14px 16px;
	border: 1px solid #ead49a;
	border-radius: 8px;
	background: #fff9e9;
	color: #715017;
}

.cgt-notice {
	color: #4d5e70;
}

.cgt-related {
	padding: 18px;
	border: 1px solid #dfe9f2;
	border-radius: 8px;
	background: #ffffff;
}

.cgt-related h3 {
	margin-bottom: 10px;
	font-size: 1.08rem;
}

.cgt-related a {
	color: #1f65a4;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 640px) {
	.cgt-card {
		padding: 20px;
	}

	.cgt-title {
		font-size: 1.32rem;
	}

	.cgt-field,
	.cgt-fieldset,
	.cgt-result-card {
		padding: 16px 14px;
	}

	.cgt-options--two,
	.cgt-result-grid {
		grid-template-columns: 1fr;
	}
}
