/**
 * Get started page (.fx-main--get-started).
 *
 * Kræver at css/page-get-started.css faktisk enqueues — se functions.php
 * (template_slug skal være page-get-started selvom WP gemmer Elementor-template
 * i sidemeta).
 */

/* -------------------------------------------------------------------------
 * Side-rod — blød baggrund kant til kant; hvidt kort på demo-sektionen
 * ------------------------------------------------------------------------- */

html:has(#fx-main.fx-main--get-started),
body:has(#fx-main.fx-main--get-started) {
	background-color: var(--fx-bg-soft, #f6f5f8);
}

/* Astra / wraps: gennemsigtige så body/html-tonen fylder bredden */
body:has(#fx-main.fx-main--get-started) #page,
body:has(#fx-main.fx-main--get-started) .site,
body:has(#fx-main.fx-main--get-started) .main-container,
body:has(#fx-main.fx-main--get-started) #content,
body:has(#fx-main.fx-main--get-started) .site-content,
body:has(#fx-main.fx-main--get-started) #primary,
body:has(#fx-main.fx-main--get-started) .site-content .ast-container:has(#fx-main) {
	background-color: transparent;
}

.fx-main--get-started {
	background: transparent;
	color: var(--fx-text, #2d2f31);
}

/* Lad hovedkolonnen fylde resten af flex-højden når indholdet er kort */
body:has(#fx-main.fx-main--get-started) #fx-main.fx-main--get-started {
	flex: 1 1 auto;
	min-height: 0;
}

/* -------------------------------------------------------------------------
 * Breadcrumb — diskret, luft mod hero
 * ------------------------------------------------------------------------- */

/* Wrap-layout (max-width / margin / padding) er nu i css/breadcrumb.css
 * site-wide. Kun link-typografi er bevaret her, da /get-started/ bruger
 * en lidt blødere muted-tone end default-breadcrumb-linkfarven. */
.fx-main--get-started .fx-breadcrumb-wrap a,
.fx-main--get-started .fx-breadcrumb-wrap {
	font-size: 14px;
	line-height: 1.45;
	color: var(--fx-text-muted, #5f6770);
}

.fx-main--get-started .fx-breadcrumb-wrap a:hover {
	color: var(--fx-link, #163b6b);
}

/* -------------------------------------------------------------------------
 * Lead (H1 + intro + billede) — samme hvide kort som formular; stablet layout
 * ------------------------------------------------------------------------- */

.fx-gs-lead {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(24px, 3.5vw, 40px);
	margin-bottom: 0;
}

.fx-gs-lead__text {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	width: 100%;
}

.fx-gs-lead__title {
	margin: 0 auto clamp(12px, 2vw, 20px);
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: clamp(32px, 4.2vw, 48px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--fx-text, #2d2f31);
}

.fx-gs-lead__intro {
	max-width: 34rem;
	margin: 0 auto;
	font-size: clamp(17px, 1.35vw, 19px);
	line-height: 1.65;
	color: var(--fx-text-body, rgba(45, 47, 49, 0.82));
}

.fx-gs-lead__actions {
	display: flex;
	justify-content: center;
	margin-top: clamp(6px, 1.2vw, 12px);
}

.fx-gs-lead__media {
	width: 100%;
	max-width: min(100%, 920px);
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
}

.fx-gs-lead__image-wrap {
	max-width: 100%;
	width: 100%;
	margin: 0 auto;
	border-radius: var(--fx-radius-xl, 24px);
	overflow: hidden;
	box-shadow:
		0 20px 52px -28px rgba(22, 59, 107, 0.18),
		0 8px 22px -12px rgba(22, 59, 107, 0.08),
		var(--fx-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
	border: 1px solid rgba(22, 59, 107, 0.06);
	background: var(--fx-bg-soft, #f6f5f8);
}

.fx-gs-lead__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

/* -------------------------------------------------------------------------
 * Hovedindhold — ét kort (sektion) med lead + prosa + HubSpot
 * ------------------------------------------------------------------------- */

/* Lidt luft omkring demo-sektionen (anker: #get-started-form). */
.fx-main--get-started .get-started-form {
	margin: 24px;
}

/*
 * Kort-styling på selve sektionen — ikke kun .fx-gs-main__container — så hvid
 * baggrund dækker også HubSpot hvis WYSIWYG/HTML lukker inder-div for tidligt.
 */
#fx-main.fx-main--get-started .fx-gs-main {
	width: 100%;
	max-width: min(100%, var(--fx-max-content, 1140px));
	margin-left: auto;
	margin-right: auto;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: clip;
	padding-left:  var(--fx-gutter, 24px);
	padding-right: var(--fx-gutter, 24px);
	background: var(--fx-bg, #fff);
	border: 1px solid rgba(22, 59, 107, 0.07);
	border-radius: var(--fx-radius-xl, 24px);
	box-shadow:
		0 24px 60px -36px rgba(22, 59, 107, 0.18),
		0 10px 28px -14px rgba(22, 59, 107, 0.08);
}

.fx-gs-main {
	padding-top:    clamp(40px, 5vw, 72px);
	padding-bottom: clamp(48px, 6vw, 96px);
	padding-left:  0;
	padding-right: 0;
	background: transparent;
}

.fx-gs-main__container {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
	font-family: var(--fx-font-body, "Ubuntu", sans-serif);
	font-size: 17px;
	line-height: 1.7;
	color: var(--fx-text-body, rgba(45, 47, 49, 0.8));
	min-width: 0;
	box-sizing: border-box;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.fx-gs-main__container > .fx-gs-lead + .fx-gs-main__prose {
	margin-top: clamp(24px, 3vw, 36px);
}

.fx-gs-main__prose h2:first-child,
.fx-gs-main__prose > *:first-child {
	margin-top: 0;
}

.fx-gs-main__container h2,
.fx-gs-main__prose h2 {
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	margin: 40px 0 14px;
	color: var(--fx-text, #2d2f31);
	letter-spacing: -0.02em;
}

.fx-gs-main__container h3,
.fx-gs-main__prose h3 {
	font-family: var(--fx-font-heading, "Ubuntu", sans-serif);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	line-height: 1.3;
	margin: 28px 0 10px;
	color: var(--fx-text, #2d2f31);
}

.fx-gs-main__container p,
.fx-gs-main__prose p {
	margin: 0 0 18px;
}

.fx-gs-main__container p:last-child,
.fx-gs-main__prose p:last-child {
	margin-bottom: 0;
}

.fx-gs-main__container ul,
.fx-gs-main__container ol,
.fx-gs-main__prose ul,
.fx-gs-main__prose ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.fx-gs-main__container li,
.fx-gs-main__prose li {
	margin-bottom: 8px;
}

.fx-gs-main__container a,
.fx-gs-main__prose a {
	color: var(--fx-link, #163b6b);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(22, 59, 107, 0.35);
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.fx-gs-main__container a:hover,
.fx-gs-main__prose a:hover {
	color: var(--fx-link-hover, #0f2d54);
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(22, 59, 107, 0.55);
}

.fx-gs-main__container iframe,
.fx-gs-main__prose iframe {
	max-width: 100%;
	border: 0;
	border-radius: var(--fx-radius-md, 12px);
}

/* HubSpot — adskilt visuelt fra lead/prosa inde i samme kort */
.fx-gs-main .fx-gs-hubspot-shell {
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: clamp(24px, 3.5vw, 36px);
	border-top: 1px solid var(--fx-border-soft, #f0f0f4);
}

.fx-gs-hubspot-shell {
	width: 100%;
	max-width: min(100%, 640px);
	margin-left: auto;
	margin-right: auto;
	min-width: 0;
	box-sizing: border-box;
}

.fx-gs-hubspot-shell iframe {
	display: block;
	max-width: 100%;
	width: 100%;
	border: 0;
	border-radius: var(--fx-radius-md, 12px);
}

.fx-gs-hubspot {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fx-gs-hubspot__target {
	min-height: 100px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border-radius: var(--fx-radius, 12px);
	background: linear-gradient(
		180deg,
		var(--fx-bg-muted, #eeecf2) 0%,
		var(--fx-bg-soft, #f6f5f8) 100%
	);
}

/* Når HubSpot har mountet indhold, fjern “skelet”-baggrund */
.fx-gs-hubspot__target:not(:empty) {
	background: transparent;
}

.fx-main--get-started .fx-gs-hubspot-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.fx-main--get-started .fx-gs-hubspot-shell textarea,
.fx-main--get-started .fx-gs-hubspot-shell select {
	max-width: 100%;
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * Bund-CTA — lidt luft fra kort-sektionen
 * ------------------------------------------------------------------------- */

.fx-main--get-started > .fx-cta {
	margin-top: 0;
}

@media (max-width: 767px) {
	#fx-main.fx-main--get-started .fx-gs-main {
		border-radius: var(--fx-radius-lg, 16px);
	}

	.fx-gs-main__container {
		padding: 24px 18px;
	}

	.fx-gs-lead__image-wrap {
		border-radius: var(--fx-radius-lg, 16px);
	}
}
