.cio-calculator {
	--cio-bg-start: #f8a11a;
	--cio-bg-end: #f7d53f;
	--cio-primary: #2f3f88;
	--cio-accent: #f29000;
	--cio-text: #253142;
	--cio-muted: #7c8797;
	--cio-border: #dde3ed;
	--cio-surface: #ffffff;
	--cio-danger: #ff8f77;
	--cio-success: #1ebc73;
	font-family: "Segoe UI", Arial, sans-serif;
	color: var(--cio-text);
}

.cio-calculator [hidden],
.cio-calculator .is-hidden {
	display: none !important;
}

.cio-shell {
	max-width: 980px;
	margin: 0 auto;
	padding: 28px;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--cio-bg-start), var(--cio-bg-end));
	box-shadow: 0 24px 50px rgba(242, 144, 0, 0.18);
}

.cio-form {
	padding: 34px 28px 24px;
	border-radius: 28px;
	background: var(--cio-surface);
	box-shadow: 0 16px 38px rgba(31, 42, 68, 0.08);
}

.cio-header {
	text-align: center;
	padding: 8px 0 24px;
}

.cio-header h2 {
	margin: 0;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1.1;
}

.cio-help {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin: 16px 0 0;
	font-size: 1rem;
	font-weight: 600;
}

.cio-help-icon {
	font-size: 0.85rem;
	padding: 4px 8px;
	border-radius: 999px;
	background: #fff2db;
	color: var(--cio-accent);
}

.cio-help a,
.cio-specialist-link {
	color: var(--cio-accent);
	text-decoration: none;
}

.cio-progress {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 18px;
}

.cio-progress-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: #fee9d0;
	color: var(--cio-accent);
	font-weight: 700;
}

.cio-progress-step.is-active,
.cio-progress-step.is-complete {
	background: var(--cio-accent);
	color: #fff;
}

.cio-step {
	display: none;
	min-height: 320px;
}

.cio-step.is-active {
	display: block;
}

.cio-step h3 {
	margin: 12px 0 28px;
	font-size: clamp(2rem, 3vw, 2.8rem);
	text-align: center;
}

.cio-grid {
	display: grid;
	gap: 18px;
}

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

.cio-field,
.cio-option {
	display: block;
}

.cio-field span,
.cio-option span {
	display: block;
	font-size: 1rem;
	font-weight: 700;
}

.cio-field input,
.cio-field select {
	width: 100%;
	padding: 18px 0 12px;
	border: 0;
	border-bottom: 2px solid var(--cio-border);
	outline: 0;
	background: transparent;
	font-size: 2rem;
	color: var(--cio-text);
}

.cio-field input:focus,
.cio-field select:focus {
	border-bottom-color: var(--cio-accent);
}

.cio-field input::placeholder {
	color: #b8bfca;
}

.cio-field-full {
	grid-column: 1 / -1;
}

.cio-helper {
	margin-top: 10px;
	color: var(--cio-muted);
	font-size: 1rem;
}

.cio-options {
	display: grid;
	gap: 16px;
}

.cio-option {
	position: relative;
	padding: 24px 24px 20px 56px;
	border: 1px solid var(--cio-border);
	border-radius: 20px;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cio-option:has(input:checked),
.cio-option.is-selected {
	border-color: var(--cio-accent);
	box-shadow: 0 10px 24px rgba(242, 144, 0, 0.12);
	transform: translateY(-1px);
}

.cio-option input {
	position: absolute;
	top: 24px;
	left: 20px;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--cio-accent);
}

.cio-option small {
	display: block;
	margin-top: 10px;
	color: var(--cio-muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.cio-feedback {
	min-height: 24px;
	margin: 0 0 8px;
	color: #c14f36;
	font-weight: 600;
	text-align: center;
}

.cio-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	margin-top: 22px;
}

.cio-nav-group {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
}

.cio-primary,
.cio-nav,
.cio-specialist-link {
	border: 0;
	border-radius: 18px;
	font-weight: 700;
}

.cio-primary {
	min-width: 320px;
	padding: 18px 28px;
	background: var(--cio-primary);
	color: #fff;
	font-size: 1.15rem;
	cursor: pointer;
	box-shadow: 0 16px 24px rgba(47, 63, 136, 0.22);
}

.cio-primary[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.cio-nav {
	width: 56px;
	height: 56px;
	background: #ececef;
	color: #9699a5;
	font-size: 2rem;
	cursor: pointer;
}

.cio-nav:not([disabled]):hover {
	background: #d9dce4;
}

.cio-nav[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.cio-modal[hidden] {
	display: none;
}

.cio-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cio-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(21, 29, 45, 0.72);
}

.cio-modal-dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 28px;
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(18, 28, 43, 0.3);
}

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

.cio-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f7;
	font-size: 1.8rem;
	cursor: pointer;
}

.cio-kicker {
	margin: 0 0 12px;
	color: #234995;
	font-size: 1.3rem;
	font-weight: 800;
	text-align: center;
}

.cio-modal-content h3 {
	margin: 0 0 10px;
	font-size: clamp(1.9rem, 3vw, 2.7rem);
	text-align: center;
	line-height: 1.25;
}

.cio-modal-content h3 span {
	color: var(--cio-accent);
}

.cio-modal-subtitle {
	margin: 0 0 22px;
	color: var(--cio-muted);
	font-weight: 600;
	text-align: center;
}

.cio-result-card {
	margin-bottom: 18px;
	padding: 24px;
	border-radius: 18px;
	background: #f5f7fb;
	text-align: center;
}

.cio-result-card strong {
	display: block;
	margin-bottom: 10px;
	color: #234995;
	font-size: 1.2rem;
}

.cio-result-card span {
	display: block;
	margin-bottom: 10px;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
}

.cio-result-card p {
	margin: 0;
	color: var(--cio-muted);
	font-weight: 600;
}

.cio-result-card-alert {
	border-left: 4px solid #ef6554;
}

.cio-result-card-alert span {
	color: var(--cio-accent);
}

.cio-result-card-success {
	border-left: 4px solid var(--cio-success);
}

.cio-result-card-success span {
	color: var(--cio-success);
}

.cio-result-meta {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin: 22px 0;
	color: var(--cio-text);
	font-weight: 600;
}

.cio-specialist-link {
	display: block;
	width: min(420px, 100%);
	margin: 0 auto;
	padding: 18px 22px;
	background: var(--cio-success);
	color: #fff;
	font-size: 1.15rem;
	text-align: center;
	box-shadow: 0 12px 28px rgba(30, 188, 115, 0.22);
}

@media (max-width: 782px) {
	.cio-shell {
		padding: 16px;
		border-radius: 22px;
	}

	.cio-form {
		padding: 22px 18px 18px;
	}

	.cio-grid-2 {
		grid-template-columns: 1fr;
	}

	.cio-field input,
	.cio-field select {
		font-size: 1.5rem;
	}

	.cio-step {
		min-height: auto;
	}

	.cio-actions {
		gap: 14px;
	}

	.cio-primary {
		min-width: 100%;
	}

	.cio-nav-group {
		justify-content: center;
	}

	.cio-result-meta {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}
}
