/*
 * Coolioo Account
 * Huisstijl gelijk aan het uitslagdashboard:
 * navy #0f2235, lime #ceff00, oranje #ff5722, Sora en DM Sans, 28px radius.
 */

.cacc {
	--navy: #0f2235;
	--navy2: #122040;
	--lime: #ceff00;
	--cyaan: #2bd1ff;
	--mint: #7ef3b2;
	--cta: #ff5722;
	--ink: #122040;
	--muted: rgba(18, 32, 64, .72);
	--line: rgba(18, 32, 64, .10);
	--r: 28px;
	--fh: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--fb: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	max-width: 1020px;
	margin: 0 auto;
	padding: 10px 0 40px;
	font-family: var(--fb);
	color: var(--ink);
}

.cacc * {
	box-sizing: border-box;
}

/* Balk bovenin als een beheerder meekijkt bij een klant. */
.cacc-preview {
	background: #122040;
	color: rgba(255, 255, 255, .88);
	border: 1px solid rgba(206, 255, 0, .35);
	border-radius: 16px;
	padding: 12px 18px;
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.55;
}

/* ---------------------------------------------------------------- Hero */

.cacc-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--r);
	background:
		linear-gradient(#0f2235, #0f2235) padding-box,
		linear-gradient(135deg, rgba(206, 255, 0, .55), rgba(43, 209, 255, .45) 55%, rgba(206, 255, 0, .25)) border-box;
	border: 1.5px solid transparent;
	box-shadow: 0 28px 70px rgba(15, 34, 53, .34);
	margin: 0 0 18px;
}

.cacc-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(150deg, rgba(22, 49, 79, 0) 0%, rgba(22, 49, 79, .9) 55%, rgba(15, 34, 53, 0) 100%);
	pointer-events: none;
}

.cacc-hero__glow {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(2px);
}

.cacc-hero__glow--a {
	width: 420px;
	height: 420px;
	top: -180px;
	right: -120px;
	background: radial-gradient(circle, rgba(206, 255, 0, .16), transparent 65%);
}

.cacc-hero__glow--b {
	width: 380px;
	height: 380px;
	bottom: -200px;
	left: -100px;
	background: radial-gradient(circle, rgba(43, 209, 255, .14), transparent 65%);
}

.cacc-hero__inner {
	position: relative;
	z-index: 1;
	padding: 34px 32px;
}

.cacc-hero__inner--split {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.cacc-hero__left {
	flex: 1 1 320px;
	min-width: 0;
}

.cacc-hero__right {
	flex: 0 0 auto;
	margin-left: auto;
}

.cacc-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border-radius: 999px;
	background: rgba(206, 255, 0, .14);
	border: 1px solid rgba(206, 255, 0, .40);
	color: var(--lime);
	font-family: var(--fh);
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

/* Actie nodig: oranje in plaats van lime, zodat het opvalt zonder te
   schreeuwen. Iemand die zijn kit nog moet activeren moet dat meteen zien. */
.cacc-badge--actie {
	background: rgba(255, 87, 34, .18);
	border-color: rgba(255, 87, 34, .55);
	color: #ffb59c;
}

.cacc-card--actie {
	border-color: rgba(255, 87, 34, .32);
	box-shadow: 0 18px 44px rgba(255, 87, 34, .14);
}

.cacc-hero__title {
	font-family: var(--fh);
	font-weight: 800;
	font-size: clamp(27px, 4vw, 40px);
	line-height: 1.08;
	letter-spacing: -.8px;
	color: #fff;
	margin: 0 0 10px;
	padding: 0;
}

.cacc-hero__sub {
	color: rgba(255, 255, 255, .78);
	font-size: 16px;
	line-height: 1.65;
	max-width: 560px;
	margin: 0 0 20px;
	padding: 0;
}

/* --------------------------------------------------------------- Score */

.cacc-score {
	text-align: center;
	width: 180px;
}

.cacc-score__ring {
	width: 156px;
	height: 156px;
	margin: 0 auto;
	border-radius: 50%;
	display: grid;
	place-items: center;
	/* De kleurstops lopen mee met de score, zodat de volgorde altijd
	   oplopend is en de ring bij elke waarde goed tekent. */
	background:
		conic-gradient(
			var(--cyaan) 0%,
			var(--mint) calc(var(--cacc-p, 0) * .5%),
			var(--lime) calc(var(--cacc-p, 0) * 1%),
			rgba(255, 255, 255, .10) calc(var(--cacc-p, 0) * 1%)
		);
	box-shadow: 0 0 40px rgba(126, 243, 178, .22);
}

.cacc-score__inner {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: #0f2235;
	display: grid;
	place-items: center;
	align-content: center;
}

.cacc-score__num {
	font-family: var(--fh);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
	color: #fff;
	letter-spacing: -1px;
}

.cacc-score__lbl {
	font-family: var(--fh);
	font-weight: 700;
	font-size: 11.5px;
	color: rgba(255, 255, 255, .72);
	margin-top: 5px;
	letter-spacing: .04em;
}

.cacc-score__sub {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .62);
}

.cacc-score__sub span {
	opacity: .75;
}

.cacc-scorepill {
	flex: 0 0 auto;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	align-content: center;
	color: #fff;
	background: conic-gradient(
		#2bd1ff 0%,
		#7ef3b2 calc(var(--cacc-p, 0) * .5%),
		#ceff00 calc(var(--cacc-p, 0) * 1%),
		rgba(18, 32, 64, .10) calc(var(--cacc-p, 0) * 1%)
	);
	position: relative;
}

.cacc-scorepill:before {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: #0f2235;
}

.cacc-scorepill span,
.cacc-scorepill small {
	position: relative;
	z-index: 1;
}

.cacc-scorepill span {
	font-family: var(--fh);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
}

.cacc-scorepill small {
	font-size: 10px;
	opacity: .7;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- Tabs */

.cacc-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 4px;
	margin: 0 0 18px;
	background: rgba(255, 255, 255, .70);
	border: 1px solid var(--line);
	border-radius: 999px;
	scrollbar-width: none;
}

.cacc-tabs::-webkit-scrollbar {
	display: none;
}

.cacc-tab {
	flex: 0 0 auto;
	padding: 11px 18px;
	border-radius: 999px;
	font-family: var(--fh);
	font-weight: 700;
	font-size: 14px;
	color: var(--muted) !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease;
}

.cacc-tab:hover {
	background: rgba(18, 32, 64, .05);
	color: var(--navy2) !important;
}

.cacc-tab.is-active {
	background: var(--navy);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(15, 34, 53, .22);
}

/* --------------------------------------------------------------- Cards */

.cacc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cacc-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.cacc-card {
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, .92);
	border-radius: var(--r);
	box-shadow: 0 18px 44px rgba(15, 34, 53, .10);
	padding: 26px 28px;
}

.cacc-card--wide {
	grid-column: 1 / -1;
}

.cacc-card--empty {
	text-align: center;
}

.cacc-card--empty .cacc-actions {
	justify-content: center;
}

.cacc-card--soft {
	background: rgba(244, 249, 255, .9);
	box-shadow: none;
}

.cacc-card--form {
	max-width: 620px;
}

.cacc-kicker {
	font-family: var(--fh);
	font-weight: 800;
	font-size: 11.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #005899;
	margin-bottom: 6px;
}

.cacc-kicker--lime {
	color: var(--lime);
}

/* Staat hier bewust na .cacc-kicker, anders wint de blauwe kleur op
   bronvolgorde en blijft het kopje van de actiekaart blauw. */
.cacc-kicker--actie {
	color: #d8451a;
}

.cacc-card__title {
	font-family: var(--fh);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -.4px;
	color: var(--navy2);
	margin: 0 0 10px;
	padding: 0;
	line-height: 1.2;
}

.cacc-card__title--licht {
	color: #fff;
}

.cacc-muted {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 16px;
}

.cacc-meta {
	color: var(--muted);
	font-size: 13.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 4px 0 12px;
}

.cacc-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(18, 32, 64, .30);
	display: inline-block;
}

.cacc-note {
	background: rgba(206, 255, 0, .14);
	border: 1px solid rgba(206, 255, 0, .45);
	border-radius: 18px;
	padding: 14px 18px;
	font-size: 14.5px;
	color: var(--navy2);
	line-height: 1.6;
}

.cacc-hint {
	margin-top: 16px;
	background: rgba(255, 87, 34, .07);
	border: 1px solid rgba(255, 87, 34, .25);
	border-radius: 18px;
	padding: 16px 18px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--navy2);
}

.cacc-hint .cacc-btn {
	margin-top: 12px;
}

.cacc-bericht {
	background: #f4f9ff;
	border: 1px solid rgba(0, 88, 153, .14);
	border-radius: 18px;
	padding: 16px 18px;
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.65;
}

.cacc-bericht__label {
	font-family: var(--fh);
	font-weight: 800;
	font-size: 11.5px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #005899;
	margin-bottom: 6px;
}

.cacc-bericht p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------- Chips */

.cacc-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-family: var(--fh);
	font-weight: 700;
	font-size: 12px;
	white-space: nowrap;
}

.cacc-chip--ok {
	background: rgba(22, 163, 74, .10);
	border: 1px solid rgba(22, 163, 74, .28);
	color: #16a34a;
}

.cacc-chip--warn {
	background: rgba(245, 158, 11, .12);
	border: 1px solid rgba(245, 158, 11, .32);
	color: #b35300;
}

.cacc-chip--neutraal {
	background: rgba(18, 32, 64, .06);
	border: 1px solid rgba(18, 32, 64, .12);
	color: var(--muted);
}

/* ------------------------------------------------------------ Timeline */

/* Het is een ol, want de volgorde betekent iets. De nummers willen we niet
   zien. list-style op de ol alleen is niet genoeg: veel thema's zetten een
   eigen regel op ol li, en die wint dan van de onze. Vandaar allebei, plus
   het ::marker-pseudo-element voor de zekerheid. */
.cacc-timeline,
.cacc-timeline li {
	list-style: none !important;
}

.cacc-timeline li::marker {
	content: "";
}

.cacc-timeline {
	margin: 18px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
	position: relative;
}

.cacc-timeline__step {
	position: relative;
	padding-top: 22px;
	text-align: center;
	font-size: 12.5px;
	color: var(--muted);
	min-width: 0;
}

.cacc-timeline__step:before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(18, 32, 64, .10);
}

.cacc-timeline__step:first-child:before {
	left: 50%;
	border-radius: 3px 0 0 3px;
}

.cacc-timeline__step:last-child:before {
	right: 50%;
	border-radius: 0 3px 3px 0;
}

.cacc-timeline__step.is-done:before {
	background: linear-gradient(90deg, #7ef3b2, #ceff00);
}

.cacc-timeline__dot {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid rgba(18, 32, 64, .16);
}

.cacc-timeline__step.is-done .cacc-timeline__dot {
	border-color: #7ef3b2;
	background: #ceff00;
}

.cacc-timeline__step.is-busy .cacc-timeline__dot {
	border-color: #2bd1ff;
	background: #fff;
	animation: caccpuls 1.6s ease-in-out infinite;
}

/* De stap waar de klant zelf aan zet is. Oranje, net als de knop die hij
   moet indrukken, zodat het meteen duidelijk is dat het bij hem ligt. */
.cacc-timeline__step.is-actie .cacc-timeline__dot {
	border-color: #ff5722;
	background: #fff;
	animation: caccpulsactie 1.6s ease-in-out infinite;
}

.cacc-timeline__step.is-actie .cacc-timeline__label,
.cacc-timeline__step.is-actie .cacc-timeline__datum {
	color: #d8451a;
}

.cacc-timeline__step.is-actie .cacc-timeline__datum {
	font-weight: 700;
	opacity: 1;
}

@keyframes caccpuls {
	0%, 100% { box-shadow: 0 0 0 0 rgba(43, 209, 255, .45); }
	50% { box-shadow: 0 0 0 8px rgba(43, 209, 255, 0); }
}

@keyframes caccpulsactie {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, .45); }
	50% { box-shadow: 0 0 0 8px rgba(255, 87, 34, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.cacc-timeline__step.is-busy .cacc-timeline__dot,
	.cacc-timeline__step.is-actie .cacc-timeline__dot {
		animation: none;
	}
}

.cacc-timeline__label {
	display: block;
	font-family: var(--fh);
	font-weight: 700;
	color: var(--navy2);
	font-size: 12.5px;
	line-height: 1.3;
}

.cacc-timeline__datum {
	display: block;
	font-size: 11.5px;
	opacity: .75;
	margin-top: 2px;
}

/* ------------------------------------------------------------- Knoppen */

.cacc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.cacc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border-radius: 999px;
	font-family: var(--fh);
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease;
}

.cacc-btn:hover {
	transform: translateY(-1px);
}

.cacc-btn--cta {
	background: var(--cta);
	color: #fff !important;
	box-shadow: 0 14px 30px rgba(255, 87, 34, .28);
}

.cacc-btn--ghost {
	background: rgba(18, 32, 64, .05);
	color: var(--navy2) !important;
	border: 1px solid var(--line);
}

.cacc-btn--lime {
	background: var(--lime);
	color: #0f2235 !important;
	box-shadow: 0 14px 30px rgba(206, 255, 0, .28);
}

.cacc-price {
	font-family: var(--fh);
	font-weight: 800;
	font-size: 19px;
	color: var(--navy2);
	margin-right: 4px;
}

.cacc-price del {
	opacity: .45;
	font-weight: 600;
	font-size: 15px;
}

/* ------------------------------------------------------------ Formulier */

.cacc-form {
	display: grid;
	gap: 14px;
	margin: 6px 0 0;
}

.cacc-form--grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cacc-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.cacc-field--wide {
	grid-column: 1 / -1;
}

.cacc-label {
	font-family: var(--fh);
	font-weight: 700;
	font-size: 13.5px;
	color: var(--navy2);
}

.cacc-input {
	width: 100%;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(18, 32, 64, .16);
	background: #fff;
	font-size: 16px;
	font-family: var(--fb);
	color: var(--ink);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.cacc-input:focus {
	outline: 0;
	border-color: #2bd1ff;
	box-shadow: 0 0 0 4px rgba(43, 209, 255, .16);
}

.cacc-help {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.5;
}

.cacc-inlineform {
	margin-top: 14px;
}

.cacc-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--muted);
	font-size: 13.5px;
	text-decoration: underline;
	cursor: pointer;
	font-family: var(--fb);
}

.cacc-linkbtn:hover {
	color: #b0183a;
}

/* -------------------------------------------------------------- Melding */

.cacc-msg {
	padding: 14px 18px;
	border-radius: 16px;
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.cacc-msg--success {
	background: rgba(22, 163, 74, .09);
	border: 1px solid rgba(22, 163, 74, .26);
	color: #0a7a0a;
}

.cacc-msg--error {
	background: rgba(220, 0, 60, .07);
	border: 1px solid rgba(220, 0, 60, .20);
	color: #b0183a;
}

/* ------------------------------------------------------------- Vertrouwen */

.cacc-trust {
	display: grid;
	gap: 10px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.cacc-trust__item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--muted);
}

.cacc-trust__item span {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(206, 255, 0, .35);
	color: var(--navy2);
	font-family: var(--fh);
	font-weight: 800;
	font-size: 12.5px;
}

/* --------------------------------------------------------------- Rijen */

.cacc-result__head,
.cacc-order__head,
.cacc-mon__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.cacc-order__items {
	font-size: 14.5px;
	color: var(--navy2);
	margin: 2px 0 8px;
	line-height: 1.5;
}

.cacc-mon--prio {
	border-color: rgba(255, 87, 34, .30);
	box-shadow: 0 18px 44px rgba(255, 87, 34, .12);
}

/* ----------------------------------------------------------- Coolioo 360 */

.cacc-360 {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #0f1d3a 0%, #122040 100%);
	border: 1px solid rgba(206, 255, 0, .22);
	box-shadow: 0 24px 56px rgba(15, 34, 53, .28);
}

.cacc-360:after {
	content: "";
	position: absolute;
	width: 340px;
	height: 340px;
	top: -160px;
	right: -120px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(206, 255, 0, .18), transparent 65%);
	pointer-events: none;
}

.cacc-360 > * {
	position: relative;
	z-index: 1;
}

.cacc-360__sub {
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 4px;
}

.cacc-360--groot {
	padding: 34px 32px;
}

/* -------------------------------------------------------------- Footer */

.cacc-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 13.5px;
	color: var(--muted);
}

.cacc-footer__sep {
	opacity: .4;
}

.cacc-link {
	color: #005899 !important;
	font-weight: 700;
	text-decoration: none !important;
}

.cacc-link:hover {
	text-decoration: underline !important;
}

/* --------------------------------------------------------------- Mobiel */

@media (max-width: 860px) {
	.cacc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cacc-hero__inner {
		padding: 28px 22px;
	}

	.cacc-hero__inner--split {
		flex-direction: column;
		align-items: flex-start;
	}

	.cacc-hero__right {
		margin: 4px auto 0;
	}

	.cacc-card {
		padding: 22px 20px;
	}

	.cacc-form--grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cacc-timeline {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.cacc-timeline__step {
		text-align: left;
		padding: 0 0 20px 30px;
	}

	.cacc-timeline__step:before {
		top: 8px;
		bottom: -8px;
		left: 7px;
		right: auto;
		width: 3px;
		height: auto;
	}

	.cacc-timeline__step:first-child:before,
	.cacc-timeline__step:last-child:before {
		left: 7px;
		right: auto;
	}

	.cacc-timeline__step:last-child:before {
		display: none;
	}

	.cacc-timeline__dot {
		left: 0;
		transform: none;
		top: 0;
	}

	.cacc-timeline__datum {
		display: inline;
		margin-left: 8px;
	}

	.cacc-btn {
		width: 100%;
	}

	.cacc-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cacc-price {
		text-align: center;
	}
}
