/* Afspraakformulieren (assets/afspraak.js) */
.af [hidden] { display: none !important; }
.af .if-block { margin-bottom: 16px; }
.af .if-chips + .if-chips { margin-top: 0; }
.af .if-chip { position: relative; }
.af .req { color: #c0392b; }
.af-leeg { margin: 0; font-size: 14px; color: #5b6b72; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.af-grid .af-full { grid-column: 1 / -1; }
.af .field { min-width: 0; }
.af .field input, .af .field select, .af .field textarea { width: 100%; box-sizing: border-box; }
.af-hint { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: #5b6b72; }
.af .consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; }
.af .consent a { color: inherit; text-decoration: underline; }
.af .btn[type=submit] { width: 100%; justify-content: center; }
@media (max-width: 560px) { .af-grid { grid-template-columns: 1fr; } }

/* Foto's kiezen */
.af-foto { position: relative; display: flex !important; align-items: center; justify-content: center; min-height: 64px; padding: 14px; border: 2px dashed #cfd8dc; border-radius: 6px; background: #f7f9fa; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--navy); text-align: center; }
.af-foto:hover, .af-foto:focus-within { border-color: var(--orange); }
.af-foto input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.af-fotos { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.af-fotos li { padding: 4px 10px; border-radius: 3px; background: #eef2f4; font-size: 13px; color: var(--navy); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Knop per product (accessoires) */
.af-plan { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: var(--orange); color: #fff !important; font-family: var(--font-head); font-weight: 700; font-size: 14px; text-decoration: none !important; }
.af-plan::after { content: "→"; }
.af-plan:hover { filter: brightness(.95); }

/* Help, ik heb schade */
.af-help-knop { display: inline-flex !important; align-items: center; gap: 8px; }
.sq-contact .af-help-knop { margin-bottom: 10px; }
.page-hero .af-help-knop { margin-top: 14px; }
.page-hero .btn-row .af-help-knop { margin-top: 0; }
.af-help { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(4, 22, 29, .35); color: #1d2b31; overflow: auto; }
.af-help::backdrop { background: rgba(4, 22, 29, .6); }
.af-help-kop { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: var(--navy); color: #fff; }
.af-help-kop h2 { margin: 0; color: #fff; font-size: 22px; }
.af-sluit { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.af-help-intro, .af-help-vol { margin: 0; padding: 16px 22px 0; font-size: 15px; line-height: 1.55; }
.af-help-vol { padding: 0 22px 20px; font-size: 14px; color: #5b6b72; }
.af-help-intro a, .af-help-vol a { color: var(--navy); font-weight: 700; }
.af-help-body { padding: 16px 22px 20px; }
.af-help-body .field { margin-bottom: 14px; }
.af-help-body .field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.af-help-body .field input, .af-help-body .field textarea { padding: 12px 14px; font-size: 16px; border: 1px solid #cfd8dc; border-radius: 4px; font: inherit; }
.af-help-body .form-success { display: none; }
.af-help-body.sent form { display: none; }
.af-help-body.sent .form-success { display: block; }
.af-help-body.sent ~ .af-help-vol { display: none; }
@media (max-width: 560px) {
	.af-help { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.af-help-kop { padding: 14px 16px; }
	.af-help-intro, .af-help-body { padding-left: 16px; padding-right: 16px; }
	.af-help-vol { padding: 0 16px 20px; }
	.af-help .field input { font-size: 16px; } /* geen inzoomen op iPhone */
}

/* Naar het formulier springen: niet onder de vaste kopbalk */
#afspraak, #contact-band, #melden { scroll-margin-top: 90px; }
.af-help:has(.af-help-body.sent) .af-help-intro { display: none; }
.product-card .af-plan { align-self: flex-start; margin: 0 14px 16px; }

/* Contactband: het prototype zet soms padding-top:0 in de HTML (accessoirepagina's), dan plakt de kop tegen de rand */
.svc-contact[style*="padding-top:0"], .svc-contact[style*="padding-top: 0"] { padding-top: 88px !important; }
@media (max-width: 900px) { .svc-contact[style*="padding-top:0"], .svc-contact[style*="padding-top: 0"] { padding-top: 56px !important; } }

/* Versturen bezig */
.af button[type=submit]:disabled { opacity: .7; cursor: progress; }

/* Klikbare productkaarten */
.af-klikbaar { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.af-klikbaar:hover { box-shadow: 0 10px 28px rgba(4, 22, 29, .12); }
.product-card.af-klikbaar:hover { transform: translateY(-2px); }

/* Knop tussen de secties (dienstpagina's) */
.af-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin: 8px 0 48px; padding: 20px 24px; border-radius: var(--radius, 8px); background: #fff; border: 1px solid #e3e9ec; border-left: 4px solid var(--orange); box-shadow: 0 8px 24px rgba(4, 22, 29, .06); }
.af-cta > div:first-child { flex: 1 1 280px; }
.af-cta b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.af-cta span { color: #3a4a50; font-size: 15px; line-height: 1.5; }
.af-cta-acties { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.af-cta-tel { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy) !important; white-space: nowrap; }
@media (max-width: 560px) { .af-cta { padding: 18px; } .af-cta-acties { width: 100%; } .af-cta-acties .btn { width: 100%; justify-content: center; } }

/* Bedankpagina (page-afspraak-bedankt.php) */
.af-bd-kop { background: var(--navy); color: #fff; padding: 72px 0 120px; }
.af-bd-kop h1, .af-bd-kop .eyebrow { max-width: 860px; }
.af-bd-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #fff; margin-bottom: 18px; }
.af-bd-kop h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 6px 0 14px; }
.af-bd-lead { color: rgba(255, 255, 255, .85); font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0; }
.af-bd-body { padding: 0 0 88px; }
.af-bd-body .container { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: -72px; }
.af-bd-main, .af-bd-contact { background: #fff; border-radius: var(--radius, 8px); box-shadow: 0 24px 60px rgba(4, 22, 29, .12); padding: 34px 36px; }
.af-bd-main h2, .af-bd-contact h2 { font-size: 22px; margin: 0 0 16px; color: var(--navy); }
.af-bd-sam { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid #e3e9ec; }
.af-bd-sam dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.af-bd-sam dt { color: #5b6b72; }
.af-bd-sam dd { margin: 0; font-weight: 600; color: var(--navy); }
.af-bd-stappen { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 18px; }
.af-bd-stappen li { display: flex; gap: 16px; align-items: flex-start; }
.af-bd-nr { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff4e6; color: var(--orange); font-family: var(--font-head); font-weight: 800; }
.af-bd-stappen b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 16px; }
.af-bd-stappen span { color: #3a4a50; font-size: 15px; line-height: 1.5; }
.af-bd-knoppen { display: flex; gap: 12px; flex-wrap: wrap; }
.af-bd-contact img { width: 100%; border-radius: 6px; margin-bottom: 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.af-bd-contact p { color: #3a4a50; font-size: 15px; line-height: 1.55; }
.af-bd-tel { display: inline-block; margin: 4px 0 14px; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--orange) !important; }
.af-bd-adres { font-size: 14px !important; color: #5b6b72 !important; margin: 0; }
@media (max-width: 900px) {
	.af-bd-kop { padding: 48px 0 96px; }
	.af-bd-body .container { grid-template-columns: 1fr; margin-top: -64px; }
	.af-bd-main, .af-bd-contact { padding: 24px 20px; }
	.af-bd-sam dl { grid-template-columns: 1fr; gap: 2px; }
	.af-bd-sam dd { margin-bottom: 8px; }
	.af-bd-knoppen .btn { width: 100%; justify-content: center; }
}
