/**
 * «Send forespørsel». Tokens come from finn-din-haneseth.css; selectors use two
 * classes so they win over the Elementor kit's and Hello's global form styles.
 */

body.fdh-foresporselside {
	background: var(--fdh-krem);
}

.fdh-foresporsel {
	--fdh-kant: #c5cdd8;
	--fdh-ok: #23863a;

	color: var(--fdh-bla);
	font-family: var(--fdh-font);
	margin: 0 auto;
	max-width: 1050px;
	padding: 64px 0 96px;
}

.fdh-foresporsel [hidden] {
	display: none !important;
}

.fdh-foresporsel .fdh-foresporsel__tittel {
	color: var(--fdh-bla);
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.8px;
	line-height: 1.1;
	margin: 0 0 32px;
}

.fdh-foresporsel .fdh-kort {
	background: #fff;
	border: 1px solid #efe4d6;
	border-radius: 12px;
	max-width: 750px;
	padding: 40px 42px 42px;
}

/* Fields ---------------------------------------------------------------------- */

.fdh-foresporsel .fdh-rutenett {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 24px;
}

.fdh-foresporsel .fdh-felt--hel {
	grid-column: 1 / -1;
}

.fdh-foresporsel .fdh-felt__etikett {
	color: var(--fdh-bla);
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 8px;
	padding: 0;
}

.fdh-foresporsel .fdh-felt__input {
	background: #fff;
	border: 1px solid var(--fdh-kant);
	border-radius: 6px;
	box-shadow: none;
	color: var(--fdh-bla);
	font-family: var(--fdh-font);
	font-size: 15px;
	height: 46px;
	line-height: 1.4;
	padding: 0 14px;
	width: 100%;
}

.fdh-foresporsel textarea.fdh-felt__input {
	height: auto;
	min-height: 104px;
	padding: 12px 14px;
	resize: vertical;
}

.fdh-foresporsel .fdh-felt__velg {
	appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23002e66' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
	padding-right: 40px;
}

.fdh-foresporsel .fdh-felt__input::placeholder {
	color: #8a96a8;
	opacity: 1;
}

.fdh-foresporsel .fdh-felt__input:focus {
	border-color: var(--fdh-turkis);
	outline: 2px solid rgba(31, 161, 191, 0.25);
	outline-offset: 0;
}

.fdh-foresporsel .har-feil .fdh-felt__input {
	border-color: var(--fdh-feil-mork);
}

.fdh-foresporsel .fdh-felt__melding {
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	margin: 8px 0 0;
}

.fdh-foresporsel .fdh-felt__melding.er-feil {
	color: var(--fdh-feil-mork);
}

.fdh-foresporsel .fdh-felt__melding.er-ok {
	color: var(--fdh-ok);
}

.fdh-foresporsel .fdh-felt__melding.er-ok::before {
	content: "✓ ";
}

/* Recipient --------------------------------------------------------------------- */

.fdh-foresporsel .fdh-mottaker {
	margin: 0 0 24px;
}

.fdh-foresporsel .fdh-mottaker__kort {
	background: var(--fdh-krem-mork);
	border-radius: 8px;
	padding: 16px 16px 18px;
}

.fdh-foresporsel .fdh-mottaker__navn {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 2px;
}

.fdh-foresporsel .fdh-mottaker__adresse {
	font-size: 13px;
	margin: 0 0 2px;
}

.fdh-foresporsel .fdh-mottaker__tekst {
	color: var(--fdh-gra);
	font-size: 12px;
	margin: 0;
}

.fdh-foresporsel .fdh-mottaker__valg {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.fdh-foresporsel .fdh-mottaker__hjelp {
	color: var(--fdh-gra);
	font-size: 12px;
	margin: -2px 0 10px;
}

.fdh-foresporsel .fdh-valgliste {
	display: grid;
	gap: 10px 16px;
	grid-template-columns: 1fr 1fr;
}

.fdh-foresporsel .fdh-valg {
	align-items: flex-start;
	border: 1px solid var(--fdh-kant);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fdh-foresporsel .fdh-valg:hover {
	border-color: var(--fdh-bla);
}

.fdh-foresporsel .fdh-valg:has(input:checked) {
	border-color: var(--fdh-bla);
	box-shadow: inset 0 0 0 1px var(--fdh-bla);
}

.fdh-foresporsel .fdh-valg:has(input:focus-visible) {
	outline: 2px solid var(--fdh-turkis);
	outline-offset: 2px;
}

.fdh-foresporsel .har-feil .fdh-valg {
	border-color: var(--fdh-feil-mork);
}

.fdh-foresporsel .fdh-valg input {
	accent-color: var(--fdh-bla);
	flex: none;
	height: 18px;
	margin: 1px 0 0;
	width: 18px;
}

.fdh-foresporsel .fdh-valg__innhold {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fdh-foresporsel .fdh-valg__navn {
	font-size: 14.5px;
	font-weight: 600;
}

.fdh-foresporsel .fdh-valg__tekst {
	font-size: 12.5px;
}

.fdh-foresporsel .fdh-ikke-tilbudt {
	border: 1.5px dashed #8a96a8;
	border-radius: 8px;
	padding: 16px 16px 18px;
}

.fdh-foresporsel .fdh-ikke-tilbudt__tittel {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
}

.fdh-foresporsel .fdh-ikke-tilbudt__tekst {
	font-size: 13px;
	margin: 0 0 6px;
}

.fdh-foresporsel .fdh-ikke-tilbudt__lenke {
	color: var(--fdh-bla);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Private / business toggle ------------------------------------------------------ */

.fdh-foresporsel .fdh-veksler {
	border: 1px solid var(--fdh-kant);
	border-radius: 999px;
	display: inline-flex;
	gap: 4px;
	margin: 0 0 24px;
	padding: 4px;
}

.fdh-foresporsel .fdh-veksler__valg {
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	padding: 12px 22px;
	position: relative;
	transition: background-color 0.15s, color 0.15s;
}

.fdh-foresporsel .fdh-veksler__valg input {
	opacity: 0;
	position: absolute;
	pointer-events: none;
}

.fdh-foresporsel .fdh-veksler__valg:has(input:checked) {
	background: var(--fdh-bla);
	color: #fff;
}

.fdh-foresporsel .fdh-veksler__valg:has(input:focus-visible) {
	outline: 2px solid var(--fdh-turkis);
	outline-offset: 2px;
}

/* Images ---------------------------------------------------------------------------- */

.fdh-foresporsel .fdh-bildeknapp {
	align-items: center;
	border: 1.5px dashed var(--fdh-bla);
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	position: relative;
}

/* Hidden but focusable. Not .screen-reader-text: the theme shows that at the top of the page on focus. */
.fdh-foresporsel .fdh-bildeknapp__input {
	height: 100%;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 100%;
}

.fdh-foresporsel .fdh-bildeknapp:hover {
	background: rgba(0, 46, 102, 0.03);
}

.fdh-foresporsel .fdh-bildeknapp:has(input:focus-visible) {
	outline: 2px solid var(--fdh-turkis);
	outline-offset: 2px;
}

.fdh-foresporsel .fdh-bildeknapp small {
	color: var(--fdh-gra);
	font-size: 11.5px;
	margin-left: 6px;
}

.fdh-foresporsel .fdh-bilder {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.fdh-foresporsel .fdh-bilder__bilde {
	height: 72px;
	position: relative;
	width: 72px;
}

.fdh-foresporsel .fdh-bilder__bilde img {
	border-radius: 6px;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.fdh-foresporsel .fdh-bilder__fjern {
	align-items: center;
	background: var(--fdh-bla);
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 15px;
	height: 26px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: -8px;
	top: -8px;
	width: 26px;
}

.fdh-foresporsel .fdh-bilder__fjern:hover,
.fdh-foresporsel .fdh-bilder__fjern:focus-visible {
	background: var(--fdh-morkest);
	color: #fff;
}

/* Submit ------------------------------------------------------------------------------ */

.fdh-foresporsel .fdh-felle {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.fdh-foresporsel .fdh-kort__feil {
	color: var(--fdh-feil-mork);
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 16px;
}

.fdh-foresporsel .fdh-sendknapp {
	background: var(--fdh-korall);
	border: 0;
	border-radius: 999px;
	color: var(--fdh-bla);
	font-family: var(--fdh-font);
	font-size: 14px;
	font-weight: 600;
	height: 46px;
	letter-spacing: normal;
	padding: 0 22px;
	transition: background-color 0.2s;
}

.fdh-foresporsel .fdh-sendknapp:hover,
.fdh-foresporsel .fdh-sendknapp:focus-visible {
	background: #ff8787;
	color: var(--fdh-bla);
}

.fdh-foresporsel .fdh-sendknapp:disabled {
	background: #dcdcdc;
	color: #9b9b9b;
	cursor: not-allowed;
}

/* Thank you ----------------------------------------------------------------------------- */

.fdh-foresporsel .fdh-takk p {
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 12px;
}

.fdh-foresporsel .fdh-takk__tittel {
	color: var(--fdh-bla);
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 14px;
}

.fdh-foresporsel .fdh-takk__tittel:focus {
	outline: none;
}

.fdh-foresporsel .fdh-takk__lenke {
	border: 1.5px solid var(--fdh-bla);
	border-radius: 999px;
	color: var(--fdh-bla);
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	margin-top: 8px;
	padding: 12px 22px;
	text-decoration: none;
}

.fdh-foresporsel .fdh-takk__lenke:hover {
	background: var(--fdh-bla);
	color: #fff;
}

/* Mobile: no card, fields stacked. ------------------------------------------------------ */

@media (max-width: 767px) {
	.fdh-foresporsel {
		padding: 32px 4px 64px;
	}

	.fdh-foresporsel .fdh-foresporsel__tittel {
		font-size: 32px;
		margin-bottom: 24px;
	}

	.fdh-foresporsel .fdh-kort {
		background: none;
		border: 0;
		padding: 0;
	}

	.fdh-foresporsel .fdh-takk {
		background: #fff;
		border: 1px solid #efe4d6;
		padding: 28px 22px;
	}

	.fdh-foresporsel .fdh-rutenett,
	.fdh-foresporsel .fdh-valgliste {
		grid-template-columns: 1fr;
	}

	.fdh-foresporsel .fdh-felt__input {
		height: 48px;
	}

	.fdh-foresporsel .fdh-valg {
		background: #fff;
	}
}
