/* Royal Fence configurator */
.rfc {
	scroll-margin-top: 120px;
	--rfc-accent: #D45C11;
	--rfc-donker: #2F2A24;
	--rfc-zand: #E9D0B2;
	--rfc-tekst: #404040;
	--rfc-stil: #6B6357;
	--rfc-lijn: #E7E1D8;
	--rfc-zacht: #FBF8F4;

	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	color: var(--rfc-tekst);
	font-family: inherit;
}

@media (min-width: 960px) {
	.rfc { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
}

/* Stappenbalk */
.rfc__stappen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	counter-reset: none;
}

.rfc__stap-knop {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--rfc-lijn);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.2;
	color: var(--rfc-stil);
}

.rfc__stap-knop.is-actief { background: var(--rfc-donker); border-color: var(--rfc-donker); color: #fff; }
.rfc__stap-knop.is-gedaan { border-color: var(--rfc-accent); color: var(--rfc-accent); }

.rfc__stap-nummer {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--rfc-zacht);
	color: var(--rfc-donker);
	font-weight: 700;
	font-size: 12px;
}

.rfc__stap-knop.is-actief .rfc__stap-nummer { background: var(--rfc-accent); color: #fff; }

/* Panelen en vragen */
.rfc__paneel-titel { margin: 0 0 16px; font-size: 22px; color: var(--rfc-donker); }

.rfc__groep {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.rfc__vraag {
	padding: 0;
	margin: 0 0 12px;
	font-weight: 700;
	font-size: 17px;
	color: var(--rfc-donker);
}

.rfc__vraag-tekst { vertical-align: middle; }
.rfc .rfc__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -4px 0 0 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--rfc-accent);
	cursor: pointer;
	vertical-align: middle;
	line-height: 1;
}
.rfc .rfc__info:hover,
.rfc .rfc__info:focus,
.rfc .rfc__info[aria-expanded="true"] { color: var(--rfc-donker); background: transparent; }
.rfc .rfc__info:focus-visible { outline: 2px solid var(--rfc-accent); outline-offset: 2px; }
.rfc__info-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.rfc__info-tekst {
	margin: -4px 0 14px;
	padding: 12px 14px;
	border-left: 3px solid var(--rfc-accent);
	border-radius: 4px;
	background: var(--rfc-zacht);
	color: var(--rfc-tekst);
	font-size: 14px;
	line-height: 1.55;
}
.rfc__info-tekst[hidden] { display: none; }

.rfc__opties {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 720px) {
	.rfc__opties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.rfc__optie {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border: 1px solid var(--rfc-lijn);
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.rfc__optie:hover { border-color: var(--rfc-zand); }

.rfc__optie:has(input:checked) {
	border-color: var(--rfc-accent);
	box-shadow: inset 0 0 0 1px var(--rfc-accent);
}

.rfc__optie:has(input:focus-visible) { outline: 2px solid var(--rfc-accent); outline-offset: 2px; }

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

.rfc__optie-beeld { width: 100%; height: auto; aspect-ratio: 400 / 290; object-fit: contain; background: #fff; border-radius: 14px; display: block; }
.rfc__optie-label { font-weight: 600; color: var(--rfc-donker); line-height: 1.35; }
.rfc__optie-prijs { color: var(--rfc-stil); font-size: 14px; }

/* Maatvelden */
.rfc__veld { display: grid; gap: 6px; margin: 0 0 16px; max-width: 320px; }
.rfc__veld label { font-weight: 600; color: var(--rfc-donker); }
.rfc__veld input, .rfc__veld select {
	padding: 10px 12px;
	border: 1px solid var(--rfc-lijn);
	border-radius: 14px;
	background: #fff;
	font: inherit;
}
.rfc__hint { color: var(--rfc-stil); font-size: 13px; }
.rfc__totaalbreedte { color: var(--rfc-stil); font-size: 14px; margin: 0; }

/* Voetbalk */
.rfc__voet {
	position: sticky;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	margin-top: 8px;
	border-top: 1px solid var(--rfc-lijn);
	background: #fff;
}

.rfc__prijs { margin-inline: auto; text-align: right; line-height: 1.3; }
.rfc__prijs-label { display: block; font-size: 13px; color: var(--rfc-stil); }
.rfc__prijs-bedrag { font-size: 24px; color: var(--rfc-donker); }
.rfc__prijs-aanbetaling { display: block; font-size: 13px; color: var(--rfc-stil); }

.rfc__voet button {
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.rfc__vorige { background: var(--rfc-zacht); color: var(--rfc-donker); }
.rfc__volgende, .rfc__bestellen { background: var(--rfc-accent); color: #fff; }
.rfc__volgende:hover, .rfc__bestellen:hover { filter: brightness(.94); }

/* Specificatie */
.rfc__specificatie {
	padding: 20px;
	border: 1px solid var(--rfc-lijn);
	border-radius: 16px;
	background: var(--rfc-zacht);
	position: sticky;
	top: 24px;
}

.rfc__specificatie h3 { margin: 0 0 12px; font-size: 17px; color: var(--rfc-donker); }

.rfc__regels {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 16px;
	margin: 0;
	font-size: 14px;
}

.rfc__regels dt { margin: 0; color: var(--rfc-stil); }
.rfc__regels dd { margin: 0; text-align: right; color: var(--rfc-donker); font-variant-numeric: tabular-nums; }

/* Het hidden-attribuut wint altijd, ook van de weergaveregels hierboven en
   van de knopstijlen van het thema. */
.rfc [hidden] { display: none !important; }

.rfc__melding {
	flex: 1 0 100%;
	margin: 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fdf1e7;
	color: #8a3a09;
	font-size: 14px;
}


/* Smalle schermen gaan voor op de kolominstelling van de widget */
@media (max-width: 782px) {
	.rfc .rfc__groep .rfc__opties { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 520px) {
	.rfc .rfc__groep .rfc__opties { grid-template-columns: minmax(0, 1fr) !important; }
	.rfc .rfc__voet { flex-wrap: wrap; justify-content: space-between; }
	.rfc .rfc__prijs { order: -1; flex: 1 0 100%; text-align: left; margin-inline: 0; }
	.rfc .rfc__stap-knop .rfc__stap-titel { display: none; }
	.rfc .rfc__stap-knop.is-actief .rfc__stap-titel { display: inline; }
	.rfc .rfc__specificatie { position: static; }
}

/* Keuzelijst met modellen op een losse pagina */
.rfc-modelkeuze { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; }
.rfc-modelkeuze__label { font-weight: 700; color: var(--rfc-donker, #2F2A24); }
.rfc-modelkeuze__select { min-width: 260px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--rfc-lijn, #E7E1D8); border-radius: 8px; background: #fff; font: inherit; }
.rfc-modelkeuze__knop { padding: 10px 18px; border: 0; border-radius: 8px; background: var(--rfc-accent, #D45C11); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.rfc-modelkeuze.is-js .rfc-modelkeuze__knop { display: none; }
@media (max-width: 600px) { .rfc-modelkeuze__select { min-width: 0; width: 100%; } }

/* Plaatsing (indicatie) en offerte */
.rfc__plaatsing { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rfc-lijn); }
.rfc__plaatsing-titel { margin: 0 0 8px; font-weight: 700; color: var(--rfc-donker); }
.rfc__plaatsing-regels { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.rfc__plaatsing-regels dd { margin: 0; text-align: right; }
.rfc__werkgebied { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rfc-lijn); }
.rfc__werkgebied-label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--rfc-donker); }
.rfc__werkgebied-rij { display: flex; gap: 8px; }
.rfc .rfc__werkgebied-postcode { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 1px solid var(--rfc-lijn); border-radius: 6px; font-size: 15px; }
.rfc .rfc__werkgebied-knop { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--rfc-donker); border-radius: 6px; background: #fff; color: var(--rfc-donker); font-weight: 600; cursor: pointer; }
.rfc .rfc__werkgebied-knop:hover, .rfc .rfc__werkgebied-knop:focus { background: var(--rfc-donker); color: #fff; }
.rfc__werkgebied-uitkomst { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--rfc-tekst); }
.rfc__werkgebied-offerte { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--rfc-accent); }
.rfc__werkgebied-offerte[hidden], .rfc__werkgebied-uitkomst[hidden] { display: none; }
.rfc__plaatsing-noot { margin: 8px 0 0; font-size: 13px; color: var(--rfc-stil); }
.rfc__offerte { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--rfc-accent); border-radius: 999px; color: var(--rfc-accent); background: transparent; font-weight: 700; text-decoration: none; }
.rfc__offerte:hover { background: var(--rfc-accent); color: #fff; }
.rfc__maat-beeld { width: 100%; max-width: 640px; height: auto; margin: 4px 0 18px; display: block; }

/* Uitleg bovenaan elke stap (overgenomen van de huidige calculator) */
.rfc-intro { margin: 0 0 24px; padding: 18px 20px; border-radius: 10px; background: var(--rfc-zacht); color: var(--rfc-tekst); font-size: 15px; line-height: 1.6; }
.rfc-intro > :first-child { margin-top: 0; }
.rfc-intro > :last-child { margin-bottom: 0; }
.rfc-intro h4 { margin: 18px 0 6px; font-size: 18px; color: var(--rfc-donker); }
.rfc-intro h5 { margin: 14px 0 4px; font-size: 16px; color: var(--rfc-donker); }
.rfc-intro p { margin: 0 0 10px; }
.rfc-intro a { color: var(--rfc-accent); }
.rfc-intro img { max-width: 100%; height: auto; }
.rfc-intro__beelden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 4px; }
.rfc-intro__figuur { margin: 0; text-align: center; }
.rfc-intro__figuur figcaption { margin-top: 4px; font-size: 14px; color: var(--rfc-stil); }
.rfc-intro__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.rfc .rfc-intro__knop { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: #5E8F9C; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.rfc .rfc-intro__knop:hover, .rfc .rfc-intro__knop:focus { background: var(--rfc-donker); color: #fff; }
.rfc-intro__knop::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--rfc-icoon) center / contain no-repeat; mask: var(--rfc-icoon) center / contain no-repeat; }
.rfc-intro__knop--whatsapp { --rfc-icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 .9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E"); }
.rfc-intro__knop--bel { --rfc-icoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E"); }
@media (max-width: 600px) {
	.rfc-intro { padding: 14px; font-size: 14px; }
	.rfc-intro__beelden { grid-template-columns: 1fr; }
}
.rfc .rfc__werkgebied-land { flex: 0 0 auto; padding: 8px 6px; border: 1px solid var(--rfc-lijn); border-radius: 6px; background: #fff; font-size: 15px; }
.rfc__specificatie > .rfc__werkgebied { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rfc-lijn); }
.rfc .rfc__werkgebied-rij { align-items: stretch; }
.rfc .rfc__werkgebied-land { width: auto !important; min-width: 0; max-width: 72px; flex: 0 0 72px; }
.rfc .rfc__werkgebied-postcode { width: auto !important; min-width: 0; flex: 1 1 0; }
.rfc .rfc__werkgebied-knop { flex: 0 0 auto; white-space: nowrap; }
