.wkc-consultation {
	position: relative;
	max-width: 880px;
	margin: clamp(2rem, 5vw, 4.5rem) auto;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border: 1px solid var(--wp--preset--color--border, #cfe0db);
	border-radius: 24px;
	background:
		radial-gradient(circle at 85% 0, rgba(var(--milad-primary-rgb, 11, 111, 104), 0.14), transparent 34%),
		var(--wp--preset--color--surface, #fff);
	box-shadow: 0 24px 70px rgba(5, 35, 32, 0.1);
	color: var(--wp--preset--color--contrast, #10100e);
	direction: rtl;
	isolation: isolate;
}

.wkc-consultation,
.wkc-consultation * {
	box-sizing: border-box;
}

.wkc-consultation__header {
	max-width: 700px;
	margin-bottom: 1.75rem;
}

.wkc-consultation__eyebrow {
	margin: 0 0 0.4rem;
	color: var(--wp--preset--color--primary, #0b6f68);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.wkc-consultation__header h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	line-height: 1.25;
}

.wkc-consultation__header p:last-child {
	margin: 0;
	color: var(--wp--preset--color--muted, #5e5c55);
	line-height: 1.9;
}

.wkc-consultation__form {
	display: grid;
	gap: 1.1rem;
}

.wkc-consultation__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.wkc-consultation__field {
	display: grid;
	gap: 0.45rem;
	margin: 0;
}

.wkc-consultation__field label {
	font-size: 0.95rem;
	font-weight: 750;
}

.wkc-consultation__field label span {
	color: var(--wp--preset--color--muted, #5e5c55);
	font-size: 0.85em;
	font-weight: 500;
}

.wkc-consultation__field input,
.wkc-consultation__field select,
.wkc-consultation__field textarea {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--wp--preset--color--border, #cfe0db);
	border-radius: 12px;
	background: var(--wp--preset--color--base, #f4fbf9);
	color: var(--wp--preset--color--contrast, #10100e);
	font: inherit;
	line-height: 1.6;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wkc-consultation__field textarea {
	min-height: 150px;
	resize: vertical;
}

.wkc-consultation__field input:hover,
.wkc-consultation__field select:hover,
.wkc-consultation__field textarea:hover {
	border-color: var(--wp--preset--color--primary, #0b6f68);
}

.wkc-consultation__field input:focus-visible,
.wkc-consultation__field select:focus-visible,
.wkc-consultation__field textarea:focus-visible,
.wkc-consultation__consent input:focus-visible,
.wkc-consultation__submit:focus-visible,
.wkc-consultation a:focus-visible {
	outline: none;
	box-shadow: var(--milad-focus-ring, 0 0 0 3px rgba(11, 111, 104, 0.24));
}

.wkc-consultation__field small,
.wkc-consultation__retention {
	color: var(--wp--preset--color--muted, #5e5c55);
	font-size: 0.82rem;
	line-height: 1.8;
}

.wkc-consultation__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--border, #cfe0db);
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--surface-2, #e7f2ef) 68%, transparent);
	font-size: 0.9rem;
	line-height: 1.9;
}

.wkc-consultation__consent input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.3rem 0 0;
	accent-color: var(--wp--preset--color--primary, #0b6f68);
}

.wkc-consultation__retention {
	margin: -0.25rem 0 0;
}

.wkc-consultation__submit {
	justify-self: start;
	min-height: 50px;
	padding: 0.8rem 1.45rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #0b6f68);
	color: var(--milad-button-text, #fff);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.wkc-consultation__submit:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.wkc-consultation__submit:active {
	transform: translateY(0);
}

.wkc-consultation__notice {
	display: grid;
	gap: 0.45rem;
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	border: 1px solid;
	border-radius: 14px;
	line-height: 1.8;
}

.wkc-consultation__notice p {
	margin: 0;
}

.wkc-consultation__notice code {
	justify-self: start;
	max-width: 100%;
	padding: 0.3rem 0.55rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 0.9rem;
	overflow-wrap: anywhere;
	user-select: all;
}

.wkc-consultation__notice--success {
	border-color: rgba(var(--milad-success-rgb, 26, 151, 106), 0.55);
	background: rgba(var(--milad-success-rgb, 26, 151, 106), 0.12);
}

.wkc-consultation__notice--error {
	border-color: color-mix(in srgb, var(--wp--preset--color--danger, #b42318) 55%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--danger, #b42318) 11%, transparent);
}

.wkc-consultation__trap {
	position: absolute !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

@media (max-width: 700px) {
	.wkc-consultation {
		margin-block: 1.5rem;
		border-radius: 18px;
	}

	.wkc-consultation__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wkc-consultation__submit {
		justify-self: stretch;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wkc-consultation *,
	.wkc-consultation *::before,
	.wkc-consultation *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
