/**
 * 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: 28px max(20px, var(--wds-gutter)) 56px;
	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 22px;
}

.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: 30px 40px;
	align-items: start;
	margin-bottom: 32px;
}

.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: 16px;
}

.rjw-schedule-step {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	align-items: start;
	padding-top: 14px;
	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: 20px 0 0 !important;
	padding: 12px 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);
	border-radius: 16px;
	background: #ffffff;
	padding: 26px 26px 28px;
	box-shadow: 0 24px 60px rgba(31, 38, 65, 0.08), 0 2px 6px rgba(31, 38, 65, 0.04);
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.rjw-schedule-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--rjw-purple), var(--rjw-teal));
}

.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 18px !important;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--rjw-line);
	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 16px;
	margin-bottom: 16px;
}

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

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

.rjw-schedule-page .rjw-brand-form__field--full:last-child,
.rjw-schedule-page .rjw-brand-form__accept {
	margin-bottom: 0;
}

.rjw-schedule-page .rjw-brand-form__field br {
	display: none;
}

.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.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	color: var(--rjw-ink) !important;
	margin: 0 0 6px !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: 0.9375rem !important;
	line-height: 1.4 !important;
	color: var(--rjw-ink) !important;
	background: #fafafc !important;
	border: 1.5px solid var(--rjw-line) !important;
	border-radius: 10px !important;
	padding: 13px 16px !important;
	min-height: 50px;
	box-shadow: none !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
}

.rjw-schedule-page .rjw-brand-form input::placeholder,
.rjw-schedule-page .rjw-brand-form textarea::placeholder {
	color: rgba(31, 38, 65, 0.34) !important;
	opacity: 1 !important;
}

.rjw-schedule-page .rjw-brand-form input:hover,
.rjw-schedule-page .rjw-brand-form textarea:hover,
.rjw-schedule-page .rjw-brand-form select:hover {
	border-color: rgba(106, 73, 114, 0.4) !important;
}

.rjw-schedule-page .rjw-brand-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231F2641' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: calc(100% - 16px) center;
	background-size: 10px 6px;
	background-repeat: no-repeat;
	padding-right: 40px !important;
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	text-overflow: ellipsis;
	cursor: pointer;
}

.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: 130px;
	line-height: 1.6 !important;
	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;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(106, 73, 114, 0.14) !important;
}

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

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

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

.rjw-schedule-page .rjw-brand-form .wpcf7-not-valid {
	border-color: #b42318 !important;
	background: #fef4f3 !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 {
	background: rgba(31, 38, 65, 0.03);
	border: 1px solid var(--rjw-line);
	border-radius: 10px;
	padding: 14px 16px !important;
}

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

.rjw-schedule-page .rjw-brand-form__accept .wpcf7-form-control.wpcf7-acceptance {
	display: flex;
	align-items: flex-start;
}

.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;
	cursor: pointer;
}

.rjw-schedule-page .rjw-brand-form__accept input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	flex: 0 0 auto;
	margin: 2px 10px 0 0;
	accent-color: var(--rjw-purple);
	cursor: pointer;
}

.rjw-schedule-page .rjw-brand-form__actions {
	margin: 16px 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: 600 !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: 10px !important;
	min-height: 52px;
	padding: 16px 28px !important;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(106, 73, 114, 0.22) !important;
	width: 100%;
	transition: background-color var(--rjw-ease), transform var(--rjw-ease), box-shadow 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;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(106, 73, 114, 0.28) !important;
}

.rjw-schedule-page .rjw-brand-form input.wpcf7-submit:active,
.rjw-schedule-page .rjw-brand-form .wpcf7-submit:active {
	transform: translateY(0);
	box-shadow: 0 6px 16px rgba(106, 73, 114, 0.22) !important;
}

.rjw-schedule-page .rjw-brand-form input.wpcf7-submit:disabled,
.rjw-schedule-page .rjw-brand-form .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

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

.rjw-schedule-page .wpcf7-form.sent .wpcf7-response-output {
	border-color: rgba(74, 148, 168, 0.4) !important;
	background: rgba(74, 148, 168, 0.08) !important;
	color: var(--rjw-ink) !important;
}

.rjw-schedule-page .wpcf7-form.invalid .wpcf7-response-output,
.rjw-schedule-page .wpcf7-form.failed .wpcf7-response-output,
.rjw-schedule-page .wpcf7-form.spam .wpcf7-response-output {
	border-color: rgba(180, 35, 24, 0.35) !important;
	background: #fef4f3 !important;
	color: #b42318 !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 — top navigation between header and page intro */
.rjw-schedule-siblings {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0 0 20px;
	border-top: 0;
	border-bottom: 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: 20px;
	}

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

	.rjw-schedule-card {
		order: -1;
		border-radius: 14px;
	}

	.rjw-schedule-page .rjw-brand-form__grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-bottom: 14px;
	}

	.rjw-schedule-page .rjw-brand-form__field {
		margin-bottom: 14px;
	}
}

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

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

	.rjw-schedule-card {
		padding: 18px 16px 20px;
		border-radius: 12px;
		box-shadow: 0 12px 32px rgba(31, 38, 65, 0.08);
	}

	.rjw-schedule-card__lede {
		margin-bottom: 14px !important;
		padding-bottom: 12px;
	}

	.rjw-schedule-page .rjw-brand-form__grid {
		gap: 12px;
		margin-bottom: 12px;
	}

	.rjw-schedule-page .rjw-brand-form__field {
		margin-bottom: 12px;
	}

	.rjw-schedule-page .rjw-brand-form label {
		font-size: 0.8rem !important;
	}

	.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 {
		font-size: 16px !important;
		padding: 12px 14px !important;
	}

	.rjw-schedule-page .rjw-brand-form__actions {
		margin-top: 14px !important;
	}

	.rjw-schedule-page .rjw-brand-form input.wpcf7-submit,
	.rjw-schedule-page .rjw-brand-form .wpcf7-submit {
		min-height: 50px;
	}
}
