/* Boekingsformulier. De accentkleur komt uit Instellingen (--pbm-accent). */
.pbm-fb { --pbm-rand: #d9d9d9; width: 100%; max-width: 1100px; margin: 0 auto; font-size: 1rem; line-height: 1.5; }
.pbm-fb *, .pbm-fb *::before, .pbm-fb *::after { box-sizing: border-box; }
.pbm-fb [hidden] { display: none !important; }
.pbm-fb-blok { margin: 0 0 32px; }
.pbm-fb-titel { display: block; margin: 0 0 12px; font-size: 1.2em; font-weight: 700; }
.pbm-fb-sublabel { font-weight: 400 !important; }
.pbm-fb input[type="text"], .pbm-fb input[type="email"], .pbm-fb input[type="tel"], .pbm-fb input[type="date"], .pbm-fb select, .pbm-fb textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--pbm-rand); border-radius: 6px; font: inherit; background: #fff; color: #222;
}
.pbm-fb input[type="date"] { max-width: 320px; }
.pbm-fb textarea { resize: vertical; min-height: 110px; }
.pbm-fb input:focus-visible, .pbm-fb select:focus-visible, .pbm-fb textarea:focus-visible, .pbm-fb button:focus-visible {
	outline: 3px solid var(--pbm-accent); outline-offset: 2px;
}
.pbm-fb-ongeldig { border-color: #c62828 !important; }
.pbm-fb-veldfout, .pbm-fb-algemeenfout { color: #c62828; font-size: .92em; margin: 4px 0 0; display: block; }
.pbm-fb-algemeenfout { margin: 0 0 12px; font-weight: 600; }
/* Elke rij is één regel; staat er maar één veld op, dan loopt dat over de volle breedte. */
.pbm-fb-rooster { display: flex; flex-direction: column; gap: 16px; }
.pbm-fb-rij { display: flex; gap: 16px; }
.pbm-fb-rij > .pbm-fb-veld { flex: 1 1 0; min-width: 0; }
.pbm-fb-rij-adres > .pbm-fb-veld:nth-child(1) { flex: 3 1 0; }
.pbm-fb-rij-adres > .pbm-fb-veld:nth-child(2) { flex: 1 1 0; }
.pbm-fb-rij-adres > .pbm-fb-veld:nth-child(3) { flex: 2 1 0; }
.pbm-fb-veld { margin: 0; }
.pbm-fb-veld label { display: block; font-weight: 600; margin-bottom: 4px; }
.pbm-fb-melding { margin: 12px 0; padding: 10px 14px; border-left: 4px solid #e8590c; background: #fff4e6; color: #7a3300; font-weight: 600; border-radius: 4px; }
.pbm-fb-melding-geen { border-left-color: #c62828; background: #fdecea; color: #7a1c1c; }

/* Kaarten (photobooths, extra's en templates) */
.pbm-fb-kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 12px 0; align-items: start; }
.pbm-fb-kaart { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; color: #222; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: box-shadow .15s, transform .15s; }
.pbm-fb-kaart:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .22); transform: translateY(-2px); }
.pbm-fb-kaart input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 3; }
.pbm-fb-kaart-rand { position: absolute; inset: 0; z-index: 2; border: 3px solid transparent; border-radius: 12px; pointer-events: none; transition: border-color .15s; }
.pbm-fb-kaart input:checked ~ .pbm-fb-kaart-rand { border-color: var(--pbm-accent); }
.pbm-fb-kaart input:focus-visible ~ .pbm-fb-kaart-rand { outline: 3px solid var(--pbm-accent); outline-offset: 3px; }
.pbm-fb-vink { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 2px solid #bbb; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.pbm-fb-kaart input:checked ~ .pbm-fb-vink { background: var(--pbm-accent); border-color: var(--pbm-accent); }
.pbm-fb-kaart input:checked ~ .pbm-fb-vink::after { content: ""; position: absolute; left: 9px; top: 4px; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pbm-fb-kaart-beeld { display: block; position: relative; aspect-ratio: 4 / 3; background: #f1f1f1; overflow: hidden; }
.pbm-fb-kaart-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pbm-fb-kaart-tekst { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.pbm-fb-kaart-info { font-size: .9em; color: #555; }
.pbm-fb-kaart-prijs { font-size: .9em; font-weight: 600; color: var(--pbm-accent); }

/* Templates: het hele ontwerp is te zien (staand formaat, niet bijgesneden) */
.pbm-fb-kaarten-templates { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.pbm-fb-kaart-template { background: #f6f6f7; }
.pbm-fb-kaart-template .pbm-fb-kaart-beeld { aspect-ratio: 3 / 4; background: linear-gradient(145deg, #ececee, #f8f8f9); }
.pbm-fb-kaart-template .pbm-fb-kaart-beeld img { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.pbm-fb-kaart-template .pbm-fb-kaart-tekst { background: #fff; text-align: center; align-items: center; }

.pbm-fb-knop { display: inline-block; padding: 12px 28px; border: 2px solid var(--pbm-accent); border-radius: 8px; background: var(--pbm-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pbm-fb-knop:hover { filter: brightness(.92); }
.pbm-fb-knop:disabled { opacity: .6; cursor: wait; }
.pbm-fb-knop-2 { background: #fff; color: var(--pbm-accent); }
.pbm-fb-knop-2:hover { background: #fafafa; }
.pbm-fb-keuze { margin: 8px 0 0; color: #555; }
.pbm-fb-akkoord label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.pbm-fb-akkoord input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--pbm-accent); }
.pbm-fb-lok { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pbm-fb-succes { padding: 22px 24px; border: 2px solid #e8590c; border-radius: 10px; background: #fff4e6; color: #7a3300; font-size: 1.05em; }

/* Popups: vaste kop en voet, de inhoud scrolt */
.pbm-fb-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.pbm-fb-modal-inhoud { display: flex; flex-direction: column; width: 100%; max-width: 860px; max-height: 92vh; border-radius: 14px; background: #fff; color: #222; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.pbm-fb-modal-breed { max-width: 1100px; }
.pbm-fb-modal-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #e5e5e5; }
.pbm-fb-modal-kop h3 { margin: 0; font-size: 1.3em; }
.pbm-fb-sluitknop { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f1f1; color: #333; font-size: 28px; line-height: 1; cursor: pointer; }
.pbm-fb-sluitknop:hover { background: #e2e2e2; }
.pbm-fb-modal-midden { flex: 1 1 auto; overflow: auto; padding: 8px 22px 18px; background: #fcfcfc; }
.pbm-fb-modal-acties { display: flex; gap: 10px; justify-content: flex-end; margin: 0; padding: 14px 22px; border-top: 1px solid #e5e5e5; background: #fff; }
body.pbm-fb-modal-open { overflow: hidden; }

@media (max-width: 600px) {
	.pbm-fb-rij { flex-direction: column; gap: 16px; }
	.pbm-fb-kaarten, .pbm-fb-kaarten-templates { grid-template-columns: 1fr 1fr; gap: 12px; }
	.pbm-fb-modal { padding: 0; align-items: flex-end; }
	.pbm-fb-modal-inhoud { max-height: 94vh; border-radius: 14px 14px 0 0; }
	.pbm-fb-modal-kop, .pbm-fb-modal-midden, .pbm-fb-modal-acties { padding-left: 14px; padding-right: 14px; }
	.pbm-fb input[type="date"] { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pbm-fb-kaart, .pbm-fb-kaart-rand { transition: none; }
	.pbm-fb-kaart:hover { transform: none; }
}

/* Photobooth-kaarten: titel valt op, elke tekst op een eigen regel, knop onderaan */
.pbm-fb-kaarten-booths { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; }
.pbm-fb-kaart-booth { cursor: default; border: 1px solid #c3c4c7; box-shadow: none; transform: none !important; }
.pbm-fb-kaart-booth:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .15); }
.pbm-fb-kaart-booth input { pointer-events: none; }
/* Het cirkeltje rechtsboven is klikbaar (met een ruimer klikgebied) */
.pbm-fb-kaart-booth .pbm-fb-vink { z-index: 5; cursor: pointer; }
.pbm-fb-kaart-booth .pbm-fb-vink::before { content: ""; position: absolute; inset: -8px; }
.pbm-fb-kaart-booth .pbm-fb-kaart-beeld { height: 210px; aspect-ratio: auto; }
.pbm-fb-kaart-booth .pbm-fb-kaart-tekst { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 18px 18px; }
.pbm-fb-kaart-titel { margin: 0 0 8px; font-size: 1.35em; font-weight: 800; line-height: 1.25; color: #111; }
.pbm-fb-kaart-booth .pbm-fb-kaart-info { margin: 0 0 12px; font-size: .95em; line-height: 1.5; color: #4a4a4a; white-space: pre-line; }
.pbm-fb-kaart-booth .pbm-fb-kaart-prijs { margin: 0 0 14px; font-size: 1.1em; }
.pbm-fb-kies { width: 100%; margin-top: auto; text-align: center; }
.pbm-fb-gekozen .pbm-fb-kies { background: #fff; color: var(--pbm-accent); }
.pbm-fb-kaart-booth.pbm-fb-gekozen .pbm-fb-kaart-rand { border-color: var(--pbm-accent); }
.pbm-fb-kaart-booth.pbm-fb-gekozen .pbm-fb-vink { background: var(--pbm-accent); border-color: var(--pbm-accent); }
.pbm-fb-kaart-booth.pbm-fb-gekozen .pbm-fb-vink::after { content: ""; position: absolute; left: 9px; top: 4px; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
/* Vergrootglas linksboven op de foto */
.pbm-fb-vergroot { position: absolute; top: 10px; left: 10px; z-index: 4; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #222; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: zoom-in; }
.pbm-fb-vergroot:hover { background: #fff; color: var(--pbm-accent); }
/* Popup met grote foto en pijltjes */
.pbm-fb-galerij-midden { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 0; padding: 14px 64px; background: #111; }
.pbm-fb-galerij-beeld { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; max-height: 62vh; }
.pbm-fb-galerij-beeld img { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.pbm-fb-galerij-tekst { flex: 1 1 100%; color: #eee; text-align: center; }
.pbm-fb-galerij-tekst p { margin: 4px 0 0; }
.pbm-fb-galerij-tekst .pbm-fb-kaart-prijs { color: #ffb27a; font-size: 1.1em; }
.pbm-fb-galerij-info { white-space: pre-line; }
.pbm-fb-galerij-teller { font-size: .85em; color: #aaa; }
.pbm-fb-pijl { position: absolute; top: 34%; z-index: 2; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; font-size: 36px; line-height: 44px; text-align: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.pbm-fb-pijl:hover { background: #fff; color: var(--pbm-accent); }
.pbm-fb-pijl-links { left: 8px; }
.pbm-fb-pijl-rechts { right: 8px; }
@media (max-width: 600px) {
	.pbm-fb-kaarten-booths { grid-template-columns: 1fr; }
	.pbm-fb-galerij-midden { padding: 10px 10px 14px; }
	.pbm-fb-pijl { width: 42px; height: 42px; line-height: 38px; top: 30%; }
	.pbm-fb-pijl-links { left: 4px; } .pbm-fb-pijl-rechts { right: 4px; }
}

/* Templates: zelfde kaart als de photobooths */
.pbm-fb-kaart-template { cursor: default; border: 1px solid #c3c4c7; box-shadow: none; transform: none !important; background: #fff; }
.pbm-fb-kaart-template:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .15); }
.pbm-fb-kaart-template input { pointer-events: none; }
.pbm-fb-kaart-template .pbm-fb-kaart-tekst { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 14px 16px 16px; background: #fff; flex: 1; }
.pbm-fb-kaart-template .pbm-fb-kaart-titel { margin: 0 0 4px; }
.pbm-fb-kaart-template .pbm-fb-kaart-info { margin: 0 0 12px; font-size: .92em; color: #4a4a4a; }
.pbm-fb-kaart-template.pbm-fb-gekozen .pbm-fb-kaart-rand { border-color: var(--pbm-accent); }
.pbm-fb-kaart-template.pbm-fb-gekozen .pbm-fb-vink { background: var(--pbm-accent); border-color: var(--pbm-accent); }
.pbm-fb-kaart-template.pbm-fb-gekozen .pbm-fb-vink::after { content: ""; position: absolute; left: 9px; top: 4px; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
/* Popup met grote foto: wit */
.pbm-fb-galerij-midden { background: #fff; }
.pbm-fb-galerij-beeld img { border-radius: 6px; box-shadow: 0 2px 14px rgba(0, 0, 0, .22); }
.pbm-fb-galerij-tekst { color: #222; }
.pbm-fb-galerij-tekst .pbm-fb-kaart-prijs { color: var(--pbm-accent); }
.pbm-fb-galerij-teller { color: #777; }
.pbm-fb-pijl { background: #fff; border: 1px solid #d0d0d0; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }

.pbm-fb-galerij-tekst .pbm-fb-galerij-naam { margin: 8px 0 2px; font-size: 1.3em; font-weight: 800; line-height: 1.25; color: #111; }

/* Templatesbooth-stap op het bevestigingsscherm */
.pbm-fb-templatestap { margin-top: 1.5em; padding-top: 1.2em; border-top: 1px solid rgba(0, 0, 0, .15); }
.pbm-fb-widget { margin: 1em 0; min-height: 40px; }
