.ioe-tool {
	--ioe-primary: var(--wp--preset--color--primary, var(--e-global-color-primary, #174f42));
	--ioe-primary-dark: #0d342d;
	--ioe-accent: var(--wp--preset--color--accent, var(--e-global-color-accent, #b9934d));
	--ioe-ink: #1b2522;
	--ioe-muted: #66716d;
	--ioe-line: #dfe7e3;
	--ioe-panel: #ffffff;
	--ioe-soft: #f5f8f6;
	--ioe-danger: #a23b32;
	--ioe-shadow: 0 20px 60px rgba(12, 35, 29, 0.12);
	box-sizing: border-box;
	max-width: 980px;
	margin: 0 auto;
	color: var(--ioe-ink);
	font-family: inherit;
}

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

.ioe-tool__intro {
	margin-bottom: 22px;
}

.ioe-eyebrow,
.ioe-step__kicker {
	margin: 0 0 8px;
	color: var(--ioe-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ioe-tool h2,
.ioe-tool h3 {
	margin: 0;
	color: var(--ioe-ink);
	line-height: 1.18;
	letter-spacing: 0;
}

.ioe-tool h2 {
	font-size: clamp(2rem, 3.2vw, 3rem);
}

.ioe-tool h3 {
	font-size: clamp(1.35rem, 2vw, 2rem);
}

.ioe-tool p {
	margin: 10px 0 0;
	color: var(--ioe-muted);
	line-height: 1.65;
}

.ioe-legal {
	padding: 14px 16px;
	border: 1px solid rgba(185, 147, 77, 0.35);
	border-left: 4px solid var(--ioe-accent);
	border-radius: 8px;
	background: #fffdf8;
}

.ioe-legal p {
	margin: 0;
	font-size: 0.92rem;
	color: #554b38;
}

.ioe-legal p + p {
	margin-top: 8px;
}

.ioe-legal--top {
	margin-bottom: 22px;
}

.ioe-progress {
	margin-bottom: 18px;
}

.ioe-progress__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 9px;
	font-size: 0.92rem;
	color: var(--ioe-muted);
}

.ioe-progress__meta span:last-child {
	color: var(--ioe-primary);
	font-weight: 800;
}

.ioe-progress__bar {
	width: 100%;
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--ioe-line);
}

.ioe-progress__bar span {
	display: block;
	width: 16.66%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ioe-primary), var(--ioe-accent));
	transition: width 220ms ease;
}

.ioe-form,
.ioe-result {
	padding: clamp(20px, 3vw, 34px);
	border: 1px solid var(--ioe-line);
	border-radius: 8px;
	background: var(--ioe-panel);
	box-shadow: var(--ioe-shadow);
}

.ioe-step__header {
	margin-bottom: 22px;
}

.ioe-step__header p:not(.ioe-step__kicker) {
	max-width: 720px;
}

.ioe-grid {
	display: grid;
	gap: 16px;
}

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

.ioe-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ioe-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
}

.ioe-field--wide {
	grid-column: 1 / -1;
}

.ioe-field > span,
.ioe-segment legend,
.ioe-checkbox {
	color: var(--ioe-ink);
	font-size: 0.96rem;
	font-weight: 750;
	line-height: 1.35;
}

.ioe-field em {
	color: var(--ioe-muted);
	font-style: normal;
	font-weight: 600;
}

.ioe-field strong {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(185, 147, 77, 0.15);
	color: #765d2c;
	font-size: 0.72rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.ioe-field input,
.ioe-field select,
.ioe-field textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid #cfd9d4;
	border-radius: 8px;
	background: #fff;
	color: var(--ioe-ink);
	font: inherit;
	padding: 12px 13px;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.ioe-field textarea {
	min-height: 112px;
	resize: vertical;
}

.ioe-field input:focus,
.ioe-field select:focus,
.ioe-field textarea:focus {
	outline: none;
	border-color: var(--ioe-primary);
	box-shadow: 0 0 0 4px rgba(23, 79, 66, 0.13);
}

.ioe-field small {
	color: var(--ioe-muted);
	font-size: 0.86rem;
	line-height: 1.45;
}

.ioe-field.is-invalid input,
.ioe-field.is-invalid select,
.ioe-field.is-invalid textarea,
.ioe-checkbox.is-invalid {
	border-color: var(--ioe-danger);
	box-shadow: 0 0 0 4px rgba(162, 59, 50, 0.09);
}

.ioe-choice-grid.is-invalid .ioe-choice-card__body,
.ioe-segment.is-invalid div {
	border-color: var(--ioe-danger);
	box-shadow: 0 0 0 4px rgba(162, 59, 50, 0.09);
}

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

.ioe-choice-grid--property {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ioe-choice-card {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}

.ioe-choice-card input,
.ioe-segment input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ioe-choice-card__body {
	position: relative;
	display: flex;
	min-height: 116px;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
	padding: 18px;
	border: 1px solid var(--ioe-line);
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff, var(--ioe-soft));
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.ioe-choice-card__body::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 14px;
	width: 18px;
	height: 18px;
	border: 2px solid #c8d4ce;
	border-radius: 999px;
	background: #fff;
}

.ioe-choice-card strong {
	padding-right: 26px;
	color: var(--ioe-ink);
	font-size: 1rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ioe-choice-card small {
	color: var(--ioe-muted);
	font-size: 0.86rem;
	line-height: 1.45;
}

.ioe-choice-card:hover .ioe-choice-card__body {
	border-color: rgba(23, 79, 66, 0.4);
	box-shadow: 0 12px 30px rgba(12, 35, 29, 0.08);
	transform: translateY(-1px);
}

.ioe-choice-card input:focus-visible + .ioe-choice-card__body {
	outline: 3px solid rgba(23, 79, 66, 0.22);
	outline-offset: 2px;
}

.ioe-choice-card input:checked + .ioe-choice-card__body {
	border-color: var(--ioe-primary);
	background: #f2f8f5;
	box-shadow: inset 0 0 0 1px var(--ioe-primary), 0 14px 34px rgba(12, 35, 29, 0.12);
}

.ioe-choice-card input:checked + .ioe-choice-card__body::after {
	border-color: var(--ioe-primary);
	background: radial-gradient(circle at center, var(--ioe-primary) 0 42%, #fff 46% 100%);
}

.ioe-segment-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.ioe-segment {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ioe-segment legend {
	margin-bottom: 8px;
	padding: 0;
}

.ioe-segment div {
	display: flex;
	min-height: 46px;
	overflow: hidden;
	border: 1px solid #cfd9d4;
	border-radius: 8px;
	background: #fff;
}

.ioe-segment label {
	position: relative;
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	cursor: pointer;
}

.ioe-segment span {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	color: var(--ioe-muted);
	font-size: 0.92rem;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
	transition: background-color 150ms ease, color 150ms ease;
}

.ioe-segment label + label span {
	border-left: 1px solid var(--ioe-line);
}

.ioe-segment input:checked + span {
	background: var(--ioe-primary);
	color: #fff;
}

.ioe-segment input:focus-visible + span {
	outline: 3px solid rgba(23, 79, 66, 0.22);
	outline-offset: -3px;
}

.ioe-checkbox {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	margin: 18px 0;
	padding: 14px;
	border: 1px solid var(--ioe-line);
	border-radius: 8px;
	background: var(--ioe-soft);
}

.ioe-checkbox input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--ioe-primary);
}

.ioe-checkbox a {
	color: var(--ioe-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ioe-form__message {
	min-height: 24px;
	margin-top: 18px;
	color: var(--ioe-danger);
	font-weight: 700;
}

.ioe-form__message.is-success {
	color: var(--ioe-primary);
}

.ioe-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	margin-top: 22px;
}

.ioe-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 850;
	line-height: 1.2;
	padding: 13px 18px;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ioe-button--primary {
	background: var(--ioe-primary);
	color: #fff;
	box-shadow: 0 12px 28px rgba(23, 79, 66, 0.22);
}

.ioe-button--primary:hover,
.ioe-button--primary:focus {
	background: var(--ioe-primary-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ioe-button--secondary {
	border-color: #cfd9d4;
	background: #fff;
	color: var(--ioe-primary);
}

.ioe-button--secondary:hover,
.ioe-button--secondary:focus {
	border-color: var(--ioe-primary);
	background: var(--ioe-soft);
}

.ioe-button:focus-visible {
	outline: 3px solid rgba(185, 147, 77, 0.32);
	outline-offset: 2px;
}

.ioe-button[disabled] {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.ioe-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.ioe-result {
	margin-top: 22px;
}

.ioe-result h3 {
	margin-bottom: 12px;
	color: var(--ioe-primary);
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.ioe-result__status {
	display: inline-flex;
	margin: 0 0 10px;
	padding: 8px 11px;
	border-radius: 8px;
	background: rgba(23, 79, 66, 0.09);
	color: var(--ioe-primary) !important;
	font-weight: 800;
}

.ioe-result .ioe-button {
	margin-top: 18px;
}

.ioe-tool [hidden] {
	display: none !important;
}

@media (max-width: 900px) {
	.ioe-choice-grid--property {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ioe-grid--3,
	.ioe-segment-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.ioe-tool h2 {
		font-size: 2rem;
	}

	.ioe-form,
	.ioe-result {
		padding: 18px;
	}

	.ioe-grid--2,
	.ioe-grid--3,
	.ioe-choice-grid,
	.ioe-choice-grid--property,
	.ioe-segment-grid {
		grid-template-columns: 1fr;
	}

	.ioe-choice-card__body {
		min-height: 92px;
	}

	.ioe-progress__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.ioe-actions {
		flex-direction: column-reverse;
	}

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