/**
 * Survey page — slim styles (tokens/layout in ohsnj-shared.css).
 */
.oh-service {
	--oh-service-lead: clamp(1rem, 1.15vw, 1.08rem);
	--oh-service-section-y: clamp(48px, 6vw, 88px);
	--oh-service-title-lg: clamp(1.75rem, 2.8vw, 2.35rem);
}

.oh-service-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(85% 120% at 92% 0%, rgba(0, 184, 170, 0.16) 0%, rgba(0, 184, 170, 0) 62%),
		linear-gradient(180deg, var(--ohsnj-surface) 0%, #ffffff 100%);
	color: var(--ohsnj-ink);
}

.oh-service-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
	align-items: center;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	padding-block: clamp(32px, 4vw, 52px);
}

.oh-service-hero__inner--solo {
	grid-template-columns: minmax(0, 1fr);
}

.oh-service-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
	color: var(--ohsnj-muted);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.oh-service-breadcrumb {
		display: none !important;
	}
}

.oh-service-breadcrumb a {
	color: var(--ohsnj-teal-aa) !important;
	text-decoration: none !important;
}

.oh-service-hero__title {
	max-width: min(100%, 28ch);
	margin-bottom: 0.9rem;
	color: var(--ohsnj-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.oh-service-hero__lead {
	max-width: 52ch;
	margin-bottom: 1.5rem;
	color: var(--ohsnj-muted);
	font-size: var(--oh-service-lead);
	line-height: 1.65;
}

.oh-service-hero__inner--solo .oh-service-hero__lead {
	max-width: 68ch;
}

.oh-button--light {
	background: #fff;
	color: var(--ohsnj-teal-aa) !important;
}

.oh-button--outline-light {
	border-color: rgba(0, 95, 88, 0.4);
	color: var(--ohsnj-teal-aa) !important;
	background: transparent;
}

.oh-home-arrow {
	flex-shrink: 0;
	font-size: 1.1em;
	line-height: 1;
}

.oh-service-related {
	padding-block: var(--oh-service-section-y);
	background: linear-gradient(180deg, var(--ohsnj-surface) 0%, #ffffff 22%, #ffffff 100%);
}

.oh-service-related__head {
	display: block;
	margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.oh-service-related__head .oh-home-eyebrow {
	margin-bottom: 0.65rem;
}

.oh-service-related__head h2 {
	max-width: none;
	margin-bottom: 0;
	font-size: var(--oh-service-title-lg);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.oh-service-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--ohsnj-line);
	border: 1px solid var(--ohsnj-line);
}

.oh-service-related__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: 88px;
	padding: 1.35rem clamp(1.25rem, 2.2vw, 1.85rem);
	background: #fff;
	color: var(--ohsnj-ink) !important;
	font-size: clamp(0.98rem, 1.2vw, 1.1rem);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	transition: background-color 180ms ease, color 180ms ease;
}

.oh-service-related__card:hover,
.oh-service-related__card:focus {
	background: var(--ohsnj-teal-aa);
	color: #fff !important;
}

@media (max-width: 720px) {
	.oh-service-related__grid {
		grid-template-columns: 1fr;
	}
}

/* Hold space for progress + one step card (avoids CLS when JS boots). */
.oh-survey-form__shell {
	min-height: clamp(420px, 58vh, 560px);
	box-sizing: border-box;
	position: relative;
}

.oh-survey.oh-home {
	overflow: visible;
}

.oh-survey .oh-service-hero {
	overflow: visible;
}

.oh-survey .oh-service-hero__inner {
	padding-block: clamp(18px, 2.2vw, 28px);
	gap: 0;
}

/* Desktop floating logo — clear the survey title. */
@media (min-width: 1025px) {
	.oh-survey .oh-service-hero__inner {
		padding-top: clamp(72px, 6.5vw, 100px);
		padding-bottom: clamp(18px, 2.2vw, 28px);
	}
}

.oh-survey .oh-service-breadcrumb {
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
}

.oh-survey .oh-service-hero__title {
	margin-bottom: 0.35rem;
	font-size: clamp(1.75rem, 2.8vw, 2.35rem);
	line-height: 1.1;
}

.oh-survey .oh-service-hero__lead {
	margin-bottom: 0;
	font-size: 1rem;
}

.oh-survey-form {
	padding: clamp(12px, 2vw, 20px) 0 clamp(48px, 6vw, 80px);
	background: #fff;
}

.oh-survey-form__shell {
	max-width: min(100%, 720px);
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.oh-survey .gform_wrapper {
	/* GF starts display:none until its JS runs — force visible to avoid related-section CLS. */
	display: block !important;
	position: relative;
	z-index: 0;
	margin: 0 !important;
	max-width: 100%;
	overflow: visible;
}

/*
 * Paint only the first question before stepped JS runs.
 * Scoped to :not(.oh-survey-steps) so later steps can show.
 */
.oh-survey .gform_wrapper:not(.oh-survey-steps) .gform_fields > .gfield ~ .gfield {
	display: none !important;
}

.oh-survey .gform_fields > .gfield.gform_validation_container,
.oh-survey .gform_fields > .gfield.gfield--type-honeypot,
.oh-survey .gform_fields > .gfield.gform_hidden,
.oh-survey .gform_fields > .gfield.gfield_visibility_hidden {
	display: none !important;
}

/* First field = step card from first paint (matches JS .oh-survey-step-card). */
.oh-survey .gform_wrapper:not(.oh-survey-steps) .gform_fields > .gfield:first-child {
	margin: 0 !important;
	padding: 1.75rem 1.35rem 1.5rem !important;
	background: #fff !important;
	border: 1px solid rgba(0, 95, 88, 0.14) !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
}

/* GF theme pulls the body up with a negative margin — that hid title top space
   under the progress bar and made the question look flush to the card top. */
.oh-survey .gform_wrapper .gform_body,
.oh-survey .gform_wrapper .gform-body,
.oh-survey .gform_wrapper form {
	margin-top: 0 !important;
}

.oh-survey .gform_wrapper .gform_heading {
	display: none;
}

.oh-survey .gform_wrapper .gform_body,
.oh-survey .gform_wrapper .gform_fields,
.oh-survey .gform_wrapper .gform-body {
	max-width: 100%;
	min-width: 0;
}

.oh-survey .gform_wrapper .gfield,
.oh-survey .gform_wrapper fieldset.gfield {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0 !important;
	box-sizing: border-box;
	overflow: visible;
}

/* Equal space above title via real spacer (legends ignore padding/margin). */
.oh-survey .oh-survey-q-spacer {
	display: block !important;
	height: 1.75rem !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none;
}

/* Card chrome on the field itself (fieldsets stay fieldsets; legend floats inside). */
.oh-survey .oh-survey-step-card,
.oh-survey .gform_wrapper .gfield.oh-survey-step-card,
.oh-survey-steps .gfield.oh-survey-step-card.oh-survey-steps__field--active {
	margin: 0 !important;
	padding: 1.75rem 1.35rem 1.5rem !important;
	background: #fff !important;
	border: 1px solid rgba(0, 95, 88, 0.14) !important;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
}

/* Question title — bottom gap matches spacer height above.
   Legends must float into normal flow or browsers paint them on the fieldset border. */
.oh-survey .oh-survey-q-title,
.oh-survey .gform_wrapper .oh-survey-q-title,
.oh-survey .gform_wrapper .gfield .oh-survey-q-title {
	display: block !important;
	float: left !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 1.75rem !important;
	padding: 0 !important;
	color: var(--ohsnj-ink) !important;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.015em;
	line-height: 1.45 !important;
	white-space: normal !important;
	overflow: visible !important;
	overflow-wrap: break-word;
	word-break: break-word;
	position: static !important;
	box-sizing: border-box;
}

.oh-survey .oh-survey-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Style legends as titles from first paint (float pulls them off the border). */
.oh-survey .gform_wrapper legend.gfield_label,
.oh-survey .gform_wrapper legend {
	display: block !important;
	float: left !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 1.75rem !important;
	padding: 0 !important;
	color: var(--ohsnj-ink) !important;
	font-size: clamp(1.05rem, 1.5vw, 1.2rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.015em;
	line-height: 1.45 !important;
	white-space: normal !important;
	overflow: visible !important;
	overflow-wrap: break-word;
	word-break: break-word;
	position: static !important;
	box-sizing: border-box;
}

.oh-survey .gform_wrapper .gfield_label:not(.oh-survey-q-title),
.oh-survey .gform_wrapper .gfield_label_before_complex:not(.oh-survey-q-title) {
	display: block;
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.35rem;
	padding: 0;
	color: var(--ohsnj-ink);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.45;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	box-sizing: border-box;
	position: static;
}

.oh-survey .gform_wrapper .gfield_required {
	color: var(--ohsnj-teal-aa);
}

.oh-survey .gform_wrapper .gfield_radio,
.oh-survey .gform_wrapper .gfield_checkbox,
.oh-survey .gform_wrapper .gfield_multi_choice,
.oh-survey .gform_wrapper .ginput_container {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 100%;
	min-width: 0;
	clear: both !important;
	width: 100% !important;
}

.oh-survey .gform_wrapper .gchoice,
.oh-survey .gform_wrapper .gfield_radio .gchoice,
.oh-survey .gform_wrapper .gfield_checkbox .gchoice {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(0, 95, 88, 0.12);
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.oh-survey .gform_wrapper .gchoice:hover,
.oh-survey .gform_wrapper .gchoice:focus-within {
	border-color: var(--ohsnj-teal-aa);
}

.oh-survey .gform_wrapper .gchoice:has(input:checked) {
	border-color: var(--ohsnj-teal-aa);
	background: rgba(0, 95, 88, 0.06);
}

.oh-survey .gform_wrapper .gchoice input[type="radio"],
.oh-survey .gform_wrapper .gchoice input[type="checkbox"] {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	z-index: 2;
	margin: 0;
	transform: translateY(-50%);
	accent-color: var(--ohsnj-teal-aa);
	cursor: pointer;
}

.oh-survey .gform_wrapper .gchoice label,
.oh-survey .gform_wrapper .gchoice .gform-field-label {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.75rem 0.9rem 0.75rem 2.55rem;
	box-sizing: border-box;
	color: var(--ohsnj-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.45;
	cursor: pointer;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* GF “Other” choice: radio + free-text — keep text field in normal flow. */
.oh-survey .gform_wrapper .gchoice:has(.gchoice_other_control) {
	padding-bottom: 0.75rem;
}

.oh-survey .gform_wrapper .gchoice:has(.gchoice_other_control) input[type="radio"] {
	top: 1.15rem;
	transform: none;
}

.oh-survey .gform_wrapper .gchoice br {
	display: none;
}

.oh-survey .gform_wrapper .gchoice .gchoice_other_control,
.oh-survey .gform_wrapper .gchoice input.gchoice_other_control {
	position: static !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	display: block;
	width: calc(100% - 3.45rem);
	max-width: 100%;
	margin: 0.15rem 0.9rem 0 2.55rem;
	padding: 0.65rem 0.85rem;
	box-sizing: border-box;
	cursor: text;
}

.oh-survey .gform_wrapper input[type="text"],
.oh-survey .gform_wrapper input[type="email"],
.oh-survey .gform_wrapper input[type="tel"],
.oh-survey .gform_wrapper input[type="number"],
.oh-survey .gform_wrapper textarea,
.oh-survey .gform_wrapper select {
	width: 100%;
	max-width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(0, 95, 88, 0.2);
	border-radius: 2px;
	background: #fff;
	color: var(--ohsnj-ink);
	font-size: 1rem;
	line-height: 1.45;
	box-sizing: border-box;
}

.oh-survey .gform_wrapper input[type="text"]:focus,
.oh-survey .gform_wrapper input[type="email"]:focus,
.oh-survey .gform_wrapper input[type="tel"]:focus,
.oh-survey .gform_wrapper input[type="number"]:focus,
.oh-survey .gform_wrapper textarea:focus,
.oh-survey .gform_wrapper select:focus {
	outline: 2px solid rgba(0, 95, 88, 0.35);
	outline-offset: 1px;
	border-color: var(--ohsnj-teal-aa);
}

.oh-survey .gform_wrapper textarea {
	min-height: 140px;
	resize: vertical;
}

.oh-survey .gform_wrapper .gform_footer,
.oh-survey .gform_wrapper .gform_page_footer {
	margin-top: 0.5rem;
	padding: 0;
}

.oh-survey .gform_wrapper .gform_footer input.button,
.oh-survey .gform_wrapper .gform_footer input[type="submit"],
.oh-survey .gform_wrapper .gform-footer input.button,
.oh-survey .gform_wrapper .gform-footer input[type="submit"],
.oh-survey #gform_submit_button_2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.82rem 1.75rem;
	border: 2px solid var(--ohsnj-teal-aa) !important;
	border-radius: 2px;
	background: var(--ohsnj-teal-aa) !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.oh-survey .gform_wrapper .gform_footer input.button:hover,
.oh-survey .gform_wrapper .gform_footer input[type="submit"]:hover,
.oh-survey .gform_wrapper .gform-footer input.button:hover,
.oh-survey .gform_wrapper .gform-footer input[type="submit"]:hover,
.oh-survey #gform_submit_button_2:hover,
.oh-survey .gform_wrapper .gform_footer input.button:focus,
.oh-survey .gform_wrapper .gform_footer input[type="submit"]:focus,
.oh-survey .gform_wrapper .gform-footer input.button:focus,
.oh-survey .gform_wrapper .gform-footer input[type="submit"]:focus,
.oh-survey #gform_submit_button_2:focus {
	background: #004840 !important;
	border-color: #004840 !important;
	color: #fff !important;
}

.oh-survey .gform_confirmation_message,
.oh-survey .gform_wrapper .validation_error,
.oh-survey .gform_wrapper .gform_submission_error {
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(0, 95, 88, 0.15);
	background: var(--ohsnj-surface);
	color: var(--ohsnj-ink);
	font-size: 1.05rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.oh-survey .gform_wrapper .validation_error,
.oh-survey .gform_wrapper .gform_submission_error {
	border-color: #b42318;
	background: #fff5f5;
	color: #8a1c14;
	margin-bottom: 1.5rem;
}

.oh-survey .gform_wrapper .gfield_validation_message,
.oh-survey .gform_wrapper .validation_message {
	color: #8a1c14;
	font-size: 0.92rem;
}

/* Stepped survey UI */
.oh-survey-steps .gfield {
	display: none !important;
	margin-bottom: 0 !important;
}

/* Never use flex/grid on fieldset — it clips <legend> in browsers. */
.oh-survey-steps .gfield.oh-survey-steps__field--active {
	display: block !important;
}

.oh-survey-steps__progress {
	position: relative;
	z-index: 5;
	flex: 0 0 auto;
	display: grid;
	gap: 0.45rem;
	order: -1;
	margin: 0 0 1.35rem;
	padding: 0 0 0.9rem;
	min-height: 44px;
	border-bottom: 1px solid rgba(0, 95, 88, 0.1);
	background: #fff;
	isolation: isolate;
}

.oh-survey-steps__bar {
	height: 6px;
	overflow: hidden;
	background: rgba(0, 95, 88, 0.12);
	border-radius: 999px;
}

.oh-survey-steps__bar-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ohsnj-teal-aa);
	border-radius: inherit;
	transition: width 220ms ease;
}

.oh-survey-steps__count {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0.15rem 0 0;
	color: var(--ohsnj-muted);
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.45;
	background: #fff;
}

.oh-survey-steps__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1.5rem 0 0;
	padding-top: 0.25rem;
}

.oh-survey-steps__prev:disabled,
.oh-survey-steps__prev[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

.oh-survey .oh-survey-steps .oh-button--light {
	background: var(--ohsnj-teal-aa) !important;
	color: #fff !important;
	border-color: var(--ohsnj-teal-aa) !important;
}

.oh-survey .oh-survey-steps .oh-button--outline-light {
	background: #fff !important;
	color: var(--ohsnj-teal-aa) !important;
	border-color: var(--ohsnj-teal-aa) !important;
}

.oh-survey-steps .gform_footer {
	display: none !important;
}

.oh-survey-steps .gform_footer:not(.oh-survey-steps__footer--ready) {
	margin-top: 0;
}

.oh-survey-steps .gform_footer:not(.oh-survey-steps__footer--ready) input[type="submit"],
.oh-survey-steps .gform_footer:not(.oh-survey-steps__footer--ready) input.button {
	display: none !important;
}

.oh-survey-steps .gform_footer.oh-survey-steps__footer--ready {
	margin-top: 1rem;
}

.oh-survey-steps .gform_footer.oh-survey-steps__footer--ready input[type="submit"],
.oh-survey-steps .gform_footer.oh-survey-steps__footer--ready input.button,
.oh-survey-steps .gform_footer.oh-survey-steps__footer--ready #gform_submit_button_2 {
	display: none !important;
}

@media (max-width: 640px) {
	.oh-survey .gform_wrapper .gform_footer input.button,
	.oh-survey .gform_wrapper .gform_footer input[type="submit"],
	.oh-survey #gform_submit_button_2,
	.oh-survey-steps__nav .oh-button {
		width: 100%;
	}

	.oh-survey-steps__nav {
		flex-direction: column-reverse;
	}
}

