/* Colour tokens for every front-end piece; a shortcode's color attribute overrides them inline. */
.dkc-signup,
.dkc-join,
.dkc-result {
	--dkc-brand: #4f7a67;
	--dkc-brand-strong: #3d6353;
	--dkc-ink: #22302a;
	--dkc-muted: #6d7a73;
	--dkc-line: #d9d4c7;
	--dkc-danger: #b4483f;
}

.dkc-signup {
	max-width: 440px;
	margin: 0 auto;
	padding: 28px 26px;
	border: 1px solid #e8e4da;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(34, 48, 42, 0.05), 0 12px 32px -18px rgba(34, 48, 42, 0.25);
	color: var(--dkc-ink);
	font-size: 16px;
	line-height: 1.5;
	text-align: start;
	box-sizing: border-box;
}

.dkc-signup *,
.dkc-signup *::before,
.dkc-signup *::after {
	box-sizing: inherit;
}

.dkc-signup-title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.dkc-signup-field {
	display: block;
	margin-bottom: 14px;
}

.dkc-signup-field span {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--dkc-muted);
}

.dkc-signup input[type="text"],
.dkc-signup input[type="tel"],
.dkc-signup input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--dkc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--dkc-ink);
	font: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.dkc-signup input[dir="ltr"] {
	text-align: end;
}

.dkc-signup input:focus {
	border-color: var(--dkc-brand);
	box-shadow: 0 0 0 3px rgba(79, 122, 103, 0.18);
	outline: none;
}

.dkc-signup input[aria-invalid="true"] {
	border-color: var(--dkc-danger);
}

.dkc-signup-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 18px;
	font-size: 14px;
	color: var(--dkc-muted);
	cursor: pointer;
}

.dkc-signup-consent input {
	width: 18px;
	height: 18px;
	flex: none;
	margin: 3px 0 0;
	accent-color: var(--dkc-brand);
}

.dkc-signup-hp {
	position: absolute !important;
	top: 0;
	inset-inline-end: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.dkc-signup-button {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--dkc-brand);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}

.dkc-signup-button:hover {
	background: var(--dkc-brand-strong);
}

.dkc-signup-button:focus-visible {
	outline: 2px solid var(--dkc-brand);
	outline-offset: 3px;
}

.dkc-signup-button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.dkc-signup-error {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fbebe8;
	color: var(--dkc-danger);
	font-size: 14px;
}

.dkc-signup-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--dkc-muted);
	text-align: center;
}

.dkc-signup-notice {
	padding: 12px 16px;
	border: 1px dashed var(--dkc-line, #d9d4c7);
	border-radius: 10px;
	color: #6d7a73;
}

/* Join button + popup */

.dkc-join {
	display: inline-block;
}

.dkc-join.is-inline {
	display: block;
}

.dkc-join .dkc-join-open {
	width: auto;
	min-width: 220px;
	padding: 14px 32px;
	border-radius: 999px;
	font-size: 19px;
}

.dkc-join-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(34, 48, 42, 0.45);
	backdrop-filter: blur(2px);
	box-sizing: border-box;
}

.dkc-join-overlay[hidden] {
	display: none;
}

.dkc-join.is-inline .dkc-join-overlay {
	position: static;
	display: block;
	padding: 0;
	background: none;
	backdrop-filter: none;
}

.dkc-join-form {
	position: relative;
	max-height: calc(100vh - 40px);
	overflow: auto;
}

.dkc-join-close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0ede5;
	color: #46554e;
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
}

.dkc-join-close:hover {
	background: #e3dfd3;
}

.dkc-join-text {
	margin: -8px 0 18px;
	color: #6d7a73;
	font-size: 15px;
}

.dkc-join-done {
	text-align: center;
	padding: 8px 0;
}

.dkc-join-done-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #e2f2e8;
	color: #25694a;
}

.dkc-join-done .dkc-signup-title {
	margin-bottom: 8px;
}

.dkc-join-go {
	display: inline-block;
	width: auto;
	margin-top: 6px;
	text-decoration: none;
	text-align: center;
}

/* Result box after payment */

.dkc-result {
	max-width: 440px;
	margin: 0 auto;
	padding: 36px 28px;
	border: 1px solid #e8e4da;
	border-radius: 18px;
	background: #fff;
	text-align: center;
	color: #22302a;
	box-shadow: 0 12px 32px -18px rgba(34, 48, 42, 0.25);
	box-sizing: border-box;
	font-family: "Heebo", -apple-system, "Segoe UI", Arial, sans-serif;
}

.dkc-result-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: grid;
	place-items: center;
}

.dkc-result-icon.is-ok {
	background: #e2f2e8;
	color: #25694a;
}

.dkc-result-icon.is-bad {
	background: #fbe6e3;
	color: #a5433b;
}

.dkc-result-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.dkc-result-text {
	margin: 0 0 22px;
	color: #6d7a73;
	font-size: 16px;
	line-height: 1.6;
}

.dkc-result .dkc-result-link {
	display: inline-block;
	width: auto;
	min-height: 0;
	padding: 12px 24px;
	text-decoration: none;
}

.dkc-signup-field small {
	font-size: 12px;
	font-weight: 400;
	opacity: 0.8;
}
