/**
 * [hec_supplier_enquiry] — form styles.
 *
 * Palette and type match the site's own Elementor kit
 * (post-11.css): sage ink and headings, dusty-mauve accent, blush
 * selected state. Logical properties throughout: the site is Hebrew
 * RTL. Expansion animates grid-template-rows rather than a
 * max-height guess, so the reveal takes the same time whatever the
 * content height.
 */

.hec-enq {
	--hec-enq-ink: #51695D;
	--hec-enq-deep: #3C4F45;
	--hec-enq-muted: #7C8B82;
	--hec-enq-accent: #A676A5;
	--hec-enq-blush: #E6C2BF;
	--hec-enq-ground: #F8F8F6;
	--hec-enq-surface: #FFFFFF;
	--hec-enq-line: #DDE2DC;
	--hec-enq-bad: #B0464A;

	font-family: "Noto Sans Hebrew", "Segoe UI", system-ui, sans-serif;
	color: var(--hec-enq-ink);
	background: var(--hec-enq-ground);
	max-width: 900px;
	margin-inline: auto;
	padding: 24px;
	border-radius: 16px;
}

.hec-enq * {
	box-sizing: border-box;
}

.hec-enq__toggle {
	display: block;
	inline-size: 100%;
	padding: 14px 20px;
	font-family: "Amatic SC", "Noto Sans Hebrew", sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--hec-enq-deep);
	background: transparent;
	border: 1px solid var(--hec-enq-deep);
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
}

.hec-enq__toggle:focus-visible,
.hec-enq__submit:focus-visible {
	outline: 2px solid var(--hec-enq-accent);
	outline-offset: 2px;
}

.hec-enq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 320ms ease;
}

.hec-enq.is-open .hec-enq__panel {
	grid-template-rows: 1fr;
}

.hec-enq__inner {
	overflow: hidden;
	min-block-size: 0;
	visibility: hidden;
	transition: visibility 0s linear 320ms;
}

.hec-enq.is-open .hec-enq__inner {
	visibility: visible;
	transition-delay: 0s;
}

.hec-enq__notice {
	margin-block: 12px 0;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 15px;
	border-inline-start: 4px solid var(--hec-enq-deep);
	/* Literal fallback for browsers without color-mix(), then the real thing. */
	background: #F5F6F5;
	background: color-mix( in srgb, var(--hec-enq-ink) 6%, var(--hec-enq-surface) );
}

.hec-enq__notice--bad {
	border-inline-start-color: var(--hec-enq-bad);
	background: #FAF4F4;
	background: color-mix( in srgb, var(--hec-enq-bad) 6%, var(--hec-enq-surface) );
}

.hec-enq__group {
	margin-block: 20px;
}

.hec-enq__group-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--hec-enq-deep);
	text-align: start;
}

.hec-enq__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.hec-enq__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 0;
	border: 0;
	padding: 0;
	margin: 0;
}

.hec-enq__field--wide {
	grid-column: 1 / -1;
}

.hec-enq__label {
	font-size: 14px;
	font-weight: 600;
	text-align: start;
	padding: 0;
}

.hec-enq__input {
	inline-size: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 15px;
	color: var(--hec-enq-ink);
	background: var(--hec-enq-surface);
	border: 1px solid var(--hec-enq-line);
	border-radius: 10px;
	text-align: start;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.hec-enq__input:focus-visible {
	border-color: var(--hec-enq-accent);
	box-shadow: 0 0 0 3px rgba(166, 118, 165, 0.15);
}

.hec-enq__input[aria-invalid="true"] {
	border-color: var(--hec-enq-bad);
}

.hec-enq__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/*
 * The native checkbox stays focusable and in the accessibility tree —
 * clipped off-screen, never display:none — while the label carries the
 * chip's visible fill, border and text.
 */
.hec-enq__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 14px;
	color: var(--hec-enq-ink);
	background: var(--hec-enq-surface);
	border: 1px solid var(--hec-enq-line);
	border-radius: 999px;
	cursor: pointer;
	user-select: none;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.hec-enq__chip input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	appearance: none;
	margin: 0;
}

.hec-enq__chip:has(input:checked) {
	background: var(--hec-enq-blush);
	border-color: var(--hec-enq-accent);
	color: var(--hec-enq-deep);
	font-weight: 600;
}

.hec-enq__chip:has(input:focus-visible) {
	outline: 2px solid var(--hec-enq-accent);
	outline-offset: 2px;
}

.hec-enq__chip.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.hec-enq__count {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--hec-enq-muted);
	text-align: start;
}

.hec-enq__error {
	margin: 0;
	min-block-size: 1em;
	font-size: 13px;
	color: var(--hec-enq-bad);
	text-align: start;
}

.hec-enq__error:empty {
	min-block-size: 0;
}

.hec-enq__consent {
	margin-block: 14px;
	font-size: 14px;
}

.hec-enq__consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

/*
 * Off-screen rather than display:none — a bot that skips hidden fields is
 * exactly the bot this is meant to catch.
 */
.hec-enq__hp {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.hec-enq__submit {
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--hec-enq-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.hec-enq__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

@media (max-width: 640px) {
	.hec-enq__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hec-enq__panel {
		transition: none;
	}
}

.hec-enq__debug {
	font-size: 13px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	direction: ltr;
	text-align: left;
}

.hec-enq__debug table {
	inline-size: 100%;
	border-collapse: collapse;
	margin-block-end: 20px;
}

.hec-enq__debug th,
.hec-enq__debug td {
	padding: 4px 8px;
	border: 1px solid var(--hec-enq-line, #DDE2DC);
	text-align: left;
}
