/**
 * Plan My Trip wizard + success
 */

.st-plan-trip {
	padding: calc(var(--st-header-height) + 2rem) 0 4.5rem;
	background:
		radial-gradient(ellipse 50% 40% at 90% 0%, rgb(196 160 82 / 0.1), transparent 55%),
		linear-gradient(180deg, #f7f2ea 0%, #faf7f2 40%, #fff 100%);
	min-height: 80vh;
}

.st-plan-trip__shell {
	max-width: 56rem;
}

.st-plan-trip__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	margin-bottom: 1.25rem;
	font-size: 0.8125rem;
	color: var(--st-muted);
}

.st-plan-trip__crumbs a {
	color: var(--st-muted);
	text-decoration: none;
}

.st-plan-trip__crumbs a:hover {
	color: var(--st-accent);
}

.st-plan-trip__intro {
	margin-bottom: 1.75rem;
}

.st-plan-trip__title {
	margin: 0 0 0.5rem;
	font-family: var(--st-font-display);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 400;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: var(--st-ink);
	line-height: 1.1;
}

.st-plan-trip__title-accent {
	color: var(--st-gold, #c4a052);
}

.st-plan-trip__kicker {
	margin: 0 0 0.65rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--st-muted);
}

.st-plan-trip__lead {
	margin: 0;
	max-width: 40rem;
	font-size: var(--st-text-sm);
	line-height: 1.7;
	color: var(--st-muted);
}

.st-plan-trip__card {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: #fff;
	border: 1px solid rgb(20 18 16 / 0.08);
	border-radius: 12px;
	box-shadow: 0 18px 48px rgb(20 18 16 / 0.07);
}

/* Steps */
.st-plan-steps {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.25rem;
	position: relative;
}

.st-plan-steps::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	top: 1.05rem;
	border-top: 1px dashed rgb(20 18 16 / 0.15);
	pointer-events: none;
}

.st-plan-steps__item {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: 0.4rem;
	text-align: center;
}

.st-plan-steps__icon {
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	background: #efe8dc;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgb(20 18 16 / 0.08);
}

.st-plan-steps__item.is-done .st-plan-steps__icon,
.st-plan-steps__item.is-active .st-plan-steps__icon {
	background: var(--st-gold, #c4a052);
}

.st-plan-steps__label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--st-muted);
}

.st-plan-steps__item.is-active .st-plan-steps__label,
.st-plan-steps__item.is-done .st-plan-steps__label {
	color: var(--st-accent);
}

@media (max-width: 720px) {
	.st-plan-steps__label {
		display: none;
	}
}

/* Panels */
.st-plan-panel[hidden] {
	display: none !important;
}

.st-plan-panel__title {
	margin: 0 0 1.35rem;
	text-align: center;
	font-family: var(--st-font);
	font-size: clamp(1.15rem, 2.5vw, 1.35rem);
	font-weight: 700;
	color: var(--st-ink);
}

.st-plan-panel__sub {
	margin: 1.5rem 0 0.85rem;
	text-align: center;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--st-muted);
}

.st-plan-options {
	display: grid;
	gap: 0.85rem;
}

.st-plan-options--2 { grid-template-columns: repeat(2, 1fr); }
.st-plan-options--3 { grid-template-columns: repeat(2, 1fr); }
.st-plan-options--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 720px) {
	.st-plan-options--3 { grid-template-columns: repeat(3, 1fr); }
	.st-plan-options--4 { grid-template-columns: repeat(4, 1fr); }
}

.st-plan-choice {
	position: relative;
	display: grid;
	gap: 0.65rem;
	justify-items: center;
	padding: 1.15rem 0.85rem 1.05rem;
	border: 1px solid rgb(20 18 16 / 0.12);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-plan-choice:hover {
	border-color: rgb(139 36 50 / 0.35);
}

.st-plan-choice:has(input:checked) {
	border-color: var(--st-accent);
	box-shadow: 0 0 0 1px var(--st-accent);
}

.st-plan-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.st-plan-choice__check {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 1.15rem;
	height: 1.15rem;
	border: 1.5px solid rgb(20 18 16 / 0.2);
	border-radius: 999px;
	background: #fff;
}

.st-plan-choice:has(input:checked) .st-plan-choice__check {
	border-color: var(--st-accent);
	background: var(--st-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

.st-plan-choice__label {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--st-ink);
}

.st-plan-choice__icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background:
		radial-gradient(circle at 30% 30%, rgb(196 160 82 / 0.35), transparent 55%),
		#f7f2ea;
}

.st-plan-choice--compact {
	padding: 1rem 0.75rem;
}

/* Destinations */
.st-plan-dest-grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
	.st-plan-dest-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.st-plan-dest {
	position: relative;
	display: block;
	cursor: pointer;
	border-radius: 10px;
	overflow: hidden;
}

.st-plan-dest input {
	position: absolute;
	opacity: 0;
}

.st-plan-dest__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #ddd;
}

.st-plan-dest__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-plan-dest__name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.65rem 0.75rem;
	background: linear-gradient(transparent, rgb(20 18 16 / 0.78));
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
}

.st-plan-dest .st-plan-choice__check {
	z-index: 2;
	background: rgb(255 255 255 / 0.9);
}

.st-plan-dest:has(input:checked) .st-plan-dest__media::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 3px var(--st-accent);
	pointer-events: none;
}

.st-plan-dest:has(input:checked) .st-plan-choice__check {
	border-color: var(--st-accent);
	background: var(--st-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

/* Dates + fields */
.st-plan-dates__row,
.st-plan-fields {
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.st-plan-dates__row,
	.st-plan-fields {
		grid-template-columns: 1fr 1fr;
	}

	.st-plan-fields__full {
		grid-column: 1 / -1;
	}
}

.st-plan-dates label,
.st-plan-fields label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--st-muted);
}

.st-plan-input {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid rgb(20 18 16 / 0.14);
	border-radius: 10px;
	font-family: var(--st-font);
	font-size: 0.9375rem;
	color: var(--st-ink);
	background: #fff;
}

.st-plan-input:focus {
	outline: none;
	border-color: rgb(139 36 50 / 0.45);
	box-shadow: 0 0 0 3px rgb(139 36 50 / 0.12);
}

.st-plan-slider {
	margin-top: 1.5rem;
}

.st-plan-slider input[type="range"] {
	width: 100%;
	accent-color: var(--st-accent);
}

.st-plan-slider__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--st-muted);
}

.st-plan-slider__meta strong {
	font-size: 0.9375rem;
	color: var(--st-ink);
}

.st-plan-check {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--st-ink);
	cursor: pointer;
}

/* Nav buttons */
.st-plan-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.st-plan-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	background: var(--st-gold, #c4a052);
	color: #1a1814;
	font-family: var(--st-font);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 3px 0 #1a1814;
	transition: transform 0.15s ease, background 0.2s ease;
}

.st-plan-btn:hover {
	background: #d4b46a;
	transform: translateY(-1px);
	color: #1a1814;
}

.st-plan-btn:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 #1a1814;
}

.st-plan-btn--ghost {
	background: #fff;
	border: 1px solid rgb(20 18 16 / 0.18);
	box-shadow: none;
	color: var(--st-ink);
}

.st-plan-btn--ghost:hover {
	background: #f7f2ea;
	color: var(--st-ink);
}

.st-plan-btn[hidden] {
	display: none !important;
}

.st-plan-error {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgb(139 36 50 / 0.08);
	color: var(--st-accent);
	font-size: 0.875rem;
	text-align: center;
}

.st-plan-error[hidden] {
	display: none !important;
}

.st-plan-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* ── Success ── */
.st-plan-success {
	position: relative;
	min-height: calc(100vh - var(--st-header-height));
	padding: calc(var(--st-header-height) + 2.5rem) 0 4.5rem;
	overflow: hidden;
}

.st-plan-success__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 50% at 20% 10%, rgb(196 160 82 / 0.18), transparent 55%),
		radial-gradient(ellipse 50% 45% at 90% 80%, rgb(139 36 50 / 0.12), transparent 50%),
		linear-gradient(165deg, #1a1814 0%, #3a1a22 48%, #6e1c28 100%);
}

.st-plan-success__shell {
	position: relative;
	z-index: 1;
	max-width: 40rem;
}

.st-plan-success__card {
	padding: clamp(2rem, 5vw, 3rem);
	background: rgb(255 255 255 / 0.96);
	border-radius: 16px;
	box-shadow: 0 28px 60px rgb(0 0 0 / 0.28);
	text-align: center;
	backdrop-filter: blur(12px);
	animation: st-plan-success-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes st-plan-success-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.st-plan-success__mark {
	width: 4.25rem;
	height: 4.25rem;
	margin: 0 auto 1.25rem;
	color: var(--st-accent);
	animation: st-plan-mark-in 0.85s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes st-plan-mark-in {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.st-plan-success__mark svg {
	width: 100%;
	height: 100%;
}

.st-plan-success__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--st-gold, #c4a052);
}

.st-plan-success__title {
	margin: 0 0 0.85rem;
	font-family: var(--st-font-display);
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 400;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: var(--st-ink);
	line-height: 1.15;
}

.st-plan-success__lead {
	margin: 0 auto 1.75rem;
	max-width: 32rem;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--st-muted);
}

.st-plan-success__next {
	list-style: none;
	margin: 0 auto 1.75rem;
	padding: 0;
	max-width: 26rem;
	display: grid;
	gap: 0.85rem;
	text-align: left;
}

.st-plan-success__next li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.85rem;
	align-items: start;
}

.st-plan-success__next-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: rgb(196 160 82 / 0.18);
	color: var(--st-gold, #c4a052);
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

.st-plan-success__next strong {
	display: block;
	font-size: 0.9rem;
	color: var(--st-ink);
	margin-bottom: 0.15rem;
}

.st-plan-success__next span {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--st-muted);
}

.st-plan-success__summary {
	margin: 0 0 1.75rem;
	padding: 1.15rem 1.25rem;
	text-align: left;
	background: #f7f2ea;
	border-radius: 12px;
}

.st-plan-success__summary h2 {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-plan-success__summary ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.st-plan-success__summary li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.9rem;
}

.st-plan-success__summary span {
	color: var(--st-muted);
}

.st-plan-success__summary strong {
	color: var(--st-ink);
	text-align: right;
}

.st-plan-success__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.st-plan-success__contact {
	padding-top: 1.25rem;
	border-top: 1px solid rgb(20 18 16 / 0.1);
	font-size: 0.875rem;
	color: var(--st-muted);
}

.st-plan-success__contact p {
	margin: 0 0 0.35rem;
}

.st-plan-success__contact a {
	color: var(--st-accent);
	font-weight: 700;
	text-decoration: none;
}

.st-plan-success__contact a:hover {
	text-decoration: underline;
}

