/* Autoschadecalculatie  frontend wizard */
:root {
	--asc-color-primary: #99cc66;
	--asc-color-primary-hover: #88bb55;
	--asc-color-accent: #99cc66;
	--asc-color-accent-hover: #88bb55;
	--asc-color-accent-dark: #6fa844;
	--asc-color-bg: #ffffff;
	--asc-color-surface: #f7f9fc;
	--asc-color-surface-2: #eef2f7;
	--asc-color-border: #d8dee8;
	--asc-color-text: #1a1f26;
	--asc-color-text-muted: #5c6b7f;
	--asc-color-text-inverse: #ffffff;
	--asc-color-success: #99cc66;
	--asc-color-error: #c0392b;
	--asc-color-info: #1a73d6;
	--asc-radius-sm: 6px;
	--asc-radius-md: 12px;
	--asc-radius-lg: 18px;
	--asc-shadow-sm: 0 1px 2px rgba(20,30,40,.06);
	--asc-shadow-md: 0 6px 18px rgba(20,30,40,.10);
	--asc-shadow-lg: 0 16px 40px rgba(20,30,40,.16);
	--asc-font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
	--asc-container: 720px;
	--asc-gap: 16px;
	--asc-tap: 48px;
}

.asc-wizard {
	font-family: var(--asc-font-sans);
	color: var(--asc-color-text);
	max-width: var(--asc-container);
	margin: 0 auto;
	padding: 16px;
	line-height: 1.5;
}

.asc-wizard *,
.asc-wizard *::before,
.asc-wizard *::after { box-sizing: border-box; }

.asc-wizard__header { margin-bottom: 24px; }
.asc-wizard .asc-wizard__title,
.asc-wizard h2.asc-wizard__title {
	font-size: 40px !important;
	line-height: 1.15 !important;
	font-weight: 800 !important;
	margin: 0 0 8px !important;
	color: var(--asc-color-primary) !important;
	letter-spacing: -0.02em !important;
}
.asc-wizard__subtitle {
	color: var(--asc-color-text-muted);
	margin: 0 0 16px;
	font-size: 15px;
}

/* Stepper */
.asc-stepper {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 0;
	margin: 20px 0 0;
}
.asc-stepper__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--asc-color-text-muted);
	position: relative;
}
.asc-stepper .asc-stepper__num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--asc-color-surface-2);
	color: var(--asc-color-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	border: 2px solid var(--asc-color-border);
	transition: background .15s, color .15s, border-color .15s;
}
.asc-stepper .asc-stepper__item.is-active .asc-stepper__num {
	background: var(--asc-color-accent);
	color: var(--asc-color-text-inverse);
	border-color: var(--asc-color-accent);
	box-shadow: 0 0 0 4px rgba(153, 204, 102, 0.18);
}
.asc-stepper .asc-stepper__item.is-done .asc-stepper__num {
	background: var(--asc-color-accent-dark);
	color: var(--asc-color-text-inverse);
	border-color: var(--asc-color-accent-dark);
}
.asc-stepper__label { text-align: center; }

/* Step */
.asc-step { padding: 16px 0; }
.asc-step__title {
	font-size: 22px;
	margin: 0 0 8px;
	color: var(--asc-color-primary);
	font-weight: 700;
}
.asc-step__lede { color: var(--asc-color-text-muted); margin: 0 0 16px; }

/* Photo grid */
.asc-wizard .asc-photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.asc-wizard .asc-photo-grid--extra {
	margin-top: 12px;
}
.asc-wizard .asc-photo-slot {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--asc-color-surface);
	border: 2px dashed var(--asc-color-border);
	border-radius: var(--asc-radius-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	overflow: hidden;
	text-align: center;
	padding: 8px;
	transition: border-color .15s, background .15s;
}
.asc-wizard .asc-photo-slot:hover { border-color: var(--asc-color-primary); }
.asc-photo-slot__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.asc-photo-slot__icon {
	color: var(--asc-color-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
}
.asc-photo-slot__icon svg { display: block; }
.asc-photo-slot__label { font-size: 12px; color: var(--asc-color-text-muted); padding: 0 8px; }
.asc-photo-slot__preview {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	display: none;
}
.asc-photo-slot__check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--asc-color-success);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.asc-photo-slot__check svg { display: block; }
.asc-photo-slot__remove {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(20,30,40,.7);
	color: #fff;
	border: 0;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: none;
	padding: 0;
}
.asc-wizard .asc-photo-slot.is-filled {
	border-style: solid;
	border-color: var(--asc-color-success);
}
.asc-photo-slot.is-filled .asc-photo-slot__preview { display: block; }
.asc-photo-slot.is-filled .asc-photo-slot__icon,
.asc-photo-slot.is-filled .asc-photo-slot__label { display: none; }
.asc-photo-slot.is-filled .asc-photo-slot__check { display: flex; }
.asc-photo-slot.is-filled .asc-photo-slot__remove { display: block; }
.asc-photo-slot.has-error { border-color: var(--asc-color-error); }

/* Honeypot  visueel verborgen */
.asc-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Extra-fotos sectie als koptekst */
.asc-extra { margin-top: 24px; }
.asc-extra__title {
	font-size: 16px;
	color: var(--asc-color-primary);
	font-weight: 700;
	margin: 0 0 10px;
}
.asc-wizard .asc-photo-slot--add {
	background: var(--asc-color-surface-2);
	border-style: dashed;
}
.asc-photo-slot--add .asc-photo-slot__icon { font-size: 28px; }

/* Form fields */
.asc-fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.asc-fieldset legend {
	font-weight: 700;
	color: var(--asc-color-primary);
	padding: 0 0 8px;
	font-size: 15px;
}
.asc-field { margin-bottom: 12px; }
.asc-field label {
	display: block;
	font-size: 13px;
	color: var(--asc-color-text);
	margin-bottom: 4px;
	font-weight: 500;
}
.asc-wizard .asc-field input,
.asc-wizard .asc-field textarea,
.asc-wizard .asc-field select {
	width: 100%;
	min-height: var(--asc-tap);
	padding: 12px 14px;
	border: 1px solid var(--asc-color-border);
	border-radius: var(--asc-radius-sm);
	font-size: 16px;
	font-family: inherit;
	background: var(--asc-color-bg);
	color: var(--asc-color-text);
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.asc-wizard .asc-field input:focus,
.asc-wizard .asc-field textarea:focus,
.asc-wizard .asc-field select:focus {
	outline: none;
	border-color: var(--asc-color-accent);
	box-shadow: 0 0 0 3px rgba(153, 204, 102, 0.25);
}
.asc-field textarea { resize: vertical; min-height: 88px; }
.asc-field.has-error input,
.asc-field.has-error textarea {
	border-color: var(--asc-color-error);
	background: #fff7f6;
}
.asc-field__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--asc-color-text-muted); }
.asc-field__error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--asc-color-error);
	font-weight: 500;
}
.asc-field--plate input {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	font-feature-settings: "tnum";
}

.asc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Buttons  hoge specificiteit zodat Uncode-overrides verliezen */
.asc-wizard .asc-actions .asc-btn,
.asc-wizard button.asc-btn,
.asc-wizard a.asc-btn,
.asc-wizard input[type="submit"].asc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	height: auto;
	padding: 12px 24px;
	border-radius: var(--asc-radius-md);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s, color .15s, border-color .15s, transform .05s, box-shadow .15s;
	font-family: inherit;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
}
.asc-wizard .asc-btn:active { transform: translateY(1px); }
.asc-wizard .asc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(153, 204, 102, 0.45);
}

/* Primary  groene CTA */
.asc-wizard .asc-btn--primary,
.asc-wizard button.asc-btn--primary,
.asc-wizard input[type="submit"].asc-btn--primary {
	background: var(--asc-color-accent);
	color: var(--asc-color-text-inverse);
	border-color: var(--asc-color-accent);
}
.asc-wizard .asc-btn--primary:not(:disabled):hover,
.asc-wizard button.asc-btn--primary:not(:disabled):hover {
	background: var(--asc-color-accent-hover);
	border-color: var(--asc-color-accent-hover);
	color: var(--asc-color-text-inverse);
}

/* Disabled state  lichte versie van het accentgroen (#99cc66) */
.asc-wizard .asc-btn:disabled,
.asc-wizard button.asc-btn:disabled,
.asc-wizard input[type="submit"].asc-btn:disabled {
	background: #c5e2a9;
	color: #ffffff;
	border-color: #c5e2a9;
	cursor: not-allowed;
	opacity: 1;
}

/* Ghost (Terug)  1px groene rand */
.asc-wizard .asc-btn--ghost,
.asc-wizard button.asc-btn--ghost {
	background: transparent;
	border: 1px solid var(--asc-color-accent);
	color: var(--asc-color-accent-dark);
}
.asc-wizard .asc-btn--ghost:not(:disabled):hover,
.asc-wizard button.asc-btn--ghost:not(:disabled):hover {
	background: rgba(153, 204, 102, 0.1);
	color: var(--asc-color-accent-dark);
	border-color: var(--asc-color-accent);
}

/* Actions */
.asc-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}
.asc-actions--split > * { flex: 1; }
.asc-actions__hint { font-size: 12px; color: var(--asc-color-text-muted); font-weight: 500; }

/* Review */
.asc-review { display: grid; gap: 12px; }
.asc-review__block {
	background: var(--asc-color-surface);
	border-radius: var(--asc-radius-md);
	padding: 14px 16px;
}
.asc-review__block h4 {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--asc-color-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
}
.asc-review__block p { margin: 0; color: var(--asc-color-text); }
.asc-link {
	background: transparent;
	border: 0;
	color: var(--asc-color-accent-dark);
	cursor: pointer;
	font-size: 12px;
	text-decoration: underline;
	font-weight: 600;
	padding: 0;
}
.asc-review__thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.asc-review__thumbs img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: var(--asc-radius-sm);
	border: 1px solid var(--asc-color-border);
}

.asc-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 20px 0;
	font-size: 14px;
	cursor: pointer;
}
.asc-consent input {
	margin-top: 4px;
	transform: scale(1.2);
	accent-color: var(--asc-color-accent);
}

.asc-error {
	color: var(--asc-color-error);
	background: #fde8e6;
	border-left: 4px solid var(--asc-color-error);
	border-radius: var(--asc-radius-sm);
	padding: 12px 14px;
	margin-top: 12px;
	font-weight: 500;
}

.asc-submit-status {
	margin: 14px 0 0;
	text-align: center;
	color: var(--asc-color-text-muted);
	font-size: 14px;
	line-height: 1.4;
}
.asc-submit-status::before {
	content: "";
	display: inline-block;
	width: 14px; height: 14px;
	margin-right: 8px;
	border: 2px solid var(--asc-color-accent);
	border-top-color: transparent;
	border-radius: 50%;
	vertical-align: -2px;
	animation: asc-spin .8s linear infinite;
}
@keyframes asc-spin {
	to { transform: rotate(360deg); }
}

/* Confirmation */
.asc-confirm { text-align: center; padding: 40px 16px; }
.asc-confirm__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--asc-color-success);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	box-shadow: var(--asc-shadow-md);
}
.asc-confirm__icon svg {
	display: block;
	width: 38px;
	height: 38px;
}
.asc-confirm__title {
	font-size: 24px;
	color: var(--asc-color-primary);
	margin: 0 0 8px;
	font-weight: 800;
}
.asc-confirm__number {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--asc-color-accent-dark);
	margin: 12px 0;
	font-feature-settings: "tnum";
}
.asc-confirm__text { color: var(--asc-color-text-muted); }

/* Desktop tweaks */
@media (min-width: 600px) {
	.asc-wizard .asc-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobiel: breek uit themacontainer en gebruik volle breedte met 16px marge */
@media (max-width: 767px) {
	.asc-wizard {
		max-width: none;
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 16px;
		box-sizing: border-box;
	}
}
