.dbdt-tool {
	max-width: 860px;
	margin: 28px auto;
	font-family: inherit;
	color: #25313d;
}

.dbdt-card,
.dbdt-result-card {
	background: #fff;
	border: 1px solid #dbe7f1;
	border-radius: 10px;
	box-shadow: 0 10px 26px rgba(24, 54, 82, 0.08);
	padding: 26px;
}

.dbdt-title {
	margin: 0 0 10px;
	font-size: 1.55rem;
	line-height: 1.45;
	color: #1d3f5f;
}

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

.dbdt-form {
	display: grid;
	gap: 22px;
}

.dbdt-fieldset {
	margin: 0;
	padding: 18px;
	border: 1px solid #e1ebf3;
	border-radius: 8px;
	background: #f8fbfd;
}

.dbdt-fieldset legend {
	padding: 0 8px;
	font-weight: 700;
	color: #244b6d;
}

.dbdt-options {
	display: grid;
	gap: 10px;
	margin-top: 8px;
}

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

.dbdt-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid #dce8f1;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	line-height: 1.55;
}

.dbdt-option input {
	margin-top: 4px;
	transform: scale(1.15);
	accent-color: #2d74a8;
}

.dbdt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: #2d74a8;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.dbdt-button:hover,
.dbdt-button:focus {
	background: #215d87;
}

.dbdt-button:active {
	transform: translateY(1px);
}

.dbdt-button--secondary {
	margin-top: 20px;
	background: #eef5fa;
	color: #225174;
}

.dbdt-button--secondary:hover,
.dbdt-button--secondary:focus {
	background: #dcebf5;
}

.dbdt-error {
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff3f0;
	border: 1px solid #f3c4b8;
	color: #9a341f;
	font-weight: 700;
}

.dbdt-result {
	margin-top: 24px;
}

.dbdt-result-card {
	border-color: #cfe1ee;
	background: #fbfdff;
}

.dbdt-result-label {
	margin: 0 0 6px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #2d74a8;
}

.dbdt-result h3 {
	margin: 0 0 10px;
	font-size: 1.35rem;
	line-height: 1.45;
	color: #1d3f5f;
}

.dbdt-result-summary {
	margin: 0 0 18px;
	line-height: 1.85;
}

.dbdt-result-section {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #e1ebf3;
}

.dbdt-result-section h4 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #244b6d;
}

.dbdt-result ul {
	margin: 0;
	padding-left: 1.3em;
	line-height: 1.8;
}

.dbdt-result li + li {
	margin-top: 4px;
}

.dbdt-age-advice p,
.dbdt-notice p {
	margin: 0;
	line-height: 1.85;
}

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

.dbdt-notice p + p {
	margin-top: 10px;
}

.dbdt-related {
	margin-top: 18px;
	padding: 18px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #dfe9f2;
}

.dbdt-related h4 {
	margin-top: 0;
}

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

@media (max-width: 640px) {
	.dbdt-tool {
		margin: 18px auto;
	}

	.dbdt-card,
	.dbdt-result-card {
		padding: 20px;
	}

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

	.dbdt-options--grid {
		grid-template-columns: 1fr;
	}

	.dbdt-fieldset {
		padding: 15px;
	}

	.dbdt-button {
		width: 100%;
	}
}
