.iwz-diagnostic-shell {
	position: relative;
}

.iwz-form-progress__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--iwz-teal-soft);
}

.iwz-form-notice {
	display: grid;
	gap: 0.35rem;
	padding: 1rem 1.1rem;
	border-radius: 18px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.iwz-form-notice.is-success {
	background: rgba(72, 185, 183, 0.14);
	border: 1px solid rgba(72, 185, 183, 0.3);
	color: var(--iwz-text);
}

.iwz-form-notice.is-error {
	background: rgba(255, 86, 98, 0.12);
	border: 1px solid rgba(255, 86, 98, 0.25);
	color: var(--iwz-text);
}

.iwz-diagnostic-form {
	display: grid;
	gap: 1.25rem;
	max-width: 42rem;
	margin: 0 auto;
}

.iwz-diagnostic-form[hidden],
.iwz-diagnostic-form.is-hidden {
	display: none !important;
}

.iwz-form-progress {
	height: 0.55rem;
	background: rgba(72, 185, 183, 0.1);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.iwz-form-progress__bar {
	display: block;
	width: 33.333%;
	height: 100%;
	background: var(--iwz-gradient);
	transition: width 220ms ease;
}

.iwz-step-indicators {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.iwz-step-indicators span {
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	background: rgba(49, 32, 94, 0.72);
	border: 1px solid rgba(72, 185, 183, 0.12);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iwz-step-indicators .is-active {
	background: rgba(72, 185, 183, 0.12);
	border-color: rgba(72, 185, 183, 0.25);
	color: var(--iwz-text);
}

.iwz-form-step {
	display: grid;
	gap: 1.25rem;
}

.iwz-form-step[hidden] {
	display: none !important;
}

.iwz-diagnostic-form label,
.iwz-checkbox {
	display: grid;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--iwz-text);
}

.iwz-diagnostic-form input:not([type="checkbox"]),
.iwz-diagnostic-form select,
.iwz-diagnostic-form textarea {
	width: 100%;
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.95rem 1.15rem;
	border-radius: 18px;
	border: 1px solid rgba(72, 185, 183, 0.16);
	background: rgba(24, 14, 52, 0.72);
	color: var(--iwz-text);
	outline: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.iwz-diagnostic-form input::placeholder,
.iwz-diagnostic-form textarea::placeholder {
	color: rgba(200, 193, 219, 0.72);
}

.iwz-diagnostic-form input:focus,
.iwz-diagnostic-form select:focus,
.iwz-diagnostic-form textarea:focus {
	border-color: rgba(72, 185, 183, 0.45);
	box-shadow: 0 0 0 3px rgba(72, 185, 183, 0.16);
	background: rgba(36, 21, 74, 0.92);
}

.iwz-diagnostic-form option {
	color: var(--iwz-text);
	background: var(--iwz-surface-strong);
}

.iwz-checkbox {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-weight: 500;
	color: var(--iwz-text-soft);
	cursor: pointer;
	user-select: none;
	padding: 0.5rem 0;
}

.iwz-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(72, 185, 183, 0.4);
	border-radius: 6px;
	background: rgba(24, 14, 52, 0.72);
	cursor: pointer;
	position: relative;
	margin: 0;
	padding: 0;
	transition: all 180ms ease;
	flex-shrink: 0;
}

.iwz-checkbox input[type="checkbox"]:checked {
	background: var(--iwz-teal);
	border-color: var(--iwz-teal);
}

.iwz-checkbox input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.iwz-checkbox input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(72, 185, 183, 0.2);
}

.iwz-checkbox span {
	font-size: 0.95rem;
	line-height: 1.4;
}

.iwz-form-actions {
	display: flex;
	justify-content: flex-start;
	gap: 1rem;
	padding-top: 1.25rem;
	margin-top: 0.75rem;
	border-top: 1px solid rgba(72, 185, 183, 0.1);
}

.iwz-form-actions .wp-element-button {
	width: auto;
	min-width: 120px;
}

.iwz-form-actions [data-step-prev] {
	border-color: rgba(72, 185, 183, 0.18);
	background: transparent;
	color: var(--iwz-text-soft);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	box-shadow: none;
	min-width: 0;
}

.iwz-form-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.iwz-submit-button {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
}

.iwz-submit-button svg {
	fill: currentColor;
	transition: transform 200ms ease;
}

.iwz-submit-button.is-submitting svg {
	transform: translateX(6px) translateY(-2px) rotate(-10deg);
}

@media (max-width: 781px) {
	body .wp-site-blocks {
		padding-left: 0;
		padding-right: 0;
	}

	.iwz-form-actions {
		flex-direction: column-reverse;
		gap: 1rem;
	}

	.iwz-form-actions .wp-element-button {
		width: 100%;
		justify-content: center;
		min-height: 54px;
	}

	.iwz-step-indicators {
		display: none !important;
	}

	.iwz-diagnostic-shell {
		border-color: rgba(255, 255, 255, 0.15);
		background: rgba(49, 32, 94, 0.82);
	}

	.iwz-form-progress {
		margin-bottom: 1.5rem;
	}

	.iwz-diagnostic-form input:not([type="checkbox"]),
	.iwz-diagnostic-form select,
	.iwz-diagnostic-form textarea {
		min-height: 52px;
		font-size: 16px !important;
		padding: 0.8rem 1rem;
	}

	.iwz-diagnostic-form textarea {
		height: 100px;
	}

	.iwz-form-actions [data-step-prev] {
		width: 100%;
		border: 1px solid rgba(72, 185, 183, 0.18);
		background: rgba(72, 185, 183, 0.08);
		color: var(--iwz-text-soft);
		text-decoration: none;
		justify-content: center;
		min-height: 54px;
		padding: 0.8rem 1.15rem;
	}
}
