/* Dansk Efterisolering – Prisberegner */

.def-pb {
	--def-dark: #003D11;
	--def-brand: #35864A;
	--def-accent: #61CE70;
	--def-cream: #F6F6F6;
	--def-cta: #35864A;
	--def-radius: 14px;
	--def-ink: #1b211c;
	--def-muted: #5c665e;
	--def-line: #e2e6e2;

	font-family: "Inter Tight", "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--def-ink);
	max-width: 760px;
	margin: 0 auto;
	line-height: 1.45;
	box-sizing: border-box;
}

.def-pb *,
.def-pb *::before,
.def-pb *::after {
	box-sizing: border-box;
}

.def-pb__card {
	background: #fff;
	border-radius: calc(var(--def-radius) + 6px);
	border: 0;
	box-shadow: 0 24px 60px -28px rgba(0, 40, 12, .45);
	overflow: hidden;
}

/* ---------- Header ---------- */

.def-pb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	background: var(--def-cream);
	border-bottom: 1px solid var(--def-line);
}

.def-pb__logo-img {
	max-height: 38px;
	width: auto;
	display: block;
}

.def-pb__logo-text {
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -.01em;
	color: var(--def-dark);
}

.def-pb__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--def-dark);
	white-space: nowrap;
}

.def-pb__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--def-accent);
	box-shadow: 0 0 0 3px rgba(97, 206, 112, .25);
}

/* ---------- Progress ---------- */

.def-pb__progress {
	padding: 14px 22px 0;
}

.def-pb__bar {
	height: 6px;
	border-radius: 99px;
	background: #eef1ee;
	overflow: hidden;
}

.def-pb__bar span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--def-dark), var(--def-brand) 75%);
	transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.def-pb__progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 9px;
	font-size: 13px;
	color: var(--def-muted);
	font-weight: 500;
}

.def-pb__time {
	background: rgba(54, 146, 81, .12);
	color: var(--def-dark);
	padding: 3px 10px;
	border-radius: 99px;
	font-weight: 600;
	font-size: 12px;
}

/* ---------- Body ---------- */

.def-pb__body {
	padding: 26px 22px 8px;
	min-height: 300px;
}

.def-pb__title {
	font-size: clamp(21px, 2.6vw, 27px);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 0 0 6px;
	color: var(--def-dark);
	text-wrap: balance;
}

.def-pb__sub {
	margin: 0 0 20px;
	color: var(--def-muted);
	font-size: 15px;
}


/* ---------- Temaet må ikke style vores knapper ---------- */

.def-pb button,
.def-pb button:hover,
.def-pb button:focus,
.def-pb button:active {
	-webkit-appearance: none;
	appearance: none;
	background-image: none;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
}

/* ---------- Valgkort ---------- */

.def-pb__options {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(var(--def-cols, 2), minmax(0, 1fr));
}

.def-pb__option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-align: left;
	padding: 16px 16px 15px;
	border: 1.5px solid var(--def-line);
	border-radius: var(--def-radius);
	background: #fff;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color .15s, background-color .15s, color .15s, transform .15s;
}

.def-pb .def-pb__option[aria-pressed="false"],
.def-pb .def-pb__option[aria-pressed="false"]:hover,
.def-pb .def-pb__option[aria-pressed="false"]:focus,
.def-pb .def-pb__option[aria-pressed="false"]:active {
	background-color: #fff;
	color: var(--def-ink);
}

.def-pb .def-pb__option:hover {
	border-color: var(--def-brand);
}

.def-pb .def-pb__option:focus-visible {
	outline: 3px solid var(--def-accent);
	outline-offset: 2px;
}

.def-pb .def-pb__option[aria-pressed="true"],
.def-pb .def-pb__option[aria-pressed="true"]:hover,
.def-pb .def-pb__option[aria-pressed="true"]:focus,
.def-pb .def-pb__option[aria-pressed="true"]:active {
	background-color: var(--def-dark);
	border-color: var(--def-dark);
	color: #fff;
}

.def-pb__option-icon {
	margin-bottom: 8px;
	line-height: 0;
	color: var(--def-brand);
}

.def-pb__option[aria-pressed="true"] .def-pb__option-icon {
	color: var(--def-accent);
}

.def-pb__option-label {
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -.01em;
}

.def-pb__option-desc {
	font-size: 13.5px;
	color: var(--def-muted);
}

.def-pb__option[aria-pressed="true"] .def-pb__option-desc {
	color: rgba(255, 255, 255, .78);
}

.def-pb__tag {
	position: absolute;
	top: -9px;
	right: 12px;
	background: var(--def-accent);
	color: var(--def-dark);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 99px;
	letter-spacing: .01em;
}

/* ---------- Felter ---------- */

.def-pb__field {
	position: relative;
	display: flex;
	align-items: center;
	border: 1.5px solid var(--def-line);
	border-radius: var(--def-radius);
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.def-pb__field:focus-within {
	border-color: var(--def-brand);
	box-shadow: 0 0 0 4px rgba(54, 146, 81, .14);
}

.def-pb__field input,
.def-pb__field textarea {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 15px 16px;
	font: inherit;
	color: inherit;
	width: 100%;
	min-width: 0;
	outline: none;
}

.def-pb__field--big input {
	font-size: 26px;
	font-weight: 700;
	padding: 18px 16px;
	letter-spacing: -.02em;
}

.def-pb__field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.5;
}

.def-pb__suffix {
	padding: 0 18px;
	font-weight: 600;
	color: var(--def-muted);
	white-space: nowrap;
}

.def-pb__help {
	margin: 10px 2px 0;
	font-size: 13px;
	color: var(--def-muted);
}

/* Kontaktformular */

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

.def-pb__col-full {
	grid-column: 1 / -1;
}

.def-pb__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--def-dark);
}

.def-pb__error {
	margin: 6px 2px 0;
	font-size: 13px;
	font-weight: 600;
	color: #b3261e;
}

.def-pb__field--error {
	border-color: #b3261e;
}

.def-pb__consent {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 14px 16px;
	background: var(--def-cream);
	border-radius: var(--def-radius);
	margin-top: 16px;
	font-size: 14px;
	cursor: pointer;
}

.def-pb__consent input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--def-brand);
	flex: none;
}

.def-pb__assurances {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--def-brand);
}

.def-pb__hp {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

/* ---------- Navigation ---------- */

.def-pb__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px 22px;
}

.def-pb__back,
.def-pb__next {
	font: inherit;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s, opacity .15s, border-color .15s;
}

.def-pb .def-pb__back,
.def-pb .def-pb__back:hover,
.def-pb .def-pb__back:focus,
.def-pb .def-pb__back:active {
	background-color: transparent;
	border: 1.5px solid var(--def-line);
	color: var(--def-muted);
	padding: 13px 24px;
}

.def-pb .def-pb__back:hover {
	border-color: var(--def-brand);
	color: var(--def-dark);
}

.def-pb .def-pb__next,
.def-pb .def-pb__next:hover,
.def-pb .def-pb__next:focus,
.def-pb .def-pb__next:active {
	background-color: var(--def-cta);
	border: 0;
	color: #fff;
	padding: 15px 32px;
	font-size: 16px;
	margin-left: auto;
}

.def-pb .def-pb__next:hover:not(:disabled) {
	background-color: var(--def-brand);
}

.def-pb .def-pb__next:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.def-pb__next:focus-visible,
.def-pb__back:focus-visible {
	outline: 3px solid var(--def-accent);
	outline-offset: 2px;
}

.def-pb .def-pb__next--final,
.def-pb .def-pb__next--final:hover:not(:disabled) {
	background-color: var(--def-brand);
	font-size: 17px;
}

/* ---------- Trustbar ---------- */

.def-pb__trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--def-dark);
	color: #fff;
	text-align: center;
	padding: 18px 12px;
}

.def-pb__trust div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.def-pb__trust strong {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.def-pb__trust span {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .72);
}

/* ---------- Resultat ---------- */

.def-pb__result-kicker {
	font-size: 15px;
	color: var(--def-muted);
	margin: 0 0 4px;
}

.def-pb__price {
	font-size: clamp(34px, 6vw, 48px);
	font-weight: 700;
	letter-spacing: -.03em;
	color: var(--def-dark);
	line-height: 1.05;
	margin: 0 0 4px;
}

.def-pb__price-note {
	color: var(--def-muted);
	font-size: 14px;
	margin: 0 0 20px;
}

.def-pb__lines {
	border: 1px solid var(--def-line);
	border-radius: var(--def-radius);
	overflow: hidden;
}

.def-pb__line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--def-line);
	font-size: 14.5px;
}

.def-pb__line:last-child {
	border-bottom: 0;
}

.def-pb__line small {
	display: block;
	color: var(--def-muted);
	font-size: 12.5px;
	margin-top: 2px;
}

.def-pb__line-price {
	font-weight: 600;
	white-space: nowrap;
}

.def-pb__line--total {
	background: var(--def-cream);
	font-weight: 700;
	font-size: 16px;
	color: var(--def-dark);
}

.def-pb__notes {
	margin: 16px 0 0;
	padding: 14px 16px;
	background: rgba(97, 206, 112, .1);
	border-radius: var(--def-radius);
	font-size: 14px;
	color: var(--def-dark);
}

.def-pb__notes p {
	margin: 0 0 6px;
}

.def-pb__notes p:last-child {
	margin: 0;
}

.def-pb__done {
	text-align: center;
	padding: 8px 0 12px;
}

.def-pb__check {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: rgba(97, 206, 112, .16);
	display: grid;
	place-items: center;
	color: var(--def-brand);
}

.def-pb__spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	vertical-align: -3px;
	margin-right: 9px;
	animation: def-pb-spin .7s linear infinite;
}

@keyframes def-pb-spin {
	to {
		transform: rotate(360deg);
	}
}

.def-pb__alert {
	margin-top: 14px;
	padding: 13px 16px;
	border-radius: var(--def-radius);
	background: #fdecea;
	color: #8c1d18;
	font-size: 14px;
	font-weight: 500;
}

.def-pb__step {
	animation: def-pb-in .28s cubic-bezier(.4, 0, .2, 1);
}

@keyframes def-pb-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* ---------- Mobil ---------- */

@media (max-width: 560px) {
	.def-pb__options {
		grid-template-columns: 1fr;
	}

	.def-pb__options--compact {
		grid-template-columns: repeat(3, 1fr);
	}

	.def-pb__options--compact .def-pb__option {
		align-items: center;
		text-align: center;
		padding: 14px 8px;
	}

	.def-pb__options--compact .def-pb__option-desc {
		display: none;
	}

	.def-pb__grid {
		grid-template-columns: 1fr;
	}

	.def-pb__body {
		padding: 22px 16px 6px;
	}

	.def-pb__head,
	.def-pb__progress,
	.def-pb__nav {
		padding-left: 16px;
		padding-right: 16px;
	}

	.def-pb__next {
		padding: 15px 22px;
	}

	.def-pb__trust strong {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.def-pb *,
	.def-pb *::before,
	.def-pb *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* -------------------------------------------------------------------
   Beskyttelse mod temaets og andre pluginers knap-styles.
   Nogle temaer sætter en fast baggrundsfarve på alle <button>-elementer,
   som ellers slår igennem uanset rækkefølge. Farverne herunder kommer
   stadig fra indstillingerne – de kan bare ikke overskrives udefra.
   ------------------------------------------------------------------- */

.def-pb button.def-pb__option,
.def-pb button.def-pb__option:hover,
.def-pb button.def-pb__option:focus,
.def-pb button.def-pb__option:active,
.def-pb button.def-pb__option:visited {
	background-color: #fff !important;
	background-image: none !important;
	color: var(--def-ink) !important;
	box-shadow: none !important;
}

.def-pb button.def-pb__option[aria-pressed="true"],
.def-pb button.def-pb__option[aria-pressed="true"]:hover,
.def-pb button.def-pb__option[aria-pressed="true"]:focus,
.def-pb button.def-pb__option[aria-pressed="true"]:active {
	background-color: var(--def-dark) !important;
	border-color: var(--def-dark) !important;
	color: #fff !important;
}

.def-pb button.def-pb__option[aria-pressed="true"] .def-pb__option-desc {
	color: rgba(255, 255, 255, .78) !important;
}

.def-pb button.def-pb__next,
.def-pb button.def-pb__next:focus,
.def-pb button.def-pb__next:active,
.def-pb button.def-pb__next:visited {
	background-color: var(--def-cta) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
}

.def-pb button.def-pb__next--final,
.def-pb button.def-pb__next--final:focus,
.def-pb button.def-pb__next--final:active {
	background-color: var(--def-brand) !important;
}

.def-pb button.def-pb__next:hover:not(:disabled),
.def-pb button.def-pb__next--final:hover:not(:disabled) {
	background-color: var(--def-brand) !important;
	color: #fff !important;
}

.def-pb button.def-pb__back,
.def-pb button.def-pb__back:hover,
.def-pb button.def-pb__back:focus,
.def-pb button.def-pb__back:active,
.def-pb button.def-pb__back:visited {
	background-color: transparent !important;
	background-image: none !important;
	color: var(--def-muted) !important;
	box-shadow: none !important;
}

.def-pb button.def-pb__back:hover {
	color: var(--def-dark) !important;
	border-color: var(--def-brand) !important;
}

.def-pb .def-pb__tag {
	background-color: var(--def-accent) !important;
	color: var(--def-dark) !important;
}

/* Felter må heller ikke arve temaets baggrund eller ramme. */

.def-pb input[type="text"],
.def-pb input[type="tel"],
.def-pb input[type="email"],
.def-pb input[type="number"],
.def-pb textarea {
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--def-ink) !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}
