/* Allmennpsykologi – Produkter. Juster --apsyp-primary til sidens nøyaktige blåfarge. */
:root {
	/* Fra Christians referansesider: navy #1b3252, banner #2c4a7a, teal #0d9488 */
	--apsyp-primary: #1b3252;
	--apsyp-primary-hover: #122843;
	--apsyp-border: #cbd5e0;
	--apsyp-bg: #f4f6f9;
	--apsyp-ok-bg: #e6f4ea;
	--apsyp-ok-text: #1a7f37;
	--apsyp-feil-bg: #fdecea;
	--apsyp-feil-text: #c0392b;
}

/* Knapper */
.apsyp-btn,
a.apsyp-btn {
	display: inline-block;
	background: var(--apsyp-primary);
	color: #fff;
	padding: 10px 22px;
	border: 0;
	border-radius: 3px;
	text-decoration: none;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
}
.apsyp-btn:hover,
a.apsyp-btn:hover {
	background: var(--apsyp-primary-hover);
	color: #fff;
}

/* Pakkekort */
.apsyp-pakker {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 0 0 40px;
}
.apsyp-pakke {
	border: 1px solid var(--apsyp-border);
	border-radius: 6px;
	padding: 24px;
	background: #fff;
}
.apsyp-pakke h3 {
	margin: 0 0 8px;
	color: var(--apsyp-primary);
}
.apsyp-pris {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 12px;
}
.apsyp-pris span {
	font-size: 15px;
	font-weight: 400;
	color: #666;
}
.apsyp-pakke ul {
	margin: 0 0 16px 18px;
	padding: 0;
}

/* Skjema */
.apsyp-skjema,
.apsyp-logginn,
.apsyp-konto {
	max-width: 560px;
	margin: 0 0 40px;
}

/* To kolonner på Produkter-siden: skjema til venstre, innlogging som
   kort til høyre (følger med ved rulling). */
.apsyp-to-kolonner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.apsyp-to-kolonner .apsyp-skjema {
	max-width: none;
	margin-bottom: 0;
}
.apsyp-to-kolonner .apsyp-logginn {
	max-width: none;
	background: var(--apsyp-bg);
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 24px 28px;
	position: sticky;
	top: 120px; /* luft til ev. fast topplinje */
}
.apsyp-to-kolonner .apsyp-logginn h2 {
	margin-top: 0;
}
@media (max-width: 900px) {
	.apsyp-to-kolonner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.apsyp-to-kolonner .apsyp-logginn {
		position: static;
	}
}
.apsyp-skjema label,
.apsyp-konto label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.apsyp-skjema input[type="text"],
.apsyp-skjema input[type="email"],
.apsyp-konto input[type="password"],
.apsyp-logginn input[type="text"],
.apsyp-logginn input[type="password"] {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid var(--apsyp-border);
	border-radius: 3px;
	font-size: 16px;
}
.apsyp-skjema fieldset {
	border: 1px solid var(--apsyp-border);
	border-radius: 3px;
	padding: 12px 16px;
	margin: 0 0 16px;
}
.apsyp-skjema legend {
	font-weight: 600;
	padding: 0 6px;
}
.apsyp-radio {
	display: block;
	font-weight: 400 !important;
	margin: 6px 0;
}
.apsyp-req {
	color: var(--apsyp-feil-text);
}
.apsyp-hjelp {
	display: block;
	font-size: 13px;
	color: #666;
	font-weight: 400;
	margin-top: 2px;
}

/* Honningfelle – skjult for mennesker */
.apsyp-hp {
	position: absolute !important;
	left: -9999px !important;
}

/* Meldinger */
.apsyp-melding {
	padding: 12px 16px;
	border-radius: 3px;
	margin: 0 0 16px;
}
.apsyp-ok {
	background: var(--apsyp-ok-bg);
	color: var(--apsyp-ok-text);
}
.apsyp-feil {
	background: var(--apsyp-feil-bg);
	color: var(--apsyp-feil-text);
}

/* Portal */
.apsyp-portal {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}
.apsyp-portal-hoved {
	flex: 1 1 380px;
}
.apsyp-portal-knapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	margin-top: 16px;
}
.apsyp-sideboks {
	flex: 0 1 260px;
	background: var(--apsyp-bg);
	padding: 20px 24px;
	border-radius: 4px;
}
.apsyp-sideboks h3 {
	margin: 0 0 10px;
}
.apsyp-sideboks ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.apsyp-sideboks li {
	margin: 6px 0;
}
.apsyp-sideboks a {
	color: var(--apsyp-primary);
	text-decoration: none;
}
.apsyp-sideboks a:hover {
	text-decoration: underline;
}

/* ===== Opplæring (etter Christians referansedesign) ===== */
:root {
	--apsyp-banner: #2c4a7a;
	--apsyp-teal: #0d9488;
}

/* Blått banner med tittel, undertittel og fanemenyen (piller) */
.apsyp-oppl-banner {
	background: var(--apsyp-banner);
	color: #fff;
	padding: 40px 0 24px;
	margin-bottom: 32px;
}
.apsyp-oppl-banner-slim {
	padding: 16px 0;
}
.apsyp-oppl-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.apsyp-oppl-banner h1 {
	color: #fff !important; /* temaets overskriftsfarge er mørk blå */
	margin: 0 0 6px;
	font-size: 30px;
}
.apsyp-oppl-banner p {
	color: rgba(255, 255, 255, 0.85) !important;
	margin: 0 0 18px;
	font-size: 15px;
}

/* Pillemenyen. !important trengs fordi temaet (Hello/Elementor-kit) har
   globale knappestiler (rosa kant, rosa hover, 100px radius, 20px/40px
   padding) som ellers overstyrer pluginet. */
.apsyp-oppl-meny {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 0 8px;
}
.apsyp-oppl-meny button.apsyp-oppl-pille {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 8px !important;
	padding: 8px 16px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.15s;
}
.apsyp-oppl-meny button.apsyp-oppl-pille:hover,
.apsyp-oppl-meny button.apsyp-oppl-pille:focus {
	background: rgba(255, 255, 255, 0.28) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.7) !important;
}
.apsyp-oppl-meny button.apsyp-oppl-pille.er-aktiv,
.apsyp-oppl-meny button.apsyp-oppl-pille.er-aktiv:hover,
.apsyp-oppl-meny button.apsyp-oppl-pille.er-aktiv:focus {
	background: #fff !important;
	color: var(--apsyp-primary) !important;
	border-color: #fff !important;
}

/* Faner */
.apsyp-oppl-fane {
	display: none;
}
.apsyp-oppl-fane.er-aktiv {
	display: block;
}

/* Innholdskort */
.apsyp-oppl-innhold {
	max-width: 1200px;
	margin: 0 auto;
}
.apsyp-oppl-kort {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 28px 32px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.apsyp-oppl-kort h2 {
	color: var(--apsyp-primary);
	margin-top: 1.4em;
}
.apsyp-oppl-kort h2:first-child {
	margin-top: 0;
}
.apsyp-oppl-kort h3 {
	color: var(--apsyp-primary);
	font-size: 19px;
}
.apsyp-oppl-kort h4 {
	color: var(--apsyp-primary);
}
/* Rutenett inni en farget boks (Faresignaler på introsiden) stables
   vertikalt, ellers havner overskrifter og tekst i hver sin kolonne. */
.apsyp-oppl-kort .apsyp-boks > .apsyp-grid {
	display: block;
}

/* Teal «etikett» over hovedtittelen (SPØRRESKJEMA FOR BARN OG UNGE …) */
.apsyp-etikett {
	color: var(--apsyp-teal);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 2px;
}
.apsyp-etikett + h2 {
	margin-top: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
}

/* Fargede bokser og rutenett (innholdet fra opplaring.html bruker disse) */
.apsyp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 12px;
	margin: 14px 0;
}
.apsyp-boks {
	border-radius: 10px;
	padding: 13px 15px;
	font-size: 15px;
	border: 1px solid transparent;
	margin: 6px 0;
	overflow-wrap: break-word; /* lange ord som «Hyperaktivitet/Uoppmerksomhet» */
}
.apsyp-oppl-kort td,
.apsyp-oppl-kort th {
	overflow-wrap: break-word;
}
.apsyp-bg-rod     { background: #fef2f2; border-color: #fecaca; }
.apsyp-bg-oransje { background: #fff7ed; border-color: #fed7aa; }
.apsyp-bg-gul     { background: #fffbeb; border-color: #fde68a; }
.apsyp-bg-gronn   { background: #ecfdf5; border-color: #a7f3d0; }
.apsyp-bg-teal    { background: #f0fdfa; border-color: #99f6e4; }
.apsyp-bg-bla     { background: #eff6ff; border-color: #bfdbfe; }
.apsyp-bg-lilla   { background: #f5f3ff; border-color: #ddd6fe; }
.apsyp-bg-graa    { background: #f8fafc; border-color: #e2e8f0; }

/* Fargede tabellrader/-celler */
.apsyp-oppl-kort tr[class*="apsyp-bg-"] td {
	background: inherit;
}
.apsyp-oppl-kort tr.apsyp-bg-rod     { background: #fef2f2; }
.apsyp-oppl-kort tr.apsyp-bg-oransje { background: #fff7ed; }
.apsyp-oppl-kort tr.apsyp-bg-gul     { background: #fffbeb; }
.apsyp-oppl-kort tr.apsyp-bg-gronn   { background: #ecfdf5; }
.apsyp-oppl-kort tr.apsyp-bg-bla     { background: #eff6ff; }
.apsyp-oppl-kort tr[class*="apsyp-bg-"] td:first-child {
	font-weight: 700;
}
.apsyp-oppl-kort td.apsyp-bg-rod   { background: #fef2f2; }
.apsyp-oppl-kort td.apsyp-bg-gul   { background: #fffbeb; }
.apsyp-oppl-kort td.apsyp-bg-gronn { background: #ecfdf5; }
.apsyp-oppl-kort td.apsyp-bg-bla   { background: #eff6ff; }

/* Lenke-chips («Relevante linker», logo-knappene på introsiden) */
.apsyp-chip {
	display: inline-block;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 7px 14px;
	margin: 4px 6px 4px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--apsyp-primary);
	text-decoration: none;
}
.apsyp-chip:hover {
	background: #e2e8f0;
	color: var(--apsyp-primary);
}
.apsyp-oppl-kort hr {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 28px 0;
}

/* Tabeller (grenseverdi-tabellen m.m.) */
.apsyp-oppl-kort table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 15px;
}
.apsyp-oppl-kort th {
	background: var(--apsyp-primary);
	color: #fff;
	text-align: left;
	padding: 10px 14px;
}
.apsyp-oppl-kort td {
	padding: 10px 14px;
	border-bottom: 1px solid #e2e8f0;
}
.apsyp-oppl-kort tr:nth-child(even) td {
	background: #f8fafc;
}

/* Videokortet øverst i hver fane */
.apsyp-video {
	background: #0f172a;
	border-radius: 14px;
	padding: 14px 16px 16px;
	margin: 0 0 28px;
}
.apsyp-video-topp {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 12px;
}
.apsyp-video-ikon {
	background: #dc2626;
	color: #fff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
}
.apsyp-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 8px;
}
.apsyp-video figure {
	margin: 0;
}

/* Temaets knappestiler nøytraliseres også for pluginets egne knapper
   (Send bestilling, Bestill, Logg inn, Lagre nytt passord). */
.apsyp-skjema button.apsyp-btn,
.apsyp-konto button.apsyp-btn,
.apsyp-pakke a.apsyp-btn,
.apsyp-portal a.apsyp-btn,
.apsyp-logginn a.apsyp-btn,
.apsyp-logginn input[type="submit"] {
	background: var(--apsyp-primary) !important;
	color: #fff !important;
	border: 1px solid var(--apsyp-primary) !important;
	border-radius: 3px !important;
	padding: 10px 22px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	box-shadow: none !important;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
.apsyp-skjema button.apsyp-btn:hover,
.apsyp-skjema button.apsyp-btn:focus,
.apsyp-konto button.apsyp-btn:hover,
.apsyp-konto button.apsyp-btn:focus,
.apsyp-pakke a.apsyp-btn:hover,
.apsyp-portal a.apsyp-btn:hover,
.apsyp-logginn a.apsyp-btn:hover,
.apsyp-logginn input[type="submit"]:hover,
.apsyp-logginn input[type="submit"]:focus {
	background: var(--apsyp-primary-hover) !important;
	color: #fff !important;
	border-color: var(--apsyp-primary-hover) !important;
}

/* ===== Mobil ===== */
@media (max-width: 782px) {
	.apsyp-oppl-banner {
		padding: 24px 0 14px;
	}
	.apsyp-oppl-banner h1 {
		font-size: 24px;
	}
	.apsyp-oppl-meny button.apsyp-oppl-pille {
		padding: 6px 12px !important;
		font-size: 13px !important;
	}
	.apsyp-oppl-kort {
		padding: 18px 14px;
		border-radius: 10px;
	}
	/* Brede tabeller (grenseverdiene) ruller sidelengs inne i kortet
	   i stedet for å sprenge siden. */
	.apsyp-oppl-kort table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.apsyp-oppl-kort th,
	.apsyp-oppl-kort td {
		padding: 8px 10px;
		font-size: 14px;
	}
	.apsyp-video {
		padding: 10px 10px 12px;
	}
	.apsyp-portal {
		gap: 20px;
	}
}
