/* =============================================================================
   Affordability block (homepage), Warmtefonds dialog/form and service page.
   Compact: Warmtefonds carries the main CTA, btw-teruggave is a lighter card.
   ============================================================================= */

.fp-afford { padding: 1.75rem 0 .5rem; }
.fp-afford__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
}

.fp-afford__wf,
.fp-afford__btw {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	border-radius: 16px;
	min-width: 0;
}
.fp-afford__wf {
	padding: 1.35rem 1.5rem;
	background: #EAF3FF;
	border: 1px solid #CFE2FF;
}
.fp-afford__btw {
	padding: 1.15rem 1.25rem;
	background: #fff;
	border: 1px solid #DDE3EC;
}
.fp-afford__body { min-width: 0; flex: 1 1 auto; }

.fp-afford__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: #fff; color: #0062E3;
	box-shadow: 0 1px 2px rgba(5, 32, 60, .08);
}
.fp-afford__icon svg { width: 24px; height: 24px; }
.fp-afford__icon--sm { width: 38px; height: 38px; background: #F3F6FA; box-shadow: none; flex: 0 0 auto; }
.fp-afford__icon--sm svg { width: 20px; height: 20px; }

.fp-afford__title {
	margin: 0 0 .35rem;
	font: 800 clamp(1.15rem, 2.1vw, 1.45rem)/1.25 'Sora', sans-serif;
	color: #05203C;
	letter-spacing: -.01em;
}
.fp-afford__subtitle {
	margin: 0 0 .3rem;
	font: 700 1rem/1.3 'Sora', sans-serif;
	color: #05203C;
}
.fp-afford__text { margin: 0 0 .9rem; color: #3a4a5c; font-size: .95rem; line-height: 1.55; }
.fp-afford__text--sm { font-size: .88rem; margin-bottom: .55rem; }

.fp-afford__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fp-afford__cta {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: .7rem 1.35rem;
	border-radius: 999px; border: 0;
	background: #F5C518; color: #05203C;
	font: 700 .95rem/1.1 'Sora', sans-serif;
	text-decoration: none; cursor: pointer;
	transition: background-color 160ms ease;
}
.fp-afford__cta:hover { background: #E0B000; color: #05203C; }
.fp-afford__cta:focus-visible { outline: 3px solid #0062E3; outline-offset: 3px; }
.fp-afford__fine { margin: 0; font-size: .8rem; color: #52627a; }

.fp-afford__details { margin-top: .8rem; font-size: .88rem; color: #3a4a5c; }
.fp-afford__details summary {
	display: inline-flex; align-items: center; gap: .35rem;
	min-height: 32px; cursor: pointer;
	color: #0062E3; font-weight: 700; list-style: none;
}
.fp-afford__details summary::-webkit-details-marker { display: none; }
.fp-afford__details summary::after {
	content: ""; width: 7px; height: 7px; margin-left: .15rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease;
}
.fp-afford__details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.fp-afford__details summary:focus-visible { outline: 2px solid #0062E3; outline-offset: 2px; border-radius: 4px; }
.fp-afford__details ul { list-style: disc; margin: .5rem 0 .5rem; padding-left: 1.1rem; line-height: 1.55; }
.fp-afford__details li { margin-bottom: .3rem; }
.fp-afford__details p { margin: 0; }
.fp-afford__details a { color: #0062E3; font-weight: 600; }
.fp-afford__details--btw { margin-top: .2rem; }

@media (max-width: 860px) {
	.fp-afford__grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
@media (max-width: 640px) {
	.fp-afford { padding: 1.25rem 0 .25rem; }
	.fp-afford__wf { padding: 1.05rem 1rem; gap: .75rem; }
	.fp-afford__btw { padding: .95rem 1rem; gap: .75rem; }
	.fp-afford__icon { width: 38px; height: 38px; }
	.fp-afford__icon svg { width: 20px; height: 20px; }
	.fp-afford__text { font-size: .9rem; margin-bottom: .75rem; }
	.fp-afford__cta { width: 100%; }
	.fp-afford__fine { font-size: .78rem; }
	.fp-afford__details { margin-top: .55rem; }
}

/* ── Dialog ── */
.sbk-wf-dialog {
	margin: auto;
	width: min(460px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0; border: 0; border-radius: 16px;
	background: #fff; color: #05203C;
	box-shadow: 0 20px 60px rgba(5, 32, 60, .25);
	overflow: auto;
}
.sbk-wf-dialog::backdrop { background: rgba(5, 32, 60, .55); }
.sbk-wf-dialog__panel { position: relative; padding: 1.5rem 1.4rem 1.25rem; }
.sbk-wf-dialog__close {
	position: absolute; top: .6rem; right: .6rem;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: #52627a; cursor: pointer;
}
.sbk-wf-dialog__close:hover { background: #F3F6FA; color: #05203C; }
.sbk-wf-dialog__close:focus-visible { outline: 3px solid #0062E3; outline-offset: 1px; }
.sbk-wf-dialog__title { margin: 0 2.5rem .35rem 0; font: 800 1.25rem/1.25 'Sora', sans-serif; }
.sbk-wf-dialog__intro { margin: 0 0 1rem; color: #52627a; font-size: .92rem; line-height: 1.5; }
body.sbk-wf-dialog-open { overflow: hidden; }

/* ── Form (dialog and service page) ── */
.sbk-wf-form { display: block; }
.sbk-wf-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.sbk-wf-field label { font: 600 .88rem/1.3 'DM Sans', sans-serif; color: #3a4a5c; }
.sbk-wf-optional { font-weight: 400; color: #6b7f96; }
.sbk-wf-field input {
	width: 100%; min-height: 46px; padding: .6rem .85rem;
	border: 1.5px solid #DDE3EC; border-radius: 10px;
	background: #F5F7FA; color: #05203C;
	font: 16px/1.3 'DM Sans', sans-serif;
}
.sbk-wf-field input:focus { outline: none; border-color: #0062E3; box-shadow: 0 0 0 3px rgba(0, 98, 227, .15); background: #fff; }
.sbk-wf-field input[aria-invalid="true"] { border-color: #c62828; }
.sbk-wf-submit {
	display: flex; width: 100%; min-height: 48px;
	align-items: center; justify-content: center; text-align: center;
	padding: .75rem 1rem; border: 0; border-radius: 999px;
	background: #F5C518; color: #05203C; cursor: pointer;
	font: 700 .95rem/1.25 'Sora', sans-serif;
	transition: background-color 160ms ease;
}
.sbk-wf-submit:hover { background: #E0B000; }
.sbk-wf-submit:focus-visible { outline: 3px solid #0062E3; outline-offset: 3px; }
.sbk-wf-submit[disabled] { opacity: .65; cursor: progress; }
.sbk-wf-clarify { margin: .65rem 0 .35rem; font-size: .85rem; color: #3a4a5c; text-align: center; }
.sbk-wf-privacy { margin: 0; font-size: .75rem; color: #6b7f96; text-align: center; }
.sbk-wf-privacy a { color: inherit; }
.sbk-wf-error {
	margin-bottom: .85rem; padding: .7rem .85rem; border-radius: 10px;
	background: #fff1f1; border: 1px solid #f1bcbc; color: #991b1b; font-size: .88rem;
}
.sbk-wf-success {
	padding: 1rem; border-radius: 12px;
	background: #ecf9f0; border: 1px solid #bde7c8; color: #176b36;
}
.sbk-wf-success h3 { margin: 0 0 .35rem; color: #05203C; font: 700 1.05rem/1.3 'Sora', sans-serif; }
.sbk-wf-success p { margin: 0; line-height: 1.5; font-size: .92rem; }
.sbk-wf-success:focus { outline: none; }
.sbk-wf-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ── Service landing page ── */
.sbk-wf-page { background: #EAF3FF; padding: 2.5rem 0 3.5rem; }
.sbk-wf-page__grid {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.75rem; align-items: start;
}
.sbk-wf-page__eyebrow { margin: 0 0 .4rem; color: #0062E3; font: 700 .78rem/1.2 'Sora', sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.sbk-wf-page__title { margin: 0 0 .6rem; font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.2 'Sora', sans-serif; color: #05203C; }
.sbk-wf-page__lead { margin: 0 0 1rem; color: #3a4a5c; font-size: 1rem; line-height: 1.6; }
.sbk-wf-page__content { color: #3a4a5c; line-height: 1.6; }
.sbk-wf-page__content ul { list-style: disc; margin: 0 0 1rem; padding-left: 1.25rem; }
.sbk-wf-page__content li { margin-bottom: .25rem; }
.sbk-wf-page__content p { margin: 0 0 .85rem; }
.sbk-wf-page__content h3 { color: #05203C; font: 700 1.05rem/1.3 'Sora', sans-serif; margin: 1.25rem 0 .4rem; }
.sbk-wf-page__card { background: #fff; border: 1px solid #DDE3EC; border-radius: 16px; padding: 1.4rem; }
.sbk-wf-page__card h2 { margin: 0 0 .35rem; font: 800 1.2rem/1.25 'Sora', sans-serif; color: #05203C; }
.sbk-wf-page__card > p { margin: 0 0 1rem; color: #52627a; font-size: .92rem; }
.sbk-wf-page__note { margin-top: 1rem; font-size: .85rem; color: #52627a; }
.sbk-wf-page__note a { color: #0062E3; font-weight: 600; }
@media (max-width: 860px) {
	.sbk-wf-page { padding: 1.5rem 0 2.5rem; }
	.sbk-wf-page__grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
	.sbk-wf-page__card { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fp-afford__details summary::after, .fp-afford__cta, .sbk-wf-submit { transition: none; }
}
