/* ==========================================================================
   Pahadi House — Stay Registry
   Palette: pathal slate, pine, haldi, lime-wash cream. Red is reserved for errors.
   Everything is scoped to .phsr so the wildex theme's Bootstrap cannot reach in.
   ========================================================================== */

.phsr {
	--slate: #2f3a3f;
	--slate-2: #26302f;
	--alert: #a8412a;      /* errors only — never decoration */
	--pine: #1b6635;
	--pine-dark: #14512a;
	--haldi: #d8a627;
	--chuna: #f6f2e8;
	--ink: #1a1a1a;
	--mute: #6b7280;
	--line: #e8e6df;
	--white: #fff;
	--radius: 18px;
	--display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
	--body: "Manrope", system-ui, -apple-system, sans-serif;
	--deva: "Noto Sans Devanagari", "Manrope", system-ui, sans-serif;

	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	/* Both columns run the full height of the row, so the slate and cream always meet
	   at the same baseline no matter which step is showing. */
	align-items: stretch;
	gap: 0;
	margin: 0 auto;
	max-width: 1240px;
	font-family: var(--body);
	color: var(--ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

.phsr [hidden] { display: none !important; }

.phsr :focus-visible {
	outline: 3px solid var(--haldi);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ── Rail ───────────────────────────────────────────────────────────────── */

.phsr__rail {
	align-self: stretch;
	background: var(--slate);
	background-image: linear-gradient(170deg, var(--slate) 0%, var(--slate-2) 100%);
	color: var(--white);
	padding: 56px 44px 48px;
}

/* Sticking the inner block keeps the dark column full height while the copy follows
   the scroll — sticking the column itself would do nothing, since it is already tall. */
.phsr__rail-inner {
	position: sticky;
	top: 28px;
	max-width: 380px;
}

.phsr__aipan {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 34px;
}

.phsr__eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--haldi);
}

.phsr__title {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--white);
}

.phsr__hindi {
	margin: 0 0 20px;
	font-family: var(--deva);
	font-size: 17px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.66);
}

.phsr__lede {
	margin: 0 0 38px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.78);
}

/* ── Terrace stepper ────────────────────────────────────────────────────
   Progress drawn as hillside terraces. Each step indents a little further
   into the hill, and completing one fills its band left to right.
   ─────────────────────────────────────────────────────────────────────── */

.phsr-terraces {
	list-style: none;
	margin: 0 0 38px;
	padding: 0;
}

.phsr-terrace {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 5px 0;
}

.phsr-terrace:nth-child(2) { padding-left: 11px; }
.phsr-terrace:nth-child(3) { padding-left: 22px; }
.phsr-terrace:nth-child(4) { padding-left: 33px; }
.phsr-terrace:nth-child(5) { padding-left: 44px; }

.phsr-terrace__band {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 82px;
	height: 13px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.09);
	border-top: 1.5px solid rgba(216, 166, 39, 0.42);
	/* Asymmetric radii so the cut edge reads as hand-made, not machined. */
	border-radius: 2px 9px 3px 7px / 3px 4px 2px 5px;
	transition: border-color 220ms ease;
}

.phsr-terrace__fill {
	position: absolute;
	inset: 0;
	display: block;
	width: 0;
	background: var(--haldi);
	transition: width 320ms cubic-bezier(0.33, 1, 0.68, 1);
}

.phsr-terrace__label {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.42);
	transition: color 220ms ease;
}

.phsr-terrace.is-current .phsr-terrace__band { border-top-color: var(--haldi); }
/* A clear third of the band, so "in progress" reads as deliberate rather than half-drawn. */
.phsr-terrace.is-current .phsr-terrace__fill { width: 32%; background: var(--haldi); }
.phsr-terrace.is-current .phsr-terrace__label { color: var(--white); }

.phsr-terrace.is-done .phsr-terrace__fill { width: 100%; }
.phsr-terrace.is-done .phsr-terrace__band { border-top-color: var(--haldi); }
.phsr-terrace.is-done .phsr-terrace__label { color: rgba(255, 255, 255, 0.78); }

.phsr__promises {
	list-style: none;
	margin: 0;
	padding: 26px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.phsr__promises li {
	position: relative;
	margin-bottom: 11px;
	padding-left: 20px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.7);
}

.phsr__promises li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 9px;
	height: 1.5px;
	background: var(--haldi);
}

/* ── Panel ──────────────────────────────────────────────────────────────── */

.phsr__panel {
	background: var(--chuna);
	padding: 56px clamp(24px, 4vw, 64px) 64px;
}

.phsr__progress {
	margin: 0 0 26px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pine);
}

.phsr-form { margin: 0; max-width: 640px; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.phsr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.phsr-step {
	display: none;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.phsr-step.is-active {
	display: block;
	animation: phsr-rise 320ms cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes phsr-rise {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

.phsr-step__title {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 28px;
	padding: 0;
	font-family: var(--display);
	font-size: clamp(23px, 2.4vw, 31px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	color: var(--ink);
}

/* ── Fields ─────────────────────────────────────────────────────────────── */

.phsr-field { margin-bottom: 24px; }

.phsr-field > label,
.phsr-legend,
.phsr-sublabel {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.phsr-sublabel { margin-top: 18px; }

.phsr-optional {
	margin-left: 5px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mute);
}

.phsr input[type="text"],
.phsr input[type="tel"],
.phsr input[type="url"],
.phsr input[type="email"],
.phsr input[type="number"],
.phsr select,
.phsr textarea {
	width: 100%;
	margin: 0;
	padding: 13px 15px;
	font-family: var(--body);
	font-size: 16px; /* 16px keeps iOS from zooming the page on focus. */
	line-height: 1.45;
	color: var(--ink);
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 11px;
	box-shadow: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	appearance: none;
	-webkit-appearance: none;
}

.phsr input[lang="hi"] { font-family: var(--deva); }

.phsr select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.phsr textarea { resize: vertical; min-height: 104px; }

.phsr input:focus,
.phsr select:focus,
.phsr textarea:focus {
	border-color: var(--pine);
	box-shadow: 0 0 0 3px rgba(27, 102, 53, 0.13);
	outline: none;
}

.phsr .phsr-invalid { border-color: var(--alert); }

.phsr-hint {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mute);
}

.phsr-hint--lead { margin: 0 0 14px; }

.phsr-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.phsr-row .phsr-field { margin-bottom: 24px; }

.phsr-price {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 11px;
}

.phsr-price:focus-within {
	border-color: var(--pine);
	box-shadow: 0 0 0 3px rgba(27, 102, 53, 0.13);
}

.phsr-price__rs { font-size: 16px; color: var(--mute); }
.phsr-price__dash { font-size: 13px; color: var(--mute); }

.phsr-price input {
	border: 0 !important;
	border-radius: 0 !important;
	padding: 13px 0 !important;
	box-shadow: none !important;
	min-width: 0;
}

/* ── Chips ──────────────────────────────────────────────────────────────── */

.phsr-chips,
.phsr-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.phsr-chip { position: relative; margin: 0; cursor: pointer; }

.phsr-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.phsr-chip span {
	display: inline-block;
	padding: 9px 15px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 99px;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.phsr-chip:hover span { border-color: #cfc9b8; }

.phsr-chip input:checked + span {
	color: var(--white);
	background: var(--pine);
	border-color: var(--pine);
}

.phsr-chip input:focus-visible + span {
	outline: 3px solid var(--haldi);
	outline-offset: 2px;
}

/* ── Google lookup ──────────────────────────────────────────────────────── */

.phsr-lookup { display: flex; gap: 9px; }
.phsr-lookup input { flex: 1 1 auto; min-width: 0; }

.phsr-lookup__status {
	margin-top: 10px;
	padding: 11px 14px;
	font-size: 13.5px;
	border-radius: 10px;
	background: rgba(216, 166, 39, 0.14);
	color: #6b5410;
}

.phsr-lookup__status.is-error {
	background: rgba(168, 65, 42, 0.11);
	color: var(--alert);
}

.phsr-place {
	margin-top: 14px;
	padding: 18px 20px;
	background: var(--white);
	border: 1.5px solid var(--pine);
	border-radius: var(--radius);
}

.phsr-place__ask {
	margin: 0 0 9px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pine);
}

.phsr-place__name {
	margin: 0 0 3px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.phsr-place__address { margin: 0 0 8px; font-size: 13.5px; color: var(--mute); }

.phsr-place__meta { margin: 0 0 15px; font-size: 13.5px; color: var(--ink); }
.phsr-place__meta strong { color: var(--pine); }

.phsr-place__actions { display: flex; flex-wrap: wrap; gap: 9px; }

.phsr-escape { margin: 14px 0 0; }

.phsr-link {
	padding: 0;
	font-family: var(--body);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pine);
	background: none;
	border: 0;
	border-bottom: 1.5px solid rgba(27, 102, 53, 0.35);
	cursor: pointer;
	transition: border-color 160ms ease;
}

.phsr-link:hover { border-bottom-color: var(--pine); }

.phsr-manual { margin-top: 22px; }

/* ── Photo upload ───────────────────────────────────────────────────────── */

.phsr-upload { margin-top: 16px; }
.phsr-upload__input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.phsr-upload__drop {
	display: block;
	padding: 22px 20px;
	text-align: center;
	background: var(--white);
	border: 1.5px dashed #cfc9b8;
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease;
}

.phsr-upload__drop:hover { border-color: var(--pine); background: #fffdf8; }
.phsr-upload__drop strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.phsr-upload__drop span { font-size: 12.5px; color: var(--mute); }

.phsr-upload__input:focus-visible + .phsr-upload__drop {
	outline: 3px solid var(--haldi);
	outline-offset: 2px;
}

.phsr-upload__list { list-style: none; margin: 12px 0 0; padding: 0; }

.phsr-upload__list li {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 12px;
	margin-bottom: 7px;
	font-size: 13px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 10px;
}

.phsr-upload__list img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
}

.phsr-upload__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.phsr-upload__size { color: var(--mute); font-size: 12px; flex: 0 0 auto; }

.phsr-upload__remove {
	flex: 0 0 auto;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mute);
	background: none;
	border: 0;
	cursor: pointer;
}

/* ── Consent, errors, navigation ────────────────────────────────────────── */

.phsr-consent { margin: 26px 0 20px; }

.phsr-check {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ink);
	cursor: pointer;
}

.phsr-check input {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin: 1px 0 0;
	accent-color: var(--pine);
}

.phsr-check a { color: var(--pine); text-decoration: underline; }

.phsr-turnstile { margin: 4px 0 20px; }

.phsr-error {
	margin: 0 0 18px;
	padding: 12px 15px;
	font-size: 14px;
	color: var(--alert);
	background: rgba(168, 65, 42, 0.09);
	border-left: 3px solid var(--alert);
	border-radius: 0 10px 10px 0;
}

.phsr-nav {
	display: flex;
	gap: 11px;
	align-items: center;
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.phsr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	font-family: var(--body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	border: 1.5px solid transparent;
	border-radius: 99px;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

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

.phsr-btn--primary { color: var(--white); background: var(--pine); border-color: var(--pine); }
.phsr-btn--primary:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: var(--white); }

.phsr-btn--ghost { color: var(--ink); background: transparent; border-color: #cfc9b8; }
.phsr-btn--ghost:hover { border-color: var(--slate); color: var(--ink); }

.phsr-btn--small { padding: 9px 18px; font-size: 13.5px; }
.phsr-btn--wide { width: 100%; margin-top: 6px; }

.phsr-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.phsr-btn[disabled]:active { transform: none; }

/* ── Done ───────────────────────────────────────────────────────────────── */

.phsr-done {
	max-width: 520px;
	padding: 44px 0 0;
	animation: phsr-rise 380ms cubic-bezier(0.33, 1, 0.68, 1);
}

.phsr-done__mark { width: 58px; height: 58px; color: var(--pine); margin-bottom: 22px; }

.phsr-done h2 {
	margin: 0 0 12px;
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.phsr-done p { margin: 0 0 14px; font-size: 15px; color: var(--ink); }

.phsr-done__ref {
	padding: 11px 16px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 11px;
	font-size: 14px !important;
}

.phsr-done__ref strong {
	font-family: var(--display);
	font-size: 18px;
	letter-spacing: 0.06em;
	color: var(--pine);
}

.phsr-done__ask { font-weight: 600; }

/* ── Mobile ─────────────────────────────────────────────────────────────
   The rail becomes a compact band and the terraces run horizontally under it.
   ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.phsr {
		display: block;
		max-width: none;
	}

	.phsr__rail {
		padding: 34px 22px 26px;
	}

	.phsr__rail-inner { position: static; max-width: none; }

	.phsr__aipan { max-width: 232px; margin: 0 auto 22px; }

	.phsr__eyebrow,
	.phsr__title,
	.phsr__hindi,
	.phsr__lede { text-align: center; }

	.phsr__lede { margin-bottom: 26px; font-size: 14.5px; }

	.phsr__promises { display: none; }

	/* Terraces flip to a horizontal ridge line. */
	.phsr-terraces {
		display: flex;
		gap: 6px;
		margin: 0;
	}

	.phsr-terrace {
		flex: 1 1 0;
		display: block;
		padding: 0 !important;
	}

	.phsr-terrace__band { width: 100%; height: 9px; }

	.phsr-terrace__label {
		display: block;
		margin-top: 7px;
		font-size: 10.5px;
		text-align: center;
		letter-spacing: 0.02em;
	}

	.phsr__panel {
		padding: 32px 22px 48px;
	}

	.phsr-row { grid-template-columns: 1fr; gap: 0; }

	.phsr-nav {
		position: sticky;
		bottom: 0;
		margin-top: 26px;
		padding: 18px 0;
		background: var(--chuna);
		box-shadow: 0 -14px 18px -6px var(--chuna);
	}
	.phsr-nav .phsr-btn { flex: 1 1 auto; padding: 15px 20px; }

	.phsr-lookup { flex-direction: column; }
	.phsr-lookup .phsr-btn { width: 100%; }
}

@media (max-width: 420px) {
	.phsr-terrace__label { font-size: 9.5px; }
	.phsr-chip span { padding: 8px 13px; font-size: 13px; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.phsr *,
	.phsr *::before,
	.phsr *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
