.leadem-cage-tool {
	margin: 10px 0 0;
	text-align: left;
}

.leadem-cage-button {
	align-items: center;
	background: #4687b0;
	border: 2px solid #4687b0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	justify-content: center;
	min-height: 44px;
	padding: 10px 25px;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.leadem-cage-button:hover {
	background: #326f97;
	border-color: #326f97;
	color: #fff;
}

.leadem-cage-button:focus-visible,
.leadem-cage-modal__close:focus-visible,
.leadem-cage-question__response:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #132573;
	outline: 0;
}

body.leadem-cage-modal-open {
	overflow: hidden;
}

.leadem-cage-modal[hidden] {
	display: none !important;
}

.leadem-cage-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 24px;
	position: fixed;
	transition: opacity 0.2s ease;
	z-index: 99999;
}

.leadem-cage-modal.is-open {
	opacity: 1;
}

.leadem-cage-modal *,
.leadem-cage-modal *::before,
.leadem-cage-modal *::after {
	box-sizing: border-box;
}

.leadem-cage-modal__panel {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	color: #333;
	max-height: 90vh;
	max-width: 700px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 40px 45px;
	position: relative;
	transform: translateY(8px);
	transition: transform 0.2s ease;
	width: 100%;
}

.leadem-cage-modal.is-open .leadem-cage-modal__panel {
	transform: translateY(0);
}

.leadem-cage-modal__close {
	align-items: center;
	background: none;
	border: 0;
	color: #333;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 28px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	right: 14px;
	top: 10px;
	width: 38px;
	z-index: 2;
}

.leadem-cage-modal__close:hover {
	background: #f1f3f6;
	color: #111;
}

.leadem-cage-modal__title {
	color: #132573;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 35px 10px 0;
}

.leadem-cage-modal__introduction {
	color: #555;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 25px;
}

.leadem-cage-question {
	margin-bottom: 25px;
}

.leadem-cage-question__label {
	align-items: flex-start;
	color: #132573;
	display: flex;
	font-size: 16px;
	font-weight: 600;
	gap: 8px;
	line-height: 1.55;
	margin-bottom: 8px;
}

.leadem-cage-question__letter {
	background: #132573;
	border-radius: 50%;
	color: #fff;
	flex: 0 0 28px;
	font-size: 14px;
	height: 28px;
	line-height: 28px;
	margin-top: -2px;
	text-align: center;
	width: 28px;
}

.leadem-cage-question__response {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	color: #263238;
	display: block;
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	min-height: 78px;
	padding: 12px 15px;
	resize: vertical;
	width: 100%;
}

.leadem-cage-question__response:hover {
	border-color: #9da9b4;
}

.leadem-cage-question__response:focus {
	border-color: #132573;
	outline: 0;
}

.leadem-cage-note {
	background: #f0f4ff;
	border-left: 4px solid #132573;
	border-radius: 8px;
	color: #132573;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	padding: 15px 20px;
}

.leadem-cage-form__message {
	background: #fff3f2;
	border-left: 4px solid #b3261e;
	border-radius: 4px;
	color: #7d1b17;
	font-weight: 600;
	margin-top: 20px;
	padding: 13px 16px;
}

.leadem-cage-form__actions {
	margin-top: 24px;
	text-align: center;
}

@media (max-width: 600px) {
	.leadem-cage-modal {
		padding: 12px;
	}

	.leadem-cage-modal__panel {
		border-radius: 9px;
		max-height: 94vh;
		padding: 34px 20px 28px;
	}

	.leadem-cage-modal__title {
		font-size: 24px;
	}

	.leadem-cage-modal__introduction {
		font-size: 14px;
	}

	.leadem-cage-question__label {
		font-size: 15px;
	}

	.leadem-cage-form__actions .leadem-cage-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.leadem-cage-button,
	.leadem-cage-modal,
	.leadem-cage-modal__panel {
		transition: none;
	}
}
