/**
 * LB Carclean Tilbudsflow
 *
 * Tokens er aflæst direkte fra sitets Elementor-kit (post-1025.css) og
 * temaet Renovate, så flowet ikke ligner et fremmedlegeme på siden.
 */

.lbcq {
	--lbcq-primary: #498ccb;
	--lbcq-primary-dark: #3a75ad;
	--lbcq-primary-soft: #eaf2fa;
	--lbcq-text: #444444;
	--lbcq-heading: #000000;
	--lbcq-muted: #7a8496;
	--lbcq-bg: #ffffff;
	--lbcq-bg-alt: #f5f5f5;
	--lbcq-border: #d8dee6;
	--lbcq-border-field: #69727d;
	--lbcq-error: #c0392b;
	--lbcq-success: #2e7d52;
	--lbcq-radius: 3px;
	--lbcq-radius-card: 6px;
	--lbcq-font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--lbcq-font-btn: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

	max-width: 760px;
	margin: 0 auto;
	font-family: var(--lbcq-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--lbcq-text);
	text-align: left;
	box-sizing: border-box;
}

.lbcq *,
.lbcq *::before,
.lbcq *::after {
	box-sizing: inherit;
}

/* ---------- Afsender-stribe ---------- */

.lbcq-sender {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 10px 14px 10px 10px;
	background: var(--lbcq-bg-alt);
	border-radius: 999px;
}

.lbcq-sender__img {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 22%; /* holder ansigtet i midten af cirklen */
	background: #dfe4ea;
}

.lbcq-sender__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.lbcq-sender__text strong {
	font-size: 14px;
	font-weight: 600;
	color: var(--lbcq-heading);
	line-height: 1.3;
}

.lbcq-sender__text span {
	font-size: 13px;
	color: var(--lbcq-muted);
	line-height: 1.35;
}

@media (max-width: 479px) {
	.lbcq-sender {
		border-radius: var(--lbcq-radius-card);
	}
	.lbcq-sender__img {
		width: 48px;
		height: 48px;
	}
	.lbcq-sender__text span {
		font-size: 12px;
	}
}

/* ---------- Progress ---------- */

.lbcq-progress {
	margin: 0 0 22px;
}

.lbcq-progress__bar {
	height: 4px;
	background: #e2e6e7;
	border-radius: 999px;
	overflow: hidden;
}

.lbcq-progress__bar span {
	display: block;
	height: 100%;
	width: 20%;
	background: var(--lbcq-primary);
	border-radius: 999px;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lbcq-progress__label {
	margin: 8px 0 0;
	font-size: 12px;
	letter-spacing: 0.6px;
	color: var(--lbcq-muted);
	text-transform: uppercase;
}

/* ---------- Paneler ---------- */

.lbcq-panel {
	background: var(--lbcq-bg);
	animation: lbcq-in 0.28s ease both;
}

.lbcq-panel[hidden] {
	display: none;
}

@keyframes lbcq-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.lbcq-panel { animation: none; }
	.lbcq-progress__bar span { transition: none; }
}

.lbcq-title {
	margin: 0 0 8px;
	font-family: var(--lbcq-font);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.5px;
	color: var(--lbcq-primary);
}

.lbcq-lead {
	margin: 0 0 20px;
	font-size: 15px;
	color: var(--lbcq-text);
}

.lbcq-help {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--lbcq-muted);
}

.lbcq-hint {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	color: var(--lbcq-muted);
}

/* ---------- Fieldsets ---------- */

.lbcq-fieldset {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.lbcq-legend {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--lbcq-heading);
}

.lbcq-legend--sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Valgkort ---------- */

.lbcq-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 560px) {
	.lbcq-cards { grid-template-columns: repeat(2, 1fr); }
	.lbcq-cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.lbcq-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 14px 44px 14px 16px;
	background: var(--lbcq-bg);
	border: 1px solid var(--lbcq-border);
	border-radius: var(--lbcq-radius-card);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lbcq-card:hover {
	border-color: var(--lbcq-primary);
}

.lbcq-card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.lbcq-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lbcq-card__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--lbcq-heading);
	line-height: 1.3;
}

.lbcq-card__sub {
	font-size: 13px;
	color: var(--lbcq-muted);
	line-height: 1.35;
}

.lbcq-card__tick {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border: 1px solid var(--lbcq-border);
	border-radius: 50%;
	background: #fff;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lbcq-card__tick::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 8px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0.4);
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.lbcq-card:has(input:checked) {
	border-color: var(--lbcq-primary);
	background: var(--lbcq-primary-soft);
	box-shadow: inset 0 0 0 1px var(--lbcq-primary);
}

.lbcq-card:has(input:checked) .lbcq-card__tick {
	background: var(--lbcq-primary);
	border-color: var(--lbcq-primary);
}

.lbcq-card:has(input:checked) .lbcq-card__tick::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.lbcq-card:has(input:focus-visible) {
	outline: 2px solid var(--lbcq-primary);
	outline-offset: 2px;
}

/* Fallback for browsere uden :has() */
.lbcq-card.is-checked {
	border-color: var(--lbcq-primary);
	background: var(--lbcq-primary-soft);
	box-shadow: inset 0 0 0 1px var(--lbcq-primary);
}

.lbcq-card.is-checked .lbcq-card__tick {
	background: var(--lbcq-primary);
	border-color: var(--lbcq-primary);
}

.lbcq-card.is-checked .lbcq-card__tick::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

/* ---------- Tilvalg og chips ---------- */

.lbcq-addons {
	margin: 0 0 20px;
	padding: 16px;
	background: var(--lbcq-bg-alt);
	border-radius: var(--lbcq-radius-card);
}

.lbcq-addons__title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lbcq-heading);
}

.lbcq-addons__list,
.lbcq-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lbcq-chip {
	position: relative;
	cursor: pointer;
}

.lbcq-chip[hidden] {
	display: none;
}

.lbcq-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.lbcq-chip > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px; /* tryk-mål på mobil */
	padding: 10px 16px;
	background: #fff;
	border: 1px solid var(--lbcq-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--lbcq-text);
	transition: all 0.15s ease;
}

.lbcq-chip > span em {
	font-style: normal;
	color: var(--lbcq-muted);
}

.lbcq-chip:has(input:checked) > span,
.lbcq-chip.is-checked > span {
	background: var(--lbcq-primary);
	border-color: var(--lbcq-primary);
	color: #fff;
}

.lbcq-chip:has(input:checked) > span em,
.lbcq-chip.is-checked > span em {
	color: rgba(255, 255, 255, 0.8);
}

.lbcq-chip:has(input:focus-visible) > span {
	outline: 2px solid var(--lbcq-primary);
	outline-offset: 2px;
}

/* ---------- Felter ---------- */

.lbcq-field {
	margin: 0 0 16px;
}

.lbcq-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lbcq-heading);
}

.lbcq-optional {
	font-weight: 400;
	color: var(--lbcq-muted);
}

.lbcq input[type="text"],
.lbcq input[type="tel"],
.lbcq input[type="email"],
.lbcq textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--lbcq-border-field);
	border-radius: var(--lbcq-radius);
	font-family: var(--lbcq-font);
	font-size: 16px; /* 16px forhindrer at iOS zoomer ind ved fokus */
	line-height: 1.4;
	color: var(--lbcq-text);
	-webkit-appearance: none;
	appearance: none;
}

.lbcq textarea {
	min-height: 90px;
	resize: vertical;
}

.lbcq input:focus,
.lbcq textarea:focus {
	outline: 2px solid var(--lbcq-primary);
	outline-offset: 1px;
	border-color: var(--lbcq-primary);
}

.lbcq input.has-error,
.lbcq textarea.has-error {
	border-color: var(--lbcq-error);
}

.lbcq-field--zip input {
	max-width: 160px;
	letter-spacing: 2px;
}

.lbcq-zipnote {
	margin: 8px 0 0;
	padding: 8px 12px;
	background: var(--lbcq-primary-soft);
	border-radius: var(--lbcq-radius);
	font-size: 13px;
	color: #2c5a86;
}

.lbcq-zipnote.is-warning {
	background: #fdf3e7;
	color: #8a5a1c;
}

/* Honeypot: væk fra skærmen, men ikke display:none */
.lbcq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Knapper ---------- */

.lbcq-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 0;
}

.lbcq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	background: var(--lbcq-primary);
	border: 0;
	border-radius: var(--lbcq-radius);
	font-family: var(--lbcq-font-btn);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
}

.lbcq-btn:hover,
.lbcq-btn:focus {
	background: var(--lbcq-primary-dark);
	color: #fff;
}

.lbcq-btn:focus-visible {
	outline: 2px solid var(--lbcq-heading);
	outline-offset: 2px;
}

.lbcq-btn.is-busy {
	opacity: 0.75;
	pointer-events: none;
}

.lbcq-btn--submit {
	flex: 1;
}

.lbcq-btn-back {
	min-height: 48px;
	padding: 12px 4px;
	background: none;
	border: 0;
	font-family: var(--lbcq-font-btn);
	font-size: 15px;
	color: var(--lbcq-muted);
	cursor: pointer;
}

.lbcq-btn-back:hover {
	color: var(--lbcq-primary);
}

.lbcq-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 20px;
	background: #fff;
	border: 1px solid var(--lbcq-primary);
	border-radius: var(--lbcq-radius);
	font-family: var(--lbcq-font-btn);
	font-size: 15px;
	font-weight: 500;
	color: var(--lbcq-primary);
	cursor: pointer;
	transition: background 0.15s ease;
}

.lbcq-btn-ghost:hover {
	background: var(--lbcq-primary-soft);
}

.lbcq-btn-ghost:focus-within {
	outline: 2px solid var(--lbcq-primary);
	outline-offset: 2px;
}

.lbcq-link {
	display: inline-block;
	margin: 14px 0 0;
	padding: 8px 0;
	background: none;
	border: 0;
	font-family: var(--lbcq-font);
	font-size: 14px;
	color: var(--lbcq-muted);
	text-decoration: underline;
	cursor: pointer;
}

.lbcq-link:hover {
	color: var(--lbcq-primary);
}

.lbcq-link--inline {
	margin: 4px 0 12px;
}

/* ---------- Prisniveau ---------- */

.lbcq-panel--estimate {
	text-align: left;
}

.lbcq-estimate {
	padding: 24px 22px;
	background: linear-gradient(160deg, #f5faff 0%, #ffffff 55%, #f4f6fa 100%);
	border: 1px solid #dfe7f2;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(15, 32, 56, 0.08);
}

.lbcq-estimate__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--lbcq-muted);
}

.lbcq-estimate__amount {
	margin: 0 0 6px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--lbcq-heading);
}

.lbcq-estimate__label {
	margin: 0;
	font-size: 14px;
	color: #4e6076;
}

.lbcq-estimate__lines {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px dashed rgba(43, 63, 93, 0.18);
}

.lbcq-estimate__lines li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(43, 63, 93, 0.18);
	font-size: 14px;
}

.lbcq-estimate__lines li span:last-child {
	font-weight: 600;
	color: var(--lbcq-heading);
	white-space: nowrap;
}

.lbcq-estimate__lines li.is-quote span:last-child {
	font-weight: 400;
	color: var(--lbcq-muted);
	font-style: italic;
}

/* Variant uden beregnet pris */

.lbcq-estimate--plain .lbcq-estimate__eyebrow {
	margin-bottom: 10px;
}

.lbcq-recap {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lbcq-recap li {
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #dfe7f2;
	border-radius: 999px;
	font-size: 13px;
	color: #4e6076;
}

.lbcq-fromprice {
	margin: 0 0 14px;
	padding: 14px 0 4px;
	border-top: 1px dashed rgba(43, 63, 93, 0.18);
}

.lbcq-fromprice p {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 8px;
	font-size: 15px;
	color: #4e6076;
}

.lbcq-fromprice strong {
	font-size: 22px;
	font-weight: 700;
	color: var(--lbcq-heading);
	white-space: nowrap;
}

/* På smalle skærme brækker ydelsesnavnet ved siden af beløbet og ser skævt
   ud. Stak dem i stedet. */
@media (max-width: 479px) {
	.lbcq-fromprice p {
		display: block;
	}
	.lbcq-fromprice strong {
		display: block;
		margin-top: 2px;
		font-size: 24px;
	}
}

.lbcq-next {
	margin: 16px 0 0;
	padding: 16px 18px;
	background: var(--lbcq-primary-soft);
	border-radius: var(--lbcq-radius-card);
}

.lbcq-next__title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lbcq-heading);
}

.lbcq-next__steps {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #2c5a86;
}

.lbcq-next__steps li {
	margin-bottom: 6px;
}

.lbcq-next__steps li:last-child {
	margin-bottom: 0;
}

.lbcq-disclaimer {
	margin: 16px 0 0;
	padding: 14px 16px;
	background: var(--lbcq-bg-alt);
	border-left: 3px solid var(--lbcq-primary);
	border-radius: var(--lbcq-radius);
	font-size: 13px;
	line-height: 1.55;
	color: #55606e;
}

.lbcq-disclaimer strong {
	display: block;
	margin-bottom: 4px;
	color: var(--lbcq-heading);
}

/* ---------- Billeder ---------- */

.lbcq-upload {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
}

.lbcq-upload .lbcq-btn-ghost {
	flex: 1 1 160px;
}

.lbcq-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.lbcq-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--lbcq-radius-card);
	overflow: hidden;
	background: var(--lbcq-bg-alt);
}

.lbcq-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lbcq-thumb__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.5);
}

.lbcq-thumb__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--lbcq-primary);
	transition: width 0.25s ease;
}

.lbcq-thumb__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 28px;
	height: 28px;
	padding: 0;
	background: rgba(0, 0, 0, 0.55);
	border: 0;
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	line-height: 28px;
	cursor: pointer;
}

.lbcq-thumb.is-error {
	outline: 2px solid var(--lbcq-error);
}

.lbcq-privacy {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--lbcq-muted);
}

/* Hvorfor billeder betaler sig — står over selve upload-knapperne */
.lbcq-why {
	margin: 0 0 16px;
	padding: 14px 16px 14px 18px;
	list-style: none;
	background: var(--lbcq-primary-soft);
	border-radius: var(--lbcq-radius-card);
	font-size: 14px;
	color: #2c5a86;
}

.lbcq-why li {
	position: relative;
	padding-left: 24px;
	margin: 0 0 6px;
	line-height: 1.45;
}

.lbcq-why li:last-child {
	margin-bottom: 0;
}

.lbcq-why li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 6px;
	height: 11px;
	border: solid var(--lbcq-primary);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Udvejen skal findes, men ikke råbe */
.lbcq-link--quiet {
	font-size: 13px;
	color: #99a2b0;
	text-decoration-color: #ccd3dc;
}

.lbcq-btn--secondary {
	background: #7b8794;
}

.lbcq-btn--secondary:hover,
.lbcq-btn--secondary:focus {
	background: #66707c;
}

.lbcq-trust {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: var(--lbcq-bg-alt);
	border-radius: var(--lbcq-radius);
	font-size: 13px;
	color: #55606e;
}

/* ---------- Beskeder ---------- */

.lbcq-error {
	margin: 14px 0 0;
	padding: 10px 14px;
	background: #fdecea;
	border-left: 3px solid var(--lbcq-error);
	border-radius: var(--lbcq-radius);
	font-size: 14px;
	color: #8c2f26;
}

.lbcq-success {
	margin: 14px 0 0;
	padding: 10px 14px;
	background: #eaf6ef;
	border-left: 3px solid var(--lbcq-success);
	border-radius: var(--lbcq-radius);
	font-size: 14px;
	color: #205c3d;
}

.lbcq-fineprint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--lbcq-muted);
}

/* ---------- Kvittering ---------- */

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

.lbcq-done__check {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: var(--lbcq-primary);
	border-radius: 50%;
	color: #fff;
	font-size: 28px;
	line-height: 56px;
}

.lbcq-summary {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 18px 0;
	padding: 0;
	list-style: none;
}

.lbcq-summary li {
	padding: 6px 12px;
	background: var(--lbcq-bg-alt);
	border-radius: 999px;
	font-size: 13px;
	color: #55606e;
}

.lbcq-done__estimate {
	margin: 0 0 18px;
	font-size: 16px;
	font-weight: 600;
	color: var(--lbcq-heading);
}

.lbcq-done__photos {
	margin: 0 0 20px;
	padding: 16px;
	background: var(--lbcq-primary-soft);
	border-radius: var(--lbcq-radius-card);
	font-size: 14px;
}

.lbcq-done__photos p {
	margin: 0 0 10px;
}

.lbcq-uploading {
	margin: 0 0 16px;
	padding: 10px 14px;
	background: var(--lbcq-bg-alt);
	border-radius: var(--lbcq-radius);
	font-size: 14px;
	color: #55606e;
}

.lbcq-done__call {
	margin: 8px 0 0;
	font-size: 14px;
}

.lbcq-done__call a {
	color: var(--lbcq-primary);
	font-weight: 600;
}

/* ---------- Standalone billedside ---------- */

body.lbcq-standalone {
	margin: 0;
	padding: 24px 16px 60px;
	background: #e5e5e5;
	font-family: "Raleway", Arial, sans-serif;
}

.lbcq--standalone {
	max-width: 560px;
	padding: 24px 20px 28px;
	background: #fff;
	border-radius: var(--lbcq-radius-card);
}

.lbcq-brand {
	margin: 0 0 18px;
	font-size: 24px;
	font-weight: 900;
	letter-spacing: 1px;
	color: var(--lbcq-primary);
}

/* ---------- Mobil ---------- */

@media (max-width: 479px) {
	.lbcq-title { font-size: 22px; }
	.lbcq-estimate__amount { font-size: 28px; }
	.lbcq-estimate { padding: 20px 16px; }
	.lbcq-actions { flex-wrap: wrap; }
	.lbcq-btn { width: 100%; }
	.lbcq-btn--submit { width: 100%; }
	.lbcq-btn-back { order: 2; width: 100%; text-align: center; }
}
