/* Peptis Research Cart Builder — Typeform-style quiz styles */

.peptis-rcb {
	--prcb-cream: #fff8f1;
	--prcb-surface: #faf3ea;
	--prcb-burgundy: #5A171D;
	--prcb-burgundy-deep: #3d020a;
	--prcb-gold: #C7A86B;
	--prcb-sage: #7E8F6E;
	--prcb-ink: #1e1b16;
	--prcb-muted: #544242;
	--prcb-line: #eadfd2;
	font-family: Manrope, Inter, system-ui, sans-serif;
	color: var(--prcb-ink);
	background: var(--prcb-cream);
	border-radius: 28px;
	min-height: 70vh;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.peptis-rcb * { box-sizing: border-box; }

/* The quiz page is a standalone landing page; hide theme-generated titles. */
body.peptis-rcb-page .entry-title,
body.peptis-rcb-page .page-title,
body.peptis-rcb-page header.entry-header,
body.peptis-rcb-page .ast-single-entry-banner,
body.peptis-rcb-page .ast-archive-description {
	display: none !important;
}
body.peptis-rcb-page .site-content {
	background: var(--prcb-cream, #fff8f1);
	padding: 0 !important;
}
body.peptis-rcb-page .site-content > .ast-container,
body.peptis-rcb-page .ast-container,
body.peptis-rcb-page .content-area,
body.peptis-rcb-page .site-main,
body.peptis-rcb-page article,
body.peptis-rcb-page .entry-content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.peptis-rcb-page .peptis-rcb {
	width: 100vw;
	min-height: calc(100svh - 72px);
	margin-left: calc(50% - 50vw);
	border-radius: 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(199, 168, 107, .18), transparent 30%),
		linear-gradient(180deg, #fff8f1 0%, #faf3ea 100%);
}

.prcb-frame {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(18px, 3.5vw, 44px);
	display: flex;
	flex-direction: column;
	min-height: inherit;
}

/* Progress */
.prcb-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 0 0 clamp(18px, 3vw, 34px);
	padding: 12px 0 10px;
	background: linear-gradient(180deg, rgba(255, 248, 241, .98) 0%, rgba(255, 248, 241, .92) 72%, rgba(255, 248, 241, 0) 100%);
	backdrop-filter: blur(10px);
}
body.admin-bar .prcb-nav { top: 32px; }
.prcb-progress {
	height: 4px;
	border-radius: 999px;
	background: var(--prcb-line);
	overflow: hidden;
	margin-bottom: 10px;
}
.prcb-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--prcb-burgundy), var(--prcb-gold));
	border-radius: 999px;
	transition: width .4s ease;
}
.prcb-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 36px;
	margin-bottom: 0;
}
.prcb-back {
	background: #fff;
	border: 1px solid var(--prcb-line);
	box-shadow: 0 8px 20px rgba(61, 2, 10, .06);
	color: var(--prcb-burgundy);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	padding: 9px 14px;
	border-radius: 999px;
}
.prcb-back:hover { color: var(--prcb-burgundy-deep); background: var(--prcb-surface); border-color: var(--prcb-burgundy); }
.prcb-count { font-size: 13px; font-weight: 700; color: var(--prcb-muted); letter-spacing: .04em; }

/* Stage + animation */
.prcb-stage {
	flex: 1;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
}
.peptis-rcb.is-result .prcb-stage {
	max-width: 1040px;
}
.peptis-rcb.is-intro {
	min-height: calc(100svh - 72px);
}
.peptis-rcb.is-intro .prcb-stage {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-bottom: 20px;
}
.prcb-anim { animation: prcbFadeUp .38s ease both; }
@keyframes prcbFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.prcb-anim { animation: none; }
}

/* Typography */
.prcb-eyebrow {
	margin: 0 0 12px;
	color: var(--prcb-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.prcb-title {
	font-family: "Noto Serif", Georgia, serif;
	font-weight: 500;
	color: var(--prcb-burgundy);
	font-size: clamp(24px, 3.4vw, 36px);
	line-height: 1.18;
	margin: 0 0 14px;
}
.prcb-title--hero { font-size: clamp(32px, 5vw, 52px); color: var(--prcb-burgundy-deep); }
.prcb-help {
	color: var(--prcb-muted);
	font-size: 16px;
	line-height: 1.65;
	margin: 0 0 26px;
	max-width: 60ch;
}
.prcb-help a { color: var(--prcb-burgundy); }
.prcb-hint { color: var(--prcb-muted); font-size: 13px; margin: 14px 0 0; }
.prcb-section-title {
	font-family: "Noto Serif", Georgia, serif;
	font-weight: 500;
	color: var(--prcb-burgundy);
	font-size: 20px;
	margin: 30px 0 12px;
}
.prcb-error { color: #a8323c; font-size: 14px; font-weight: 700; margin: 12px 0 0; }
.prcb-footnote {
	font-size: 13px;
	line-height: 1.6;
	color: var(--prcb-muted);
	border-top: 1px solid var(--prcb-line);
	padding-top: 16px;
	margin-top: 26px;
}
.prcb-ruo-foot {
	margin: 34px 0 0;
	font-size: 12px;
	color: var(--prcb-muted);
	opacity: .85;
	line-height: 1.6;
}

/* Options */
.prcb-options { display: grid; gap: 12px; max-width: 620px; }
.prcb-option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1.5px solid var(--prcb-line);
	border-radius: 14px;
	padding: 15px 18px;
	font: inherit;
	font-size: 16px;
	color: var(--prcb-ink);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.prcb-option:hover {
	border-color: var(--prcb-burgundy);
	box-shadow: 0 10px 24px rgba(61, 2, 10, .08);
	transform: translateY(-1px);
}
.prcb-option.is-selected {
	border-color: var(--prcb-burgundy);
	background: var(--prcb-surface);
	box-shadow: 0 0 0 2px var(--prcb-burgundy) inset;
}
.prcb-option__key {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--prcb-line);
	border-radius: 7px;
	font-size: 12px;
	font-weight: 800;
	color: var(--prcb-muted);
	background: var(--prcb-cream);
}
.prcb-option.is-selected .prcb-option__key,
.prcb-option:hover .prcb-option__key {
	border-color: var(--prcb-burgundy);
	color: var(--prcb-burgundy);
}
.prcb-option__text {
	display: grid;
	gap: 3px;
}
.prcb-option__label { line-height: 1.45; }
.prcb-option__hint {
	display: block;
	color: var(--prcb-muted);
	font-size: 13px;
	line-height: 1.45;
}
.prcb-option.is-selected .prcb-option__hint {
	color: var(--prcb-muted);
}

/* Buttons */
.prcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	border-radius: 999px;
	padding: 14px 28px;
	cursor: pointer;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.prcb-btn:disabled { opacity: .5; cursor: not-allowed; }
.prcb-btn--primary {
	background: var(--prcb-burgundy);
	color: var(--prcb-cream);
	box-shadow: 0 14px 30px rgba(61, 2, 10, .22);
}
.prcb-btn--primary:hover:not(:disabled) {
	background: var(--prcb-burgundy-deep);
	color: var(--prcb-cream);
	transform: translateY(-2px);
}
.prcb-btn--gold {
	background: var(--prcb-gold);
	color: var(--prcb-burgundy-deep);
}
.prcb-btn--gold:hover { transform: translateY(-2px); color: var(--prcb-burgundy-deep); }
.prcb-btn--ghost {
	background: transparent;
	border-color: var(--prcb-line);
	color: var(--prcb-muted);
}
.prcb-btn--ghost:hover { border-color: var(--prcb-burgundy); color: var(--prcb-burgundy); }
.prcb-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.prcb-cta-row--stack { margin-top: 32px; }

/* Inputs */
.prcb-input {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--prcb-ink);
	background: #fff;
	border: 1.5px solid var(--prcb-line);
	border-radius: 12px;
	padding: 13px 16px;
}
.prcb-input:focus {
	outline: none;
	border-color: var(--prcb-burgundy);
	box-shadow: 0 0 0 3px rgba(90, 23, 29, .12);
}
.prcb-search { max-width: 520px; }
.prcb-field { display: block; max-width: 460px; margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--prcb-muted); }
.prcb-field .prcb-input { margin-top: 6px; font-weight: 400; }
.prcb-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	max-width: 560px;
	font-size: 13px;
	color: var(--prcb-muted);
	line-height: 1.6;
	margin: 6px 0 4px;
}
.prcb-consent input { margin-top: 3px; }

/* Search results */
.prcb-search-results { margin-top: 14px; display: grid; gap: 8px; max-width: 620px; }
.prcb-result {
	display: grid;
	grid-template-columns: 44px 1fr auto auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 1.5px solid var(--prcb-line);
	border-radius: 12px;
	padding: 8px 14px 8px 8px;
	font: inherit;
	cursor: pointer;
	transition: border-color .15s ease;
	appearance: none;
	-webkit-appearance: none;
	color: var(--prcb-ink);
}
.prcb-result:hover,
.prcb-result:focus,
.prcb-result:focus-visible {
	border-color: var(--prcb-burgundy);
	color: var(--prcb-ink);
}
.prcb-result.is-selected { border-color: var(--prcb-sage); background: var(--prcb-surface); }
.prcb-result img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--prcb-surface); }
.prcb-result__name { font-size: 14px; font-weight: 700; color: var(--prcb-ink); }
.prcb-result__price { font-size: 14px; color: var(--prcb-muted); white-space: nowrap; }
.prcb-result__action { font-size: 13px; font-weight: 800; color: var(--prcb-burgundy); white-space: nowrap; }
.prcb-result.is-selected .prcb-result__action { color: var(--prcb-sage); }

.prcb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.prcb-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--prcb-surface);
	border: 1px solid var(--prcb-line);
	border-radius: 999px;
	padding: 6px 8px 6px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--prcb-burgundy);
}
.prcb-chip button {
	border: none;
	background: rgba(90, 23, 29, .1);
	color: var(--prcb-burgundy);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

/* Result page: product grid */
.prcb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.prcb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border: 1.5px solid var(--prcb-line);
	border-radius: 16px;
	padding: 14px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.prcb-card:hover { border-color: var(--prcb-burgundy); }
.prcb-card.is-selected {
	border-color: var(--prcb-sage);
	box-shadow: 0 0 0 2px var(--prcb-sage) inset;
	background: var(--prcb-surface);
}
.prcb-card input {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 18px;
	height: 18px;
	accent-color: var(--prcb-sage);
}
.prcb-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	background: var(--prcb-surface);
}
.prcb-card__name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.prcb-card__price { font-size: 14px; color: var(--prcb-muted); }

/* Add-ons */
.prcb-addons { display: grid; gap: 10px; max-width: 640px; }
.prcb-addon {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "name price" "desc desc";
	gap: 4px 14px;
	background: #fff;
	border: 1.5px solid var(--prcb-line);
	border-radius: 14px;
	padding: 14px 16px 14px 44px;
	cursor: pointer;
	transition: border-color .15s ease;
}
.prcb-addon:hover { border-color: var(--prcb-burgundy); }
.prcb-addon.is-selected { border-color: var(--prcb-sage); background: var(--prcb-surface); }
.prcb-addon input {
	position: absolute;
	left: 16px;
	top: 18px;
	width: 18px;
	height: 18px;
	accent-color: var(--prcb-sage);
}
.prcb-addon__name { grid-area: name; font-size: 15px; font-weight: 800; color: var(--prcb-ink); }
.prcb-addon__desc { grid-area: desc; font-size: 13px; color: var(--prcb-muted); line-height: 1.55; }
.prcb-addon__price { grid-area: price; font-size: 14px; font-weight: 700; color: var(--prcb-burgundy); white-space: nowrap; }
.prcb-addon--soon { cursor: default; padding-left: 16px; background: var(--prcb-surface); border-style: dashed; }
.prcb-soon {
	display: inline-block;
	margin-left: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--prcb-sage);
	background: rgba(126, 143, 110, .14);
	border-radius: 999px;
	padding: 3px 10px;
	vertical-align: middle;
}

/* Membership plan card */
.prcb-plan {
	background: linear-gradient(135deg, var(--prcb-burgundy-deep) 0%, var(--prcb-burgundy) 70%);
	color: var(--prcb-cream);
	border-radius: 18px;
	padding: 22px 24px;
	max-width: 640px;
}
.prcb-plan__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 10px;
}
.prcb-plan__name {
	font-family: "Noto Serif", Georgia, serif;
	font-size: 20px;
}
.prcb-plan__price { font-size: 24px; font-weight: 800; color: var(--prcb-gold); }
.prcb-plan__price small { font-size: 13px; font-weight: 600; color: rgba(255, 248, 241, .7); }
.prcb-plan__pitch { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255, 248, 241, .9); }
.prcb-plan__pitch strong { color: var(--prcb-gold); }

/* Comparison + rules */
.prcb-compare {
	max-width: 640px;
	margin-top: 12px;
	border: 1px solid var(--prcb-line);
	border-radius: 12px;
	background: #fff;
	padding: 0;
}
.prcb-compare summary {
	cursor: pointer;
	font-weight: 800;
	font-size: 14px;
	color: var(--prcb-burgundy);
	padding: 13px 16px;
}
.prcb-compare__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin: 0;
}
.prcb-compare__table th,
.prcb-compare__table td {
	text-align: left;
	padding: 8px 16px;
	border-top: 1px solid var(--prcb-line);
}
.prcb-compare__table th { color: var(--prcb-burgundy); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.prcb-compare .prcb-footnote { border: none; margin: 0; padding: 10px 16px 14px; }
.prcb-rules { margin: 0; padding: 4px 16px 14px 32px; font-size: 13px; color: var(--prcb-muted); line-height: 1.7; }

/* Inline email capture on result */
.prcb-email-inline { margin-top: 20px; }
.prcb-email-inline__form { display: flex; gap: 10px; max-width: 460px; margin-top: 8px; }
.prcb-email-inline__form .prcb-input { flex: 1; }

/* Lead form */
.prcb-lead { max-width: 560px; }

@media (max-width: 640px) {
	.peptis-rcb { border-radius: 0; }
	.prcb-grid { grid-template-columns: repeat(2, 1fr); }
	.prcb-cta-row--stack .prcb-btn { width: 100%; }
	.prcb-email-inline__form { flex-direction: column; }
}
