/*
Neslo Tours and Safaris — "Plan Your Journey" booking wizard stylesheet.
Shares design tokens with chanua-home.css (loaded first, see
inc/chanua-enquiry.php's enqueue dependency) — this only adds the
wizard-specific layout on top of that palette.
Prefix: .cs-plan-
*/

.cs-plan { background: var(--cs-white); min-height: 100vh; padding-top: 90px; }

/* .cs-btn sets its own `display`, which ties in CSS specificity with the
   browser's built-in `[hidden] { display: none }` rule and — since
   .cs-btn loads later in the cascade — silently wins, leaving elements
   like #cs-plan-submit visible even while [hidden] is set. This makes
   the attribute authoritative again for every element on this page. */
.cs-plan [hidden] { display: none !important; }

.cs-plan__grid { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 90px); }

/* == Left: editorial visual == */
.cs-plan__visual { position: relative; background: var(--cs-near-black); color: var(--cs-white); display: flex; align-items: flex-end; padding: clamp(32px, 4vw, 64px); overflow: hidden; }
.cs-plan__visual-media { position: absolute; inset: 0; background: linear-gradient(160deg, var(--cs-near-black) 0%, var(--cs-gold-deep) 120%); opacity: .5; }
.cs-plan__visual-copy { position: relative; z-index: 1; }
.cs-plan__visual .cs-kick { color: var(--cs-gold-soft); }
.cs-plan__title { font-family: var(--cs-display-serif); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1.12; margin: 0 0 1rem; }
.cs-plan__title em { font-style: italic; font-weight: 300; color: var(--cs-green-soft); }
.cs-plan__sub { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 36ch; margin: 0; }
.cs-plan__regarding { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: rgba(255,255,255,.7); }
.cs-plan__regarding strong { color: var(--cs-gold-soft); font-weight: 600; }

/* == Right: the wizard == */
.cs-plan__form-wrap { padding: clamp(32px, 5vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; }

.cs-plan__progress { order: 99; margin: clamp(36px, 6vw, 64px) auto 0; max-width: 620px; width: 100%; }
.cs-plan__progress-label { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cs-ink-faint); font-weight: 600; margin-bottom: 10px; }
.cs-plan__progress-track { height: 8px; border-radius: 999px; background: var(--cs-white); border: 1px solid var(--cs-hair); width: 100%; overflow: hidden; }
.cs-plan__progress-fill { height: 100%; border-radius: 999px; background: var(--cs-gold); width: 16.66%; transition: width .5s cubic-bezier(.2,.7,.2,1); }

.cs-plan__step { display: none; animation: cs-plan-fade-in .4s ease; }
.cs-plan__step.is-active { display: block; }
@keyframes cs-plan-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.cs-plan__step-title { font-family: var(--cs-display-serif); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12; margin: 0 0 .6rem; color: var(--cs-ink); text-align: center; }
.cs-plan__step-hint { font-size: .92rem; color: var(--cs-ink-faint); margin: 0 0 2rem; text-align: center; }
.cs-plan__step { max-width: 620px; margin: 0 auto; width: 100%; }

/* -- selectable tiles -- */
/* Asilia-pattern option pills: one per row, full width, generous tap
   target, uppercase label, fully-rounded outline. Same markup and same
   JS as before — only the presentation changed. */
.cs-plan__tiles { display: flex; flex-direction: column; gap: 12px; }
.cs-plan__tile {
	font-family: var(--cs-sans); font-size: .92rem; font-weight: 500; letter-spacing: .05em;
	text-transform: uppercase; color: var(--cs-ink); width: 100%; text-align: center;
	background: transparent; border: 1px solid var(--cs-ink); border-radius: 999px;
	padding: 18px 22px; cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.cs-plan__tile:hover { background: rgba(44,37,23,.05); }
.cs-plan__tile.is-selected { background: var(--cs-ink); border-color: var(--cs-ink); color: var(--cs-white); }
.cs-plan__tile--prominent { border-color: var(--cs-gold); color: var(--cs-gold); font-weight: 600; }
.cs-plan__tile--prominent.is-selected { background: var(--cs-gold); border-color: var(--cs-gold); color: var(--cs-white); }

/* -- form fields -- */
.cs-plan__field-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cs-plan__field-row--stack { flex-direction: column; }
.cs-plan__field { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; }
.cs-plan__field--full { width: 100%; margin-bottom: 1.2rem; }
.cs-plan__field span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cs-ink-faint); font-weight: 600; }
.cs-plan__field span em { text-transform: none; font-style: normal; font-weight: 400; letter-spacing: 0; }
.cs-plan__field input,
.cs-plan__field textarea {
	font-family: var(--cs-sans); font-size: 1rem; color: var(--cs-ink);
	border: 1px solid var(--cs-ink); border-radius: 999px; background: transparent;
	padding: 16px 22px; transition: border-color .25s ease;
}
.cs-plan__field input:focus,
.cs-plan__field textarea:focus { outline: none; border-color: var(--cs-gold); }
.cs-plan__field textarea { resize: vertical; font-family: var(--cs-sans); border-radius: 22px; }

.cs-plan__checkbox { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--cs-ink-soft); cursor: pointer; margin-top: .4rem; }
.cs-plan__checkbox input { width: 16px; height: 16px; accent-color: var(--cs-gold); }

.cs-plan__error { color: #a33; font-size: .88rem; margin-top: 1rem; }

/* -- nav row -- */
.cs-plan__nav { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 620px; margin: clamp(28px, 4vw, 44px) auto 0; padding-top: clamp(20px, 3vw, 32px); }
.cs-plan__back { background: transparent; border: 1px solid var(--cs-hair); color: var(--cs-ink-soft); }
.cs-plan__back:disabled { opacity: .4; cursor: default; }
.cs-plan__continue, .cs-plan__submit { border-radius: 999px; padding: 16px 46px; letter-spacing: .06em; text-transform: uppercase; font-size: .84rem; }
.cs-plan__back { border-radius: 999px; padding: 16px 28px; }
.cs-plan__submit:disabled { opacity: .6; cursor: wait; }

/* -- thank-you panel -- */
.cs-plan__thanks { max-width: 44ch; }

@media (max-width: 960px) {
	.cs-plan__grid { grid-template-columns: 1fr; }
	.cs-plan__visual { padding: 32px 24px; min-height: 260px; align-items: center; }
	.cs-plan__form-wrap { padding: 32px 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.cs-plan__step { animation: none; }
	.cs-plan__progress-fill { transition: none; }
}

/* The destination list is 60+ real posts — full-width Asilia pills work
   for a 4-6 option question, not for that. This one group stays as
   wrapping chips so the step remains scannable. */
.cs-plan__tiles--compact { flex-direction: row; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cs-plan__tiles--compact .cs-plan__tile { width: auto; padding: 10px 18px; font-size: .78rem; letter-spacing: .03em; border-radius: 999px; }

/* ── Desktop: horizontal option row ──────────────────────────────
   Asilia's stacked full-width pills are built for a phone; on a wide
   screen five of them becomes a tall column of mostly empty space.
   From 900px up the options lay out in a wrapping row that sizes to
   its content, while mobile keeps the stacked Asilia layout exactly
   as it is. Glossy fill so the labels stay readable over the hero
   photo / background video instead of relying on a bare outline. */
@media (min-width: 900px) {
	.cs-plan__step { max-width: 900px; }

	.cs-plan__tiles {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 12px;
	}

	.cs-plan__tiles .cs-plan__tile {
		width: auto;
		flex: 0 1 auto;
		min-width: 150px;
		padding: 15px 30px;
		font-size: .82rem;
	}

	/* the 60+ destination chips stay smaller than the main options */
	.cs-plan__tiles--compact .cs-plan__tile {
		min-width: 0;
		padding: 9px 17px;
		font-size: .75rem;
	}

	.cs-plan__progress,
	.cs-plan__nav { max-width: 900px; }
}

/* ── Gloss on the option pills ───────────────────────────────────
   Applies at all widths: a frosted fill + soft top highlight, so the
   text sits on its own surface rather than straight on whatever is
   behind it. Selected state stays solid ink for unambiguous contrast. */
.cs-plan__tile {
	background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.34));
	backdrop-filter: blur(14px) saturate(170%);
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	border-color: rgba(44,37,23,.28);
	box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 2px 10px rgba(36,29,15,.06);
}
.cs-plan__tile:hover {
	background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.48));
	border-color: var(--cs-gold);
	box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 4px 14px rgba(36,29,15,.10);
}
.cs-plan__tile.is-selected {
	background: var(--cs-ink);
	border-color: var(--cs-ink);
	color: var(--cs-white);
	box-shadow: 0 2px 12px rgba(36,29,15,.22);
}
.cs-plan__tile--prominent {
	background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.30));
	border-color: var(--cs-gold);
}
.cs-plan__tile--prominent.is-selected {
	background: var(--cs-gold);
	border-color: var(--cs-gold);
	color: var(--cs-white);
}

/* Same treatment on the contact-step inputs so the last screen doesn't
   suddenly look like a different form. */
.cs-plan__field input,
.cs-plan__field textarea {
	background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.32));
	backdrop-filter: blur(12px) saturate(160%);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	border-color: rgba(44,37,23,.28);
	box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.cs-plan__field input:focus,
.cs-plan__field textarea:focus { border-color: var(--cs-gold); }

/* Step 2's "nothing matched that region" note. */
.cs-plan__step-note { text-align: center; font-size: .9rem; color: var(--cs-ink-faint); margin-top: 1.4rem; }
.cs-plan__tiles .cs-plan__tile[hidden] { display: none; }
