/**
 * Schedule service pages — Hospital Show / Office Fitting / Store Fitting.
 * Palette: navy #1F2641 · purple #6A4972 · teal #4A94A8
 */

body.rjw-schedule-service .wd-page-title,
body.rjw-schedule-service .page-title {
	display: none !important;
}

/* Sticky needs visible overflow on every ancestor */
body.rjw-schedule-service .website-wrapper,
body.rjw-schedule-service .wd-page-wrapper,
body.rjw-schedule-service .main-page-wrapper,
body.rjw-schedule-service .wd-page-content,
body.rjw-schedule-service .wd-content-layout,
body.rjw-schedule-service .content-layout-wrapper,
body.rjw-schedule-service .wd-content-area,
body.rjw-schedule-service .site-content,
body.rjw-schedule-service .entry-content,
body.rjw-schedule-service article,
body.rjw-schedule-service .container.wd-entry-content,
body.rjw-schedule-service .wp-block-group.rjw-schedule-page {
	overflow: visible !important;
	overflow-x: visible !important;
	overflow-y: visible !important;
}

.rjw-schedule-page {
	--rjw-ink: #1f2641;
	--rjw-purple: #6a4972;
	--rjw-purple-dark: #553a5c;
	--rjw-teal: #4a94a8;
	--rjw-line: rgba(31, 38, 65, 0.12);
	--rjw-muted: #6b6b76;
	--rjw-field-bg: #ffffff;
	--rjw-btn-text: #efefff;
	--rjw-ease: 280ms cubic-bezier(0.22, 1, 0.36, 1);
	--rjw-sticky-top: calc(
		var(--wp-admin--admin-bar--height, 0px) + var(--wd-header-general-sticky-h, var(--wd-header-general-h, 97px)) + 20px
	);
	--wds-gutter: 53px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px max(20px, var(--wds-gutter)) 88px;
	box-sizing: border-box;
}

@media (max-width: 1199px) {
	.rjw-schedule-page {
		--wds-gutter: clamp(18px, 2.5vw, 48px);
	}
}

/* Intro */
.rjw-schedule-intro {
	max-width: none;
	margin: 0 0 32px;
}

.rjw-schedule-eyebrow {
	margin: 0 0 12px !important;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--rjw-teal) !important;
}

.rjw-schedule-title {
	margin: 0 0 14px !important;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif) !important;
	font-size: clamp(1.9rem, 3.4vw, 2.65rem) !important;
	font-weight: 600 !important;
	letter-spacing: -0.03em !important;
	line-height: 1.08 !important;
	color: var(--rjw-ink) !important;
}

.rjw-schedule-lede {
	margin: 0 !important;
	max-width: 36rem;
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 1.0625rem !important;
	line-height: 1.6 !important;
	color: var(--rjw-muted) !important;
}

/* Stage — left rail sticks while form scrolls */
.rjw-schedule-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: 40px 56px;
	align-items: start;
	margin-bottom: 48px;
}

.rjw-schedule-rail {
	position: sticky;
	top: var(--rjw-sticky-top);
	align-self: start;
	z-index: 2;
	max-height: calc(100vh - var(--rjw-sticky-top) - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(31, 38, 65, 0.25) transparent;
}

.rjw-schedule-rail::-webkit-scrollbar {
	width: 4px;
}

.rjw-schedule-rail::-webkit-scrollbar-thumb {
	background: rgba(31, 38, 65, 0.22);
}

.rjw-schedule-copy__eyebrow {
	margin: 0 0 18px !important;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif) !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--rjw-teal) !important;
}

.rjw-schedule-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.rjw-schedule-step {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	align-items: start;
	padding-top: 18px;
	border-top: 1px solid var(--rjw-line);
}

.rjw-schedule-step:first-child {
	padding-top: 0;
	border-top: 0;
}

.rjw-schedule-step__n {
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: rgba(31, 38, 65, 0.35);
	line-height: 1.4;
	padding-top: 2px;
}

.rjw-schedule-step__title {
	display: block;
	margin: 0 0 6px;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--rjw-ink);
}

.rjw-schedule-step__text {
	margin: 0 !important;
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 0.9375rem !important;
	line-height: 1.55 !important;
	color: var(--rjw-muted) !important;
}

.rjw-schedule-trust {
	margin: 28px 0 0 !important;
	padding: 16px 0 0;
	border-top: 1px solid var(--rjw-line);
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 0.875rem !important;
	line-height: 1.5 !important;
	color: var(--rjw-muted) !important;
}

/* Form card — scrolls; left rail stays */
.rjw-schedule-card {
	border: 1px solid var(--rjw-line);
	background: #ffffff;
	padding: 28px 26px 30px;
	box-shadow: 0 18px 50px rgba(31, 38, 65, 0.06);
	position: relative;
	z-index: 1;
}

.rjw-schedule-card__eyebrow {
	margin: 0 0 8px !important;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif) !important;
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--rjw-teal) !important;
}

.rjw-schedule-card__lede {
	margin: 0 0 22px !important;
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 0.9375rem !important;
	line-height: 1.5 !important;
	color: var(--rjw-muted) !important;
}

/* Brand form (self-contained if contact CSS not loaded) */
.rjw-schedule-page .rjw-brand-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.rjw-schedule-page .rjw-brand-form__field {
	margin: 0 0 16px;
}

.rjw-schedule-page .rjw-brand-form__grid > .rjw-brand-form__field {
	margin-bottom: 0;
}

.rjw-schedule-page .rjw-brand-form__field--full {
	grid-column: 1 / -1;
}

.rjw-schedule-page .rjw-brand-form label {
	display: block;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em;
	color: var(--rjw-ink) !important;
	margin: 0 0 8px !important;
}

.rjw-schedule-page .rjw-brand-form .rjw-req {
	color: var(--rjw-purple);
	font-weight: 600;
}

.rjw-schedule-page .rjw-brand-form input[type="text"],
.rjw-schedule-page .rjw-brand-form input[type="email"],
.rjw-schedule-page .rjw-brand-form input[type="tel"],
.rjw-schedule-page .rjw-brand-form input[type="date"],
.rjw-schedule-page .rjw-brand-form textarea,
.rjw-schedule-page .rjw-brand-form select {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	color: var(--rjw-ink) !important;
	background: var(--rjw-field-bg) !important;
	border: 1px solid var(--rjw-line) !important;
	border-radius: 0 !important;
	padding: 12px 14px !important;
	min-height: 48px;
	box-shadow: none !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
}

.rjw-schedule-page .rjw-brand-form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--rjw-ink) 50%),
		linear-gradient(135deg, var(--rjw-ink) 50%, transparent 50%);
	background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 36px !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

.rjw-schedule-page .rjw-brand-form .wpcf7-form-control-wrap,
.rjw-schedule-page .rjw-brand-form .wpcf7-form-control-wrap[data-name="fitting-interest"],
.rjw-schedule-page .rjw-brand-form .wpcf7-form-control-wrap[data-name="preferred-store"] {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
}

.rjw-schedule-page .rjw-brand-form textarea {
	min-height: 120px;
	resize: vertical;
}

.rjw-schedule-page .rjw-brand-form input:focus,
.rjw-schedule-page .rjw-brand-form textarea:focus,
.rjw-schedule-page .rjw-brand-form select:focus {
	outline: none !important;
	border-color: var(--rjw-purple) !important;
	box-shadow: 0 0 0 3px rgba(106, 73, 114, 0.18) !important;
}

.rjw-schedule-page .rjw-brand-form input[type="date"] {
	min-height: 48px;
	color-scheme: light;
	cursor: pointer;
}

.rjw-schedule-page .rjw-brand-form input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.7;
}

.rjw-schedule-page .rjw-brand-form .wpcf7-not-valid {
	border-color: #b42318 !important;
}

.rjw-schedule-page .rjw-brand-form .wpcf7-not-valid-tip {
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 0.8125rem !important;
	color: #b42318 !important;
	margin-top: 6px;
}

.rjw-schedule-page .rjw-brand-form__accept .wpcf7-list-item {
	margin: 0;
}

.rjw-schedule-page .rjw-brand-form__accept .wpcf7-list-item-label {
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 0.9375rem !important;
	color: var(--rjw-muted) !important;
	line-height: 1.45;
}

.rjw-schedule-page .rjw-brand-form__accept input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin-right: 10px;
	accent-color: var(--rjw-purple);
	vertical-align: middle;
}

.rjw-schedule-page .rjw-brand-form__actions {
	margin: 8px 0 0 !important;
}

.rjw-schedule-page .rjw-brand-form input.wpcf7-submit,
.rjw-schedule-page .rjw-brand-form .wpcf7-submit {
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--rjw-btn-text) !important;
	background: var(--rjw-purple) !important;
	border: none !important;
	border-radius: 0 !important;
	min-height: 51px;
	padding: 16px 28px !important;
	cursor: pointer;
	box-shadow: none !important;
	width: 100%;
	transition: background-color var(--rjw-ease), transform var(--rjw-ease);
}

.rjw-schedule-page .rjw-brand-form input.wpcf7-submit:hover,
.rjw-schedule-page .rjw-brand-form .wpcf7-submit:hover {
	background: var(--rjw-purple-dark) !important;
}

.rjw-schedule-page .wpcf7-response-output {
	font-family: var(--wds-font-body, Inter, sans-serif) !important;
	font-size: 0.9375rem !important;
	border-radius: 0 !important;
	margin: 18px 0 0 !important;
	padding: 14px 16px !important;
}

.rjw-schedule-page .rjw-hp-wrap {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.rjw-schedule-page .wpcf7 .rjw-brand-form {
	position: relative;
}

/* Sibling chips */
.rjw-schedule-siblings {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 40px;
	padding: 28px 0 0;
	border-top: 1px solid var(--rjw-line);
}

.rjw-schedule-siblings__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 18px 12px 20px;
	border: 1px solid var(--rjw-line);
	background: #ffffff;
	color: var(--rjw-teal);
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(31, 38, 65, 0.02);
	transition:
		border-color var(--rjw-ease),
		box-shadow var(--rjw-ease),
		transform var(--rjw-ease);
}

.rjw-schedule-siblings__chip::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: transparent;
	transition: background-color var(--rjw-ease);
}

.rjw-schedule-siblings__label {
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.35;
	color: var(--rjw-teal);
}

.rjw-schedule-siblings__chip:hover,
.rjw-schedule-siblings__chip:focus-visible {
	border-color: rgba(74, 148, 168, 0.45);
	box-shadow: 0 12px 28px rgba(31, 38, 65, 0.08);
	transform: translateY(-2px);
	outline: none;
}

.rjw-schedule-siblings__chip:hover::before,
.rjw-schedule-siblings__chip:focus-visible::before,
.rjw-schedule-siblings__chip.is-current::before {
	background: var(--rjw-teal);
}

.rjw-schedule-siblings__chip.is-current {
	border-color: rgba(74, 148, 168, 0.4);
	background: rgba(74, 148, 168, 0.05);
	pointer-events: none;
}

/* Soft exit */
.rjw-schedule-exit {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 20px;
	padding-top: 8px;
}

.rjw-schedule-exit__text {
	margin: 0 !important;
	font-family: var(--wds-font-heading, "Space Grotesk", sans-serif) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: var(--rjw-ink) !important;
}

.rjw-schedule-exit__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rjw-schedule-exit__links a {
	font-family: var(--wds-font-body, Inter, sans-serif);
	font-size: 0.9375rem;
	color: var(--rjw-purple);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color var(--rjw-ease), color var(--rjw-ease);
}

.rjw-schedule-exit__links a:hover,
.rjw-schedule-exit__links a:focus-visible {
	border-bottom-color: currentColor;
	outline: none;
}

/* Responsive */
@media (max-width: 900px) {
	.rjw-schedule-stage {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.rjw-schedule-rail {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.rjw-schedule-card {
		order: -1;
	}

	.rjw-schedule-page .rjw-brand-form__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.rjw-schedule-page {
		padding-top: 28px;
		padding-bottom: 64px;
	}

	.rjw-schedule-siblings__chip {
		width: 100%;
	}

	.rjw-schedule-card {
		padding: 22px 18px 24px;
	}
}
