/* ===========================================================================
   Roomcode-vak op de landingspagina: "Sta je op een feest? Vul de code in."
   Gedeeld door de Elementor-pagina (widget "Roomcode invoeren") en de
   ingebouwde reservepagina. Selectors beginnen bewust met .bvdc-room, zodat
   knop- en invoerstijlen van thema of Elementor er niet doorheen komen.
   =========================================================================== */

.bvdc-room {
	--rc-yellow: #ffd633; --rc-pink: #ff3d6e; --rc-dark: #0b0712; --rc-ink: #f7f4fc; --rc-muted: #d6cde6;
	/* minmax(0, 1fr): de kolom nooit breder dan het vak. Zonder dit rekende het
	   raster met de natuurlijke breedte van het invulveld en staken veld en
	   knop op een smalle telefoon rechts buiten het vak. */
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 440px; margin: 0;
	padding: 18px 18px 16px; box-sizing: border-box;
	background: rgba(11, 7, 18, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 2px solid var(--rc-yellow); border-radius: 16px; box-shadow: 8px 8px 0 var(--rc-pink);
	/* Gecentreerd: het bolletje voor de titel laat de titeltekst anders verder
	   inspringen dan de uitleg eronder, en dan lijnt niets meer uit. */
	color: var(--rc-ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: center;
	scroll-margin: 110px 0;
}
.bvdc-room *, .bvdc-room *::before, .bvdc-room *::after { box-sizing: border-box; }

.bvdc-room .bvdc-room__title {
	display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0;
	font: 400 26px/1.05 'Anton', 'Arial Narrow', Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; color: var(--rc-ink);
}
/* Groen "live"-bolletje: het gaat om een feest dat nu bezig is. */
.bvdc-room .bvdc-room__title::before {
	content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
	background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); animation: bvdc-room-live 1.8s ease-in-out infinite;
}
@keyframes bvdc-room-live { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .08); } }

.bvdc-room .bvdc-room__text { display: block; margin: 0 auto; max-width: 34ch; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--rc-muted); text-wrap: balance; }

.bvdc-room .bvdc-room__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.bvdc-room .bvdc-room__input {
	flex: 1 1 130px; min-width: 0; width: 100%; height: 56px; margin: 0; padding: 0 12px;
	border: 2px solid var(--rc-dark); border-radius: 10px; background: #fff; color: var(--rc-dark);
	font: 400 28px/1 'Anton', 'Arial Narrow', Impact, sans-serif; letter-spacing: .22em; text-transform: uppercase; text-align: center;
	-webkit-appearance: none; appearance: none; box-shadow: none;
}
.bvdc-room .bvdc-room__input::placeholder { color: #a79fb8; font-size: 19px; letter-spacing: .14em; }
.bvdc-room .bvdc-room__input:focus { outline: none; border-color: var(--rc-dark); box-shadow: 0 0 0 3px var(--rc-yellow); }

.bvdc-room .bvdc-room__go {
	flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; height: 56px; margin: 0; padding: 0 20px;
	border: 2px solid var(--rc-dark); border-radius: 10px; background: var(--rc-yellow); color: var(--rc-dark);
	font: 400 19px/1 'Anton', 'Arial Narrow', Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	cursor: pointer; box-shadow: 4px 4px 0 var(--rc-pink); transition: transform .15s ease, box-shadow .15s ease;
}
.bvdc-room .bvdc-room__go:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rc-pink); color: var(--rc-dark); }
.bvdc-room .bvdc-room__go:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rc-pink); }
.bvdc-room .bvdc-room__go:focus-visible { outline: 3px solid var(--rc-ink); outline-offset: 3px; }
.bvdc-room .bvdc-room__go[disabled] { opacity: .65; cursor: progress; }

.bvdc-room .bvdc-room__msg { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.4; color: #ff9db3; }
.bvdc-room .bvdc-room__msg:empty { display: none; }
.bvdc-room.is-busy .bvdc-room__msg { color: var(--rc-muted); }
.bvdc-room.is-err .bvdc-room__input { border-color: var(--rc-pink); box-shadow: 0 0 0 3px rgba(255, 61, 110, .45); }

/* Even oplichten als de bezoeker via "Verzoekje doen" hierheen springt. */
.bvdc-room.is-flash { animation: bvdc-room-flash 1.1s ease-out; }
@keyframes bvdc-room-flash {
	0% { box-shadow: 8px 8px 0 var(--rc-pink), 0 0 0 0 rgba(255, 214, 51, .85); }
	100% { box-shadow: 8px 8px 0 var(--rc-pink), 0 0 0 20px rgba(255, 214, 51, 0); }
}

/* Roomcodes uit (body.bvdc-no-room): geen vak, dus ook geen knoppen of
   banden die ernaartoe springen. In Elementor alleen een melding (--off). */
.bvdc-no-room a[href$="#verzoekje"],
.bvdc-no-room .elementor-widget-button:has(a[href$="#verzoekje"]),
.bvdc-no-room .bvdc-nav__req,
.bvdc-no-room .bvdc-roomband { display: none !important; }
.bvdc-room.bvdc-room--off { border-style: dashed; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (max-width: 640px) {
	.bvdc-room { padding: 16px 14px 14px; box-shadow: 5px 5px 0 var(--rc-pink); }
	.bvdc-room .bvdc-room__title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
	.bvdc-room .bvdc-room__title::before, .bvdc-room.is-flash { animation: none; }
	.bvdc-room .bvdc-room__go { transition: none; }
}
