.expert-consultation-section {
	position: relative;
	overflow: hidden;
	padding: clamp(5rem, 7vw, 7rem) 0;
	background-color: var(--site-color-footer-bg);
	background-image: linear-gradient(rgba(13, 31, 13, 0.85), rgba(13, 31, 13, 0.85)), var(--expert-consultation-bg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.expert-consultation-section__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	max-width: 64rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	text-align: center;
}

.expert-consultation-section__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5625rem 1.0625rem;
	border: 1px solid var(--site-color-accent-30);
	border-radius: 999px;
	background: var(--site-color-accent-20);
	font-size: var(--site-font-size-14);
	font-weight: 500;
	line-height: 1.43;
	color: var(--site-color-accent-soft);
}

.expert-consultation-section__title {
	margin: 0;
	font-family: var(--site-font-heading);
	font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--site-color-text);
}

.expert-consultation-section__title span {
	color: var(--site-color-accent);
}

.expert-consultation-section__description {
	max-width: 42rem;
	margin: 0;
	font-size: clamp(1rem, 0.95rem + 0.15vw, 1.1rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
}

.expert-consultation-section__form-shell {
	width: 100%;
	padding-top: 1rem;
}

.expert-consultation-section__note {
	font-size: var(--site-font-size-14);
	line-height: 1.43;
	color: rgba(255, 255, 255, 0.8);
}

.expert-consultation-section .wpcf7 {
	width: 100%;
}

.expert-consultation-section .wpcf7 form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.expert-consultation-section .wpcf7 p {
	margin: 0;
}

.expert-consultation-section .wpcf7 form.invalid .wpcf7-response-output,
.expert-consultation-section .wpcf7 form.sent .wpcf7-response-output,
.expert-consultation-section .wpcf7 form.failed .wpcf7-response-output,
.expert-consultation-section .wpcf7 form.aborted .wpcf7-response-output {
	margin: 0;
	padding: 0.875rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 0.875rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #ffffff;
}

.expert-consultation-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: stretch;
}

.expert-consultation-form__field,
.expert-consultation-form__consent,
.expert-consultation-form__actions {
	display: flex;
	flex-direction: column;
}

.expert-consultation-form__control {
	width: 100%;
	min-height: 3.625rem;
	padding: 1rem 2rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 0.875rem;
	outline: 0;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(4px);
	box-shadow: none;
	font-family: var(--site-font-base);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.48;
	letter-spacing: 0.04em;
	color: #ffffff;
	appearance: none;
}

.expert-consultation-form__control::placeholder {
	color: #ffffff;
	opacity: 1;
}

.expert-consultation-form__control:focus {
	border-color: rgba(240, 168, 58, 0.7);
}

.expert-consultation-form__consent .wpcf7-form-control-wrap,
.expert-consultation-form__consent .wpcf7-acceptance {
	display: block;
	margin: 0;
}

.expert-consultation-form__consent .wpcf7-list-item {
	display: flex;
	margin: 0;
	justify-content: start;
}

.expert-consultation-form__consent .wpcf7-list-item label {
	display: flex;
	align-items: center;
}

.expert-consultation-form__consent .wpcf7-list-item-label {
	display: inline;
	font-size: 0.75rem;
	line-height: 1.333;
	color: rgba(255, 255, 255, 0.8);
	text-align: left;
}

.expert-consultation-form__consent input[type="checkbox"] {
	flex: 0 0 auto;
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 0.5rem 0 0;
	border: 1px solid #e5e0eb;
	border-radius: 0.25rem;
	background: rgba(28, 43, 26, 0.6);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.expert-consultation-form__consent a {
	text-decoration: underline;
}

.expert-consultation-form__consent input[type="checkbox"]::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100% - 7px);
	height: calc(100% - 7px);
	border-radius: 2px;
	background: #ffffff;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease;
}

.expert-consultation-form__consent input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.375rem;
	height: 0.625rem;
	border-right: 2px solid #c8851a;
	border-bottom: 2px solid #c8851a;
	opacity: 0;
	transform: translate(-50%, -58%) rotate(45deg);
	transition: opacity 0.2s ease;
}

.expert-consultation-form__consent input[type="checkbox"]:checked::before,
.expert-consultation-form__consent input[type="checkbox"]:checked::after {
	opacity: 1;
}

.expert-consultation-form__submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.625rem;
	padding: 1rem 2.5rem;
	border: 0;
	border-radius: 0.875rem;
	background: var(--site-color-accent);
	box-shadow: 0 10px 15px -3px rgba(200, 133, 26, 0.3), 0 4px 6px -4px rgba(200, 133, 26, 0.3);
	font-family: var(--site-font-base);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.48;
	letter-spacing: 0.04em;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.expert-consultation-form__actions {
	min-width: 0;
}

.expert-consultation-form__actions p {
	height: 100%;
}

.expert-consultation-form__actions .wpcf7-spinner {
	display: none;
}

.expert-consultation-form__submit-button::after {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-left: 0.75rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.expert-consultation-form__submit-button:hover {
	background: #b97817;
	transform: translateY(-1px);
}

.expert-consultation-form__submit-button:disabled {
	cursor: default;
	opacity: 0.7;
	transform: none;
}

.expert-consultation-section .wpcf7-spinner {
	margin: 0.75rem auto 0;
}

.expert-consultation-section .wpcf7-not-valid-tip {
	margin-top: 0.375rem;
	font-size: 0.75rem;
	line-height: 1.33;
	color: #fed7aa;
	text-align: left;
}

.expert-consultation-form__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 991.98px) {
	.expert-consultation-section__inner {
		padding: 0;
	}

	.expert-consultation-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.expert-consultation-section__title {
		max-width: 14ch;
	}
}

@media (max-width: 767.98px) {
	.expert-consultation-section {
		padding: clamp(4rem, 10vw, 5rem) 0;
	}

	.expert-consultation-section__title {
		max-width: 11ch;
	}

	.expert-consultation-section__description {
		max-width: 100%;
	}

	.expert-consultation-form__control,
	.expert-consultation-form__submit-button {
		padding-right: 1.25rem;
		padding-left: 1.25rem;
		font-size: 1rem;
	}
}
