/*
 * Advies form ([ww_advies_form]): service cards.
 * Fields, sections, messages and buttons come from crm-lead-form.css.
 */

.ww-crm-advies-form__title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--ww-lead-text, #1f2933);
}

/*
 * Service cards: radio, name and duration on the left, the price large on the right.
 * Three side by side on desktop, stacked on tablet and phone; the card layout is the same everywhere.
 */
.ww-crm-advies-form__services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.ww-crm-advies-form__service {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.875rem;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 1.25rem 1.375rem;
	border: 1px solid var(--ww-lead-input-border, #e7e7e7);
	border-radius: 14px;
	background: var(--ww-lead-input-bg, #fff);
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.ww-crm-advies-form__service:hover {
	border-color: var(--ww-lead-text, #1f2933);
}

.ww-crm-advies-form__service:has(input:checked) {
	border-color: var(--ww-lead-red, #c8102e);
	box-shadow: inset 0 0 0 1px var(--ww-lead-red, #c8102e);
}

.ww-crm-advies-form__service:has(input:focus-visible) {
	outline: 2px solid var(--ww-lead-red, #c8102e);
	outline-offset: 3px;
}

/* Visually hidden but still focusable and announced; the whole card is the label. */
.ww-crm-advies-form__service-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

/* Radio: a ring that fills with a dot when chosen. */
.ww-crm-advies-form__service-radio {
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	border: 1.5px solid #c4c8cf;
	border-radius: 50%;
	background: #fff;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.ww-crm-advies-form__service:has(input:checked) .ww-crm-advies-form__service-radio {
	border: 6px solid var(--ww-lead-red, #c8102e);
}

.ww-crm-advies-form__service-body {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.ww-crm-advies-form__service-name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ww-lead-text, #1f2933);
	overflow-wrap: break-word;
	hyphens: auto;
}

.ww-crm-advies-form__service-duration {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #4b5563;
}

.ww-crm-advies-form__service-duration svg {
	flex-shrink: 0;
}

.ww-crm-advies-form__service-price {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.125rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--ww-lead-text, #1f2933);
	white-space: nowrap;
	transition: color 0.15s ease;
}

/* Smaller € next to the amount. */
.ww-crm-advies-form__service-currency {
	margin-top: 0.15em;
	font-size: 0.55em;
	font-weight: 600;
	letter-spacing: 0;
}

.ww-crm-advies-form__service-price--free {
	font-size: 1.125rem;
	letter-spacing: 0;
	color: #047857;
}

.ww-crm-advies-form__service:has(input:checked) .ww-crm-advies-form__service-price:not(.ww-crm-advies-form__service-price--free) {
	color: var(--ww-lead-red, #c8102e);
}

/* Messages and buttons toggled by JS use [hidden]; the button display rules would otherwise override it. */
.ww-crm-advies-form [hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.ww-crm-advies-form__services {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}

@media (max-width: 767px) {
	.ww-crm-advies-form__service {
		gap: 0.75rem;
		padding: 1rem;
	}

	.ww-crm-advies-form__service-price {
		font-size: 1.5rem;
	}

	.ww-crm-advies-form .ww-lead-form__submit {
		width: 100%;
		min-width: 0;
	}
}
