.eac {
	--eac-accent: #2563eb;
	--eac-button-text: #fff;
	--eac-button-width: auto;
	--eac-max-width: 680px;
	--eac-border: #cbd5e1;
	--eac-text: #172033;
	--eac-muted: #526078;
	--eac-surface: #fff;
	--eac-soft: #f7f9fc;
	--eac-danger: #b42318;
	--eac-success: #087443;
	width: 100%;
	max-width: var(--eac-max-width);
	color: var(--eac-text);
	font: inherit;
}

.eac *,
.eac *::before,
.eac *::after {
	box-sizing: border-box;
}

.eac__form {
	margin: 0;
}

.eac--card .eac__form,
.eac--soft .eac__form {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: var(--eac-surface);
	box-shadow: 0 16px 40px rgb(15 23 42 / 8%);
}

.eac--soft .eac__form {
	background: var(--eac-soft);
	box-shadow: none;
}

.eac__heading {
	margin: 0 0 0.5rem;
	color: var(--eac-text);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}

.eac__intro {
	margin-bottom: 0.75rem;
	color: var(--eac-muted);
	line-height: 1.65;
}

.eac__required-note {
	margin: 0 0 1.25rem;
	color: var(--eac-muted);
	font-size: 0.875rem;
}

.eac__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.1rem 1rem;
}

.eac__field--full,
.eac__section-heading,
.eac__paragraph,
.eac__divider {
	grid-column: span 6;
}

.eac__field--half {
	grid-column: span 3;
}

.eac__field--third {
	grid-column: span 2;
}

.eac__field {
	min-width: 0;
}

.eac__label,
.eac__choice-group > legend {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 0.4rem;
	padding: 0;
	color: var(--eac-text);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.4;
}

.eac__required {
	margin-left: 0.15rem;
	color: var(--eac-danger);
}

.eac__control {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 0.72rem 0.82rem;
	border: 1px solid var(--eac-border);
	border-radius: 10px;
	outline: 0;
	background: var(--eac-surface);
	color: var(--eac-text);
	font: inherit;
	line-height: 1.4;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

textarea.eac__control {
	min-height: 120px;
	resize: vertical;
}

select.eac__control[multiple] {
	min-height: 132px;
}

.eac__control--file {
	height: auto;
	padding: 0.45rem;
}

.eac__control--file::file-selector-button {
	min-height: 36px;
	margin-right: 0.7rem;
	padding: 0.45rem 0.7rem;
	border: 0;
	border-radius: 7px;
	background: #e8eefc;
	color: #18376f;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.eac__control:hover {
	border-color: #94a3b8;
}

.eac__control:focus,
.eac__choice input:focus-visible,
.eac__submit:focus-visible,
.eac__reload:focus-visible {
	border-color: var(--eac-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--eac-accent) 22%, transparent);
	outline: 2px solid transparent;
}

.eac__control:user-invalid {
	border-color: var(--eac-danger);
}

.eac__help {
	margin: 0.4rem 0 0;
	color: var(--eac-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.eac__choice-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.eac__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
}

.eac__choice {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.55rem;
	min-height: 44px;
	margin: 0;
	padding: 0.55rem 0;
	color: var(--eac-text);
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.eac__choice input {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--eac-accent);
}

.eac__consent {
	width: 100%;
}

.eac__section-heading {
	margin: 0.5rem 0 -0.2rem;
	font-size: 1.15rem;
	line-height: 1.35;
}

.eac__paragraph {
	margin: 0;
	color: var(--eac-muted);
	line-height: 1.6;
}

.eac__divider {
	width: 100%;
	margin: 0.3rem 0;
	border: 0;
	border-top: 1px solid #e2e8f0;
}

.eac__range-value {
	display: inline-block;
	min-width: 2.5rem;
	margin-top: 0.35rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: #e8eefc;
	color: #18376f;
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
}

.eac__captcha-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.7rem;
}

.eac__captcha-image {
	display: grid;
	place-items: center;
	width: 220px;
	min-height: 70px;
	overflow: hidden;
	border: 1px solid var(--eac-border);
	border-radius: 10px;
	background: #f8fafc;
}

.eac__captcha-image img {
	display: block;
	width: 220px;
	height: 70px;
}

.eac__captcha-loading {
	padding: 0.5rem;
	color: var(--eac-muted);
	font-size: 0.8125rem;
	text-align: center;
}

.eac__captcha-answer {
	max-width: 220px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.eac__reload {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--eac-border);
	border-radius: 9px;
	background: var(--eac-surface);
	color: #24446f;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 650;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.eac__reload:hover {
	border-color: #94a3b8;
	background: #f8fafc;
}

.eac__actions {
	margin-top: 1.25rem;
}

.eac__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: var(--eac-button-width);
	min-width: 140px;
	min-height: 46px;
	padding: 0.72rem 1.15rem;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--eac-accent);
	color: var(--eac-button-text);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: filter 180ms ease, box-shadow 180ms ease;
}

.eac__submit:hover {
	filter: brightness(0.92);
}

.eac__submit:disabled,
.eac__reload:disabled {
	cursor: wait;
	opacity: 0.68;
}

.eac__spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: eac-spin 700ms linear infinite;
}

.eac__submit.is-loading .eac__spinner {
	display: block;
}

.eac__status {
	margin: 0 0 1rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid;
	border-radius: 10px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.eac__status--success {
	border-color: #86d7af;
	background: #edfdf5;
	color: var(--eac-success);
}

.eac__status--error {
	border-color: #f2aaa3;
	background: #fff1f0;
	color: var(--eac-danger);
}

.eac__honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

@keyframes eac-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.eac__field--half,
	.eac__field--third {
		grid-column: span 6;
	}

	.eac--card .eac__form,
	.eac--soft .eac__form {
		padding: 1.1rem;
		border-radius: 14px;
	}

	.eac__captcha-image,
	.eac__captcha-image img {
		max-width: 100%;
	}

	.eac__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eac *,
	.eac *::before,
	.eac *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
