/* IMK Store Enquiry - front-end form */
.imkse-wrap {
	--imkse-accent: #0b5cff;
	--imkse-cols: 2;
	--imkse-border: #d5dbe5;
	--imkse-muted: #5b6577;
	--imkse-danger: #c62828;
	max-width: 880px;
	margin: 0 auto;
	font-family: inherit;
	color: #1b2330;
	box-sizing: border-box;
}
.imkse-wrap *, .imkse-wrap *::before, .imkse-wrap *::after { box-sizing: border-box; }
/* Some themes override display on common elements; make sure "hidden" always wins. */
.imkse-wrap [hidden] { display: none !important; }

.imkse-card {
	background: #fff;
	border: 1px solid #e3e7ee;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 6px 24px rgba(20, 30, 55, .06);
}
.imkse-title { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.2; }
.imkse-intro { margin: 0 0 24px; color: var(--imkse-muted); }

.imkse-section { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.imkse-section legend {
	display: flex; align-items: center; gap: 10px;
	font-size: 1.1rem; font-weight: 700; padding: 0 0 14px; margin: 0;
	width: 100%;
}
.imkse-step {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--imkse-accent); color: #fff; font-size: .8rem; font-weight: 700;
}

.imkse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.imkse-full { grid-column: 1 / -1; }

.imkse-field { display: flex; flex-direction: column; min-width: 0; }
.imkse-field label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.imkse-req { color: var(--imkse-danger); }
.imkse-opt { color: var(--imkse-muted); font-weight: 400; font-size: .8rem; }

.imkse-field input[type=text],
.imkse-field input[type=email],
.imkse-field input[type=tel],
.imkse-field select,
.imkse-field textarea {
	width: 100%; min-height: 46px; padding: 10px 14px;
	font: inherit; color: inherit; background: #fff;
	border: 1px solid var(--imkse-border); border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.imkse-field textarea { resize: vertical; min-height: 90px; }
.imkse-field input:focus, .imkse-field select:focus, .imkse-field textarea:focus,
.imkse-search:focus {
	outline: none; border-color: var(--imkse-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--imkse-accent) 22%, transparent);
}
.imkse-field.has-error input, .imkse-field.has-error select, .imkse-field.has-error textarea { border-color: var(--imkse-danger); }

.imkse-input-group { display: flex; align-items: stretch; }
.imkse-input-group input { flex: 1; min-width: 0; }
.imkse-affix {
	display: inline-flex; align-items: center; padding: 0 12px;
	background: #f3f5f9; border: 1px solid var(--imkse-border);
	color: var(--imkse-muted); font-size: .9rem; white-space: nowrap;
}
.imkse-affix:first-child { border-right: 0; border-radius: 10px 0 0 10px; }
.imkse-affix:last-child { border-left: 0; border-radius: 0 10px 10px 0; }
.imkse-input-group .imkse-affix:first-child + input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.imkse-input-group input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.imkse-msg { min-height: 0; margin-top: 5px; }
.imkse-hint, .imkse-live { display: block; color: var(--imkse-muted); font-size: .8rem; }
.imkse-live { color: var(--imkse-accent); font-weight: 600; min-height: 0; }
.imkse-live:empty { display: none; }
.imkse-error { color: var(--imkse-danger); font-size: .85rem; font-weight: 500; }
.imkse-error:empty { display: none; }
.imkse-form-error {
	margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
	background: #fdecec; border: 1px solid #f3b9b9;
}

/* Honeypot: off-screen, not display:none (bots skip display:none). */
.imkse-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Products */
.imkse-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.imkse-search {
	flex: 1 1 220px; min-height: 42px; padding: 8px 14px; font: inherit;
	border: 1px solid var(--imkse-border); border-radius: 10px; background: #fff;
}
.imkse-toolbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: .9rem; }
.imkse-count { color: var(--imkse-muted); white-space: nowrap; }
.imkse-count strong { color: var(--imkse-accent); }
.imkse-link {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--imkse-accent); font: inherit; font-weight: 600; text-decoration: underline;
}
.imkse-product-groups { max-height: 460px; overflow: auto; padding: 2px; }
.imkse-group + .imkse-group { margin-top: 18px; }
.imkse-group-title { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--imkse-muted); }
.imkse-product-grid { display: grid; grid-template-columns: repeat(var(--imkse-cols), minmax(0, 1fr)); gap: 10px; }

.imkse-product {
	position: relative; display: flex; align-items: center; gap: 10px;
	padding: 11px 14px; cursor: pointer; user-select: none;
	border: 1px solid var(--imkse-border); border-radius: 10px; background: #fff;
	transition: border-color .15s, background .15s;
}
.imkse-product:hover { border-color: var(--imkse-accent); }
.imkse-product input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.imkse-box {
	flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px;
	border: 2px solid #aab3c2; background: #fff; position: relative; transition: all .15s;
}
.imkse-box::after {
	content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.imkse-product input:checked + .imkse-box { background: var(--imkse-accent); border-color: var(--imkse-accent); }
.imkse-product input:checked + .imkse-box::after { opacity: 1; }
.imkse-product input:focus-visible + .imkse-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--imkse-accent) 30%, transparent); }
.imkse-product.is-checked { border-color: var(--imkse-accent); background: color-mix(in srgb, var(--imkse-accent) 7%, #fff); }
.imkse-pname { line-height: 1.3; font-size: .95rem; }
.imkse-product[hidden], .imkse-group[hidden] { display: none; }
.imkse-noresults { color: var(--imkse-muted); text-align: center; padding: 18px 0; }

/* Actions */
.imkse-actions { display: flex; justify-content: flex-end; }
.imkse-submit {
	appearance: none; border: 0; cursor: pointer;
	background: var(--imkse-accent); color: #fff;
	font: inherit; font-weight: 700; font-size: 1rem;
	padding: 14px 34px; border-radius: 12px;
	transition: filter .15s, transform .05s;
}
.imkse-submit:hover { filter: brightness(1.08); }
.imkse-submit:active { transform: translateY(1px); }
.imkse-submit[disabled] { opacity: .65; cursor: wait; }

/* Success */
.imkse-success { text-align: center; padding: 36px 12px; }
.imkse-success:focus { outline: none; }
.imkse-tick {
	width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #e6f6ec; color: #1a8a45; font-size: 2rem; font-weight: 700;
}
.imkse-success-msg { font-size: 1.15rem; margin: 0 0 8px; }
.imkse-ref { color: var(--imkse-muted); margin: 0; }

@media (max-width: 680px) {
	.imkse-card { padding: 22px 16px; border-radius: 12px; }
	.imkse-grid { grid-template-columns: 1fr; }
	.imkse-product-grid { grid-template-columns: 1fr; }
	.imkse-actions .imkse-submit { width: 100%; }
	.imkse-toolbar-actions { width: 100%; justify-content: space-between; margin-left: 0; }
}
