/*!
 * Eklavvya Enquiry Form 1.0.0
 *
 * Scoped entirely under .eklef so nothing here can reach into Divi's styles.
 * Fonts are inherited on purpose — the block should read as part of the page,
 * not as an embedded widget. Colours are the site's own accent (#5049c2 /
 * #372da6, sampled from the live product pages).
 *
 * Divi is specific in places, hence the explicit resets on inputs and button:
 * without them the theme's own form styling leaks in and the grid collapses.
 */

.eklef {
	--eklef-accent: #5049c2;
	--eklef-accent-dark: #372da6;
	--eklef-ink: #1e293b;
	--eklef-ink-soft: #52607a;
	--eklef-rule: #dfe3ec;
	--eklef-surface: #ffffff;
	--eklef-ground: #f6f7fb;

	margin: 48px 0 8px;
	color: var(--eklef-ink);
	font-family: inherit;
	scroll-margin-top: 90px;
}

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

.eklef__inner {
	max-width: 860px;
	margin: 0 auto;
	background: var(--eklef-surface);
	border: 1px solid var(--eklef-rule);
	border-top: 3px solid var(--eklef-accent);
	border-radius: 6px;
	padding: 34px 34px 30px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}

.eklef__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--eklef-accent);
}

.eklef__title {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--eklef-ink);
	text-wrap: balance;
}

.eklef__intro {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--eklef-ink-soft);
	max-width: 62ch;
}

.eklef__reassure {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 13.5px;
	color: var(--eklef-ink-soft);
}

.eklef__reassure li {
	margin: 0;
	padding-left: 20px;
	position: relative;
}

.eklef__reassure li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 11px;
	height: 6px;
	border-left: 2px solid var(--eklef-accent);
	border-bottom: 2px solid var(--eklef-accent);
	transform: rotate(-45deg);
}

/* Layout ------------------------------------------------------------- */

.eklef__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.eklef__field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eklef__field--wide {
	grid-column: 1 / -1;
}

.eklef__field label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--eklef-ink);
	line-height: 1.3;
}

.eklef__req {
	color: #b32d2e;
}

.eklef input[type="text"],
.eklef input[type="email"],
.eklef input[type="tel"],
.eklef select,
.eklef textarea {
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--eklef-ink);
	background: var(--eklef-ground);
	border: 1px solid var(--eklef-rule);
	border-radius: 4px;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.eklef select {
	/* Restore the affordance appearance:none removes. */
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2352607a' stroke-width='1.8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px;
}

.eklef textarea {
	resize: vertical;
	min-height: 84px;
}

.eklef input:focus,
.eklef select:focus,
.eklef textarea:focus {
	outline: none;
	background: var(--eklef-surface);
	border-color: var(--eklef-accent);
	box-shadow: 0 0 0 3px rgba(80, 73, 194, .18);
}

/* Honeypot: hidden from people, present for bots. Not display:none —
   some bots skip anything display:none and fill only "visible" inputs. */
.eklef__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Actions ------------------------------------------------------------ */

.eklef__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 22px;
}

.eklef .eklef__btn {
	display: inline-block;
	margin: 0;
	padding: 13px 26px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--eklef-accent);
	border: 1px solid var(--eklef-accent);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}

.eklef .eklef__btn:hover,
.eklef .eklef__btn:focus-visible {
	background: var(--eklef-accent-dark);
	border-color: var(--eklef-accent-dark);
	color: #fff;
}

.eklef .eklef__btn:active {
	transform: translateY(1px);
}

.eklef .eklef__btn[disabled] {
	opacity: .6;
	cursor: default;
	transform: none;
}

.eklef__note {
	font-size: 13px;
	color: var(--eklef-ink-soft);
}

/* Messages ----------------------------------------------------------- */

.eklef__status {
	margin-top: 12px;
	font-size: 14px;
	color: var(--eklef-ink-soft);
	min-height: 1px;
}

.eklef__status.is-error {
	color: #b32d2e;
	font-weight: 600;
}

.eklef__alert {
	margin: 0 0 18px;
	padding: 12px 14px;
	font-size: 14.5px;
	border: 1px solid #f0c2c2;
	border-left: 3px solid #b32d2e;
	border-radius: 4px;
	background: #fdf3f3;
	color: #8a2426;
}

.eklef__done {
	padding: 26px 24px;
	border: 1px solid #bfe3cd;
	border-left: 3px solid #17794a;
	border-radius: 4px;
	background: #f2fbf6;
}

.eklef__done h3 {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
	color: #14553a;
}

.eklef__done p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #285f47;
}

/* Small screens ------------------------------------------------------ */

@media (max-width: 640px) {
	.eklef {
		margin-top: 34px;
	}

	.eklef__inner {
		padding: 24px 20px 22px;
	}

	.eklef__title {
		font-size: 22px;
	}

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

	.eklef__actions {
		align-items: stretch;
	}

	.eklef .eklef__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eklef input,
	.eklef select,
	.eklef textarea,
	.eklef .eklef__btn {
		transition: none;
	}
}
