/*
 * PANORAMA Experience Quiz - public styles.
 * Mobile-first, wellness aesthetic. All colors, radii and fonts come from the
 * CSS custom properties set inline on the .panorama-quiz root (from settings).
 */

.panorama-quiz {
	/* Sensible fallbacks; the inline style on the root overrides these. */
	--panorama-bg: #f4efe7;
	--panorama-card: #ffffff;
	--panorama-accent: #a87a46;
	--panorama-secondary: #566b52;
	--panorama-text: #2c2924;
	--panorama-muted: #8a8073;
	--panorama-radius: 18px;
	--panorama-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--panorama-font-heading: Georgia, "Times New Roman", serif;

	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 18px 36px;
	background: var(--panorama-bg);
	color: var(--panorama-text);
	font-family: var(--panorama-font-ui);
	font-size: 16px;
	line-height: 1.5;
	border-radius: var(--panorama-radius);
	-webkit-font-smoothing: antialiased;
}

.panorama-quiz *,
.panorama-quiz *::before,
.panorama-quiz *::after {
	box-sizing: border-box;
}

.panorama-quiz__inner {
	position: relative;
}

/* Progress dots ------------------------------------------------------ */
.panorama-quiz__progress {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-bottom: 22px;
}

.panorama-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.12);
	transition: background 0.3s ease, transform 0.3s ease;
}

.panorama-dot.is-done {
	background: var(--panorama-secondary);
}

.panorama-dot.is-current {
	background: var(--panorama-accent);
	transform: scale(1.4);
}

/* Stage and screen transitions -------------------------------------- */
.panorama-quiz__stage {
	position: relative;
}

.panorama-screen {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.panorama-screen.is-active {
	opacity: 1;
	transform: none;
}

.panorama-screen.is-leaving {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	transform: translateY(-14px);
	pointer-events: none;
}

/* Intro -------------------------------------------------------------- */
.panorama-intro {
	text-align: center;
	padding: 28px 8px 12px;
}

.panorama-intro__mark {
	font-family: var(--panorama-font-heading);
	letter-spacing: 0.42em;
	font-size: 13px;
	color: var(--panorama-accent);
	margin-bottom: 28px;
	text-indent: 0.42em;
}

.panorama-intro__logo {
	display: block;
	width: auto;
	max-width: 200px;
	max-height: 56px;
	height: auto;
	margin: 0 auto 30px;
	object-fit: contain;
}

@media (min-width: 600px) {
	.panorama-intro__logo {
		max-width: 240px;
		max-height: 64px;
	}
}

.panorama-intro__title {
	font-family: var(--panorama-font-heading);
	font-size: 27px;
	line-height: 1.25;
	font-weight: 600;
	margin: 0 0 14px;
	color: var(--panorama-text);
}

.panorama-intro__subtitle {
	color: var(--panorama-muted);
	font-size: 16px;
	margin: 0 auto 30px;
	max-width: 30ch;
}

/* Questions ---------------------------------------------------------- */
.panorama-question__step {
	text-align: center;
	color: var(--panorama-muted);
	font-size: 13px;
	letter-spacing: 0.08em;
	margin: 0 0 10px;
}

.panorama-question__title {
	font-family: var(--panorama-font-heading);
	font-size: 23px;
	line-height: 1.3;
	font-weight: 600;
	text-align: center;
	margin: 0 0 8px;
}

.panorama-question__hint {
	text-align: center;
	color: var(--panorama-muted);
	font-size: 14px;
	margin: 0 0 18px;
}

.panorama-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 22px 0 26px;
}

/* Options ------------------------------------------------------------ */
.panorama-option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 60px;
	padding: 14px 18px;
	text-align: left;
	background: var(--panorama-card);
	border: 1.5px solid rgba(0, 0, 0, 0.06);
	border-radius: calc(var(--panorama-radius) * 0.8);
	color: var(--panorama-text);
	font-family: inherit;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(58, 51, 44, 0.05);
	transition: border-color 0.25s ease, box-shadow 0.25s ease,
		transform 0.15s ease, background 0.25s ease;
}

.panorama-option:hover {
	border-color: var(--panorama-secondary);
}

.panorama-option:active {
	transform: scale(0.99);
}

.panorama-option.is-selected {
	border-color: var(--panorama-accent);
	box-shadow: 0 4px 18px rgba(185, 138, 94, 0.22);
	background: #fff;
}

.panorama-option__icon {
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
}

.panorama-option__label {
	flex: 1 1 auto;
}

.panorama-option__check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 1.5px solid rgba(0, 0, 0, 0.18);
	position: relative;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.panorama-option.is-selected .panorama-option__check {
	background: var(--panorama-accent);
	border-color: var(--panorama-accent);
}

.panorama-option.is-selected .panorama-option__check::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Navigation row ----------------------------------------------------- */
.panorama-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.panorama-nav .panorama-btn--primary {
	margin-left: auto;
}

/* Buttons ------------------------------------------------------------ */
.panorama-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 26px;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.25s ease,
		background 0.25s ease, opacity 0.2s ease;
}

.panorama-btn:active {
	transform: translateY(1px);
}

.panorama-btn--primary {
	background: var(--panorama-accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(185, 138, 94, 0.32);
}

.panorama-btn--primary:hover {
	box-shadow: 0 8px 22px rgba(185, 138, 94, 0.4);
}

.panorama-btn--primary[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.panorama-btn--secondary {
	background: transparent;
	color: var(--panorama-text);
	border: 1.5px solid var(--panorama-secondary);
}

.panorama-btn--secondary:hover {
	background: rgba(138, 154, 130, 0.12);
}

.panorama-btn--ghost {
	background: transparent;
	color: var(--panorama-muted);
	min-height: 44px;
	padding: 10px 18px;
}

.panorama-btn--ghost:hover {
	color: var(--panorama-text);
}

/* Result ------------------------------------------------------------- */
.panorama-result {
	padding-top: 6px;
}

.panorama-result__heading {
	text-align: center;
	font-size: 16px;
	color: var(--panorama-muted);
	margin: 0 0 18px;
}

.panorama-card {
	background: var(--panorama-card);
	border-radius: var(--panorama-radius);
	padding: 22px 22px 24px;
	box-shadow: 0 10px 30px rgba(58, 51, 44, 0.08);
	margin-bottom: 22px;
}

.panorama-card__media {
	margin: -22px -22px 18px;
	border-radius: var(--panorama-radius) var(--panorama-radius) 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.panorama-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.panorama-card__title {
	font-family: var(--panorama-font-heading);
	font-size: 22px;
	letter-spacing: 0.02em;
	margin: 0 0 8px;
}

.panorama-card__subtitle {
	color: var(--panorama-muted);
	margin: 0 0 18px;
}

.panorama-card__includes {
	margin: 0 0 18px;
}

.panorama-card__includes-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.panorama-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.panorama-card__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 5px 0;
}

.panorama-card__tick {
	color: var(--panorama-secondary);
	font-weight: 700;
	flex: 0 0 auto;
}

.panorama-card__price {
	font-size: 18px;
	margin: 0 0 20px;
}

.panorama-card__price-label {
	color: var(--panorama-muted);
}

.panorama-card__price-value {
	font-weight: 700;
}

.panorama-card__cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.panorama-card__cta .panorama-btn {
	width: 100%;
}

/* Alternative -------------------------------------------------------- */
.panorama-alt {
	margin-bottom: 22px;
}

.panorama-alt__heading {
	text-align: center;
	color: var(--panorama-muted);
	font-size: 15px;
	margin: 0 0 12px;
}

.panorama-card--alt {
	box-shadow: 0 6px 20px rgba(58, 51, 44, 0.06);
	text-align: center;
}

.panorama-card--alt .panorama-card__title {
	margin-bottom: 14px;
}

.panorama-alt__details {
	margin-top: 16px;
	text-align: left;
}

.panorama-alt__details .panorama-btn {
	width: 100%;
	margin-top: 8px;
}

/* Fallback ----------------------------------------------------------- */
.panorama-result--fallback {
	text-align: center;
}

.panorama-fallback__title {
	font-family: var(--panorama-font-heading);
	font-size: 23px;
	margin: 10px 0 12px;
}

.panorama-fallback__text {
	color: var(--panorama-muted);
	margin: 0 auto 24px;
	max-width: 32ch;
}

.panorama-result--fallback .panorama-manager,
.panorama-result--fallback > .panorama-btn--secondary {
	display: inline-flex;
	margin: 0 auto;
}

/* Manager form (mode B) --------------------------------------------- */
.panorama-manager {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.panorama-manager__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
	animation: panorama-fade 0.3s ease;
}

.panorama-input {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
	border-radius: calc(var(--panorama-radius) * 0.7);
	font-family: inherit;
	font-size: 16px;
	color: var(--panorama-text);
	background: #fff;
}

.panorama-input:focus {
	outline: none;
	border-color: var(--panorama-accent);
}

.panorama-manager__note {
	margin: 4px 0 0;
	font-size: 14px;
}

.panorama-manager__note.is-success {
	color: var(--panorama-secondary);
}

.panorama-manager__note.is-error {
	color: #b4533f;
}

.panorama-result__restart {
	display: block;
	margin: 6px auto 0;
}

.panorama-noscript {
	text-align: center;
	color: var(--panorama-muted);
	padding: 20px;
}

@keyframes panorama-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Wider screens: a touch more breathing room. ----------------------- */
@media (min-width: 600px) {
	.panorama-quiz {
		padding: 32px 28px 44px;
	}

	.panorama-intro__title {
		font-size: 31px;
	}
}

/* Respect reduced-motion preferences. ------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.panorama-screen,
	.panorama-dot,
	.panorama-option,
	.panorama-btn {
		transition: none;
	}

	.panorama-manager__form {
		animation: none;
	}
}

/* -------------------------------------------------------------------
 * Panorama result: grid of info blocks + consultation form.
 * ----------------------------------------------------------------- */
.panorama-result__greeting {
	text-align: center;
	color: var(--panorama-secondary);
	font-size: 15px;
	margin: 0 0 6px;
}

.panorama-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 18px 0 24px;
}

@media (min-width: 560px) {
	.panorama-cards {
		grid-template-columns: 1fr 1fr;
	}
}

.panorama-cards .panorama-card {
	margin-bottom: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.panorama-card__detail {
	display: inline-block;
	margin-top: auto;
	padding-top: 12px;
	color: var(--panorama-accent);
	font-weight: 600;
	text-decoration: none;
}

.panorama-card__detail:hover {
	text-decoration: underline;
}

/* CTA + consultation form */
.panorama-cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 8px;
}

.panorama-cta .panorama-btn {
	width: 100%;
}

.panorama-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
	animation: panorama-fade 0.3s ease;
}

.panorama-form__label {
	display: block;
	font-weight: 600;
	margin: 6px 0 2px;
}

.panorama-form__transfer {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.panorama-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	cursor: pointer;
}

.panorama-radio input {
	width: 18px;
	height: 18px;
	accent-color: var(--panorama-accent);
}

.panorama-form__note {
	margin: 4px 0 0;
	font-size: 14px;
}

.panorama-form__note.is-success {
	color: var(--panorama-secondary);
}

.panorama-form__note.is-error {
	color: #b4533f;
}

select.panorama-input {
	appearance: none;
	-webkit-appearance: none;
}
