/* Trouwwebsites Portaal 2.4.0: Demo-aanvragen. Alles valt onder .tws-da-*, zodat het trouwontwerp ongemoeid blijft. */
.tws-da-balk, .tws-da-achter, .tws-da-afsluiter, .tws-da-chip {
	--tws-da-tekst: #1f1a17;
	--tws-da-zacht: #6b625c;
	--tws-da-lijn: rgba(31, 26, 23, .12);
	--tws-da-vlak: #fffdfa;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.tws-da-balk *, .tws-da-achter *, .tws-da-afsluiter * { box-sizing: border-box; }

/* ---------- Knoppen ---------- */
.tws-da-knop {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border: 1px solid var(--tws-da-kleur, #5E0E26); border-radius: 999px;
	background: var(--tws-da-kleur, #5E0E26); color: #fff; font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit;
	letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: filter .15s ease, transform .15s ease;
}
.tws-da-knop:hover { filter: brightness(1.12); color: #fff; }
.tws-da-knop:active { transform: translateY(1px); }
.tws-da-knop:focus-visible, .tws-da-balk a:focus-visible, .tws-da-paneel button:focus-visible, .tws-da-paneel input:focus-visible, .tws-da-paneel a:focus-visible {
	outline: 2px solid var(--tws-da-kleur, #5E0E26); outline-offset: 2px;
}
.tws-da-knop[disabled] { opacity: .6; cursor: progress; }
.tws-da-knop--klein { min-height: 40px; padding: 0 18px; font-size: 14px; }
.tws-da-knop svg { flex-shrink: 0; }
.tws-da-knop--vol { width: 100%; margin-top: 4px; }
.tws-da-knop--rand { width: 100%; margin-top: 10px; background: #fff; color: var(--tws-da-kleur, #5E0E26); border-color: rgba(31, 26, 23, .25); }
.tws-da-knop--rand:hover, .tws-da-knop--rand[aria-expanded=true] { color: var(--tws-da-kleur, #5E0E26); border-color: var(--tws-da-kleur, #5E0E26); filter: none; }
.tws-da-knop--wit { background: #fff; color: var(--tws-da-kleur, #5E0E26); border-color: #fff; }
.tws-da-knop--wit:hover { color: var(--tws-da-kleur, #5E0E26); filter: none; background: #f7efe9; }

/* ---------- Balk: smal, in de merkkleur, zwevend ---------- */
.tws-da-balk {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; pointer-events: none;
	padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
	opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease;
}
.tws-da-balk.is-zichtbaar { opacity: 1; transform: none; }
.tws-da-balk.is-zichtbaar .tws-da-balk__in { pointer-events: auto; }
.tws-da-balk__in {
	position: relative; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 0;
	padding: 8px 8px 8px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
	background: color-mix(in srgb, var(--tws-da-kleur, #5E0E26) 88%, transparent); color: #fff;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px rgba(20, 8, 12, .25);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .tws-da-balk__in { background: var(--tws-da-kleur, #5E0E26); } }
.tws-da-balk__terug { display: inline-flex; align-items: center; gap: 8px; padding-right: 18px; margin-right: 18px; border-right: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.tws-da-balk__terug:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tws-da-balk__pijl { font-size: 15px; line-height: 1; }
.tws-da-balk__midden { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; min-width: 0; }
.tws-da-balk__vraag { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tws-da-balk__prijs { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tws-da-balk .tws-da-knop { margin-left: 12px; flex-shrink: 0; }
.tws-da-balk__sluit {
	position: absolute; top: -10px; right: -6px; width: 24px; height: 24px; border: 1px solid rgba(31, 26, 23, .15); border-radius: 50%;
	background: #fff; color: #1f1a17; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; padding: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.tws-da-balk__sluit:hover { background: #f4eee9; }
.tws-da-balk a:focus-visible, .tws-da-balk button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 520px) {
	.tws-da-balk__in { padding-left: 14px; }
	.tws-da-balk__terug { padding-right: 12px; margin-right: 12px; }
	.tws-da-balk__terug span:last-child { display: none; }
	.tws-da-balk__terug::after { content: "terug"; }
}
@media (max-width: 400px) {
	.tws-da-balk__vraag { display: none; }
}
@media (max-width: 360px) {
	.tws-da-balk .tws-da-knop { padding: 0 12px; font-size: 13px; }
}
html.tws-da-open { overflow: hidden; }
/* "Meteen tonen": boven de envelop-intro (die staat op 2147483000) */
html.tws-da-direct .tws-da-balk { z-index: 2147483100; }
html.tws-da-direct .tws-da-achter { z-index: 2147483200; }

/* ---------- Paneel ---------- */
.tws-da-achter {
	position: fixed; inset: 0; z-index: 99995; display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(20, 14, 12, 0); transition: background .2s ease;
}
.tws-da-achter[hidden] { display: none; }
.tws-da-achter.is-zichtbaar { background: rgba(20, 14, 12, .38); }
.tws-da-paneel {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
	padding: 28px 26px 22px; border-radius: 18px; background: var(--tws-da-vlak); color: var(--tws-da-tekst);
	box-shadow: 0 24px 60px rgba(20, 14, 12, .22); opacity: 0; transform: translateY(10px) scale(.99);
	transition: opacity .2s ease, transform .2s ease; font-size: 15px; line-height: 1.45; text-align: left;
}
.tws-da-achter.is-zichtbaar .tws-da-paneel { opacity: 1; transform: none; }
.tws-da-paneel:focus { outline: none; }
.tws-da-paneel__sluit {
	position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--tws-da-zacht); font-size: 24px; line-height: 1; font-family: inherit; cursor: pointer;
}
.tws-da-paneel__sluit:hover { background: rgba(0, 0, 0, .05); }
.tws-da-paneel__ontwerp { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tws-da-kleur, #5E0E26); padding-right: 40px; }
.tws-da-paneel__kop { margin: 0 0 6px; font-weight: 600; font-size: 22px; line-height: 1.2; font-family: inherit; color: var(--tws-da-tekst); letter-spacing: -.01em; padding-right: 30px; }
.tws-da-paneel__sub { margin: 0 0 18px; color: var(--tws-da-zacht); font-size: 14px; }

.tws-da-keuze { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.tws-da-keuze legend { padding: 0; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tws-da-zacht); }
.tws-da-optie {
	display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 8px; cursor: pointer;
	border: 1px solid var(--tws-da-lijn); border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.tws-da-optie:hover { border-color: rgba(31, 26, 23, .28); }
.tws-da-optie:has(input:checked) { border-color: var(--tws-da-kleur, #5E0E26); background: color-mix(in srgb, var(--tws-da-kleur, #5E0E26) 6%, #fff); box-shadow: 0 0 0 1px var(--tws-da-kleur, #5E0E26) inset; }
.tws-da-optie input { margin: 3px 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--tws-da-kleur, #5E0E26); }
.tws-da-optie__tekst { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tws-da-optie__naam { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.tws-da-optie__prijs { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tws-da-optie__uitleg { font-size: 13px; color: var(--tws-da-zacht); }

.tws-da-totaal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 14px; padding-top: 14px; border-top: 1px solid var(--tws-da-lijn); }
.tws-da-totaal__label { font-size: 16px; font-weight: 600; }
.tws-da-totaal__rechts { text-align: right; }
.tws-da-totaal__bedrag { display: block; font-size: 24px; font-weight: 700; color: var(--tws-da-kleur, #5E0E26); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tws-da-totaal__btw { font-size: 12px; color: var(--tws-da-zacht); }

.tws-da-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tws-da-lijn); }
.tws-da-form[hidden] { display: none; }
.tws-da-form__intro { margin: 0 0 12px; font-size: 14px; color: var(--tws-da-zacht); }
.tws-da-veld { display: block; margin: 0 0 12px; }
.tws-da-veld > span, .tws-da-veld > label:first-child { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.tws-da-veld input[type=text], .tws-da-veld input:not([type]), .tws-da-veld input[type=email], .tws-da-veld input[type=tel], .tws-da-veld input[type=date] {
	display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(31, 26, 23, .22); border-radius: 10px;
	background: #fff; color: var(--tws-da-tekst); font-size: 16px; line-height: 1.2; font-family: inherit; box-shadow: none; margin: 0;
}
.tws-da-veld input:disabled { opacity: .5; }
.tws-da-vink { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; cursor: pointer; }
.tws-da-vink input { width: 16px; height: 16px; accent-color: var(--tws-da-kleur, #5E0E26); margin: 0; }
.tws-da-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tws-da-privacy { margin: 0 0 12px; font-size: 12px; color: var(--tws-da-zacht); }
.tws-da-privacy a { color: inherit; }
.tws-da-melding { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fbeceb; color: #8a1f17; font-size: 14px; }
.tws-da-bedankt { margin: 6px 0 0; padding: 14px 16px; border-radius: 12px; background: #eef6f0; color: #1d4f33; font-weight: 600; }
.tws-da-bedankt:focus { outline: none; }
.tws-da-onder { margin: 16px 0 0; text-align: center; font-size: 12px; letter-spacing: .04em; color: var(--tws-da-zacht); }

/* Mobiel: paneel als blad van onderen. */
@media (max-width: 767px) {
	.tws-da-achter { align-items: flex-end; padding: 0; }
	.tws-da-paneel {
		max-width: none; border-radius: 18px 18px 0 0; max-height: 90vh; max-height: 90dvh;
		padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(24px);
	}
	.tws-da-paneel__kop { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.tws-da-balk, .tws-da-paneel, .tws-da-achter { transition: none; }
}

/* ---------- Labels in de demo ---------- */
.tws-da-chip {
	position: absolute; top: 10px; left: 10px; z-index: 5; pointer-events: none;
	padding: 4px 10px; border-radius: 999px; background: rgba(255, 253, 250, .92); color: #1f1a17;
	border: 1px solid rgba(31, 26, 23, .14); font-size: 11px; font-weight: 600; letter-spacing: .04em; line-height: 1.3;
	white-space: nowrap; box-shadow: 0 2px 8px rgba(31, 26, 23, .08);
}

/* ---------- Afsluitblok [tws_demo_afsluiter] ---------- */
.tws-da-afsluiter { width: 100%; padding: clamp(40px, 7vw, 88px) 16px; background: transparent; color: #fff; }
.tws-da-afsluiter__kaart {
	max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 40px;
	padding: clamp(26px, 4vw, 44px) clamp(22px, 4.5vw, 52px); border-radius: 16px;
	background: color-mix(in srgb, var(--tws-da-kleur, #5E0E26) 94%, transparent); box-shadow: 0 20px 50px rgba(20, 8, 12, .22);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .tws-da-afsluiter__kaart { background: var(--tws-da-kleur, #5E0E26); } }
.tws-da-afsluiter__kop { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -.005em; color: #fff; text-wrap: balance; }
.tws-da-afsluiter__sub { margin: -6px 0 14px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.tws-da-afsluiter__punten { margin: 0; padding: 0; list-style: none; }
.tws-da-afsluiter__punten li { position: relative; margin: 0 0 7px; padding-left: 26px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.tws-da-afsluiter__punten li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 10px; height: 5px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg); }
.tws-da-afsluiter__rechts { padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .22); text-align: center; }
.tws-da-afsluiter__prijs { margin: 0 0 16px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tws-da-afsluiter__prijs span { font-size: 14px; color: rgba(255, 255, 255, .85); margin-bottom: 6px; }
.tws-da-afsluiter__prijs strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(38px, 5vw, 50px); font-variant-numeric: tabular-nums; }
.tws-da-afsluiter__prijs small { font-size: 12px; color: rgba(255, 255, 255, .75); margin-top: 6px; }
.tws-da-afsluiter .tws-da-knop:focus-visible { outline-color: #fff; }
@media (max-width: 680px) {
	.tws-da-afsluiter__kaart { grid-template-columns: 1fr; text-align: left; }
	.tws-da-afsluiter__rechts { padding: 22px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
	.tws-da-afsluiter .tws-da-knop { width: 100%; }
}
