/* HD Ring mig op */
:root {
	--hd-rmo-gold: #BFA980;
	--hd-rmo-gold-dark: #a8915f;
	--hd-rmo-ink: #2b2d31;
}

/* --- Menupunkt som guldknap (computer) --- */
.fusion-main-menu .hd-rmo-menuitem > a .menu-text,
nav .hd-rmo-menuitem > a.hd-rmo-menulink:not(:has(.menu-text)) {
	background: var(--hd-rmo-gold);
	color: var(--hd-rmo-ink) !important;
	padding: 9px 18px;
	border-radius: 3px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background .15s;
}
.fusion-main-menu .hd-rmo-menuitem > a:hover .menu-text,
nav .hd-rmo-menuitem > a.hd-rmo-menulink:not(:has(.menu-text)):hover {
	background: var(--hd-rmo-gold-dark);
}
/* Avada tegner en streg under aktive/hover-menupunkter – ikke på knappen */
.fusion-main-menu .hd-rmo-menuitem > a,
.fusion-main-menu .hd-rmo-menuitem > a:hover {
	border-color: transparent !important;
}

/* --- Fast knap nederst (mobil) – vises via media query fra pluginet --- */
.hd-rmo-fab {
	display: none;
	position: fixed;
	left: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--hd-rmo-gold);
	color: var(--hd-rmo-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.hd-rmo-fab svg { width: 18px; height: 18px; fill: currentColor; }
.hd-rmo-lock .hd-rmo-fab { display: none !important; }

/* --- Vindue --- */
.hd-rmo-lock, .hd-rmo-lock body { overflow: hidden; }
.hd-rmo-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hd-rmo-modal[hidden] { display: none; }
.hd-rmo-backdrop { position: absolute; inset: 0; background: rgba(20, 21, 24, .6); }
.hd-rmo-box {
	position: relative;
	width: 100%;
	max-width: 400px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: var(--hd-rmo-ink);
	border-top: 4px solid var(--hd-rmo-gold);
	border-radius: 4px;
	padding: 26px 24px 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
	font-size: 16px;
	line-height: 1.45;
}
.hd-rmo-box h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; color: var(--hd-rmo-ink); }
.hd-rmo-promise { margin: 0 0 16px; color: #5d5c58; }
.hd-rmo-x {
	position: absolute; top: 8px; right: 10px;
	width: 36px; height: 36px; border: 0; background: none;
	font-size: 28px; line-height: 1; color: #777; cursor: pointer;
}
.hd-rmo-x:hover { color: var(--hd-rmo-ink); }

.hd-rmo-callnow {
	display: none; /* vises kun på mobil */
	justify-content: center; gap: 6px;
	margin: 0 0 16px; padding: 12px;
	border: 2px solid var(--hd-rmo-gold); border-radius: 4px;
	color: var(--hd-rmo-ink) !important; text-decoration: none !important;
}

.hd-rmo-form label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 14px; }
.hd-rmo-form label span { font-weight: 400; color: #777; }
.hd-rmo-form input, .hd-rmo-form select {
	width: 100%; box-sizing: border-box;
	padding: 10px 12px; font-size: 16px;
	border: 1px solid #cfccc4; border-radius: 3px; background: #fff; color: var(--hd-rmo-ink);
}
.hd-rmo-form input:focus, .hd-rmo-form select:focus { outline: 2px solid var(--hd-rmo-gold); outline-offset: 1px; border-color: var(--hd-rmo-gold); }
.hd-rmo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hd-rmo-submit {
	width: 100%; margin-top: 18px; padding: 12px;
	border: 0; border-radius: 3px;
	background: var(--hd-rmo-ink); color: #fff;
	font-size: 16px; font-weight: 600; cursor: pointer;
}
.hd-rmo-submit:hover { background: #000; }
.hd-rmo-submit:disabled { opacity: .6; cursor: default; }

.hd-rmo-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; }
.hd-rmo-msg.is-ok { color: #2f6b43; font-weight: 600; }
.hd-rmo-msg.is-err { color: #a33a2a; }
.hd-rmo-gdpr { margin: 8px 0 0; font-size: 13px; color: #777; }
.hd-rmo-gdpr a { color: inherit; text-decoration: underline; }

/* Efter afsendelse: skjul felterne, vis kun takken */
.hd-rmo-form.is-sent label,
.hd-rmo-form.is-sent input,
.hd-rmo-form.is-sent select,
.hd-rmo-form.is-sent .hd-rmo-submit,
.hd-rmo-form.is-sent .hd-rmo-gdpr { display: none; }

@media (prefers-reduced-motion: no-preference) {
	.hd-rmo-box { animation: hdRmoIn .18s ease-out; }
	@keyframes hdRmoIn { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
}
