/* Bnett Veiviser v1.3
   – Herdet mot globale tema-/Elementor-stiler (!important på interaktive elementer)
   – Fikser grid-overflow: minmax(0,1fr) + min-width:0 så kort aldri renner ut av rammen
   – Mobil først: 2×2 hovedvalg, full bredde-CTA, scrollbare chips */

.bnv {
	--bnv-pine: #16352B;
	--bnv-green: #3E8E5A;
	--bnv-green-dark: #2F7048;
	--bnv-sage: #E4EFDC;
	--bnv-sage-soft: #F2F7EE;
	--bnv-ink: #14241D;
	--bnv-paper: #FBFCFA;
	--bnv-radius: 18px;
	--bnv-radius-s: 14px;
	--bnv-shadow: 0 6px 18px rgba(20, 36, 29, .08);

	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 20px 16px;
	background: var(--bnv-paper);
	border: 1px solid var(--bnv-sage);
	border-radius: var(--bnv-radius);
	font-family: Inter, system-ui, sans-serif;
	color: var(--bnv-ink);
	box-sizing: border-box;
	overflow: hidden; /* siste skanse mot utstikkende barn */
}
.bnv *, .bnv *::before, .bnv *::after { box-sizing: border-box; }
@media (min-width: 768px) { .bnv { padding: 28px 28px 24px; } }

/* ---------- Topp ---------- */
.bnv .bnv__title {
	font-family: "Bricolage Grotesque", Inter, sans-serif;
	font-weight: 700;
	font-size: clamp(1.3rem, 4vw, 1.75rem);
	line-height: 1.15;
	margin: 0 0 6px;
	color: var(--bnv-pine);
}
.bnv .bnv__sub { margin: 0 0 16px; font-size: .93rem; line-height: 1.5; color: #3c4f45; }

.bnv .bnv__progress {
	height: 6px; border-radius: 999px; background: var(--bnv-sage);
	overflow: hidden; margin-bottom: 18px;
}
.bnv .bnv__bar {
	display: block; height: 100%; width: 33%;
	background: linear-gradient(90deg, var(--bnv-green), var(--bnv-green-dark));
	border-radius: inherit;
	transition: width .25s ease;
}

.bnv .bnv__step-label {
	font-size: .74rem; font-weight: 700; letter-spacing: .07em;
	text-transform: uppercase; color: var(--bnv-green-dark); margin: 0 0 8px;
}
.bnv .bnv__question {
	font-family: "Bricolage Grotesque", Inter, sans-serif;
	font-weight: 700; font-size: clamp(1.05rem, 3vw, 1.2rem);
	margin: 0 0 14px; color: var(--bnv-pine);
}

/* ---------- Grid (overflow-sikret) ---------- */
.bnv .bnv__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	width: 100%;
}
@media (min-width: 640px) { .bnv .bnv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bnv .bnv__grid--main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .bnv .bnv__grid--main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }

/* ---------- Felles nullstilling av knapper ---------- */
.bnv button.bnv__opt,
.bnv button.bnv__chip,
.bnv button.bnv__cta,
.bnv button.bnv__back {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	margin: 0;
	min-width: 0 !important;   /* dreper temaets min-width på button */
	max-width: 100%;
}

/* Temaet setter white-space: nowrap på button – tvinger tekstbryting i kortene. */
.bnv button.bnv__opt,
.bnv button.bnv__opt * {
	white-space: normal !important;
	overflow-wrap: break-word;
}

/* ---------- Valgkort (steg 2) ---------- */
.bnv button.bnv__opt {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	text-align: left !important;
	width: 100%;
	min-height: 0;
	padding: 14px 16px !important;
	cursor: pointer;
	background: #ffffff !important;
	border: 1.5px solid var(--bnv-sage) !important;
	border-radius: var(--bnv-radius-s) !important;
	color: var(--bnv-ink) !important;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.bnv button.bnv__opt:hover,
.bnv button.bnv__opt:focus-visible {
	background: #ffffff !important;
	border-color: var(--bnv-green) !important;
	color: var(--bnv-ink) !important;
	box-shadow: var(--bnv-shadow) !important;
	transform: translateY(-1px);
}
.bnv button.bnv__opt:focus-visible { outline: 2px solid var(--bnv-green) !important; outline-offset: 2px; }
.bnv button.bnv__opt:active { transform: translateY(0) scale(.99); }

.bnv button.bnv__opt > span:last-child { min-width: 0; }
.bnv button.bnv__opt .bnv__opt-label {
	font-weight: 600 !important;
	color: var(--bnv-pine) !important;
	font-size: .98rem !important;
	display: block;
}
.bnv button.bnv__opt .bnv__opt-desc {
	display: block;
	font-size: .84rem !important;
	line-height: 1.4 !important;
	color: #4a5c52 !important;
	margin-top: 3px;
	font-weight: 400 !important;
}

/* ---------- Hovedvalg (steg 1): TANKER / KROPP / SPRÅK / DYR ---------- */
.bnv button.bnv__opt--main {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 16px 14px !important;
	height: 100%; /* grid strekker alle kort til høyeste – ingen fast min-height */
}
@media (min-width: 768px) { .bnv button.bnv__opt--main { padding: 18px 18px 16px !important; } }

.bnv button.bnv__opt--main .bnv__opt-emoji {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; flex-shrink: 0;
	background: var(--bnv-sage-soft);
	border-radius: 14px;
	font-size: 1.45rem; line-height: 1; margin: 0;
}
.bnv .bnv__opt-label--caps {
	text-transform: uppercase !important;
	letter-spacing: .07em !important;
	font-size: .92rem !important;
	font-weight: 700 !important;
}
.bnv button.bnv__opt--main .bnv__opt-desc { margin-top: 4px; }
@media (max-width: 480px) {
	.bnv button.bnv__opt--main .bnv__opt-desc { font-size: .78rem !important; }
}

/* ---------- Steds-chips (scrollbare på mobil) ---------- */
.bnv .bnv__places {
	display: flex; gap: 8px; margin: 10px 0 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.bnv .bnv__places::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .bnv .bnv__places { flex-wrap: wrap; overflow: visible; } }

.bnv button.bnv__chip {
	flex-shrink: 0;
	padding: 9px 15px !important;
	border-radius: 999px !important;
	cursor: pointer;
	background: var(--bnv-sage-soft) !important;
	border: 1.5px solid var(--bnv-sage) !important;
	font-size: .9rem !important;
	font-weight: 500 !important;
	color: var(--bnv-pine) !important;
	transition: background .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.bnv button.bnv__chip:hover,
.bnv button.bnv__chip:focus-visible {
	background: var(--bnv-sage) !important;
	border-color: var(--bnv-green) !important;
	color: var(--bnv-pine) !important;
}
.bnv button.bnv__chip:focus-visible { outline: 2px solid var(--bnv-green) !important; outline-offset: 2px; }

/* ---------- Input + CTA ---------- */
.bnv .bnv__input-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bnv .bnv__suggest-wrap { position: relative; flex: 1 1 220px; min-width: 0; }

.bnv input.bnv__input {
	width: 100%;
	padding: 13px 14px !important;
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 1rem !important;
	border: 1.5px solid var(--bnv-sage) !important;
	border-radius: var(--bnv-radius-s) !important;
	background: #ffffff !important;
	color: var(--bnv-ink) !important;
	box-shadow: none !important;
	min-height: 48px;
}
.bnv input.bnv__input:focus {
	outline: 2px solid var(--bnv-green) !important;
	outline-offset: 1px;
	border-color: var(--bnv-green) !important;
}
.bnv input.bnv__input.is-missing {
	border-color: #c05a4e !important;
	outline: 2px solid #c05a4e !important;
}

.bnv button.bnv__cta {
	padding: 13px 22px !important;
	border: 0 !important;
	border-radius: var(--bnv-radius-s) !important;
	cursor: pointer;
	background: var(--bnv-green) !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	transition: background .15s ease;
	min-height: 48px;
	white-space: nowrap;
}
@media (max-width: 639px) { .bnv button.bnv__cta { flex: 1 1 100%; width: 100%; } }
.bnv button.bnv__cta:hover,
.bnv button.bnv__cta:focus-visible {
	background: var(--bnv-green-dark) !important;
	color: #ffffff !important;
}
.bnv button.bnv__cta:focus-visible { outline: 2px solid var(--bnv-pine) !important; outline-offset: 2px; }

/* ---------- Autosuggest ---------- */
.bnv ul.bnv__suggest {
	position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
	margin: 0 !important; padding: 6px !important; list-style: none !important;
	background: #ffffff; border: 1.5px solid var(--bnv-sage);
	border-radius: var(--bnv-radius-s);
	box-shadow: 0 10px 28px rgba(20, 36, 29, .14);
	max-height: 250px; overflow-y: auto;
}
.bnv .bnv__suggest-item {
	padding: 11px 12px; margin: 0; cursor: pointer;
	border-radius: 10px; font-size: .95rem; color: var(--bnv-ink);
	list-style: none;
}
.bnv .bnv__suggest-item:hover,
.bnv .bnv__suggest-item.is-active {
	background: var(--bnv-sage-soft); color: var(--bnv-pine);
}

/* ---------- Videotime ---------- */
.bnv .bnv__online {
	display: flex; align-items: center; gap: 10px; margin-top: 12px;
	padding: 12px 14px; background: var(--bnv-sage-soft);
	border-radius: var(--bnv-radius-s); font-size: .9rem; cursor: pointer;
	color: var(--bnv-ink);
}
.bnv .bnv__online input {
	width: 18px !important; height: 18px !important;
	accent-color: var(--bnv-green); margin: 0; flex-shrink: 0;
}

/* ---------- Tilbake ---------- */
.bnv button.bnv__back {
	margin-top: 14px !important;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
	font-size: .88rem !important;
	color: var(--bnv-green-dark) !important;
	text-decoration: underline !important;
	padding: 6px 0 !important;
}
.bnv button.bnv__back:hover { color: var(--bnv-pine) !important; background: none !important; }
.bnv button.bnv__back:focus-visible { outline: 2px solid var(--bnv-green) !important; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.bnv .bnv__bar,
	.bnv button.bnv__opt,
	.bnv button.bnv__chip,
	.bnv button.bnv__cta { transition: none; }
	.bnv button.bnv__opt:hover { transform: none; }
}
