/* ============================================================
   Plan My Trip — page layout + form styling
   --------------------------------------------------------------
   Two-column layout:
     left  — editorial hero on a Spaceship Earth night photo
     right — white card containing the lead form

   The form (forms/plan-form.njk) is locked for A2P 10DLC SMS
   compliance — its markup is not modified. All form polish here
   is via CSS only.
   ============================================================ */

/* ── Page background ─────────────────────────────────────── */
/* The plan-trip section is a full-bleed dark hero. We push the
   site footer's tinted page background out so the photo runs
   edge-to-edge on the page itself. */
body.plan-trip-page { background: #0a0510; }

.plan-trip {
	position: relative;
	color: #fff;
	min-height: calc(100vh - var(--mw-header-h, 88px));
	overflow: hidden;
	isolation: isolate;
}

.plan-trip__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(180deg,
			rgba(15, 5, 20, 0.55) 0%,
			rgba(15, 5, 20, 0.65) 45%,
			rgba(15, 5, 20, 0.85) 100%),
		url("/assets/images/spaceship-earth-night.jpg");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-color: #1a0a1f;
}

/* ── Two-column container ──────────────────────────────────
   Form gets the wider column; hero is editorial text and stays
   narrower. Ratio roughly matches the 1024-wide mockup where the
   form occupies ~60% of the gutter. */
.plan-trip__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 3rem;
	align-items: start;
}

@media (max-width: 1080px) {
	.plan-trip__container {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 2rem 1.25rem 3rem;
	}
}

/* ── Hero column ─────────────────────────────────────────── */
.plan-trip__hero {
	color: #fff;
	min-width: 0;
	max-width: 450px;
}

.plan-trip__eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #ff89b1;
}

.plan-trip__headline {
	margin: 0 0 1.25rem;
	font-size: clamp(2.5rem, 5.5vw, 4.75rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: #fff;
}

.plan-trip__headline em {
	font-style: italic;
	font-weight: 400;
	color: #ffacc6;
}

.plan-trip__sparkle {
	font-size: 0.55em;
	color: var(--mw-brand-soft);
	margin-left: 0.15em;
	vertical-align: 0.35em;
}

.plan-trip__subhead {
	margin: 0 0 2.25rem;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

/* Value-prop glass cards */
.plan-trip__valueprops {
	margin: 0 0 2rem;
	display: grid;
	gap: 0.625rem;
}

.plan-trip__vp {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: 0.875rem;
	align-items: start;
	padding: 0.75rem 1rem;
	background: rgba(20, 10, 22, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
}

.plan-trip__vp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #a7235a, #ff5b96);
	color: #fff;
	font-size: 1.05rem;
	flex-shrink: 0;
}

.plan-trip__vp-title {
	margin: 0 0 0.15rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.plan-trip__vp-desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

/* Testimonial */
.plan-trip__testimonial {
	margin: 12px 0 1.5rem;
	padding: 1.25rem 1.4rem;
	background: rgba(255, 255, 255, 0.96);
	color: var(--wa-color-neutral-10);
	border-radius: 14px;
	box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

.plan-trip__stars {
	color: #f5b73a;
	font-size: 0.95rem;
	display: inline-flex;
	gap: 0.1rem;
	margin-bottom: 0.5rem;
}

.plan-trip__testimonial blockquote {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--wa-color-neutral-20);
}

.plan-trip__testimonial figcaption {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wa-color-neutral-30);
}

/* Secure-info note under testimonial */
.plan-trip__secure {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

.plan-trip__secure wa-icon {
	color: #ff89b1;
	font-size: 1rem;
	flex-shrink: 0;
}

/* ── Form card (right column) ────────────────────────────── */
.plan-trip__form-card {
	background: #ffffff;
	color: var(--wa-color-neutral-10);
	border-radius: 18px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 30px 100px rgb(0 0 0 / 0.22);
	padding: 2.25rem 2.25rem 2rem;
	width: 100%;
	max-width: 760px;
	margin-left: auto;
	box-sizing: border-box;
}

@media (max-width: 1080px) {
	.plan-trip__hero {
		max-width: 100%;
	}
	.plan-trip__valueprops,
	.plan-trip__testimonial {
		max-width: 100%;
	}
	.plan-trip__form-card {
		margin-left: 0;
		max-width: 760px;
		margin-inline: auto;
	}
	.plan-trip__testimonial {
		margin-inline: auto;
		text-align: center;
	}
	.plan-trip__stars {
		justify-content: center;
	}
	.plan-trip__secure {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 720px) {
	.plan-trip__form-card {
		padding: 1.5rem 1.25rem 1.5rem;
		border-radius: 14px;
	}
}

/* ============================================================
   Form itself — markup is locked (A2P), CSS-only polish
   ============================================================ */

.mwf-plan-form {
	display: grid;
	gap: 1.5rem;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.mwf-plan-form > *,
.mwf-plan-form .mwf-row > * { min-width: 0; }

/* Bold field labels */
.mwf-plan-form wa-input::part(form-control-label),
.mwf-plan-form wa-select::part(form-control-label),
.mwf-plan-form wa-radio-group::part(form-control-label) {
	font-weight: 700;
	color: var(--wa-color-neutral-10);
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	margin-bottom: 0.35rem;
}

/* Section headings with icon */
.mwf-section-heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wa-color-neutral-90, #e6e6ea);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wa-color-neutral-40, #555);
}
.mwf-section-heading:first-child {
	padding-top: 0;
	border-top: none;
}
.mwf-section-heading wa-icon {
	color: #a7235a;
	font-size: 0.95rem;
}

/* Destination radios — two-column grid on desktop */
.mwf-plan-form wa-radio-group[name="destination"]::part(form-control-input) {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem 1.25rem;
	align-items: start;
	margin-top: 0.25rem;
}

@media (min-width: 561px) {
	.mwf-plan-form wa-radio-group[name="destination"]::part(form-control-input) {
		grid-template-columns: 1fr 1fr;
	}
}

/* Yes/No first-visit radios — inline horizontally.
   WA radio-group defaults to vertical orientation; force the part
   to lay out as a row. The radios themselves also need a fixed
   line-height + flex alignment, otherwise WA's internal indicator
   sits a hair higher in 'Yes' than in 'No' (radio circle is laid
   out relative to the label text and 'Yes' has a descender that
   shifts its baseline). */
.mwf-plan-form wa-radio-group[name="first_visit"]::part(form-control-input) {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 2.5rem;
	margin-top: 0.25rem;
}

/* Horizontal layout means we don't want any vertical margin between
   slotted radios. WA's default vertical orientation pushes a margin-
   top onto wa-radio:not(:first-child), which on a flex-row layout
   shifts "No" down a hair so "Yes" looks higher. Zero it out and
   pin internal cross-axis alignment to center on every radio's
   ::part(base). */
.mwf-plan-form wa-radio-group[name="first_visit"] wa-radio {
	display: inline-flex;
	align-items: center;
	margin: 0;
	line-height: 1;
	min-height: 1.5rem;
}

.mwf-plan-form wa-radio-group[name="first_visit"] wa-radio::part(base) {
	align-items: center;
}

/* Row layouts */
.mwf-plan-form .mwf-name-row {
	display: grid;
	grid-template-columns: minmax(6rem, auto) 1fr 1fr;
	gap: 0.75rem;
}

.mwf-plan-form .mwf-phone-row {
	display: grid;
	grid-template-columns: minmax(10rem, auto) 1fr;
	gap: 0.75rem;
	align-items: start;
}

.mwf-plan-form .mwf-dates-row {
	display: grid;
	grid-template-columns: 1fr 1fr minmax(5rem, auto);
	gap: 0.75rem;
	align-items: start;
}

.mwf-plan-form .mwf-travelers-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 560px) {
	.mwf-plan-form .mwf-name-row,
	.mwf-plan-form .mwf-dates-row,
	.mwf-plan-form .mwf-phone-row {
		grid-template-columns: 1fr;
	}
}

/* SMS consent callout — match the soft-pink style from the mockup */
.mwf-plan-form .mwf-sms-consent {
	--background-color: #fff0f7;
	--border-color: var(--mw-brand-soft);
	border-radius: 12px;
	padding-top: 1.25rem;
}

.mwf-plan-form .mwf-sms-consent wa-checkbox {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.mwf-plan-form .mwf-sms-nudge {
	margin: 0 0 0.5rem;
	padding-left: 1.875rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--wa-color-neutral-10);
}

.mwf-plan-form .mwf-sms-disclosure {
	margin: 0;
	padding-left: 1.875rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--wa-color-neutral-30);
}

.mwf-plan-form .mwf-sms-disclosure a {
	color: var(--mw-brand);
	font-weight: 600;
}

/* Submit row — full-width pill button */
.mwf-plan-form .mwf-submit-row {
	display: flex;
	justify-content: center;
	margin-top: 0.5rem;
}

.mwf-plan-form .mwf-submit-row wa-button {
	width: 100%;
}

.mwf-plan-form .mwf-submit-row wa-button::part(base) {
	border-radius: 9999px;
	font-size: 1.0625rem;
	font-weight: 700;
	padding-block: 0.95rem;
	letter-spacing: 0.01em;
}

/* Reset of the older overrides that hid wa-button backgrounds — we
   want the brand-filled CTA to actually render. */
.mwf-plan-form .mwf-sms-consent wa-checkbox {
	background: transparent !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Status messages */
.mwf-plan-form .mwf-form-error {
	color: #b00020;
	padding: 0.75rem 1rem;
	border: 1px solid #b00020;
	border-radius: 10px;
	background: #fdecea;
}


/* Disclaimer text under submit (optional copy in some renderings) */
.mwf-plan-form .mwf-version {
	font-size: 0.9rem;
	color: #999;
	text-align: right;
	margin-top: -0.5rem;
}

/* ============================================================
   Legacy page-hero rules — kept so dapsmagic-mouseways and ig
   pages (which still use .page-hero) are unaffected.
   ============================================================ */
.page-hero {
	background: linear-gradient(135deg, #1a1a22 0%, #2a1a30 100%);
	color: #fff;
	padding: 4rem 0 3rem;
	text-align: center;
}

.page-hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #ff89b1;
}

.page-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
}

.page-hero__desc {
	margin: 0 auto;
	max-width: 42rem;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

/* Offset scroll target by the floating nav pill height */
#plan-trip-form {
	scroll-margin-top: 6rem;
}

/* ── Mobile floating CTA ──────────────────────────────────── */
.plan-trip__fab {
	display: none;
}
@media (max-width: 720px) {
	.plan-trip__fab {
		display: block;
		position: fixed;
		bottom: 1.5rem;
		right: 1.25rem;
		z-index: 200;
		transition: opacity 0.3s, transform 0.3s;
	}
	.plan-trip__fab.is-hidden {
		opacity: 0;
		transform: translateY(1rem);
		pointer-events: none;
	}
	.plan-trip__fab-btn {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		background: #a7235a;
		color: #fff;
		border: none;
		border-radius: 9999px;
		padding: 0.75rem 1.25rem 0.75rem 1rem;
		font-size: 0.95rem;
		font-weight: 700;
		letter-spacing: 0.01em;
		cursor: pointer;
		box-shadow: 0 4px 20px rgba(167, 35, 90, 0.45);
	}
	.plan-trip__fab-btn wa-icon {
		font-size: 1.1rem;
	}
}
