/**
 * The Fable Journey Widget Stylesheet
 * Scoped: .ff-fj- (Fragranz Fable Journey)
 * Interactive Luxury Scent Finder & Olfactory Concierge
 */

.ff-fj-wrapper {
	--ff-fj-primary: #1D1A16;
	--ff-fj-accent: #B8933C;
	--ff-fj-accent-hover: #9E7B2B;
	--ff-fj-bg: #FBF9F5;
	--ff-fj-card-bg: #FFFFFF;
	--ff-fj-border: #E8E2D8;
	--ff-fj-border-active: #B8933C;
	--ff-fj-muted: #6F6860;
	--ff-fj-shadow: 0 4px 24px rgba(29, 26, 22, 0.05);
	--ff-fj-shadow-hover: 0 10px 30px rgba(184, 147, 60, 0.15);
	--ff-fj-radius: 8px;
	--ff-fj-btn-radius: 4px;
	--ff-fj-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--ff-fj-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 85px 0;
	background-color: var(--ff-fj-bg);
}

.ff-fj-wrapper *,
.ff-fj-wrapper *::before,
.ff-fj-wrapper *::after {
	box-sizing: border-box;
}

.ff-fj-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   1. Header Section
   ========================================================================== */
.ff-fj-header {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 46px auto;
}

.ff-fj-eyebrow {
	display: inline-block;
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--ff-fj-accent);
	margin-bottom: 12px;
}

.ff-fj-heading {
	font-family: var(--ff-fj-font-heading);
	font-size: 38px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ff-fj-primary);
	margin: 0 0 10px 0;
	letter-spacing: -0.01em;
}

.ff-fj-subtitle {
	font-family: var(--ff-fj-font-heading);
	font-size: 20px;
	font-weight: 400;
	font-style: italic;
	color: var(--ff-fj-accent);
	margin: 0 0 14px 0;
}

.ff-fj-description {
	font-family: var(--ff-fj-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--ff-fj-muted);
	margin: 0 0 18px 0;
}

.ff-fj-compass-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 22px;
	background: #FAF7F2;
	border: 1px solid var(--ff-fj-border);
	border-radius: 30px;
}

.ff-fj-compass-icon {
	color: var(--ff-fj-accent);
	font-size: 11px;
}

.ff-fj-compass-text {
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ff-fj-primary);
}

/* ==========================================================================
   2. Interactive Stage Container & Stepper
   ========================================================================== */
.ff-fj-card-stage {
	background: #FFFFFF;
	border: 1px solid var(--ff-fj-border);
	border-radius: var(--ff-fj-radius);
	box-shadow: var(--ff-fj-shadow);
	padding: 44px 40px;
	position: relative;
	overflow: hidden;
}

/* Progress Bar & Step Nodes */
.ff-fj-progress {
	position: relative;
	margin-bottom: 40px;
}

.ff-fj-progress-bar {
	position: absolute;
	top: 18px;
	left: 5%;
	right: 5%;
	height: 2px;
	background: var(--ff-fj-border);
	z-index: 1;
}

.ff-fj-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #9E7B2B 0%, #B8933C 100%);
	transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ff-fj-steps-indicator {
	position: relative;
	display: flex;
	justify-content: space-between;
	z-index: 2;
}

.ff-fj-step-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0 10px;
}

.ff-fj-node-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #FAF7F2;
	border: 2px solid var(--ff-fj-border);
	color: var(--ff-fj-muted);
	font-family: var(--ff-fj-font-body);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.ff-fj-node-label {
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ff-fj-muted);
	transition: color 0.3s ease;
}

.ff-fj-step-node.is-active .ff-fj-node-num,
.ff-fj-step-node.is-completed .ff-fj-node-num {
	background: var(--ff-fj-accent);
	border-color: var(--ff-fj-accent);
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(184, 147, 60, 0.35);
}

.ff-fj-step-node.is-active .ff-fj-node-label {
	color: var(--ff-fj-primary);
	font-weight: 700;
}

/* ==========================================================================
   3. Step Panes (Questions & Options)
   ========================================================================== */
.ff-fj-step-pane {
	display: none;
	animation: ffFjFadeIn 0.4s ease forwards;
}

.ff-fj-step-pane.is-active {
	display: block;
}

@keyframes ffFjFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ff-fj-pane-intro {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 34px auto;
}

.ff-fj-pane-step-tag {
	display: inline-block;
	font-family: var(--ff-fj-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ff-fj-accent);
	margin-bottom: 8px;
}

.ff-fj-pane-title {
	font-family: var(--ff-fj-font-heading);
	font-size: 26px;
	font-weight: 600;
	color: var(--ff-fj-primary);
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.ff-fj-pane-desc {
	font-family: var(--ff-fj-font-body);
	font-size: 13px;
	color: var(--ff-fj-muted);
	margin: 0;
	line-height: 1.6;
}

/* Options Grid */
.ff-fj-options-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 36px;
}

.ff-fj-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.ff-fj-option-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px 18px;
	background: #FAF7F2;
	border: 1px solid var(--ff-fj-border);
	border-radius: 6px;
	text-align: left;
	cursor: pointer;
	position: relative;
	transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.ff-fj-option-card:hover {
	background: #FFFFFF;
	border-color: var(--ff-fj-accent);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(184, 147, 60, 0.12);
}

.ff-fj-option-card.is-selected {
	background: #FFFFFF;
	border: 2px solid var(--ff-fj-accent);
	box-shadow: 0 8px 24px rgba(184, 147, 60, 0.22);
}

.ff-fj-opt-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 2px;
}

.ff-fj-opt-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-grow: 1;
}

.ff-fj-opt-title {
	font-family: var(--ff-fj-font-heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--ff-fj-primary);
	line-height: 1.3;
}

.ff-fj-opt-sub {
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	color: var(--ff-fj-muted);
	line-height: 1.45;
}

.ff-fj-opt-check {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ff-fj-accent);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	display: none;
	align-items: center;
	justify-content: center;
}

.ff-fj-option-card.is-selected .ff-fj-opt-check {
	display: flex;
}

/* ==========================================================================
   4. Stage Actions & Navigation Buttons
   ========================================================================== */
.ff-fj-stage-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--ff-fj-border);
	padding-top: 24px;
	margin-top: 10px;
}

.ff-fj-btn-prev,
.ff-fj-btn-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: transparent;
	border: 1px solid var(--ff-fj-border);
	border-radius: var(--ff-fj-btn-radius);
	color: var(--ff-fj-primary);
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ff-fj-btn-prev:hover:not(:disabled) {
	border-color: var(--ff-fj-primary);
	background: #FAF7F2;
}

.ff-fj-btn-next {
	background: var(--ff-fj-primary);
	color: #FFFFFF;
	border-color: var(--ff-fj-primary);
}

.ff-fj-btn-next:hover:not(:disabled) {
	background: var(--ff-fj-accent);
	border-color: var(--ff-fj-accent);
	box-shadow: 0 4px 16px rgba(184, 147, 60, 0.35);
}

.ff-fj-btn-prev:disabled,
.ff-fj-btn-next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.ff-fj-hint-text {
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	color: var(--ff-fj-muted);
	font-style: italic;
}

/* ==========================================================================
   5. Destined Fable Match (Result Reveal Card)
   ========================================================================== */
.ff-fj-result-overlay {
	animation: ffFjSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ffFjSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ff-fj-result-card {
	border: 2px solid var(--ff-fj-accent);
	border-radius: var(--ff-fj-radius);
	padding: 38px 34px;
	background: #FFFFFF;
	box-shadow: 0 12px 38px rgba(184, 147, 60, 0.18);
	position: relative;
}

.ff-fj-result-ribbon {
	text-align: center;
	margin-bottom: 24px;
}

.ff-fj-result-ribbon span {
	display: inline-block;
	background: var(--ff-fj-accent);
	color: #FFFFFF;
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 6px 20px;
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(184, 147, 60, 0.35);
}

.ff-fj-result-body {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	align-items: center;
}

/* Bottle Visual Column */
.ff-fj-result-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ff-fj-bottle-halo {
	width: 220px;
	height: 250px;
	background: radial-gradient(circle, rgba(184, 147, 60, 0.15) 0%, rgba(251, 249, 245, 0.4) 65%, transparent 70%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.ff-fj-bottle-silhouette {
	width: 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	filter: drop-shadow(0 12px 24px rgba(29, 26, 22, 0.15));
}

.ff-fj-bs-cap {
	width: 44px;
	height: 38px;
	background: #1D1A16;
	border-radius: 4px 4px 0 0;
	border-bottom: 2px solid var(--ff-fj-accent);
}

.ff-fj-bs-neck {
	width: 32px;
	height: 8px;
	background: linear-gradient(90deg, #9E7B2B 0%, #E2C87A 50%, #B8933C 100%);
}

.ff-fj-bs-body {
	width: 90px;
	height: 120px;
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,240,230,0.85) 100%);
	border: 1px solid rgba(184, 147, 60, 0.4);
	border-radius: 0 0 6px 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.ff-fj-bs-label {
	font-family: var(--ff-fj-font-heading);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #1D1A16;
	border: 1px solid rgba(184, 147, 60, 0.5);
	padding: 6px 12px;
	background: #FAF7F2;
}

.ff-fj-match-badge {
	display: inline-block;
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2F6F4E;
	background: #E8F4EC;
	padding: 4px 14px;
	border-radius: 20px;
}

/* Info Column */
.ff-fj-result-info {
	display: flex;
	flex-direction: column;
}

.ff-fj-result-collection {
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ff-fj-accent);
	margin-bottom: 6px;
}

.ff-fj-result-title {
	font-family: var(--ff-fj-font-heading);
	font-size: 32px;
	font-weight: 600;
	color: var(--ff-fj-primary);
	margin: 0 0 4px 0;
	letter-spacing: 0.02em;
}

.ff-fj-result-tagline {
	font-family: var(--ff-fj-font-heading);
	font-size: 16px;
	font-style: italic;
	color: var(--ff-fj-muted);
	margin-bottom: 12px;
}

.ff-fj-match-statement {
	font-family: var(--ff-fj-font-heading);
	font-size: 15px;
	font-style: italic;
	line-height: 1.55;
	color: #1D1A16;
	background: rgba(184, 147, 60, 0.08);
	border-left: 3px solid var(--ff-fj-accent);
	padding: 12px 16px;
	border-radius: 0 4px 4px 0;
	margin: 4px 0 16px 0;
	letter-spacing: 0.01em;
}

.ff-fj-result-desc {
	font-family: var(--ff-fj-font-body);
	font-size: 14px;
	line-height: 1.6;
	color: #443F3A;
	margin: 0 0 16px 0;
}

.ff-fj-notes-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ff-fj-note-pill {
	display: inline-block;
	background: #FAF7F2;
	border: 1px solid var(--ff-fj-border);
	padding: 6px 14px;
	border-radius: 4px;
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	color: var(--ff-fj-primary);
}

.ff-fj-note-pill strong {
	color: var(--ff-fj-accent);
	font-weight: 600;
	margin-right: 4px;
}

.ff-fj-match-rationale {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: rgba(184, 147, 60, 0.08);
	border-left: 3px solid var(--ff-fj-accent);
	padding: 10px 14px;
	border-radius: 2px;
	margin-bottom: 24px;
}

.ff-fj-rationale-icon {
	font-size: 14px;
	flex-shrink: 0;
	margin-top: 1px;
}

.ff-fj-rationale-text {
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	line-height: 1.5;
	color: #5A4E38;
}

/* Price & Action Buttons */
.ff-fj-result-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.ff-fj-result-price-wrap {
	display: flex;
	flex-direction: column;
}

.ff-fj-result-price {
	font-family: var(--ff-fj-font-body);
	font-size: 26px;
	font-weight: 700;
	color: var(--ff-fj-primary);
	line-height: 1;
}

.ff-fj-result-tax {
	font-family: var(--ff-fj-font-body);
	font-size: 11px;
	color: var(--ff-fj-muted);
	margin-top: 4px;
}

.ff-fj-action-btns {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ff-fj-btn-explore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	background: transparent;
	border: 1px solid var(--ff-fj-primary);
	border-radius: var(--ff-fj-btn-radius);
	color: var(--ff-fj-primary);
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
	line-height: 1;
}

.ff-fj-btn-explore:hover {
	background: #FAF7F2;
	border-color: var(--ff-fj-accent);
	color: var(--ff-fj-accent);
}

.ff-fj-btn-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	background: var(--ff-fj-primary);
	border: 1px solid var(--ff-fj-primary);
	border-radius: var(--ff-fj-btn-radius);
	color: #FFFFFF;
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1;
}

.ff-fj-btn-cart:hover {
	background: var(--ff-fj-accent);
	border-color: var(--ff-fj-accent);
	box-shadow: 0 6px 18px rgba(184, 147, 60, 0.35);
}

.ff-fj-btn-cart.is-loading {
	opacity: 0.8;
	pointer-events: none;
}

.ff-fj-btn-cart.is-added {
	background: #2F6F4E !important;
	border-color: #2F6F4E !important;
}

.ff-fj-retake-wrap {
	border-top: 1px solid var(--ff-fj-border);
	padding-top: 14px;
}

.ff-fj-btn-retake {
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--ff-fj-muted);
	font-family: var(--ff-fj-font-body);
	font-size: 12px;
	font-weight: 500;
	transition: color 0.2s ease;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ff-fj-btn-retake:hover {
	color: var(--ff-fj-accent);
}

/* ==========================================================================
   6. Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
	.ff-fj-card-stage {
		padding: 32px 24px;
	}

	.ff-fj-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.ff-fj-result-body {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ff-fj-result-visual {
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.ff-fj-wrapper {
		padding: 55px 0;
	}

	.ff-fj-heading {
		font-size: 28px;
	}

	.ff-fj-subtitle {
		font-size: 17px;
	}

	.ff-fj-node-label {
		display: none;
	}

	.ff-fj-grid-3 {
		grid-template-columns: 1fr;
	}

	.ff-fj-stage-actions {
		flex-direction: column-reverse;
		gap: 14px;
	}

	.ff-fj-btn-prev,
	.ff-fj-btn-next {
		width: 100%;
		justify-content: center;
	}

	.ff-fj-result-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ff-fj-action-btns {
		flex-direction: column;
		width: 100%;
	}

	.ff-fj-btn-explore,
	.ff-fj-btn-cart {
		width: 100%;
	}
}
