/* Ingram Leads: hero form, homepage bar and mobile contact bar */

.ilead,
.ilead-bar {
	--ilead-accent: #ff6735;
	--ilead-accent-hover: #e9531f;
	--ilead-ink: #33363b;
	--ilead-muted: #6d6f73;
	--ilead-line: #d8d8d6;
}

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

.ilead {
	position: relative;
	z-index: 2;
	max-width: 360px;
	margin-top: 32px;
	padding: 22px 18px 18px;
	background: #fff;
	border: 1px solid #e6e6e4;
	border-top: 4px solid var(--ilead-accent);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
	color: var(--ilead-ink);
	/* Inter ships with the theme and has the weights the card needs. */
	font-family: Inter, Arial, sans-serif;
	scroll-margin-top: 130px;
}

.ilead[hidden] {
	display: none;
}

.ilead p {
	margin: 0;
	color: inherit;
	font: inherit;
}

.ilead br {
	display: none;
}

.ilead .ilead__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.ilead .ilead__intro {
	margin: 4px 0 12px;
	color: var(--ilead-muted);
	font-size: 13px;
	line-height: 1.35;
}

.ilead .ilead__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ilead .ilead__field {
	display: block;
	margin: 0 0 8px;
}

.ilead .wpcf7-form-control-wrap {
	display: block;
}

.ilead input.wpcf7-text {
	display: block;
	font-family: inherit;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 8px 12px;
	background: #fafaf9;
	border: 1px solid var(--ilead-line);
	border-radius: 8px;
	color: var(--ilead-ink);
	font-size: 14px;
	line-height: 1.4;
}

.ilead input.wpcf7-text::placeholder {
	color: #75777a;
	opacity: 1;
}

.ilead input.wpcf7-text:focus-visible,
.ilead input[type="checkbox"]:focus-visible,
.ilead .ilead__submit:focus-visible {
	outline: 2px solid var(--ilead-accent);
	outline-offset: 2px;
}

.ilead input.wpcf7-not-valid {
	border-color: #c62828;
}

.ilead .wpcf7-not-valid-tip {
	margin-top: 3px;
	color: #c62828;
	font-size: 12px;
}

.ilead .ilead__consent {
	margin: 0 0 12px;
	color: var(--ilead-muted);
	font-size: 11.5px;
	line-height: 1.4;
}

.ilead .ilead__consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.ilead .ilead__consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	cursor: pointer;
}

.ilead .ilead__consent input[type="checkbox"] {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin: 1px 0 0;
	accent-color: var(--ilead-accent);
	appearance: auto;
	-webkit-appearance: checkbox;
}

.ilead .ilead__consent a {
	color: inherit;
	text-decoration: underline;
}

.ilead input.ilead__submit {
	display: block;
	font-family: inherit;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 20px;
	background: var(--ilead-accent);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s;
}

.ilead input.ilead__submit:hover {
	background: var(--ilead-accent-hover);
}

.ilead input.ilead__submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.ilead .wpcf7-spinner {
	display: block;
	margin: 6px auto 0;
}

.ilead form:not(.submitting) .wpcf7-spinner {
	display: none;
}

.ilead form .wpcf7-response-output {
	margin: 10px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
}

/* ---------- Homepage bar ---------- */

.ilead-home {
	position: relative;
	z-index: 3;
	margin-top: 28px;
	scroll-margin-top: 130px;
}

.ilead.ilead--bar {
	max-width: none;
	margin: 0;
	padding: 22px 28px 16px;
	background: var(--ilead-ink);
	border: 0;
	border-radius: 18px;
	box-shadow: none;
	color: #fff;
}

.ilead--bar .ilead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

/* Contact Form 7 may wrap tags in paragraphs; keep every control a direct grid item. */
.ilead--bar .ilead__grid > p {
	display: contents;
}

.ilead--bar .ilead__head {
	margin-bottom: 6px;
}

.ilead.ilead--bar .ilead__title {
	font-size: 20px;
}

.ilead.ilead--bar .ilead__intro {
	margin: 2px 0 0;
	color: #cfd0d2;
}

.ilead.ilead--bar .ilead__field {
	min-width: 0;
	margin: 0;
}

.ilead--bar input.wpcf7-text,
.ilead--bar select.wpcf7-select {
	display: flex;
	align-items: center;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 8px 14px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 10px;
	color: var(--ilead-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.ilead--bar select.wpcf7-select:focus-visible {
	outline: 2px solid var(--ilead-accent);
	outline-offset: 2px;
}

.ilead--bar select.wpcf7-not-valid {
	border-color: #ff8a80;
}

.ilead.ilead--bar input.ilead__submit {
	height: 46px;
	padding: 10px 26px;
	font-size: 14px;
	white-space: nowrap;
}

.ilead.ilead--bar .wpcf7-not-valid-tip {
	color: #ff9f95;
}

.ilead.ilead--bar .ilead__consent {
	margin: 2px 0 0;
	color: #b9babd;
}

.ilead.ilead--bar form .wpcf7-response-output {
	color: #fff;
}

@media (min-width: 992px) {
	.ilead--bar .ilead__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
		align-items: start;
	}

	.ilead--bar .ilead__head,
	.ilead--bar .ilead__consent {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.ilead--bar .ilead__grid {
		grid-template-columns: auto 1.15fr repeat(3, minmax(0, 1fr)) auto;
	}

	.ilead--bar .ilead__head {
		grid-column: auto;
		align-self: center;
		margin: 0 16px 0 0;
	}

	.ilead--bar .ilead__consent {
		grid-column: 2 / -1;
	}
}

/* Styled option list where the browser supports it; others keep their native picker. */
@supports (appearance: base-select) {
	.ilead--bar select.wpcf7-select,
	.ilead--bar select.wpcf7-select::picker(select) {
		appearance: base-select;
	}

	.ilead--bar select.wpcf7-select {
		justify-content: space-between;
		gap: 8px;
		white-space: nowrap;
	}

	.ilead--bar select.wpcf7-select::picker-icon {
		flex: 0 0 auto;
		width: 6px;
		height: 6px;
		margin-right: 2px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		content: "";
		transform: translateY(-2px) rotate(45deg);
	}

	.ilead--bar select.wpcf7-select::picker(select) {
		min-width: max(anchor-size(width), 250px);
		margin-block: 4px;
		padding: 6px;
		background: #fff;
		border: 0;
		border-radius: 10px;
		box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
	}

	.ilead--bar select.wpcf7-select option {
		min-height: 36px;
		padding: 8px 12px;
		border-radius: 7px;
		color: var(--ilead-ink);
		font-size: 14px;
	}

	.ilead--bar select.wpcf7-select option[value=""] {
		display: none;
	}

	.ilead--bar select.wpcf7-select option::checkmark {
		display: none;
	}

	.ilead--bar select.wpcf7-select option:checked,
	.ilead--bar select.wpcf7-select option:hover,
	.ilead--bar select.wpcf7-select option:focus-visible {
		background: #fff0ea;
		color: var(--ilead-accent);
		font-weight: 700;
	}
}

/* ---------- Mobile contact bar ---------- */

.ilead-bar {
	display: none;
	font-family: Inter, Arial, sans-serif;
}

@media (max-width: 991.98px) {
	.ilead {
		max-width: none;
		margin-right: auto;
		margin-left: 0;
		scroll-margin-top: 100px;
	}

	/* 16px stops iOS from zooming in when a field is focused. */
	.ilead input.wpcf7-text,
	.ilead--bar select.wpcf7-select {
		height: 46px;
		font-size: 16px;
	}

	.ilead.ilead--bar {
		padding: 20px;
	}

	.ilead-home {
		margin-top: 24px;
		scroll-margin-top: 100px;
	}

	.ilead-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9000;
		display: flex;
		gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
	}

	.ilead-bar a.ilead-bar__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		padding: 8px 14px;
		border: 2px solid transparent;
		border-radius: 999px;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
	}

	.ilead-bar a.ilead-bar__btn--call {
		flex: 2 1 0;
		border-color: var(--ilead-ink);
		color: var(--ilead-ink);
	}

	.ilead-bar a.ilead-bar__btn--offer {
		flex: 3 1 0;
		background: var(--ilead-accent);
		color: #fff;
	}

	.ilead-bar svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
	}

	#kontakt {
		scroll-margin-top: 80px;
	}

	/* Keep the end of the page and the reCAPTCHA badge clear of the bar. */
	body {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}

	.grecaptcha-badge {
		bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* Tablets: the device page form spans the column, so its fields sit side by side. */
@media (min-width: 600px) and (max-width: 991.98px) {
	.ilead:not(.ilead--bar) p:has(> .ilead__field) {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		align-items: start;
		margin-bottom: 8px;
	}

	.ilead:not(.ilead--bar) p > .ilead__field {
		margin: 0;
	}
}

@media print {
	.ilead-bar {
		display: none !important;
	}
}
