/**
 * Nels Home — premium HivePress forms (site-wide).
 *
 * Layout shells: .nh-hp-form-hero, .nh-hp-form-card, .nh-hp-form-steps
 * Excludes: homepage search pill, explore sort pivot.
 */

:root {
	--nh-hp-form-font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--nh-hp-form-text: #0f172a;
	--nh-hp-form-label: #0b2d5b;
	--nh-hp-form-muted: #64748b;
	--nh-hp-form-border: #e2e8f0;
	--nh-hp-form-border-strong: #cbd5e1;
	--nh-hp-form-primary: #1b4fd8;
	--nh-hp-form-primary-hover: #1640b8;
	--nh-hp-form-primary-soft: #eef2ff;
	--nh-hp-form-bg: #ffffff;
	--nh-hp-form-bg-muted: #f8fafc;
	--nh-hp-form-hero-bg: #f8fafc;
	--nh-hp-form-radius: 14px;
	--nh-hp-form-radius-sm: 12px;
	--nh-hp-form-radius-pill: 999px;
	--nh-hp-form-shadow-field: inset 0 1px 2px rgba(15, 23, 42, 0.04);
	--nh-hp-form-shadow-card: 0 12px 40px rgba(15, 23, 42, 0.08);
	--nh-hp-form-shadow-btn: 0 4px 14px rgba(27, 79, 216, 0.24);
	--nh-hp-form-focus-ring: 0 0 0 3px rgba(27, 79, 216, 0.16);
}

/* Page shell */
body.nh-hp-form-page .content-area,
body.nh-listing-submit-page .content-area,
body.nh-request-submit-page .content-area {
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: 100% !important;
}

body.nh-hp-form-page .hp-page,
body.nh-listing-submit-page .hp-page,
body.nh-request-submit-page .hp-page {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.nh-hp-form-hero,
.nh-request-submit-hero {
	background: linear-gradient(180deg, var(--nh-hp-form-hero-bg) 0%, #eef2f7 100%);
	width: 100%;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 56px max(24px, calc(50vw - 50% + 24px)) 52px;
	border-bottom: 1px solid var(--nh-hp-form-border);
	box-sizing: border-box;
}

.nh-hp-form-hero__inner,
.nh-request-submit-hero__inner {
	max-width: min(100%, 720px);
	margin: 0 auto;
	text-align: center;
	padding: 0 8px;
}

.nh-hp-form-hero__eyebrow,
.nh-request-submit-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nh-hp-form-muted);
}

.nh-hp-form-hero__title,
.nh-request-submit-hero__title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	line-height: 1.12;
	color: var(--nh-hp-form-label);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.nh-hp-form-hero__sub,
.nh-request-submit-hero__sub {
	margin: 0 auto 24px;
	color: var(--nh-hp-form-muted);
	font-size: 1.125rem;
	line-height: 1.55;
	max-width: 52ch;
}

.nh-hp-form-steps,
.nh-request-submit-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nh-hp-form-steps__item,
.nh-request-submit-steps__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--nh-hp-form-radius-pill);
	background: var(--nh-hp-form-bg);
	border: 1px solid var(--nh-hp-form-border);
	color: var(--nh-hp-form-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
}

.nh-hp-form-steps__item.is-current,
.nh-request-submit-steps__item.is-current {
	background: var(--nh-hp-form-primary-soft);
	border-color: #c7d7fe;
	color: var(--nh-hp-form-primary);
	box-shadow: 0 4px 14px rgba(27, 79, 216, 0.12);
}

.nh-hp-form-steps__item.is-done,
.nh-request-submit-steps__item.is-done {
	color: var(--nh-hp-form-label);
	border-color: var(--nh-hp-form-border-strong);
}

.nh-hp-form-steps__num,
.nh-request-submit-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: var(--nh-hp-form-radius-pill);
	background: var(--nh-hp-form-border);
	color: var(--nh-hp-form-label);
	font-size: 0.75rem;
	font-weight: 700;
}

.nh-hp-form-steps__item.is-current .nh-hp-form-steps__num,
.nh-request-submit-steps__item.is-current .nh-request-submit-steps__num {
	background: var(--nh-hp-form-primary);
	color: #fff;
}

.nh-hp-form-steps__item.is-done .nh-hp-form-steps__num,
.nh-request-submit-steps__item.is-done .nh-request-submit-steps__num {
	background: var(--nh-hp-form-label);
	color: #fff;
}

.nh-hp-form-main,
.nh-request-submit-main {
	max-width: min(100%, 720px);
	margin: 0 auto;
	padding: 0 24px 72px;
}

.nh-hp-form-card,
.nh-request-submit-card {
	margin-top: -28px;
	padding: 36px 40px;
	border-radius: 20px;
	background: var(--nh-hp-form-bg);
	border: 1px solid #eef2f7;
	box-shadow: var(--nh-hp-form-shadow-card);
}

.nh-hp-form-card .hp-form,
.nh-request-submit-card .hp-form {
	margin: 0 !important;
}

@media (max-width: 767px) {
	.nh-hp-form-hero,
	.nh-request-submit-hero {
		padding: 40px 20px 36px;
	}

	.nh-hp-form-card,
	.nh-request-submit-card {
		margin-top: -20px;
		padding: 24px 20px;
		border-radius: 18px;
	}
}

/* Typography */
body.nh-hivepress-forms,
body.nh-hivepress-forms .hp-form,
body.nh-hivepress-forms .hp-modal,
.hp-modal,
.nh-hp-form {
	font-family: var(--nh-hp-form-font) !important;
	color: var(--nh-hp-form-text);
}

/* Form layout */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__fields,
.hp-modal .hp-form .hp-form__fields,
.nh-hp-form:not(.hp-form--listing-search):not(.hp-form--pivot) .hp-form__fields {
	display: grid !important;
	gap: 22px !important;
	margin: 0 !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__field,
.hp-modal .hp-form .hp-form__field {
	margin: 0 !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field__label,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__label,
.hp-modal .hp-field__label,
.hp-modal .hp-form__label {
	display: block !important;
	margin: 0 0 8px !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: var(--nh-hp-form-label) !important;
	letter-spacing: -0.01em;
}

/* Text fields */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) input.hp-field,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) textarea.hp-field,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) select.hp-field,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--location input,
.hp-modal .hp-field,
.hp-modal input.hp-field,
.hp-modal textarea.hp-field,
.hp-modal select.hp-field,
.hp-modal .hp-field--location input {
	width: 100% !important;
	box-sizing: border-box !important;
	min-height: 50px !important;
	padding: 13px 16px !important;
	border: 1px solid var(--nh-hp-form-border) !important;
	border-radius: var(--nh-hp-form-radius-sm) !important;
	background: var(--nh-hp-form-bg) !important;
	color: var(--nh-hp-form-text) !important;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	box-shadow: var(--nh-hp-form-shadow-field) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) textarea.hp-field,
.hp-modal textarea.hp-field {
	min-height: 140px !important;
	resize: vertical;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field:focus,
.hp-modal .hp-field:focus {
	outline: none !important;
	border-color: var(--nh-hp-form-primary) !important;
	box-shadow: var(--nh-hp-form-focus-ring) !important;
}

body.nh-hivepress-forms .hp-form__field--password,
.hp-modal .hp-form__field--password {
	position: relative;
}

body.nh-hivepress-forms .hp-form__field--password .hp-field--password,
.hp-modal .hp-form__field--password .hp-field--password {
	padding-right: 48px !important;
}

/* Select2 */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .select2-container--default .select2-selection--single,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .select2-container--default .select2-selection--multiple,
.hp-modal .select2-container--default .select2-selection--single {
	min-height: 50px !important;
	border: 1px solid var(--nh-hp-form-border) !important;
	border-radius: var(--nh-hp-form-radius-sm) !important;
	background: var(--nh-hp-form-bg) !important;
	box-shadow: var(--nh-hp-form-shadow-field) !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .select2-container--default.select2-container--open .select2-selection--single,
.hp-modal .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--nh-hp-form-primary) !important;
	box-shadow: var(--nh-hp-form-focus-ring) !important;
}

body.nh-hivepress-forms .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--nh-hp-form-primary) !important;
}

/* Checkboxes — card style */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkboxes ul,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--radios ul,
.hp-modal .hp-field--checkboxes ul,
.hp-modal .hp-field--radios ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkboxes label,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--radios label,
.hp-modal .hp-field--checkboxes label,
.hp-modal .hp-field--radios label {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	padding: 14px 16px !important;
	border: 1px solid var(--nh-hp-form-border) !important;
	border-radius: var(--nh-hp-form-radius-sm) !important;
	background: var(--nh-hp-form-bg) !important;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkboxes label:hover,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--radios label:hover,
.hp-modal .hp-field--checkboxes label:hover {
	border-color: #93c5fd !important;
	background: var(--nh-hp-form-bg-muted) !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkboxes label:has(input:checked),
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--radios label:has(input:checked),
.hp-modal .hp-field--checkboxes label:has(input:checked) {
	border-color: var(--nh-hp-form-primary) !important;
	background: var(--nh-hp-form-primary-soft) !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkboxes input,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--radios input,
.hp-modal .hp-field--checkboxes input {
	width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	margin: 2px 0 0 !important;
	accent-color: var(--nh-hp-form-primary);
	box-shadow: none !important;
}

/* Single checkbox fields (e.g. booking moderation, terms) */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__field--checkbox,
.hp-modal .hp-form__field--checkbox {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__field--checkbox .hp-field__label,
.hp-modal .hp-form__field--checkbox .hp-field__label {
	margin: 0 !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkbox,
.hp-modal .hp-field--checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	width: 100% !important;
	min-height: auto !important;
	padding: 14px 16px !important;
	border: 1px solid var(--nh-hp-form-border) !important;
	border-radius: var(--nh-hp-form-radius-sm) !important;
	background: var(--nh-hp-form-bg) !important;
	box-shadow: none !important;
	cursor: pointer;
	font-weight: 400 !important;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkbox:hover,
.hp-modal .hp-field--checkbox:hover {
	border-color: #93c5fd !important;
	background: var(--nh-hp-form-bg-muted) !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkbox:has(input:checked),
.hp-modal .hp-field--checkbox:has(input:checked) {
	border-color: var(--nh-hp-form-primary) !important;
	background: var(--nh-hp-form-primary-soft) !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkbox input,
.hp-modal .hp-field--checkbox input {
	width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	margin: 2px 0 0 !important;
	flex-shrink: 0;
	accent-color: var(--nh-hp-form-primary);
	box-shadow: none !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-field--checkbox span,
.hp-modal .hp-field--checkbox span {
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--nh-hp-form-text);
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__field--checkbox:has([name="_terms"]),
.hp-modal .hp-form__field--checkbox:has([name="_terms"]) {
	margin-top: 6px !important;
	padding-top: 20px !important;
	border-top: 1px solid #eef2f7;
}

/* Uploads — enhanced in nh-hp-uploads.css */

/* Messages */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__messages:not(:empty),
.hp-modal .hp-form__messages:not(:empty) {
	display: block !important;
	margin: 0 0 20px !important;
	padding: 14px 16px !important;
	border-radius: var(--nh-hp-form-radius-sm) !important;
	font-size: 0.875rem !important;
}

body.nh-hivepress-forms .hp-form__messages--error,
.hp-modal .hp-form__messages--error {
	background: #fef2f2 !important;
	color: #b91c1c !important;
	border: 1px solid #fecaca !important;
}

body.nh-hivepress-forms .hp-form__messages--success,
.hp-modal .hp-form__messages--success {
	background: #ecfdf5 !important;
	color: #047857 !important;
	border: 1px solid #a7f3d0 !important;
}

/* Buttons */
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search):not(.hp-form--offer-accept) .hp-form__footer,
.hp-modal .hp-form__footer {
	margin: 28px 0 0 !important;
	padding-top: 24px !important;
	border-top: 1px solid #eef2f7;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__button,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) button[type="submit"],
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .button.button-primary,
.hp-modal .hp-form__button,
.hp-modal button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 50px !important;
	padding: 13px 28px !important;
	border: none !important;
	border-radius: var(--nh-hp-form-radius-pill) !important;
	background: var(--nh-hp-form-primary) !important;
	color: #fff !important;
	font-weight: 700 !important;
	box-shadow: var(--nh-hp-form-shadow-btn) !important;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important;
}

body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__button:hover,
body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) button[type="submit"]:hover,
.hp-modal .hp-form__button:hover {
	background: var(--nh-hp-form-primary-hover) !important;
	box-shadow: 0 6px 18px rgba(27, 79, 216, 0.28) !important;
	transform: translateY(-1px);
}

/* Embedded forms */
body.nh-hivepress-forms .hp-widget .hp-form,
body.nh-hivepress-forms .nh-account-hub-page .hp-page__content > .hp-form,
body.nh-hivepress-forms .nh-request-view-card .hp-form:not(.hp-form--offer-accept) {
	padding: 24px 26px !important;
	border: 1px solid rgba(15, 23, 42, 0.08) !important;
	border-radius: var(--nh-hp-form-radius) !important;
	background: var(--nh-hp-form-bg) !important;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}

/* Modals */
.hp-modal__title {
	margin: 0 0 20px !important;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: var(--nh-hp-form-label) !important;
}

#user_login_modal.fancybox-content,
#user_register_modal.fancybox-content,
#user_password_request_modal.fancybox-content,
#review_submit_modal.fancybox-content,
#nh-offer-edit-modal.fancybox-content,
[id^="offer_make_modal_"].fancybox-content {
	border-radius: 20px !important;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
}

/* Listing submit — category pills */
.nh-listing-submit-page .hp-listing-categories.hp-grid {
	margin: 0;
}

.nh-listing-submit-page .hp-listing-categories .hp-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.nh-listing-submit-page .hp-listing-categories .hp-grid__item {
	width: auto !important;
	max-width: none !important;
	flex: 0 0 auto;
	padding: 0 !important;
	margin: 0 !important;
}

.nh-listing-submit-page .nh-listing-submit-category-pill {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__header,
.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__image,
.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__description,
.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__details,
.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__count,
.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__item-count {
	display: none !important;
}

.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__content {
	display: block;
	margin: 0;
	padding: 0;
}

.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__name {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__name a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: var(--nh-hp-form-radius-pill);
	background: var(--nh-hp-form-bg);
	color: var(--nh-hp-form-label);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	border: 1px solid var(--nh-hp-form-border);
	box-shadow: var(--nh-hp-form-shadow-field);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__name a:hover,
.nh-listing-submit-page .nh-listing-submit-category-pill .hp-listing-category__name a:focus-visible {
	background: var(--nh-hp-form-primary);
	color: #fff;
	border-color: var(--nh-hp-form-primary);
	box-shadow: var(--nh-hp-form-shadow-btn);
	transform: translateY(-1px);
	outline: none;
}

/* Listing submit — multi-trade category picker */
.nh-listing-submit-categories {
	margin: 0 0 28px;
}

.nh-listing-submit-categories__help {
	margin: 0 0 18px;
	color: var(--nh-hp-form-muted, #64748b);
	font-size: 15px;
	line-height: 1.55;
	max-width: 62ch;
}

.nh-listing-submit-categories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nh-listing-submit-categories__pill {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--nh-hp-form-border, #e2e8f0);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--nh-hp-form-shadow-field);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nh-listing-submit-categories__pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nh-listing-submit-categories__pill-label {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	text-align: center;
}

.nh-listing-submit-categories__pill.is-selected,
.nh-listing-submit-categories__pill:has(input:checked) {
	background: var(--nh-hp-form-primary, #1b4fd8);
	border-color: var(--nh-hp-form-primary, #1b4fd8);
	box-shadow: var(--nh-hp-form-shadow-btn);
}

.nh-listing-submit-categories__pill.is-selected .nh-listing-submit-categories__pill-label,
.nh-listing-submit-categories__pill:has(input:checked) .nh-listing-submit-categories__pill-label {
	color: #fff;
}

.nh-listing-submit-categories__pill:hover {
	transform: translateY(-1px);
	border-color: #cbd5e1;
}

.nh-listing-submit-categories__actions {
	margin-top: 22px;
}

.nh-listing-submit-categories__continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--nh-hp-form-primary, #1b4fd8);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--nh-hp-form-shadow-btn);
}

.nh-listing-submit-categories__continue:hover {
	background: #1640b8;
}

.nh-listing-categories-field__select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nh-listing-categories-field__grid {
	margin-top: 4px;
}

.hp-field--categories .hp-field__description {
	margin-bottom: 12px;
}

.hp-field--trade_types .hp-field__description {
	margin-bottom: 12px;
}

@media (max-width: 767px) {
	body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) .hp-form__button,
	body.nh-hivepress-forms .hp-form:not(.hp-form--listing-search):not(.hp-form--pivot):not(.nh-category-picker__search) button[type="submit"],
	.hp-modal .hp-form__button {
		width: 100%;
	}
}
