/**
 * Register-interest form.
 *
 * Brand tokens match the rest of the site: purple #6826F4, ink #10182a,
 * panel #f4f4f4. Type is inherited from the theme (Gilroy / Manrope) so the
 * block never introduces a fifth font family.
 */

.eti-wrap {
	--eti-purple: #6826f4;
	--eti-purple-dark: #4c1d95;
	--eti-purple-soft: #ebe3fd;
	--eti-ink: #10182a;
	--eti-muted: #5b6478;
	--eti-line: #dfe3ea;
	--eti-panel: #f4f4f4;
	--eti-danger: #b4231f;
	--eti-ok: #0f7a52;

	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	max-width: 1176px;
	margin-inline: auto;
	padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 24px);
	color: var(--eti-ink);
	box-sizing: border-box;
}

/*
 * The theme header is position:fixed, so it sits on top of the first thing on
 * the page instead of pushing it down. Elementor pages absorb this in their own
 * section padding; this block is rendered by a shortcode and has to clear the
 * header itself. Measured heights: 143px below 1100px wide, 109px above it.
 */
@media (min-width: 768px) {
	.eti-wrap {
		padding-top: 183px;
	}
}

@media (min-width: 1100px) {
	.eti-wrap {
		padding-top: 150px;
	}
}

@media (max-width: 900px) {
	.eti-wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.eti-wrap.eti-variant-form {
	grid-template-columns: minmax(0, 1fr);
	max-width: 620px;
}

.eti-wrap *,
.eti-wrap *::before,
.eti-wrap *::after {
	box-sizing: border-box;
}

/* ---------- Intro column ---------- */

.eti-eyebrow {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--eti-purple-soft);
	color: var(--eti-purple-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.eti-title {
	margin: 0 0 16px;
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.1;
	color: var(--eti-ink);
}

.eti-lede {
	margin: 0 0 32px;
	max-width: 46ch;
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.6;
	color: var(--eti-muted);
}

.eti-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
}

.eti-benefit {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.eti-benefit-mark {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--eti-purple-soft);
	position: relative;
}

/* Tick, drawn in CSS so the block ships no image requests. */
.eti-benefit-mark::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 5px;
	width: 6px;
	height: 11px;
	border: solid var(--eti-purple);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.eti-benefit-copy {
	display: block;
}

.eti-benefit-copy strong {
	display: block;
	margin-bottom: 2px;
	font-size: 16px;
	color: var(--eti-ink);
}

.eti-benefit-copy span {
	display: block;
	font-size: 15px;
	line-height: 1.55;
	color: var(--eti-muted);
}

/* ---------- Form card ---------- */

.eti-card {
	background: #fff;
	border: 1px solid var(--eti-line);
	border-radius: 20px;
	padding: clamp(24px, 3.4vw, 40px);
	box-shadow: 0 18px 48px rgba(16, 24, 42, 0.08);
}

.eti-form-heading {
	margin: 0 0 24px;
	font-size: 22px;
	line-height: 1.3;
	color: var(--eti-ink);
}

.eti-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 560px) {
	.eti-row {
		grid-template-columns: 1fr;
	}
}

.eti-field {
	margin-bottom: 16px;
	min-width: 0;
}

.eti-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--eti-ink);
}

.eti-field input[type="text"],
.eti-field input[type="email"],
.eti-field input[type="tel"],
.eti-field select {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--eti-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming the page on focus. */
	line-height: 1.4;
	color: var(--eti-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eti-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6478' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.eti-field input:focus,
.eti-field select:focus,
.eti-check input:focus-visible,
.eti-submit:focus-visible {
	outline: none;
	border-color: var(--eti-purple);
	box-shadow: 0 0 0 3px rgba(104, 38, 244, 0.22);
}

.eti-submit:focus-visible {
	outline: 3px solid var(--eti-purple-dark);
	outline-offset: 2px;
}

.eti-field.is-invalid input,
.eti-field.is-invalid select {
	border-color: var(--eti-danger);
}

.eti-error,
.eti-form-error {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--eti-danger);
}

.eti-error:empty,
.eti-form-error:empty {
	display: none;
}

/* ---------- Consent ---------- */

.eti-consent {
	margin-top: 8px;
}

.eti-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	cursor: pointer;
}

.eti-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--eti-purple);
}

.eti-check span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--eti-muted);
}

.eti-check a {
	color: var(--eti-purple);
	text-decoration: underline;
}

/* ---------- Honeypot: hidden from people, reachable by bots ---------- */

.eti-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- Submit ---------- */

.eti-submit {
	width: 100%;
	margin-top: 8px;
	padding: 15px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--eti-purple);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.eti-submit:hover:not(:disabled) {
	background: var(--eti-purple-dark);
}

.eti-submit:disabled {
	opacity: 0.65;
	cursor: progress;
}

.eti-note {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--eti-muted);
}

.eti-captcha {
	margin: 8px 0 4px;
}

/* ---------- Success panel ---------- */

.eti-done {
	text-align: center;
	padding: 16px 0 8px;
}

.eti-done-mark {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--eti-purple-soft);
	position: relative;
}

.eti-done-mark::after {
	content: "";
	position: absolute;
	left: 20px;
	top: 15px;
	width: 12px;
	height: 22px;
	border: solid var(--eti-purple);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.eti-done-title {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--eti-ink);
}

.eti-done-body {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--eti-muted);
	overflow-wrap: anywhere;
}

/* ---------- Confirm / unsubscribe banner ---------- */

.eti-banner {
	padding: 14px 20px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--eti-ok);
}

.eti-banner-bad {
	background: var(--eti-danger);
}

@media (prefers-reduced-motion: reduce) {
	.eti-wrap * {
		transition: none !important;
	}
}
