/* ==========================================================================
   TTZ Inschrijving – front-end stijlen
   ========================================================================== */

/* Honeypot veld: onzichtbaar voor mensen, maar NIET display:none
   (display:none wordt door bots herkend als honeypot).
   Positie absoluut buiten het scherm geplaatst.               */
.ttz-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Wrapper
   -------------------------------------------------------------------------- */
#ttz-inschrijfform {
	max-width: 860px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Sectie-velden: flex-raster voor 50%/100% breedte
   -------------------------------------------------------------------------- */
.ttz-section-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 8px;
}

.ttz-field {
	box-sizing: border-box;
	min-width: 0; /* voorkomt overflow in flex-context */
}

.ttz-field-100 {
	width: 100%;
}

.ttz-field-50 {
	width: calc( 50% - 10px ); /* helft minus de helft van de gap */
}

/* --------------------------------------------------------------------------
   Formulier elementen
   -------------------------------------------------------------------------- */
.ttz-field label,
#ttz-form > label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Checkbox- en radio-labels in fieldset: niet block */
#ttz-form fieldset label {
	display: inline;
	font-weight: normal;
}

.ttz-field input[type="text"],
.ttz-field input[type="email"],
.ttz-field input[type="tel"],
.ttz-field input[type="number"],
.ttz-field select,
.ttz-field textarea,
#ttz-form input[type="text"],
#ttz-form input[type="email"],
#ttz-form input[type="tel"],
#ttz-form input[type="number"],
#ttz-form select,
#ttz-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 9px 12px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	background-color: #ffffff;
	transition: border-color 0.15s ease;
}

#ttz-form input:focus,
#ttz-form select:focus,
#ttz-form textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba( 0, 115, 170, 0.2 );
}

#ttz-form select {
	background-color: #e8e8e8;
}

#ttz-form select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#ttz-form textarea {
	resize: vertical;
	min-height: 80px;
}

#ttz-form fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

#ttz-form fieldset legend {
	font-weight: 600;
	margin-bottom: 5px;
}

#ttz-form fieldset label {
	font-weight: normal;
	margin-right: 20px;
}

#ttz-form input[type="radio"],
#ttz-form input[type="checkbox"] {
	margin-right: 5px;
	vertical-align: middle;
}

/* Verplicht-asterisk */
.ttz-required {
	color: #dc3232;
	margin-left: 2px;
}

/* --------------------------------------------------------------------------
   Info-blok (boven formulier of boven sectie)
   -------------------------------------------------------------------------- */
.ttz-info {
	background: #f0f4f8;
	border-left: 4px solid #0073aa;
	padding: 10px 14px;
	margin-bottom: 14px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Verzendknop
   -------------------------------------------------------------------------- */
#ttz-submit {
	display: inline-block;
	background-color: #0073aa;
	color: #ffffff;
	border: none;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	margin-top: 12px;
	transition: background-color 0.15s ease;
}

#ttz-submit:hover {
	background-color: #005a87;
}

#ttz-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Meldingen
   -------------------------------------------------------------------------- */
.ttz-success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 16px 20px;
	border-radius: 4px;
	margin: 20px 0;
	font-size: 15px;
}

.ttz-error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 14px 18px;
	border-radius: 4px;
	margin: 12px 0;
	font-size: 14px;
	line-height: 1.7;
}

.ttz-message {
	text-align: center;
	padding: 30px 20px;
}

.ttz-message h4 {
	margin-bottom: 6px;
}

/* Knop: Nog een inschrijving */
.ttz-btn-herlaad {
	display: inline-block;
	background-color: #0073aa;
	color: #ffffff;
	border: none;
	padding: 11px 28px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	margin-top: 12px;
	transition: background-color 0.15s ease;
}

.ttz-btn-herlaad:hover {
	background-color: #005a87;
}

/* --------------------------------------------------------------------------
   Deelnemerslijst
   -------------------------------------------------------------------------- */
.ttz-deelnemerslijst {
	max-width: 960px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.5;
}

/* Dag-heading: verticale accentbalk links */
.ttz-dl-dag {
	font-size: 1.3em;
	font-weight: 700;
	color: #1a1a1a;
	margin: 44px 0 4px;
	padding: 4px 0 4px 14px;
	border-left: 4px solid #0073aa;
}

.ttz-deelnemerslijst .ttz-dl-dag:first-child {
	margin-top: 0;
}

/* Klassen/Reeks-heading */
.ttz-dl-kr {
	font-size: 1em;
	font-weight: 600;
	color: #444444;
	margin: 24px 0 0;
	padding-bottom: 7px;
	border-bottom: 1px solid #d4d4d4;
}

/* Tabel-wrapper: zorgt voor horizontaal scrollen op smalle schermen */
.ttz-dl-tabel-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 2px;
	margin-bottom: 12px;
	border-radius: 6px;
	border: 1px solid #e4e4e4;
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.06 );
}

/* Tabel */
.ttz-dl-tabel {
	width: 100%;
	min-width: 320px;
	border-collapse: collapse;
	font-size: 14px;
	background: #ffffff;
}

/* Header */
.ttz-dl-tabel thead tr {
	background-color: #2c3e50;
}

.ttz-dl-tabel thead th {
	padding: 11px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #ffffff;
	white-space: nowrap;
}

/* Volgnummer-kolom */
.ttz-dl-tabel thead th:first-child,
.ttz-dl-tabel tbody td:first-child {
	width: 44px;
	text-align: center;
	color: #aaaaaa;
	font-size: 12px;
	padding-left: 12px;
	padding-right: 12px;
}

.ttz-dl-tabel thead th:first-child {
	color: #8a9bb0;
}

/* Rijen */
.ttz-dl-tabel tbody tr {
	border-bottom: 1px solid #ebebeb;
	transition: background-color 0.1s ease;
}

.ttz-dl-tabel tbody tr:last-child {
	border-bottom: none;
}

/* Alternerende rij-kleuren: oneven = wit, even = lichtgrijs */
.ttz-dl-tabel tbody tr:nth-child( odd ) {
	background-color: #ffffff;
}

.ttz-dl-tabel tbody tr:nth-child( even ) {
	background-color: #f5f5f5;
}

.ttz-dl-tabel tbody tr:hover {
	background-color: #edf5fb;
}

.ttz-dl-tabel tbody td {
	padding: 10px 16px;
	color: #333333;
	vertical-align: middle;
}

/* Verborgen-melding */
.ttz-dl-verborgen {
	padding: 32px 20px;
	text-align: center;
	font-size: 15px;
	color: #555555;
}

.ttz-dl-leeg {
	color: #999999;
	font-style: italic;
	padding: 16px 0;
}

/* Mobiel: tabel scrollt horizontaal, nummers blijven klein */
@media ( max-width: 600px ) {
	.ttz-dl-dag {
		font-size: 1.1em;
	}

	.ttz-dl-tabel thead th,
	.ttz-dl-tabel tbody td {
		padding: 9px 12px;
		font-size: 13px;
	}
}

/* --------------------------------------------------------------------------
   Responsive — mobiel: alle velden op volle breedte
   -------------------------------------------------------------------------- */
@media ( max-width: 600px ) {
	.ttz-field-50 {
		width: 100%;
	}

	#ttz-submit,
	.ttz-btn-herlaad {
		width: 100%;
		text-align: center;
	}
}
