/* Grid */
.hv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 24px;
	padding-bottom: var(--wp--custom--ast-default-block-bottom-padding);
}
@media (min-width: 768px) {
	.hv-grid { margin-top: 40px; }
}
.hv-card {
	display: flex; flex-direction: column;
	border-radius: 12px; overflow: hidden;
	border: 1px solid #e5e7eb;
	text-decoration: none; color: inherit;
	transition: box-shadow .2s, transform .2s;
	background: #fff;
}
.hv-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.hv-card--vol { opacity: .7; }

.hv-card__img-wrap {
	position: relative; width: 100%; padding-top: 60%;
	background: #f3f4f6; overflow: hidden;
}
.hv-card__img-wrap--leeg { background: #e5e7eb; }
.hv-card__img-wrap img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover;
}
.hv-card__datum-badge {
	position: absolute; top: 12px; left: 12px;
	background: #fff; border-radius: 8px;
	padding: 6px 10px; text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.15); min-width: 48px;
}
.hv-badge-dag { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; color: #111827; }
.hv-badge-mnd { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.hv-card__vol-badge {
	position: absolute; top: 12px; right: 12px;
	background: rgba(0,0,0,.55); color: #fff;
	font-size: 11px; font-weight: 700; text-transform: uppercase;
	padding: 4px 10px; border-radius: 20px; letter-spacing: .05em;
}
.hv-card__body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hv-card__bijna-vol {
	margin-top: auto;
	display: inline-block; align-self: flex-start;
	background: #fef9ec; border: 1px solid #fde68a;
	border-radius: 6px; padding: 4px 10px;
	font-size: 12px; font-weight: 600; color: #92400e;
}
.hv-card__bijna-vol--vol {
	background: #fef2f2; border-color: #fca5a5; color: #dc2626;
}
.hv-card__titel { font-size: 16px !important; font-weight: 700 !important; margin: 0 0 8px !important; padding: 0 !important; color: #111827 !important; line-height: 1.4 !important; }
.hv-card__meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6b7280; }

/* Detail */
.hv-detail {
	padding-top: var(--wp--custom--ast-default-block-top-padding);
	padding-bottom: var(--wp--custom--ast-default-block-bottom-padding);
}
.hv-terug {
	display: inline-block; margin-bottom: 20px;
	font-size: 13px; color: #6b7280; text-decoration: none;
}
.hv-terug:hover { color: #111827; }
.hv-detail__titel { font-size: 26px; font-weight: 700; margin-bottom: 24px; color: #111827; }
.hv-detail__layout { display: flex; gap: 40px; flex-wrap: wrap; }
.hv-detail__links { flex: 1; min-width: 280px; }
.hv-detail__rechts { flex: 1; min-width: 280px; }
.hv-detail__rechts img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 400px; }
.hv-detail__info-blok { margin-bottom: 18px; }
.hv-detail__label { font-weight: 700; margin-bottom: 4px; font-size: 14px; color: #111827; }
.hv-detail__form-titel { font-size: 20px; font-weight: 700; margin: 24px 0 16px; color: #111827; }

/* Bijna vol melding */
.hv-bijna-vol {
	margin: 0 0 16px;
	padding: 10px 16px;
	background: #fef9ec; border: 1px solid #fde68a;
	border-radius: 8px; color: #92400e;
	font-size: 13px; font-weight: 600;
}

/* Formulier */
.hv-form { display: flex !important; flex-direction: column !important; gap: 16px !important; max-width: 420px; margin: 0 !important; padding: 0 !important; }
.hv-form__field { display: flex !important; flex-direction: column !important; gap: 4px !important; margin: 0 !important; padding: 0 !important; }
.workshopbeheer-mail-consent { display:flex !important; align-items:flex-start; gap:8px; font-size:13px; line-height:1.5; color:#374151; }
.workshopbeheer-mail-consent input { width:16px !important; height:16px !important; flex:none; margin:2px 0 0 !important; accent-color:#059669; }
.workshopbeheer-consent-note { font-size:13px; color:#4b5563; line-height:1.5; }
.hv-form .hv-custom-select { margin: 0 !important; padding: 0 !important; }
.hv-form input[type="hidden"] { display: none !important; }
/* Neutraliseer <br> en lege <p> die wpautop of het thema injecteert */
.hv-form br, .hv-form__field br { display: none !important; }
.hv-form > p:empty, .hv-form__field > p:empty { display: none !important; margin: 0 !important; padding: 0 !important; }
.hv-form .hv-form__label { display: block !important; font-size: 13px !important; font-weight: 600 !important; margin: 0 0 4px 0 !important; padding: 0 !important; color: #374151 !important; line-height: 1.4 !important; }
.hv-form__field input,
.hv-form__field select,
.hv-form__field textarea {
	width: 100% !important; padding: 10px 14px !important;
	border: 1px solid #d1d5db !important; border-radius: 8px !important;
	font-size: 14px !important; font-family: inherit !important;
	transition: border-color .15s;
	box-sizing: border-box !important;
	margin: 0 !important;
	line-height: normal !important;
}
.hv-form__field input:focus,
.hv-form__field select:focus,
.hv-form__field textarea:focus { outline: none !important; border-color: #059669 !important; box-shadow: none !important; }
@keyframes hv-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
.hv-spinner {
	display: inline-block;
	width: 14px; height: 14px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hv-spin 0.7s linear infinite;
	vertical-align: middle;
	margin-right: 4px;
}
.hv-form__btn {
	background: #059669; color: #fff;
	border: none; border-radius: 8px;
	padding: 12px 24px; font-size: 15px; font-weight: 400;
	cursor: pointer; transition: background .15s; align-self: flex-start;
}
.hv-form__btn:hover { background: #047857; }
.hv-form__btn--alt { background: #6b7280; }
.hv-form__btn--alt:hover { background: #4b5563; }
.hv-form__melding { font-size: 13px; min-height: 18px; }
.hv-form__melding--fout { color: #dc2626; }
.hv-form__succes { color: #059669; font-weight: 600; font-size: 15px; }

/* Wachtlijst melding */
.hv-wacht-melding {
	padding: 14px 18px;
	background: #fef3c7; border: 1px solid #fde68a;
	border-radius: 8px; color: #92400e; font-size: 14px; line-height: 1.5;
}

.hv-vol-melding {
	margin-top: 20px; padding: 14px 18px;
	background: #fef3c7; border: 1px solid #fde68a;
	border-radius: 8px; color: #92400e; font-weight: 500;
}
.hv-melding { color: #6b7280; font-size: 14px; }

/* Custom select */
.hv-custom-select { position: relative; }
.hv-select-trigger {
	width: 100%; padding: 10px 14px;
	border: 1px solid #d1d5db; border-radius: 8px;
	font-size: 14px; font-family: inherit;
	background: #fff; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center;
	box-sizing: border-box; user-select: none;
	transition: border-color .15s;
}
.hv-select-trigger:hover { border-color: #9ca3af; }
.hv-select-trigger.open { border-color: #059669; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hv-select-arrow { color: #6b7280; font-size: 12px; flex-shrink: 0; margin-left: 8px; transition: transform .15s; }
.hv-select-trigger.open .hv-select-arrow { transform: rotate(180deg); }
.hv-select-dropdown {
	display: none;
	position: absolute; top: 100%; left: 0; right: 0; z-index: 500;
	background: #fff; border: 1px solid #059669; border-top: none;
	border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
	max-height: 296px; overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.hv-select-dropdown.open { display: block; }
.hv-select-option {
	padding: 9px 14px; font-size: 14px; cursor: pointer;
	transition: background .1s;
}
.hv-select-option:hover { background: #f0fdf4; }
.hv-select-option.selected { background: #ecfdf5; font-weight: 600; color: #047857; }

@media (max-width: 600px) {
	.hv-grid { grid-template-columns: 1fr; }
	.hv-detail__layout { flex-direction: column-reverse; }
}

/* Cursusdata box */
.hv-cursusdata-box { background: #fff; border-radius: 12px; padding: 28px 32px; display: inline-block; }
@media (min-width: 768px) { .hv-cursusdata-box { float: right; margin-left: 30px; } }
.hv-cursusdata-box__titel { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 20px; white-space: nowrap; }
.hv-cursusdata-lijst { list-style: none; margin: 0 !important; padding: 0 !important; }
.hv-cursusdata-item { margin-bottom: 14px; line-height: 1.4; }
.hv-cursusdata-item strong { display: block; font-size: 15px; font-weight: 700; color: #111827; text-decoration: underline; }
.hv-cursusdata-item--vol strong { color: #6b7280; }
.hv-cursusdata-item a { display: block; font-size: 13px; color: #9ca3af; text-decoration: none; padding: 0; margin: 0; }
.hv-cursusdata-item a:hover { color: #047857; }
.hv-cursusdata-box__hoogte { display: inline-block; margin-top: 8px; font-size: 13px; color: #059669; text-decoration: underline; white-space: nowrap; }
.hv-cursusdata-box__hoogte:hover { color: #047857; }

/* Interesse formulier */
.hv-interesse-wrap {
	padding-bottom: var(--wp--custom--ast-default-block-bottom-padding);
}
.hv-interesse-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.hv-interesse-form input[type="text"],
.hv-interesse-form input[type="email"],
.hv-interesse-form textarea {
	width: 100%; padding: 11px 14px;
	border: 1px solid #d1d5db; border-radius: 8px;
	font-size: 14px; font-family: inherit;
	transition: border-color .15s; box-sizing: border-box;
}
.hv-interesse-form input:focus,
.hv-interesse-form textarea:focus { outline: none; border-color: #059669; }
.hv-interesse-form textarea { resize: vertical; min-height: 90px; }
.hv-interesse-types {
	display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.hv-interesse-types label {
	display: flex; align-items: center; gap: 7px;
	font-size: 14px; font-weight: 400; cursor: pointer;
	background: #f9fafb; border: 1px solid #e5e7eb;
	border-radius: 8px; padding: 8px 14px;
	transition: border-color .15s, background .15s;
}
.hv-interesse-types label:hover { border-color: #059669; background: #f0fdf4; }
.hv-interesse-types input[type="checkbox"] { accent-color: #059669; width: 16px; height: 16px; }
.hv-interesse-types label:has(input:checked) { border-color: #059669; background: #ecfdf5; font-weight: 600; color: #047857; }

.workshopbeheer-optional { font-weight:400; color:#6b7280; }
.workshopbeheer-wait-message { margin-bottom:12px; }
.workshopbeheer-wait-message[hidden] { display:none; }
.workshopbeheer-wait-title { margin-top:20px; }
.workshopbeheer-wait-form { margin-top:8px; }
.workshopbeheer-interest-title { font-size:22px; font-weight:700; color:#111827; margin-bottom:6px; }
.workshopbeheer-interest-intro { color:#059669; font-size:14px; margin-bottom:20px; }
.workshopbeheer-interest-label { font-size:13px; font-weight:600; color:#374151; margin-bottom:8px; }
.workshopbeheer-interest-message { font-size:13px; min-height:18px; }
.workshopbeheer-live-status { font-size:14px; line-height:1.5; margin:12px 0; }
.workshopbeheer-live--detail > .workshopbeheer-live-status { max-width:420px; margin:24px 0 0; overflow-wrap:anywhere; }
.workshopbeheer-live-status[hidden] { display:none; }
