/**
 * Builder Gel Keuzegids.
 *
 * Follows the design supplied by Keystone marketing. Two things were merged
 * into the webshop's own style instead of taken over literally:
 *   - the brand rose is the webshop token #b08e98 (the design said #b18d96);
 *   - the type is Open Sans, the font the rest of the shop already loads
 *     (the design referenced a Proxima Nova Typekit kit that does not exist).
 *
 * Every rule is scoped to .ksbg-guide so nothing leaks into the theme.
 */

.ksbg-guide {
	--ksbg-ink: #151413;
	--ksbg-rose: #b08e98;
	--ksbg-rose-dark: #6f4653;
	--ksbg-cotton-seed: #e5dbd7;
	--ksbg-pastel-grey: #cecac8;
	--ksbg-merino: #efedeb;
	--ksbg-surface: #fdfdfd;
	--ksbg-card: #ffffff;
	--ksbg-muted: #65555b;

	display: flex;
	justify-content: center;
	margin: 2em 0 0;
	padding: 2.5rem 1.25rem;
	background-color: var(--ksbg-merino);
	border-radius: 12px;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ksbg-ink);
	text-align: center;
}

.ksbg-guide .ksbg-card {
	width: 100%;
	max-width: 620px;
	padding: 40px 35px;
	background-color: var(--ksbg-card);
	border: 1px solid var(--ksbg-pastel-grey);
	border-radius: 4px;
	box-shadow: 0 12px 30px rgba(21, 20, 19, 0.05);
}

/* ---------------------------------------------------------------- Heading */

.ksbg-guide .ksbg-heading {
	margin: 0 0 10px;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ksbg-ink);
	text-wrap: balance;
}

.ksbg-guide .ksbg-subtitle {
	margin: 0 0 30px;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ksbg-muted);
}

/* ------------------------------------------------------------- Question */

.ksbg-guide .ksbg-question {
	margin: 0 0 22px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ksbg-ink);
	text-wrap: balance;
}

.ksbg-guide .ksbg-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* --------------------------------------------------------------- Buttons
 *
 * style.css paints every button on the site rose:
 *   button:not(.x-search-btn-submit), .button, .woocommerce-button {
 *       background-color: #b08e98 !important; color: #fff !important; }
 * The guide's answer buttons are a different component, so background-color
 * and color are marked !important here to win that cascade. Everything else
 * comes through on specificity alone.
 *
 * style.css also stretches every button to width:100% (a form-field rule).
 * Full width is right for the answer options, so they keep it; the back and
 * reset controls set width:auto to shrink-wrap the way the design shows them.
 */

.ksbg-guide .ksbg-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 1px;
	text-align: left;
	text-transform: uppercase;
	color: var(--ksbg-ink) !important;
	background-color: var(--ksbg-surface) !important;
	border: 1px solid var(--ksbg-pastel-grey);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ksbg-guide .ksbg-option::after {
	content: "→";
	flex: none;
	font-weight: 700;
	color: var(--ksbg-rose);
}

.ksbg-guide .ksbg-option:hover {
	background-color: var(--ksbg-cotton-seed) !important;
	border-color: var(--ksbg-rose);
	transform: translateY(-1px);
}

.ksbg-guide .ksbg-result-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 25px;
}

/* "Bekijk producten": the result step's primary call to action, in the same
 * filled-rose family as the shop's "Add selection to Cart" button. */
.ksbg-guide .ksbg-cta {
	display: inline-block;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 14px 28px;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff !important;
	background-color: var(--ksbg-rose) !important;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.ksbg-guide .ksbg-cta:hover {
	background-color: var(--ksbg-ink) !important;
}

/* Shared "quiet" button: back navigation and restart. Same filled-rose family
 * as .ksbg-cta and the shop's "Add selection to Cart" button, just smaller
 * and started as an outline so it reads as the lesser action next to the CTA;
 * it still fills solid rose on hover/focus to stay one visual family. */
.ksbg-guide .ksbg-btn-subtle {
	display: inline-block;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 8px 18px;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ksbg-rose-dark) !important;
	background-color: transparent !important;
	border: 1px solid var(--ksbg-rose);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ksbg-guide .ksbg-btn-subtle:hover {
	color: #ffffff !important;
	background-color: var(--ksbg-rose) !important;
}

/* Only the back button sits directly in the step (not inside a flex row with
 * a sibling), so it alone needs its own top margin. */
.ksbg-guide .ksbg-back {
	margin-top: 20px;
}

.ksbg-guide .ksbg-option:focus-visible,
.ksbg-guide .ksbg-btn-subtle:focus-visible,
.ksbg-guide .ksbg-cta:focus-visible {
	outline: 3px solid var(--ksbg-rose-dark);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- Result */

.ksbg-guide .ksbg-result {
	margin-top: 10px;
	padding: 30px 25px;
	background-color: var(--ksbg-merino);
	border: 1px solid var(--ksbg-rose);
	border-radius: 4px;
}

.ksbg-guide .ksbg-result:focus {
	outline: none;
}

.ksbg-guide .ksbg-result-label {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--ksbg-rose);
}

.ksbg-guide .ksbg-product {
	margin: 0 0 14px;
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ksbg-ink);
	text-wrap: balance;
}

.ksbg-guide .ksbg-product-desc {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ksbg-ink);
}

.ksbg-guide .ksbg-noscript {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ksbg-muted);
}

.ksbg-guide .ksbg-is-hidden {
	display: none;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 480px) {
	.ksbg-guide {
		padding: 1.5rem 0.75rem;
		border-radius: 8px;
	}

	.ksbg-guide .ksbg-card {
		padding: 28px 20px;
	}

	.ksbg-guide .ksbg-heading {
		font-size: 1.35rem;
	}

	.ksbg-guide .ksbg-product {
		font-size: 1.7rem;
	}

	.ksbg-guide .ksbg-option {
		padding: 14px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ksbg-guide .ksbg-option,
	.ksbg-guide .ksbg-btn-subtle,
	.ksbg-guide .ksbg-cta {
		transition: none;
	}

	.ksbg-guide .ksbg-option:hover {
		transform: none;
	}
}
