.bkcd-modal,
.bkcd-modal * {
	box-sizing: border-box;
}

.bkcd-modal[hidden],
.bkcd-panel[hidden],
.bkcd-progress[hidden],
.bkcd-error[hidden],
.bkcd-result__amount[hidden],
.bkcd-note[hidden] {
	display: none !important;
}

body.bkcd-modal-open {
	overflow: hidden;
}

.bkcd-modal {
	--bkcd-blue-950: #071f3d;
	--bkcd-blue-900: #0a3261;
	--bkcd-blue-800: #0d5598;
	--bkcd-blue-700: #1479c9;
	--bkcd-blue-100: #e1f1ff;
	--bkcd-blue-50: #f2f8ff;
	--bkcd-accent: #2f9cf4;
	--bkcd-accent-light: #cbeaff;
	--bkcd-ink: #102a43;
	--bkcd-muted: #5f7183;
	--bkcd-line: #d7e3ef;
	--bkcd-white: #ffffff;
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
	color: var(--bkcd-ink);
	line-height: 1.65;
}

.bkcd-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 35, 55, 0.48);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 180ms ease;
}

.bkcd-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 620px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--bkcd-line);
	border-radius: 26px;
	box-shadow: 0 22px 54px rgba(15, 42, 67, 0.24);
	opacity: 0;
	transform: translateY(18px) scale(0.985);
	transition: opacity 180ms ease, transform 180ms ease;
	outline: none;
	scrollbar-width: thin;
	scrollbar-color: #a9c6df transparent;
}

.bkcd-modal.is-open .bkcd-modal__overlay,
.bkcd-modal.is-open .bkcd-dialog {
	opacity: 1;
}

.bkcd-modal.is-open .bkcd-dialog {
	transform: translateY(0) scale(1);
}

.bkcd-close {
	position: absolute;
	z-index: 2;
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--bkcd-line);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.bkcd-close:hover {
	background: var(--bkcd-blue-50);
	transform: rotate(4deg);
}

.bkcd-close span::before,
.bkcd-close span::after {
	content: "";
	position: absolute;
	top: 20px;
	left: 11px;
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: var(--bkcd-blue-800);
}

.bkcd-close span::before {
	transform: rotate(45deg);
}

.bkcd-close span::after {
	transform: rotate(-45deg);
}

.bkcd-header {
	position: relative;
	padding: 38px 64px 32px 36px;
	overflow: hidden;
	background: #fff;
	color: var(--bkcd-ink);
	border-bottom: 1px solid var(--bkcd-line);
	border-radius: 25px 25px 0 0;
}

.bkcd-header::after {
	display: none;
}

.bkcd-kicker {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	margin: 0 0 13px;
	padding: 4px 12px;
	border: 1px solid #cbdfee;
	border-radius: 999px;
	background: var(--bkcd-blue-50);
	color: var(--bkcd-blue-700);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.bkcd-title {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--bkcd-ink);
	font-size: clamp(23px, 5vw, 31px);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.015em;
}

.bkcd-title__amount {
	color: var(--bkcd-blue-700);
	font-size: 1.18em;
}

.bkcd-title__phrase {
	display: inline-block;
	color: var(--bkcd-ink);
	white-space: nowrap;
}

.bkcd-lead {
	position: relative;
	z-index: 1;
	margin: 12px 0 0;
	color: var(--bkcd-muted);
	font-size: 14px;
}

.bkcd-content {
	padding: 25px 36px 28px;
	background: #fff;
}

.bkcd-progress {
	margin-bottom: 25px;
}

.bkcd-progress__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
	color: var(--bkcd-muted);
	font-size: 12px;
	font-weight: 700;
}

.bkcd-progress__meta span:first-child {
	color: var(--bkcd-blue-700);
}

.bkcd-progress__track {
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #e5edf5;
}

.bkcd-progress__track span {
	display: block;
	height: 100%;
	width: 50%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--bkcd-blue-700), #46a9f5);
	transition: width 240ms ease;
}

.bkcd-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.bkcd-fieldset legend {
	width: 100%;
	padding: 0;
	color: var(--bkcd-ink);
	font-size: clamp(20px, 4.5vw, 24px);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0.015em;
}

.bkcd-help {
	margin: 5px 0 19px;
	color: var(--bkcd-muted);
	font-size: 13px;
}

.bkcd-choices {
	display: grid;
	gap: 10px;
}

.bkcd-choice {
	display: block;
	margin: 0;
	cursor: pointer;
}

.bkcd-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bkcd-choice__card {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 13px 16px;
	border: 1.5px solid var(--bkcd-line);
	border-radius: 13px;
	background: #fff;
	color: var(--bkcd-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease, transform 150ms ease;
}

.bkcd-choice:hover .bkcd-choice__card {
	border-color: #79add7;
	box-shadow: 0 6px 18px rgba(20, 104, 176, 0.1);
	transform: translateY(-1px);
}

.bkcd-choice__dot {
	position: relative;
	width: 20px;
	height: 20px;
	border: 2px solid #a7b9ca;
	border-radius: 50%;
	background: #fff;
}

.bkcd-choice__arrow {
	color: #8098ad;
	font-family: Arial, sans-serif;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
}

.bkcd-choice input:checked + .bkcd-choice__card {
	border-color: var(--bkcd-blue-700);
	background: var(--bkcd-blue-50);
	box-shadow: 0 0 0 3px rgba(20, 121, 201, 0.12);
}

.bkcd-choice input:checked + .bkcd-choice__card .bkcd-choice__dot {
	border-color: var(--bkcd-blue-700);
}

.bkcd-choice input:checked + .bkcd-choice__card .bkcd-choice__dot::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--bkcd-blue-700);
}

.bkcd-choice input:focus-visible + .bkcd-choice__card,
.bkcd-button:focus-visible,
.bkcd-close:focus-visible,
.bkcd-select-wrap select:focus-visible {
	outline: 3px solid #59b8ff;
	outline-offset: 3px;
}

.bkcd-select-label {
	display: block;
	margin: 0 0 7px;
	color: var(--bkcd-ink);
	font-size: 13px;
	font-weight: 700;
}

.bkcd-select-wrap {
	position: relative;
}

.bkcd-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 19px;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--bkcd-blue-700);
	border-bottom: 2px solid var(--bkcd-blue-700);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.bkcd-select-wrap select {
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 13px 50px 13px 16px;
	border: 1.5px solid var(--bkcd-line);
	border-radius: 13px;
	background: #fff;
	color: var(--bkcd-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
}

.bkcd-select-wrap select:focus {
	border-color: var(--bkcd-blue-700);
	box-shadow: 0 0 0 3px rgba(20, 121, 201, 0.12);
}

.bkcd-error {
	margin: 9px 0 0;
	color: #b42318;
	font-size: 13px;
	font-weight: 700;
}

.bkcd-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bkcd-actions--question {
	justify-content: flex-start;
	margin-top: 24px;
}

.bkcd-actions--result {
	justify-content: center;
	margin-top: 21px;
}

.bkcd-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	margin: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.bkcd-button:hover {
	transform: translateY(-1px);
}

.bkcd-button--primary {
	min-width: 190px;
	background: var(--bkcd-blue-700);
	color: #fff;
	box-shadow: none;
}

.bkcd-button--primary:hover {
	background: var(--bkcd-blue-800);
	color: #fff;
}

.bkcd-button--text {
	padding-inline: 8px;
	background: transparent;
	color: var(--bkcd-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bkcd-button--outline {
	border: 1.5px solid #b8cadc;
	background: #fff;
	color: var(--bkcd-blue-800);
}

.bkcd-result {
	text-align: center;
}

.bkcd-result__badge {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	margin: 0 auto 10px;
	border: 1px solid #bad9f3;
	border-radius: 50%;
	background: #fff;
	color: var(--bkcd-blue-700);
	font-size: 24px;
	font-weight: 900;
}

.bkcd-result__eyebrow {
	margin: 0;
	color: var(--bkcd-blue-700);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.bkcd-result__heading {
	margin: 5px 0 0;
	color: var(--bkcd-ink);
	font-size: clamp(20px, 4.5vw, 25px);
	font-weight: 800;
	line-height: 1.45;
}

.bkcd-result__heading:focus {
	outline: none;
}

.bkcd-thanks {
	text-align: center;
}

.bkcd-thanks__heading {
	margin: 5px 0 0;
	color: var(--bkcd-ink);
	font-size: clamp(22px, 5vw, 28px);
	font-weight: 800;
	line-height: 1.45;
}

.bkcd-thanks__heading:focus {
	outline: none;
}

.bkcd-thanks__lead {
	margin: 7px 0 18px;
	color: var(--bkcd-muted);
	font-size: 14px;
}

.bkcd-thanks__notice {
	padding: 16px;
	border: 1px solid #b9daf4;
	border-radius: 14px;
	background: var(--bkcd-blue-50);
	color: var(--bkcd-ink);
	text-align: left;
}

.bkcd-thanks__notice strong {
	display: block;
	color: var(--bkcd-blue-800);
	font-size: 16px;
	line-height: 1.55;
}

.bkcd-thanks__notice p {
	margin: 7px 0 0;
	color: var(--bkcd-muted);
	font-size: 12px;
	line-height: 1.65;
}

.bkcd-thanks__notice p.is-warning {
	color: #9b3a20;
	font-weight: 700;
}

.bkcd-company {
	display: grid;
	gap: 6px;
	margin-top: 16px;
	padding: 17px;
	border: 1px solid var(--bkcd-line);
	border-radius: 14px;
	background: #fff;
	color: var(--bkcd-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.65;
	text-align: left;
}

.bkcd-company strong {
	margin-bottom: 3px;
	color: var(--bkcd-ink);
	font-size: 15px;
	font-weight: 800;
}

.bkcd-company a {
	color: var(--bkcd-blue-700);
	font-weight: 700;
	text-decoration: none;
}

.bkcd-company a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bkcd-result__amount {
	margin: 1px 0 16px;
	color: var(--bkcd-blue-700);
	font-size: clamp(34px, 8vw, 46px);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.bkcd-result__details {
	overflow: hidden;
	border: 1px solid var(--bkcd-line);
	border-radius: 14px;
	background: #fff;
	text-align: left;
}

.bkcd-result__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	min-height: 47px;
	padding: 10px 14px;
	border-bottom: 1px solid #e5edf5;
	font-size: 13px;
}

.bkcd-result__row:last-child {
	border-bottom: 0;
}

.bkcd-result__row span {
	flex: 0 0 auto;
	color: var(--bkcd-muted);
}

.bkcd-result__row strong {
	color: var(--bkcd-ink);
	font-size: 13px;
	font-weight: 800;
	text-align: right;
}

.bkcd-result__row.is-emphasis {
	background: var(--bkcd-blue-50);
}

.bkcd-result__row.is-emphasis strong {
	color: var(--bkcd-blue-700);
}

.bkcd-result__row.is-total {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	gap: 4px;
	min-height: 112px;
	padding: 17px 18px 20px;
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--bkcd-blue-700);
	text-align: center;
}

.bkcd-result__row.is-total span {
	width: 100%;
	color: var(--bkcd-blue-800);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-align: center;
}

.bkcd-result__row.is-total strong {
	width: 100%;
	color: var(--bkcd-blue-700);
	font-size: clamp(30px, 8vw, 44px);
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-align: center;
}

.bkcd-result__message {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 11px;
	border: 1px solid var(--bkcd-line);
	background: #fff;
	color: #234e70;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.bkcd-contact {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid #cbdfee;
	border-radius: 16px;
	background: #fff;
	text-align: left;
}

.bkcd-contact h4 {
	margin: 0;
	color: var(--bkcd-ink);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.45;
}

.bkcd-contact > p {
	margin: 4px 0 15px;
	color: var(--bkcd-muted);
	font-size: 13px;
}

.bkcd-contact__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.bkcd-contact__fields label {
	display: block;
	margin: 0;
}

.bkcd-contact__fields label > span {
	display: block;
	margin: 0 0 5px;
	color: var(--bkcd-ink);
	font-size: 12px;
	font-weight: 800;
}

.bkcd-contact__fields input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1.5px solid var(--bkcd-line);
	border-radius: 10px;
	background: #fff;
	color: var(--bkcd-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.bkcd-contact__fields input:focus {
	border-color: var(--bkcd-blue-700);
	box-shadow: 0 0 0 3px rgba(20, 121, 201, 0.12);
	outline: 0;
}

.bkcd-contact__privacy {
	margin: 10px 0 !important;
	color: #6d7f90 !important;
	font-size: 10.5px !important;
	line-height: 1.55;
}

.bkcd-button--cta {
	width: 100%;
	background: var(--bkcd-blue-700);
	color: #fff;
	box-shadow: none;
}

.bkcd-button--cta:hover {
	background: var(--bkcd-blue-800);
}

.bkcd-button--cta:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.bkcd-contact__status {
	min-height: 0;
	margin: 9px 0 0;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.bkcd-contact__status:empty {
	display: none;
}

.bkcd-contact__status.is-error {
	color: #b42318;
}

.bkcd-contact__status.is-success {
	padding: 9px 11px;
	border-radius: 9px;
	background: #e2f2ff;
	color: var(--bkcd-blue-800);
}

.bkcd-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.bkcd-note {
	margin: 22px 0 0;
	color: #728293;
	font-size: 10.5px;
	line-height: 1.65;
}

@media (max-width: 600px) {
	.bkcd-modal {
		place-items: end center;
		padding: 12px;
	}

	.bkcd-dialog {
		width: 100%;
		max-height: calc(100dvh - 24px);
		border-radius: 22px;
	}

	.bkcd-header {
		padding: 29px 53px 25px 23px;
		border-radius: 21px 21px 0 0;
	}

	.bkcd-close {
		top: 12px;
		right: 12px;
	}

	.bkcd-content {
		padding: 21px 20px 23px;
	}

	.bkcd-choice__card {
		min-height: 56px;
		padding: 12px 13px;
		font-size: 14px;
	}

	.bkcd-actions--result {
		flex-direction: column;
	}

	.bkcd-contact {
		padding: 17px;
	}

	.bkcd-contact__fields {
		grid-template-columns: 1fr;
	}

	.bkcd-actions--result .bkcd-button {
		width: 100%;
	}

	.bkcd-result__row {
		align-items: flex-start;
		gap: 8px;
	}

	.bkcd-result__row strong {
		max-width: 65%;
	}
}

@media (max-width: 390px) {
	.bkcd-modal {
		padding: 0;
	}

	.bkcd-dialog {
		max-height: 100dvh;
		border-radius: 0;
	}

	.bkcd-header {
		border-radius: 0;
	}

	.bkcd-title {
		font-size: 21px;
	}

	.bkcd-content {
		padding-inline: 17px;
	}

	.bkcd-actions--question .bkcd-button--primary {
		min-width: 175px;
		padding-inline: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bkcd-modal__overlay,
	.bkcd-dialog,
	.bkcd-progress__track span,
	.bkcd-choice__card,
	.bkcd-button,
	.bkcd-close {
		transition: none !important;
	}
}
