/* Tweek Inkoop – formulier */
.ti-form-wrap {
	--ti-accent: #1A56DB;
	--ti-tekst: #14181F;
	--ti-grijs: #5B6371;
	--ti-rand: #C9CED6;
	--ti-lijn: #E3E6EB;
	--ti-vlak: #F6F7F9;
	--ti-fout: #B42318;
	--ti-radius: 10px;
	color: var(--ti-tekst);
	max-width: 680px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
.ti-form-wrap *, .ti-form-wrap *::before, .ti-form-wrap *::after { box-sizing: border-box; }

.ti-form {
	background: #fff;
	border: 1px solid var(--ti-lijn);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 8px 24px rgba(20, 24, 31, .06);
}
@media (max-width: 560px) { .ti-form { padding: 20px 16px; border-radius: 12px; } }

.ti-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Voortgang */
.ti-progress { margin-bottom: 24px; }
.ti-progress-tekst { font-size: 14px; color: var(--ti-grijs); margin-bottom: 8px; }
.ti-progress-stap { font-weight: 600; color: var(--ti-tekst); }
.ti-progress-balk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ti-progress-balk span { height: 6px; border-radius: 3px; background: var(--ti-lijn); transition: background .2s; }
.ti-progress-balk span.is-actief { background: var(--ti-accent); }
.ti-form:not(.ti-js) .ti-progress { display: none; }

/* Stappen */
.ti-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.ti-js .ti-step { display: none; margin-bottom: 0; }
.ti-js .ti-step.is-actief { display: block; }
.ti-step-titel { font-size: 22px; font-weight: 700; padding: 0; margin: 0 0 16px; }
.ti-uitleg { margin: 0 0 16px; color: var(--ti-grijs); }

.ti-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.ti-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .ti-grid { grid-template-columns: minmax(0, 1fr); } .ti-half { grid-column: 1 / -1; } }

/* Velden */
.ti-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.ti-field > label, .ti-field > legend { font-size: 15px; font-weight: 600; padding: 0; }
.ti-req { color: var(--ti-fout); }
.ti-form input[type="text"], .ti-form input[type="email"], .ti-form input[type="tel"],
.ti-form select, .ti-form textarea {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--ti-rand);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	color: inherit;
	background: #fff;
}
.ti-form textarea { min-height: 90px; resize: vertical; }
.ti-form input:focus-visible, .ti-form select:focus-visible, .ti-form textarea:focus-visible {
	outline: 2px solid var(--ti-accent);
	outline-offset: 1px;
	border-color: var(--ti-accent);
}

/* Keuzeknoppen */
fieldset.ti-field { border: 0; padding: 0; }
.ti-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-chip { position: relative; cursor: pointer; }
.ti-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ti-chip span {
	display: inline-flex; align-items: center;
	min-height: 44px; padding: 0 16px;
	border: 1px solid var(--ti-rand); border-radius: 8px;
	background: #fff; font-size: 15px;
	transition: border-color .15s, background .15s;
}
.ti-chip:hover span { border-color: var(--ti-grijs); }
.ti-chip input:checked + span {
	border: 2px solid var(--ti-accent);
	padding: 0 15px;
	background: color-mix(in srgb, var(--ti-accent) 10%, #fff);
	font-weight: 600;
}
.ti-chip input:focus-visible + span { outline: 2px solid var(--ti-accent); outline-offset: 2px; }

/* Checkbox */
.ti-check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; cursor: pointer; }
.ti-check input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--ti-accent); }

/* Fouten */
.ti-err { margin: 0; color: var(--ti-fout); font-size: 14px; min-height: 0; }
.ti-err:empty { display: none; }
.ti-invalid input, .ti-invalid select, .ti-invalid textarea, .ti-invalid .ti-chip span { border-color: var(--ti-fout); }
.ti-alert { background: #FEF3F2; border: 1px solid #FECDCA; color: var(--ti-fout); border-radius: 8px; padding: 12px 14px; margin: 16px 0; }

/* Foto's */
.ti-fotos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .ti-fotos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ti-foto, .ti-foto-toevoegen {
	position: relative; aspect-ratio: 1; border-radius: var(--ti-radius); overflow: hidden;
}
.ti-foto { background: var(--ti-vlak); }
.ti-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-foto-bezig { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ti-grijs); }
.ti-foto-weg {
	position: absolute; top: 6px; right: 6px;
	width: 32px; height: 32px; border-radius: 50%; border: 0;
	background: rgba(20, 24, 31, .85); color: #fff; font-size: 18px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ti-foto-toevoegen {
	border: 2px dashed #9AA3B0; background: var(--ti-vlak); color: #3D4451;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; width: 100%;
}
.ti-foto-toevoegen:hover { border-color: var(--ti-accent); color: var(--ti-accent); }
.ti-fotos-teller { font-size: 14px; color: var(--ti-grijs); margin: 10px 0 0; }
.ti-fotos-input { display: inline-flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ti-js .ti-fotos-input { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ti-hints { background: var(--ti-vlak); border-radius: var(--ti-radius); padding: 14px 16px; margin: 16px 0 8px; font-size: 15px; }
.ti-hints ul { margin: 6px 0 0; padding-left: 20px; color: #3D4451; }
.ti-klein { font-size: 13px; color: var(--ti-grijs); margin: 8px 0; }

/* Navigatie */
.ti-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ti-lijn); padding-top: 20px; margin-top: 24px; flex-wrap: wrap; }
.ti-knop {
	min-height: 48px; padding: 0 24px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
	border: 1px solid var(--ti-rand); background: #fff; color: var(--ti-tekst);
}
.ti-knop-volgende, .ti-knop-verstuur { background: var(--ti-accent); border-color: var(--ti-accent); color: #fff; margin-left: auto; }
.ti-knop:disabled { opacity: .6; cursor: wait; }
.ti-js .ti-knop-verstuur { display: none; }
.ti-js.is-laatste .ti-knop-verstuur { display: inline-block; }
.ti-js.is-laatste .ti-knop-volgende { display: none; }
.ti-form:not(.ti-js) .ti-knop-volgende, .ti-form:not(.ti-js) .ti-knop-terug { display: none; }
@media (max-width: 560px) { .ti-knop-volgende, .ti-knop-verstuur { flex: 1 1 100%; } }

/* Upload-voortgang */
.ti-upload-voortgang { margin-top: 16px; }
.ti-upload-balk { height: 8px; background: var(--ti-lijn); border-radius: 4px; overflow: hidden; }
.ti-upload-balk span { display: block; height: 100%; width: 0; background: var(--ti-accent); transition: width .2s; }
.ti-upload-voortgang p { font-size: 14px; color: var(--ti-grijs); margin: 6px 0 0; }

/* Bedankt */
.ti-bedankt { background: #fff; border: 1px solid var(--ti-lijn); border-radius: 16px; padding: 32px; text-align: center; }
.ti-bedankt:focus { outline: none; }
.ti-bedankt-icoon {
	width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
	background: #ECFDF3; color: #067647; display: flex; align-items: center; justify-content: center;
}
.ti-bedankt h2 { margin: 0 0 8px; font-size: 24px; }
.ti-bedankt p { margin: 6px 0; color: #3D4451; }
