/*
 * Autolight Erhvervskunder page template styles.
 * Scoped entirely under .ao-erhverv so nothing here can leak onto, or
 * be affected by, any other page or any other WPForms form on the
 * site. Uses the same design tokens (CSS custom properties) already
 * defined site-wide by the Autolight 2.0 theme, with safe fallback
 * values in case a property isn't present for any reason.
 */

.ao-erhverv {
	--ao-bg: var(--bg, #0B0E13);
	--ao-surface: var(--surface, #141A22);
	--ao-surface-2: var(--surface-2, #1C2430);
	--ao-surface-3: var(--surface-3, #242E3C);
	--ao-line: var(--line, #2A3341);
	--ao-brand: var(--brand, #E7AE35);
	--ao-brand-dim: var(--brand-dim, #A97A1B);
	--ao-brand-light: var(--brand-light, #FFDE85);
	--ao-ink-on-brand: var(--ink-on-brand, #201400);
	--ao-text: var(--text, #EDF1F7);
	--ao-muted: var(--muted, #8B96A5);
	--ao-radius: var(--radius, 10px);
	--ao-maxw: var(--maxw, 1180px);

	background: var(--ao-bg);
	color: var(--ao-text);
}

.ao-erhverv *,
.ao-erhverv *::before,
.ao-erhverv *::after {
	box-sizing: border-box;
}

.ao-eh-wrap {
	max-width: var(--ao-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.ao-erhverv img {
	max-width: 100%;
	display: block;
}

/* ---------- HERO ---------- */
.ao-eh-hero {
	position: relative;
	padding: 110px 0 76px;
	background:
		linear-gradient(100deg, rgba(11,14,19,.97) 0%, rgba(11,14,19,.86) 38%, rgba(11,14,19,.35) 72%, rgba(11,14,19,.15) 100%),
		linear-gradient(0deg, var(--ao-bg) 0%, transparent 18%),
		url("https://autolight.dk/wp-content/uploads/2026/03/ChatGPT-Image-13.-mar.-2026-13.56.04.png") center 38% / cover no-repeat;
	border-bottom: 1px solid var(--ao-line);
	min-height: 460px;
}
.ao-eh-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ao-brand);
	background: rgba(231,174,53,.1);
	border: 1px solid rgba(231,174,53,.35);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.ao-eh-hero h1 {
	font-size: 46px;
	line-height: 1.12;
	font-weight: 800;
	margin: 0 0 18px;
	max-width: 720px;
	color: var(--ao-text);
}
.ao-eh-hero h1 span {
	color: var(--ao-brand);
}
.ao-eh-lede {
	font-size: 17px;
	color: var(--ao-muted);
	max-width: 620px;
	margin: 0 0 30px;
}
.ao-eh-cta-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.ao-eh-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 24px;
	height: 48px;
	border-radius: var(--ao-radius);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}
.ao-eh-btn-primary {
	background: linear-gradient(var(--ao-brand-light), var(--ao-brand));
	color: var(--ao-ink-on-brand);
	box-shadow: 0 8px 24px -8px rgba(231,174,53,.45);
}
.ao-eh-btn-ghost {
	background: transparent;
	border-color: var(--ao-line);
	color: var(--ao-text);
}

/* ---------- SECTIONS ---------- */
.ao-eh-section {
	padding: 72px 0;
}
.ao-eh-section-alt {
	background: var(--ao-surface);
	border-top: 1px solid var(--ao-line);
	border-bottom: 1px solid var(--ao-line);
}
.ao-eh-section-head {
	max-width: 680px;
	margin: 0 0 40px;
}
.ao-eh-section-head h2 {
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--ao-text);
}
.ao-eh-section-head p {
	color: var(--ao-muted);
	margin: 0;
	font-size: 15.5px;
}

.ao-eh-grid {
	display: grid;
	gap: 20px;
}
.ao-eh-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.ao-eh-card {
	background: var(--ao-surface);
	border: 1px solid var(--ao-line);
	border-radius: 14px;
	padding: 28px;
}
.ao-eh-section-alt .ao-eh-card {
	background: var(--ao-surface-2);
}

/* reason cards */
.ao-eh-reason-card {
	position: relative;
	overflow: hidden;
}
.ao-eh-reason-num {
	font-size: 52px;
	font-weight: 800;
	color: transparent;
	-webkit-text-stroke: 1px var(--ao-line);
	line-height: 1;
	margin: 0 0 14px;
}
.ao-eh-reason-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--ao-text);
}
.ao-eh-reason-card p {
	font-size: 14.5px;
	color: var(--ao-muted);
	margin: 0;
}

/* brand cards */
.ao-eh-brand-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ao-eh-brand-logo-wrap {
	background: #0d1016;
	border: 1px solid var(--ao-line);
	border-radius: 10px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.ao-eh-brand-logo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ao-eh-brand-card h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	text-transform: capitalize;
	color: var(--ao-text);
}
.ao-eh-brand-card p {
	font-size: 14px;
	color: var(--ao-muted);
	margin: 0;
}
.ao-eh-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ao-brand);
	text-decoration: none;
}

/* ---------- APPLY BOX ---------- */
.ao-eh-apply-section {
	padding: 80px 0 96px;
}
.ao-eh-apply-card {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	background: linear-gradient(180deg, var(--ao-surface-2), var(--ao-surface));
	border: 1px solid var(--ao-line);
	border-radius: 18px;
	padding: 48px;
	overflow: hidden;
}
.ao-eh-apply-card::before {
	content: "";
	position: absolute;
	top: -80px;
	right: -80px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(231,174,53,.18), transparent 70%);
	pointer-events: none;
}
.ao-eh-apply-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(var(--ao-brand-light), var(--ao-brand));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	position: relative;
}
.ao-eh-apply-icon svg {
	width: 24px;
	height: 24px;
	stroke: var(--ao-ink-on-brand);
}
.ao-eh-apply-card h2 {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 10px;
	max-width: 560px;
	color: var(--ao-text);
	position: relative;
}
.ao-eh-apply-lede {
	color: var(--ao-muted);
	font-size: 15px;
	margin: 0 0 32px;
	max-width: 560px;
	position: relative;
}
.ao-eh-apply-note {
	font-size: 12.5px;
	color: var(--ao-muted);
	margin-top: 14px;
	text-align: center;
	position: relative;
}

/* =====================================================================
 * Restyle the REAL WPForms form (shortcode [wpforms id="8557"]) to
 * match the dark/gold card look above. Only cosmetic properties are
 * touched (colors, borders, radius, spacing) - layout/visibility
 * rules that WPForms relies on (e.g. for its honeypot anti-spam
 * fields) are left completely alone, and everything here is scoped
 * under .ao-erhverv so no other WPForms form on the site is affected.
 * ===================================================================== */
.ao-erhverv .wpforms-container {
	margin: 0;
	position: relative;
}
.ao-erhverv .wpforms-form .wpforms-field-container {
	margin-bottom: 0;
}
.ao-erhverv .wpforms-form .wpforms-field {
	padding: 0;
	margin-bottom: 18px;
}
.ao-erhverv .wpforms-form .wpforms-field-label,
.ao-erhverv .wpforms-form legend.wpforms-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ao-text);
	margin-bottom: 7px;
	padding: 0;
}
.ao-erhverv .wpforms-form .wpforms-required-label {
	color: var(--ao-brand);
}
.ao-erhverv .wpforms-form .wpforms-field-sublabel {
	color: var(--ao-muted);
	font-size: 12px;
	margin-top: 4px;
}
.ao-erhverv .wpforms-form .wpforms-field-row {
	/* The row wrapper itself (e.g. around Name's First/Last) also
	   carries WPForms' own "wpforms-field-medium" max-width:60% rule -
	   not just the inputs inside it. Override it here too, or the Name
	   row stays visibly narrower than the full-width fields around it
	   on desktop/tablet (>600px, where WPForms doesn't reset it itself). */
	max-width: 100% !important;
	display: flex;
	gap: 18px;
}
.ao-erhverv .wpforms-form .wpforms-field-row-block {
	flex: 1 1 0;
	margin: 0 !important;
}
.ao-erhverv .wpforms-form input[type="text"],
.ao-erhverv .wpforms-form input[type="email"],
.ao-erhverv .wpforms-form input[type="tel"],
.ao-erhverv .wpforms-form input[type="number"],
.ao-erhverv .wpforms-form input[type="url"],
.ao-erhverv .wpforms-form textarea,
.ao-erhverv .wpforms-form select {
	/* WPForms' own base CSS caps "medium" size fields at max-width:60%
	   above its ~600px breakpoint (desktop AND tablet) - our width:100%
	   alone can't beat that, since max-width always wins over width.
	   Override it explicitly so fields fill the card on every size
	   where WPForms doesn't already force 100% itself (<600px, i.e.
	   mobile - left untouched, already correct). */
	width: 100% !important;
	max-width: 100% !important;
	background: var(--ao-surface-3);
	border: 1px solid var(--ao-line);
	border-radius: var(--ao-radius);
	color: var(--ao-text);
	font-family: inherit;
	font-size: 14.5px;
	padding: 12px 14px;
	height: auto;
	transition: border-color .15s, box-shadow .15s;
}
.ao-erhverv .wpforms-form input::placeholder,
.ao-erhverv .wpforms-form textarea::placeholder {
	color: var(--ao-muted);
}
.ao-erhverv .wpforms-form input:focus,
.ao-erhverv .wpforms-form textarea:focus,
.ao-erhverv .wpforms-form select:focus {
	outline: none;
	border-color: var(--ao-brand);
	box-shadow: 0 0 0 3px rgba(231,174,53,.18);
}
.ao-erhverv .wpforms-form textarea {
	min-height: 92px;
	resize: vertical;
}
.ao-erhverv .wpforms-form .wpforms-submit-container {
	margin-top: 8px;
}
.ao-erhverv .wpforms-form button.wpforms-submit {
	width: 100%;
	justify-content: center;
	height: 52px;
	font-size: 15.5px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 24px;
	border-radius: var(--ao-radius);
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	background: linear-gradient(var(--ao-brand-light), var(--ao-brand));
	color: var(--ao-ink-on-brand);
	box-shadow: 0 8px 24px -8px rgba(231,174,53,.45);
}
.ao-erhverv .wpforms-form button.wpforms-submit:hover {
	filter: brightness(1.04);
}
/* WPForms error / validation styling, adapted to the dark card */
.ao-erhverv .wpforms-form .wpforms-error {
	color: #FF8A8A;
	font-size: 12.5px;
	margin-top: 6px;
}
.ao-erhverv .wpforms-form input.wpforms-error,
.ao-erhverv .wpforms-form textarea.wpforms-error {
	border-color: #E05B5B;
}
.ao-erhverv .wpforms-confirmation-container-full {
	background: var(--ao-surface-2);
	border: 1px solid var(--ao-line);
	border-radius: var(--ao-radius);
	padding: 24px;
	color: var(--ao-text);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
	.ao-eh-grid-3 {
		grid-template-columns: 1fr;
	}
	.ao-erhverv .wpforms-form .wpforms-field-row {
		flex-direction: column;
		gap: 0;
	}
	/* WPForms' own .wpforms-one-half/.wpforms-one-third etc. set a fixed
	   percentage width (e.g. 48%) which otherwise survives the column
	   stack above and leaves sub-fields (like First/Last name) narrow
	   and misaligned on small screens. Force them to full width here. */
	.ao-erhverv .wpforms-form .wpforms-field-row-block {
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-bottom: 14px !important;
	}
	.ao-erhverv .wpforms-form .wpforms-field-row-block:last-child {
		margin-bottom: 0 !important;
	}
	.ao-eh-apply-card {
		padding: 30px 24px;
	}
	.ao-eh-hero h1 {
		font-size: 34px;
	}
}
