/*
 * Tiltaksplanen i de gratis testene (template-parts/verktoy/tiltaksplan.php).
 * Flate farger og ingen skygger. Mørk modus kommer fra tvillingen
 * rapport.mork.css (scripts/mork/lag_mork.py).
 */

.rp { display: grid; gap: 24px; margin-bottom: 56px; }
.rp[hidden] { display: none; }

.rp-hode { display: grid; justify-items: center; gap: 10px; text-align: center; }
.rp-hode p { margin: 0; }
.rp-merke { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6712fb; }
.rp .rp-tittel { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem) !important; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #0a0f1f; text-wrap: balance; }
.rp-ingress { max-width: 36rem; font-size: 1.075rem; line-height: 1.55; color: #4a4a58; }

.rp-liste { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.rp-kort { display: flex; gap: 16px; padding: 22px; border: 1px solid #e7e2f5; border-radius: 18px; background: #fff; }
.rp-nr { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #6712fb; color: #fff; font-size: .9375rem; font-weight: 800; }
.rp-kort-innhold { display: grid; flex: 1; gap: 10px; min-width: 0; font-size: .9875rem; line-height: 1.55; color: #4a4a58; }
.rp-kort-innhold p { margin: 0; }
.rp-kort-innhold b { display: block; margin-bottom: 1px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6e6e7c; }
.rp-kort-tittel { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; color: #0a0f1f; }

.rp-brikker { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-brikker span { padding: 3px 10px; border-radius: 999px; background: #f4f3f9; font-size: .75rem; font-weight: 700; color: #4a4a58; }
.rp-brikker .rp-effekt-3 { background: #f1ecff; color: #6712fb; }

.rp .rp-steg ol { display: grid; gap: 3px; margin: 2px 0 0; padding-left: 20px; list-style: decimal; }
.rp-steg li::marker { font-weight: 800; color: #6712fb; }

/* Det som ligger bak skjemaet */
.rp-last { display: grid; gap: 12px; }
.rp-last[hidden] { display: none; }
.rp-laste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rp-laste:empty { display: none; }
.rp-las { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px dashed #dcd6ee; border-radius: 12px; font-size: .8125rem; font-weight: 700; color: #6e6e7c; }
.rp-las i { flex: 1; order: 2; height: 9px; border-radius: 5px; background: #efecf8; }
.rp-las span:first-of-type { order: 1; }
.rp-las span:last-of-type { order: 3; color: #6712fb; white-space: nowrap; }

.rp-skjema { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1.5px solid #6712fb; border-radius: 20px; background: #fff; }
.rp-skjema-hode { display: grid; gap: 6px; }
.rp-skjema-hode p { margin: 0; }
.rp-skjema-tittel { font-size: 1.375rem; font-weight: 800; line-height: 1.2; color: #0a0f1f; }
.rp-skjema-tekst { line-height: 1.5; color: #4a4a58; }
.rp-honning { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rp-felter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-felt { display: grid; gap: 6px; }
.rp-felt > span:first-child { font-size: 14px; font-weight: 600; color: #0a0f1f; }
.rp-felt i { font-style: normal; font-weight: 400; color: #6e6e7c; }
.rp-felt input,
.rp-felt select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #e4e1ef;
	border-radius: 12px;
	background: #fff;
	color: #0a0f1f;
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.rp-felt input::placeholder { color: #9b9bab; }
.rp-felt input:focus,
.rp-felt select:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.rp-felt.er-feil input { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }

.rp-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	background: #6712fb;
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}
.rp-send:hover { background: #5609de; color: #fff; }
.rp-send:focus-visible { outline: 2px solid #6712fb; outline-offset: 3px; }
.rp-send--lenke { flex: none; }

.rp-status { margin: 0; font-size: 14px; font-weight: 600; color: #be123c; }
.rp-status[hidden] { display: none; }
.rp-fint { margin: 0; font-size: 13px; line-height: 1.45; color: #6e6e7c; }
.rp-fint a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.rp-takk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: #f7f5ff; }
.rp-takk[hidden] { display: none; }
.rp-takk > div { flex: 1 1 22rem; display: grid; gap: 4px; }
.rp-takk p { margin: 0; }
.rp-takk-tittel { font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: #0a0f1f; overflow-wrap: anywhere; }
.rp-takk-tekst { line-height: 1.5; color: #4a4a58; }

/* Resten av resultatet i samme flate uttrykk */
#seo-result .bg-gradient-brand,
#aeo-result .bg-gradient-brand,
#nettside-result .bg-gradient-brand { background: #6712fb; }

@media (max-width: 639px) {
	.rp-kort { padding: 18px; gap: 12px; }
	.rp-felter { grid-template-columns: minmax(0, 1fr); }
	.rp-send { width: 100%; }
}
