/* =====================================================================
   FolieTotaal: quote configurator.
   Inherits every colour and font from theme.css, so a rebrand there
   carries through here without edits.
   ===================================================================== */

.ftc {
	margin: 0 0 32px;
}

.ftc__noscript {
	background: var(--ftl-panel);
	border: 1px solid var(--ftl-hairline);
	padding: 24px;
	border-radius: var(--ftl-radius);
}

.ftc__fallback {
	background: var(--ftl-panel);
	border: 1px solid var(--ftl-hairline);
	padding: 24px;
	border-radius: var(--ftl-radius);
	color: var(--ftl-body);
}

.ftc__fallback[hidden] {
	display: none;
}

.ftc__fallback .ft-btn {
	margin: 8px 8px 0 0;
}

.ftc__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
}

@media (min-width: 940px) {
	.ftc__fallback {
	background: var(--ftl-panel);
	border: 1px solid var(--ftl-hairline);
	padding: 24px;
	border-radius: var(--ftl-radius);
	color: var(--ftl-body);
}

.ftc__fallback[hidden] {
	display: none;
}

.ftc__fallback .ft-btn {
	margin: 8px 8px 0 0;
}

.ftc__layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 40px;
	}
}

/* ----- Steps ---------------------------------------------------------- */

.ftc__steps {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--ftl-hairline);
	border: 1px solid var(--ftl-hairline);
}

.ftc__step {
	background: var(--ftl-panel);
	padding: 24px 22px;
}

.ftc__step[hidden] {
	display: none;
}

.ftc__step-title {
	font-family: var(--ftl-display);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.25;
	margin: 0 0 4px;
	color: var(--ftl-paper);
}

.ftc__step-hint {
	font-size: 14px;
	color: var(--ftl-body);
	margin: 0 0 14px;
	line-height: 1.5;
}

.ftc__step-title + .ftc__choices,
.ftc__step-title + .ftc__checks,
.ftc__step-title + .ftc__number {
	margin-top: 14px;
}

/* ----- Radio choices -------------------------------------------------- */

.ftc__choices {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

@media (min-width: 560px) {
	.ftc__choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ftc__choices--wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ftc__choice {
	display: block;
	position: relative;
	cursor: pointer;
}

.ftc__choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ftc__choice-box {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--ftl-hairline-strong);
	border-radius: var(--ftl-radius);
	background: transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ftc__choice:hover .ftc__choice-box {
	border-color: var(--ftl-paper);
}

.ftc__choice input:checked + .ftc__choice-box {
	border-color: var(--ftl-red);
	background: rgba(216, 53, 42, 0.07);
}

.ftc__choice input:focus-visible + .ftc__choice-box {
	outline: 2px solid var(--ftl-red-ink);
	outline-offset: 2px;
}

.ftc__choice-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--ftl-sans);
	font-weight: 500;
	font-size: 15px;
	color: var(--ftl-paper);
	line-height: 1.3;
}

.ftc__choice-desc {
	font-size: 13px;
	line-height: 1.5;
	color: var(--ftl-body);
}

.ftc__tag {
	font-family: var(--ftl-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ftl-red-ink);
	border: 1px solid var(--ftl-red);
	border-radius: 2px;
	padding: 2px 6px;
	white-space: nowrap;
}

/* ----- Checkboxes ----------------------------------------------------- */

.ftc__checks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	border-top: 1px solid var(--ftl-hairline);
}

.ftc__check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 2px;
	border-bottom: 1px solid var(--ftl-hairline);
	cursor: pointer;
	font-size: 15px;
	color: var(--ftl-soft);
}

.ftc__check input {
	width: 18px;
	height: 18px;
	accent-color: var(--ftl-red);
	cursor: pointer;
	flex: none;
}

.ftc__check-label {
	flex: 1;
	line-height: 1.4;
}

.ftc__check-price {
	font-family: var(--ftl-mono);
	font-size: 13px;
	color: var(--ftl-dim);
	white-space: nowrap;
}

.ftc__check--single {
	border-bottom: 0;
	margin-top: 10px;
}

/* ----- Number stepper ------------------------------------------------- */

.ftc__number {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ftc__number input {
	width: 96px;
	background: #ffffff;
	border: 1px solid var(--ftl-hairline-strong);
	color: var(--ftl-paper);
	border-radius: var(--ftl-radius);
	padding: 11px 12px;
	font-family: var(--ftl-mono);
	font-size: 16px;
	text-align: center;
}

.ftc__step-btn {
	width: 42px;
	height: 42px;
	border: 1px solid var(--ftl-hairline-strong);
	background: transparent;
	color: var(--ftl-paper);
	border-radius: var(--ftl-radius);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.ftc__step-btn:hover {
	border-color: var(--ftl-red);
	color: var(--ftl-red-ink);
}

.ftc__unit {
	font-family: var(--ftl-mono);
	font-size: 13px;
	color: var(--ftl-dim);
}

/* ----- Result panel --------------------------------------------------- */

.ftc__panel {
	background: var(--ftl-panel);
	border: 1px solid var(--ftl-hairline);
	padding: 26px 24px;
	border-radius: var(--ftl-radius);
	min-width: 0;
	overflow-wrap: break-word;
}

/* A sticky panel that outgrows the screen has to be able to scroll. */
@media (min-width: 940px) {
	.ftc__panel {
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
}

@media (min-width: 940px) {
	.ftc__panel {
		position: sticky;
		top: 96px;
	}
}

.ftc__panel-label {
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ftl-dim);
	margin: 0 0 10px;
}

.ftc__price {
	font-family: var(--ftl-display);
	font-weight: 800;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ftl-paper);
	margin: 0;
}

.ftc__dash {
	display: inline-block;
	font-family: var(--ftl-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ftl-dim);
	margin: 0 10px;
	vertical-align: middle;
}

.ftc__vat {
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ftl-dim);
	margin: 8px 0 0;
}

.ftc__lines {
	margin-top: 20px;
	border-top: 1px solid var(--ftl-hairline);
}

.ftc__line {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ftl-hairline);
	font-size: 14px;
	color: var(--ftl-body);
	line-height: 1.45;
}

/*
 * The value used to be nowrap, which is right for an amount but wrong for
 * a list of chosen parts: three chrome items became one unbreakable
 * string that pushed the panel out of its box.
 *
 * break-word, not anywhere: "anywhere" also chops ordinary labels like
 * "Welke onderdelen" mid-word once the column gets narrow.
 */
.ftc__line b {
	font-weight: 500;
	color: var(--ftl-paper);
	text-align: right;
	min-width: 0;
	flex: 1 1 55%;
	overflow-wrap: break-word;
}

.ftc__line > span:first-child {
	min-width: 0;
	flex: 1 1 45%;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* Stack label and value once the panel gets too narrow to hold both. */
@media (max-width: 520px) {
	.ftc__line {
		flex-direction: column;
		gap: 2px;
	}

	.ftc__line b {
		text-align: left;
	}
}

.ftc__note {
	display: block;
	font-style: normal;
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--ftl-dim);
	margin-top: 3px;
}

.ftc__flag,
.ftc__tip {
	margin-top: 16px;
	padding: 13px 15px;
	border-radius: var(--ftl-radius);
	font-size: 13.5px;
	line-height: 1.55;
}

.ftc__flag {
	background: rgba(226, 58, 46, 0.1);
	border: 1px solid rgba(226, 58, 46, 0.35);
	color: var(--ftl-soft);
}

.ftc__tip {
	background: rgba(126, 147, 168, 0.12);
	border: 1px solid rgba(126, 147, 168, 0.3);
	color: var(--ftl-soft);
}

.ftc__flag b,
.ftc__tip b {
	display: block;
	font-family: var(--ftl-mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ftl-paper);
	margin-bottom: 5px;
}

.ftc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.ftc__actions .ft-btn {
	flex: 1 1 auto;
	text-align: center;
	padding-inline: 18px;
}

.ftc__small {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ftl-dim);
	margin: 18px 0 0;
}

/* ----- Trust row below the tool --------------------------------------- */

.ftc-trust {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	background: var(--ftl-hairline);
	border: 1px solid var(--ftl-hairline);
	margin-top: 36px;
}

@media (min-width: 700px) {
	.ftc-trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ftc-trust__item {
	background: var(--ftl-panel);
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ftc-trust__title {
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ftl-red-ink);
}

.ftc-trust__text {
	font-size: 14px;
	color: var(--ftl-body);
	line-height: 1.55;
	margin: 0;
}

/* ----- Free text search ----------------------------------------------- */

.ftc__vrij {
	width: 100%;
	min-height: 96px;
	background: #ffffff;
	border: 1px solid var(--ftl-hairline-strong);
	color: var(--ftl-paper);
	border-radius: var(--ftl-radius);
	padding: 14px 15px;
	font-family: var(--ftl-sans);
	font-size: 16px;
	line-height: 1.5;
	resize: vertical;
}

.ftc__vrij::placeholder {
	color: #9aa0a9;
}

.ftc__vrij:focus {
	outline: none;
	border-color: var(--ftl-red);
	box-shadow: 0 0 0 3px rgba(226, 58, 46, 0.18);
}

.ftc__zoekactie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

/* ----- Suggestion cards ----------------------------------------------- */

.ftc__suggesties {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

@media (min-width: 560px) {
	.ftc__suggesties {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ftc__suggestie {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: left;
	background: transparent;
	border: 1px solid var(--ftl-hairline-strong);
	border-radius: var(--ftl-radius);
	padding: 15px 16px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ftc__suggestie:hover,
.ftc__suggestie:focus-visible {
	border-color: var(--ftl-red);
	background: rgba(216, 53, 42, 0.06);
}

.ftc__suggestie-titel {
	font-family: var(--ftl-display);
	font-weight: 600;
	font-size: 17px;
	color: var(--ftl-paper);
	line-height: 1.25;
}

.ftc__suggestie-desc {
	font-size: 13.5px;
	color: var(--ftl-body);
	line-height: 1.5;
}

/* ----- Chosen service bar --------------------------------------------- */

.ftc__gekozen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	background: var(--ftl-panel);
	padding: 16px 22px;
	border-bottom: 2px solid var(--ftl-hairline);
}

.ftc__gekozen-label {
	font-family: var(--ftl-mono);
	font-size: 10.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ftl-dim);
}

.ftc__gekozen-naam {
	font-family: var(--ftl-display);
	font-weight: 600;
	font-size: 17px;
	color: var(--ftl-paper);
	flex: 1;
}

.ftc__terug,
.ftc__terugrij {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ftl-red-ink);
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ftc__terugrij {
	background: var(--ftl-panel);
	padding: 16px 22px;
	text-decoration: none;
	text-align: left;
	cursor: default;
}

/* ----- Contact fields -------------------------------------------------- */

.ftc__velden {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 620px) {
	.ftc__velden {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ftc__velden .ftc__veld:first-child {
		grid-column: 1 / -1;
	}
}

.ftc__veld {
	margin: 0;
}

.ftc__veld label {
	display: block;
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ftl-dim);
	margin-bottom: 7px;
}

.ftc__veld input {
	width: 100%;
	background: #ffffff;
	border: 1px solid var(--ftl-hairline-strong);
	color: var(--ftl-paper);
	border-radius: var(--ftl-radius);
	padding: 13px 14px;
	font-family: var(--ftl-sans);
	font-size: 16px;
}

.ftc__veld input::placeholder {
	color: #9aa0a9;
}

.ftc__veld input:focus {
	outline: none;
	border-color: var(--ftl-red);
	box-shadow: 0 0 0 3px rgba(226, 58, 46, 0.18);
}

.ftc__veld-hint,
.ftc__privacy {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ftl-dim);
	margin: 12px 0 0;
}

.ftc__privacy a {
	color: var(--ftl-dim);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ftc__fout {
	margin: 14px 0 0;
	padding: 11px 14px;
	background: rgba(226, 58, 46, 0.12);
	border: 1px solid rgba(226, 58, 46, 0.4);
	border-radius: var(--ftl-radius);
	color: var(--ftl-paper);
	font-size: 14px;
	line-height: 1.5;
}

/* Honeypot: off screen rather than display:none, which some bots detect. */
.ftc__pot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ----- How it works list ---------------------------------------------- */

.ftc__uitleg {
	margin: 0 0 18px;
	padding-left: 20px;
	color: var(--ftl-soft);
	font-size: 14.5px;
	line-height: 1.6;
}

.ftc__uitleg li {
	margin-bottom: 7px;
}

.ftc__uitleg li::marker {
	color: var(--ftl-red-ink);
	font-family: var(--ftl-mono);
	font-size: 12px;
}

.ftc__panel .ftc__lines {
	margin-top: 12px;
	border-top: 1px solid var(--ftl-hairline);
}

button[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* --------------------------------------------------------------------
   Colour picker
   -------------------------------------------------------------------- */

.ftc__kleuren {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

@media (min-width: 560px) {
	.ftc__kleuren {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 860px) {
	.ftc__kleuren {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ftc__kleur {
	display: block;
	padding: 0;
	background: none;
	border: 1px solid var(--ftl-hairline-strong);
	border-radius: var(--ftl-radius);
	cursor: pointer;
	overflow: hidden;
	text-align: left;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ftc__kleur:hover {
	transform: translateY(-2px);
}

.ftc__kleur.is-aan {
	border-color: var(--ftl-red);
	box-shadow: inset 0 0 0 1px var(--ftl-red);
}

.ftc__kleur-vlak {
	display: block;
	aspect-ratio: 5 / 3;
	/* Sheen, so a flat hex reads as material instead of a colour chip. */
	background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.16) 100%);
	background-blend-mode: overlay;
}

.ftc__kleur-vlak--anders {
	background: repeating-linear-gradient(45deg, #d8d5cf 0 8px, #edeae4 8px 16px);
}

.ftc__kleur-naam {
	display: block;
	padding: 9px 11px;
	font-family: var(--ftl-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ftl-soft);
}

.ftc__kleur-eigen[hidden] {
	display: none;
}

/* --------------------------------------------------------------------
   The fork at the end of the questions
   -------------------------------------------------------------------- */

.ftc__vervolg {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 620px) {
	.ftc__vervolg {
		grid-template-columns: 1fr 1fr;
	}
}

.ftc__vervolg-kaart {
	display: block;
	text-align: left;
	padding: 20px 22px;
	background: var(--ftl-panel);
	border: 1px solid var(--ftl-hairline-strong);
	border-radius: var(--ftl-radius);
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ftc__vervolg-kaart:hover {
	border-color: var(--ftl-red);
	transform: translateY(-2px);
}

.ftc__vervolg-kaart--klaar {
	background: var(--ftl-red);
	border-color: var(--ftl-red);
}

.ftc__vervolg-kaart--klaar:hover {
	background: var(--ftl-red-deep);
	border-color: var(--ftl-red-deep);
}

.ftc__vervolg-titel {
	display: block;
	font-family: var(--ftl-display);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.25;
	color: var(--ftl-paper);
	margin-bottom: 4px;
}

.ftc__vervolg-kaart--klaar .ftc__vervolg-titel,
.ftc__vervolg-kaart--klaar .ftc__vervolg-tekst {
	color: #ffffff;
}

.ftc__vervolg-tekst {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ftl-body);
}

/* --------------------------------------------------------------------
   Guide price, for the services that work from a fixed menu
   -------------------------------------------------------------------- */

.ftc__richtprijs {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--ftl-hairline);
}

.ftc__prijs {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	/* The gap is what separates the amount from the word between. */
	gap: 6px 10px;
	margin: 4px 0 10px;
}

.ftc__prijs-bedrag {
	font-family: var(--ftl-display);
	font-weight: 800;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--ftl-paper);
}

.ftc__prijs-tot {
	font-family: var(--ftl-sans);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0;
	color: var(--ftl-dim);
}

.ftc__prijs-noot {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--ftl-dim);
}

/* The promise before sending, and the amount after. */
.ftc__prijsbelofte {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--ftl-red);
	background: rgba(216, 53, 42, 0.06);
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ftl-soft);
}

.ftc__slotprijs {
	margin: 0 0 14px;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
	color: var(--ftl-paper);
}

.ftc__slotprijs b {
	font-family: var(--ftl-display);
	font-weight: 800;
	white-space: nowrap;
}

/* ----- De teruggezette aanvraag ---------------------------------------- */

/*
 * De tool bewaart de antwoorden nu in sessionStorage, dus een refresh of
 * een terug-veegje op de telefoon kost je aanvraag niet meer. Maar stil
 * herstellen is zijn eigen soort verwarring: je opent de pagina en het
 * formulier staat half ingevuld zonder dat je weet waarom. Deze regel
 * vertelt wat er gebeurd is en biedt een weg terug.
 */

.ftc__hersteld {
	margin: 0 0 18px;
	padding: 11px 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	background: var(--ftl-panel-hover, #fbfaf6);
	border: 1px solid var(--ftl-hairline, rgba(18, 21, 26, 0.1));
	border-left: 3px solid var(--ftl-red, #d8352a);
	border-radius: var(--ftl-radius, 2px);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ftl-soft, #383e47);
}

.ftc__hersteld-weg {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--ftl-red-ink, #b8271c);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	min-height: 32px;
}

.ftc__hersteld-weg:hover {
	color: var(--ftl-red-deep, #9c1c12);
}

.ftc__hersteld-weg:focus-visible {
	outline: 2px solid var(--ftl-red, #d8352a);
	outline-offset: 2px;
}
