/* Domain-Deal Connect — front-end components.
   Inherits YOOtheme/UIkit typography and colours through CSS variables where
   available, with sane fallbacks so it also looks right on a default theme. */

:root {
	--dd-accent: var(--dd-brand, #1f4ed8);
	--dd-accent-ink: #ffffff;
	--dd-ok: #1a7f4b;
	--dd-no: #b42318;
	--dd-line: rgba(0, 0, 0, .10);
	--dd-muted: rgba(0, 0, 0, .58);
	--dd-surface: #ffffff;
	--dd-surface-2: #f6f7f9;
	--dd-radius: 10px;
	--dd-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

/* ------------------------------------------------------------ search */

.dd-search { max-width: 46rem; margin-inline: auto; }

.dd-search__form {
	display: flex;
	gap: .5rem;
	background: var(--dd-surface);
	border: 1px solid var(--dd-line);
	border-radius: calc(var(--dd-radius) + 4px);
	padding: .5rem;
	box-shadow: var(--dd-shadow);
}

.dd-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 1.0625rem;
	padding: .75rem .875rem;
	color: inherit;
}

.dd-search__input:focus { outline: 0; }

.dd-search__button {
	flex: 0 0 auto;
	border: 0;
	border-radius: var(--dd-radius);
	background: var(--dd-accent);
	color: var(--dd-accent-ink);
	font-weight: 600;
	font-size: .9375rem;
	padding: .75rem 1.5rem;
	cursor: pointer;
	transition: filter .15s ease;
}

.dd-search__button:hover { filter: brightness(.92); }
.dd-search__button[disabled] { opacity: .6; cursor: progress; }

.dd-search__tlds {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .375rem .75rem;
	margin: .875rem 0 0;
	padding: 0;
	justify-content: center;
	font-size: .8125rem;
	color: var(--dd-muted);
}

.dd-search__results { margin-top: 1.25rem; }

.dd-result {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1rem 1.125rem;
	border: 1px solid var(--dd-line);
	border-radius: var(--dd-radius);
	background: var(--dd-surface);
	margin-bottom: .5rem;
}

.dd-result--hit { border-color: rgba(26, 127, 75, .35); background: rgba(26, 127, 75, .05); }
.dd-result--miss { background: var(--dd-surface-2); }

.dd-result__name { font-weight: 600; font-size: 1.0625rem; margin: 0; word-break: break-all; }
.dd-result__status { font-size: .8125rem; font-weight: 600; }
.dd-result--hit .dd-result__status { color: var(--dd-ok); }
.dd-result--miss .dd-result__status { color: var(--dd-no); }
.dd-result__spacer { flex: 1 1 auto; }
.dd-result__price { font-weight: 700; white-space: nowrap; }
.dd-result__renew { font-size: .75rem; color: var(--dd-muted); display: block; font-weight: 400; }

.dd-result__cta {
	border: 0;
	border-radius: 8px;
	background: var(--dd-accent);
	color: var(--dd-accent-ink);
	font-weight: 600;
	font-size: .875rem;
	padding: .625rem 1.25rem;
	text-decoration: none;
	white-space: nowrap;
}

.dd-result--miss .dd-result__cta { background: transparent; color: var(--dd-accent); border: 1px solid var(--dd-line); }
.dd-result__cta:hover { text-decoration: none; filter: brightness(.92); }

.dd-suggestions__title {
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--dd-muted);
	margin: 1.5rem 0 .625rem;
}

.dd-search__note { font-size: .875rem; color: var(--dd-muted); }

/* -------------------------------------------------------------- tlds */

.dd-tlds__table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.dd-tlds__tld { font-size: 1.0625rem; }
.dd-tlds__price { font-weight: 700; }

/* ------------------------------------------------------------- plans */

.dd-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 2rem 1.75rem;
	border: 1px solid var(--dd-line);
	border-radius: calc(var(--dd-radius) + 4px);
	background: var(--dd-surface);
}

.dd-plan--featured {
	border-color: var(--dd-accent);
	box-shadow: var(--dd-shadow);
}

.dd-plan__badge {
	position: absolute;
	top: -.75rem;
	left: 1.75rem;
	background: var(--dd-accent);
	color: var(--dd-accent-ink);
	font-size: .6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: .3125rem .625rem;
	border-radius: 999px;
}

.dd-plan__name { margin: 0 0 .5rem; font-size: 1.125rem; }
.dd-plan__price { margin: 0 0 1.25rem; display: flex; align-items: baseline; gap: .25rem; }
.dd-plan__amount { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.dd-plan__period { font-size: .875rem; color: var(--dd-muted); }

.dd-plan__features { list-style: none; margin: 0 0 1.75rem; padding: 0; flex: 1 1 auto; }

.dd-plan__features li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: .5rem;
	font-size: .9375rem;
	line-height: 1.45;
}

.dd-plan__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: .5rem;
	height: .3rem;
	border-left: 2px solid var(--dd-ok);
	border-bottom: 2px solid var(--dd-ok);
	transform: rotate(-45deg);
}

/* --------------------------------------------------------- usp/steps */

.dd-usp__item, .dd-step { height: 100%; }
.dd-usp__icon { color: var(--dd-accent); }
.dd-usp__title, .dd-step__title { margin: .75rem 0 .375rem; font-size: 1rem; }
.dd-usp__text, .dd-step__text { margin: 0; font-size: .9375rem; color: var(--dd-muted); line-height: 1.55; }

.dd-step__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--dd-accent);
	color: var(--dd-accent-ink);
	font-weight: 700;
	font-size: .875rem;
}

/* ---------------------------------------------------------- lead form */

.dd-lead__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.dd-lead__row .uk-input { flex: 1 1 14rem; }
.dd-lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dd-lead__consent { margin-top: .5rem; }
.dd-lead__msg { margin-top: .625rem; font-size: .875rem; font-weight: 600; }

/* ---------------------------------------------------------- lang list */

.dd-lang { list-style: none; display: flex; gap: .75rem; margin: 0; padding: 0; font-size: .8125rem; }
.dd-lang a { text-decoration: none; color: inherit; opacity: .65; }
.dd-lang a:hover { opacity: 1; }
.dd-lang__active a { opacity: 1; font-weight: 700; }

/* -------------------------------------------------------------- misc */

.dd-cta__title { margin-bottom: .5rem; }
.dd-cta__text { color: var(--dd-muted); margin-bottom: 1.5rem; }

@media (prefers-color-scheme: dark) {
	.uk-light .dd-search__form,
	.uk-light .dd-plan,
	.uk-light .dd-result { background: transparent; }
}

.uk-light {
	--dd-surface: rgba(255, 255, 255, .06);
	--dd-surface-2: rgba(255, 255, 255, .04);
	--dd-line: rgba(255, 255, 255, .18);
	--dd-muted: rgba(255, 255, 255, .7);
}

/* ------------------------------------------------- prijsstrook (hero) */

/* Extensie, aanmeldprijs en verlengprijs op één regel, direct onder de
   zoekbalk. De verlengprijs staat er kleiner maar wél bij — dat is het hele
   punt van dit merk, en hem weglaten zou de belofte op de eerste schermhoogte
   al breken. Erfelijke kleur: de strook staat in de hero, dus hij neemt
   --dd-hero-ink over in plaats van een eigen kleur te kiezen. */

.dd-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .375rem .5rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.dd-strip__item { margin: 0; }

.dd-strip__btn {
	display: inline-flex;
	align-items: baseline;
	gap: .4rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: var(--dd-hero-ink, inherit);
	padding: .3rem .75rem;
	font-size: .8125rem;
	line-height: 1.4;
	cursor: pointer;
	opacity: .9;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.dd-strip__btn:hover {
	opacity: 1;
	background: var(--dd-hero-ink, #141414);
	color: var(--dd-hero-bg, #ffffff);
}

.dd-strip__tld { font-weight: 700; }
.dd-strip__price { font-weight: 600; }

.dd-strip__renew {
	font-size: .6875rem;
	opacity: .72;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.dd-strip { gap: .3rem; }
	.dd-strip__renew { display: none; }
}

/* Zoekbalk in een gekleurde hero: het witte vlak moet los staan van de
   achtergrond, niet erin oplossen. */

.uk-section-primary .dd-search__form {
	border-color: transparent;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.uk-section-primary .dd-search__button {
	background: var(--dd-btn, var(--dd-accent));
	color: var(--dd-btn-ink, #fff);
}
