/* Nupur Jyotish booking funnel — scoped to the shortcode mount. */

#astronupur-booking-app {
	max-width: none;
	margin: 0 auto;
	padding: 26px;
	border: 1px solid #E2D2AF;
	background: #FFFDF8;
	box-sizing: border-box;
	font-family: Georgia, 'Times New Roman', serif;
	color: #2B211C;
	box-shadow: 0 16px 42px rgba(74, 20, 29, .055);
}

#astronupur-booking-app * {
	box-sizing: border-box;
}

#astronupur-booking-app .an-progress {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 30px;
}

#astronupur-booking-app .an-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	position: relative;
	min-width: 0;
	color: #7A6A57;
}

#astronupur-booking-app .an-progress-marker {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #E8DCC0;
	box-shadow: 0 0 0 4px #FFFDF8;
	z-index: 1;
}

#astronupur-booking-app .an-progress-step::before {
	content: '';
	position: absolute;
	top: 5px;
	left: -50%;
	width: 100%;
	height: 1px;
	background: #E8DCC0;
}

#astronupur-booking-app .an-progress-step:first-child::before {
	display: none;
}

#astronupur-booking-app .an-progress-step.is-active .an-progress-marker {
	background: #5E1B22;
}

#astronupur-booking-app .an-progress-step.is-current .an-progress-marker {
	box-shadow: 0 0 0 4px #F3EAD6;
}

#astronupur-booking-app .an-progress-label {
	overflow: hidden;
	max-width: 100%;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	line-height: 1.25;
	text-align: center;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

#astronupur-booking-app .an-progress-step.is-active .an-progress-label {
	color: #5E1B22;
}

#astronupur-booking-app .an-step {
	display: none;
}

#astronupur-booking-app .an-step.is-active {
	display: block;
}


#astronupur-booking-app .an-step-note {
	font-size: var(--an-text-sm, 15px);
	line-height: 1.7;
	color: #5F5145;
	margin: -4px 0 20px;
}

#astronupur-booking-app .an-selected-service {
	display: grid;
	gap: 4px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #E2D2AF;
	background: #F3EAD6;
}

#astronupur-booking-app .an-selected-service span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8C6427;
}

#astronupur-booking-app .an-selected-service strong {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #2B211C;
}

#astronupur-booking-app .an-field {
	margin-bottom: 18px;
}

#astronupur-booking-app .an-field label {
	display: block;
	font-size: var(--an-text-sm, 15px);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8C6427;
	margin-bottom: 7px;
}

#astronupur-booking-app .an-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #D9C28C;
	background: #FBF7EE;
	font-family: inherit;
	font-size: var(--an-text-base, 18px);
	line-height: 1.4;
	color: #2B211C;
	border-radius: 0;
}

#astronupur-booking-app .an-field input:focus {
	outline: 2px solid rgba(140, 100, 39, .32);
	outline-offset: 2px;
	border-color: #5E1B22;
}

#astronupur-booking-app .an-field-help {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6B5B4C;
}

#astronupur-booking-app .an-error {
	color: #A32D2D;
	font-size: var(--an-text-sm, 15px);
	line-height: 1.5;
	margin-top: 5px;
	min-height: 22px;
}

#astronupur-booking-app .an-button {
	width: 100%;
	background: #5E1B22;
	color: #FBF7EE;
	border: 1px solid #5E1B22;
	padding: 14px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 2px;
}

#astronupur-booking-app .an-button:hover:not(:disabled),
#astronupur-booking-app .an-button:focus-visible:not(:disabled) {
	background: #4A141D;
	border-color: #4A141D;
}

#astronupur-booking-app .an-button:focus-visible,
#astronupur-booking-app .an-back-link:focus-visible,
#astronupur-booking-app .an-slot:focus-visible,
#astronupur-booking-app .an-service-choice:focus-visible {
	outline: 2px solid #8C6427;
	outline-offset: 3px;
}

#astronupur-booking-app .an-button:disabled {
	background: #B28A8F;
	border-color: #B28A8F;
	color: #FFFDF8;
	opacity: 1;
	cursor: not-allowed;
}

#astronupur-booking-app .an-slots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

#astronupur-booking-app .an-slot {
	padding: 13px 10px;
	text-align: center;
	border: 1px solid #D9C28C;
	background: #FBF7EE;
	font-family: inherit;
	font-size: var(--an-text-base, 18px);
	line-height: 1.35;
	color: #2B211C;
	cursor: pointer;
}

#astronupur-booking-app .an-slot:hover {
	border-color: #8C6427;
	background: #FFFDF8;
}

#astronupur-booking-app .an-slot.is-selected {
	background: #5E1B22;
	color: #FBF7EE;
	border-color: #5E1B22;
	box-shadow: inset 0 0 0 2px #D9C28C;
}

#astronupur-booking-app .an-step-heading {
	font-size: var(--an-text-lg, 29px);
	font-weight: 500;
	line-height: 1.25;
	color: #5E1B22;
	margin: 0 0 18px;
}

#astronupur-booking-app .an-back-link {
	display: inline-block;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 18px;
	font-family: inherit;
	font-size: var(--an-text-sm, 15px);
	color: #5F5145;
	text-decoration: underline;
	text-underline-offset: 0.14em;
	cursor: pointer;
}

#astronupur-booking-app .an-service-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

#astronupur-booking-app .an-service-choice {
	appearance: none;
	font-family: inherit;
	text-align: left;
	padding: 18px;
	border: 1px solid #D9C28C;
	background: #FBF7EE;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-height: 178px;
}

#astronupur-booking-app .an-service-choice:hover,
#astronupur-booking-app .an-service-choice:focus-visible {
	border-color: #5E1B22;
	box-shadow: 0 10px 24px rgba(74, 20, 29, .055);
}


#astronupur-booking-app .an-service-choice-badge {
	align-self: flex-start;
	border: 1px solid #D9C28C;
	background: #FFFDF8;
	color: #8C6427;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	padding: 5px 7px;
	text-transform: uppercase;
}

#astronupur-booking-app .an-service-choice-description {
	font-size: var(--an-text-sm, 15px);
	line-height: 1.55;
	color: #5F5145;
}

#astronupur-booking-app .an-service-choice-cta {
	margin-top: auto;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5E1B22;
}

#astronupur-booking-app .an-service-choice-name {
	font-size: var(--an-text-base, 18px);
	font-weight: 700;
	line-height: 1.35;
	color: #2B211C;
}

#astronupur-booking-app .an-service-choice-meta {
	font-size: var(--an-text-sm, 15px);
	color: #5F5145;
	line-height: 1.5;
}


#astronupur-booking-app .an-loading-state {
	font-size: var(--an-text-sm, 15px);
	line-height: 1.6;
	color: #5F5145;
	margin: 0 0 18px;
}

#astronupur-booking-app .an-no-slots {
	font-size: var(--an-text-sm, 15px);
	color: #5F5145;
	line-height: 1.6;
	margin-bottom: 18px;
}

#astronupur-booking-app .an-hold-timer {
	text-align: center;
	font-size: var(--an-text-sm, 15px);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
	color: #8C6427;
	margin-bottom: 18px;
}


#astronupur-booking-app .an-slot-helper,
#astronupur-booking-app .an-slot-selected-hint {
	font-size: var(--an-text-sm, 15px);
	line-height: 1.6;
	color: #5F5145;
	margin: 0 0 14px;
}

#astronupur-booking-app .an-slot-selected-hint {
	margin-top: -8px;
	padding: 11px 13px;
	border: 1px solid #E2D2AF;
	background: #F7EEDC;
	color: #5E1B22;
}

#astronupur-booking-app .an-button-secondary {
	margin-top: 12px;
	background: transparent;
	color: #5E1B22;
}

#astronupur-booking-app .an-button-secondary:hover,
#astronupur-booking-app .an-button-secondary:focus-visible {
	background: #FBF7EE;
	color: #4A141D;
}

@media (max-width: 640px) {
	#astronupur-booking-app {
		padding: 18px;
	}

	#astronupur-booking-app .an-service-choice-grid {
		grid-template-columns: 1fr;
	}

	#astronupur-booking-app .an-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	#astronupur-booking-app .an-progress-label {
		font-size: 10px;
	}

	#astronupur-booking-app {
		padding: 16px;
	}

	#astronupur-booking-app .an-step-heading {
		font-size: 26px;
	}

	#astronupur-booking-app .an-slots {
		grid-template-columns: 1fr;
	}
}


/* Premium booking funnel refinement. */
#astronupur-booking-app {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

#astronupur-booking-app .an-progress {
	margin-bottom: 28px;
	padding-bottom: 22px;
	border-bottom: 1px solid #E2D2AF;
}

#astronupur-booking-app .an-step-heading {
	font-size: clamp(28px, 3.2vw, 38px);
	letter-spacing: -0.01em;
	margin-bottom: 14px;
}

#astronupur-booking-app .an-step-note {
	max-width: 640px;
	margin-bottom: 24px;
}

#astronupur-booking-app .an-service-choice {
	position: relative;
	min-height: 190px;
	padding: 20px;
	background: linear-gradient(180deg, #FFFDF8, #FBF7EE);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#astronupur-booking-app .an-service-choice:hover,
#astronupur-booking-app .an-service-choice:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(74, 20, 29, .075);
}

#astronupur-booking-app .an-service-choice-name {
	font-size: 20px;
}

#astronupur-booking-app .an-field input {
	background: #FFFDF8;
}

#astronupur-booking-app .an-selected-service {
	background: linear-gradient(180deg, #F7EEDC, #F3EAD6);
}

@media (max-width: 640px) {
	#astronupur-booking-app .an-progress {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 4px;
	}

	#astronupur-booking-app .an-progress-label {
		font-size: 10px;
		letter-spacing: .04em;
	}
}


/* ------------------------------------------------------------------
   Mobile-first booking pass (375px baseline)
   - native date/time pickers + comfortable touch targets
   - swipeable date strip, vertical time list
   - sticky primary CTA + sticky slot-hold countdown
   ------------------------------------------------------------------ */

/* Comfortable touch targets everywhere (>= 44px). */
#astronupur-booking-app .an-field input,
#astronupur-booking-app .an-button,
#astronupur-booking-app .an-slot {
	min-height: 48px;
}

/* Keep inputs at >= 16px so iOS Safari never auto-zooms on focus. */
#astronupur-booking-app .an-field input {
	font-size: 16px;
}

/* Native date/time fields: render as normal full-width inputs, not the
   shrunken default control, so the OS picker opens on tap. */
#astronupur-booking-app .an-field input[type="date"],
#astronupur-booking-app .an-field input[type="time"] {
	-webkit-appearance: none;
	appearance: none;
	min-height: 48px;
}

#astronupur-booking-app .an-field input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
}

/* Date strip: a horizontally swipeable row of day chips. */
#astronupur-booking-app .an-date-strip-label {
	display: block;
	font-size: var(--an-text-sm, 15px);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8C6427;
	margin-bottom: 10px;
}

#astronupur-booking-app .an-date-strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	padding-bottom: 8px;
	margin-bottom: 20px;
}

#astronupur-booking-app .an-date-chip {
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-width: 66px;
	min-height: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 10px 12px;
	border: 1px solid #D9C28C;
	background: #FBF7EE;
	color: #2B211C;
	font-family: inherit;
	cursor: pointer;
	border-radius: 2px;
}

#astronupur-booking-app .an-date-chip:hover {
	border-color: #8C6427;
	background: #FFFDF8;
}

#astronupur-booking-app .an-date-chip.is-selected {
	background: #5E1B22;
	color: #FBF7EE;
	border-color: #5E1B22;
	box-shadow: inset 0 0 0 2px #D9C28C;
}

#astronupur-booking-app .an-date-chip-dow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#astronupur-booking-app .an-date-chip-day {
	font-size: 20px;
	line-height: 1.1;
}

#astronupur-booking-app .an-date-chip-mon {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.82;
}

/* Slot-hold countdown: a prominent bar; on phones it sticks to the bottom
   of the viewport so a returning user (after app-switching) still sees it
   ticking, rather than discovering the hold expired only at payment. */
#astronupur-booking-app .an-hold-timer {
	background: #5E1B22;
	color: #FBF7EE;
	padding: 12px 16px;
	border-radius: 4px;
}

#astronupur-booking-app .an-hold-timer:empty {
	display: none;
	padding: 0;
}

@media (max-width: 600px) {
	/* Times become a single vertical, easily-tappable list. */
	#astronupur-booking-app .an-slots {
		grid-template-columns: 1fr;
	}

	/* Keep the primary action within thumb-reach without an awkward scroll. */
	#astronupur-booking-app .an-sticky-cta {
		position: sticky;
		bottom: 10px;
		z-index: 6;
		box-shadow: 0 10px 30px rgba(74, 20, 29, .28);
	}

	#astronupur-booking-app .an-hold-timer {
		position: sticky;
		bottom: 10px;
		z-index: 6;
		box-shadow: 0 10px 30px rgba(74, 20, 29, .28);
	}
}

/* Amount payable + coupon entry on the payment step. */
#astronupur-booking-app .an-price-line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #E2D2AF;
}

#astronupur-booking-app .an-price-label {
	font-size: var(--an-text-sm, 15px);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8C6427;
}

#astronupur-booking-app .an-price-amount {
	font-size: var(--an-text-lg, 24px);
	color: #5E1B22;
}

#astronupur-booking-app .an-price-original {
	margin-right: 8px;
	color: #8C6427;
	font-weight: 400;
	text-decoration: line-through;
	opacity: .7;
}

#astronupur-booking-app .an-coupon {
	margin: 8px 0 18px;
}

#astronupur-booking-app .an-coupon-label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--an-text-sm, 15px);
	color: #8C6427;
}

#astronupur-booking-app .an-coupon-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

#astronupur-booking-app .an-coupon-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #C9A869;
	background: #FFFDF8;
	font-size: var(--an-text-base, 18px);
	color: #2B211C;
	text-transform: uppercase;
}

#astronupur-booking-app .an-coupon-input:focus {
	outline: none;
	border-color: #5E1B22;
}

#astronupur-booking-app .an-coupon-apply {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}

#astronupur-booking-app .an-coupon-msg {
	margin: 8px 0 0;
	font-size: var(--an-text-sm, 15px);
	min-height: 1em;
}

#astronupur-booking-app .an-coupon-msg.is-success {
	color: #1a7f37;
}

#astronupur-booking-app .an-coupon-msg.is-error {
	color: #b32d2e;
}
