/* DHS: provider & account screens (HivePress) — uses tokens from style.css. */

/* Page background + centred card for sign in / register / password pages */
body.hp-template--page-narrow .content-container,
body.hp-template--listing-submit-page .content-container,
body.hp-template--listing-submit-details-page .content-container,
body.hp-template--listing-submit-complete-page .content-container,
body[class*="hp-template--user-"] .content-container { padding-top: 48px; padding-bottom: 64px; }
body.hp-template--page-narrow, body[class*="hp-template--listing-submit"], body[class*="hp-template--user-"] { background: var(--dhs-alt); }
body.hp-template--page-narrow .site, body[class*="hp-template--listing-submit"] .site, body[class*="hp-template--user-"] .site { background: var(--dhs-alt); }

.hp-page > .hp-form--narrow, body.hp-template--page-narrow .hp-page {
	max-width: 460px; margin-left: auto; margin-right: auto;
}
/* HivePress keeps its 1/3-width column (hp-col-sm-4 offset-4) inside our 460px card,
   which squeezed sign in / register to ~140px. Let the column fill the card. */
body.hp-template--page-narrow .hp-page .hp-row > [class*="hp-col-"] {
	flex: 0 0 100%; max-width: 100%; margin-left: 0;
}
body.hp-template--page-narrow .hp-page {
	background: #fff; border: 1px solid var(--dhs-border); border-radius: var(--dhs-radius-lg);
	box-shadow: var(--dhs-shadow); padding: 32px 30px;
}
body.hp-template--page-narrow .hp-page .hp-page__title,
body.hp-template--page-narrow .hp-page h1 { font-size: 28px; margin: 0 0 18px; }
body.hp-template--page-narrow .hp-page .hp-page__title::before,
body.hp-template--page-narrow .hp-page h1::before {
	content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--dhs-gold); margin-bottom: 14px;
}

/* Provider profile form: one clean card */
body[class*="hp-template--listing-submit"] .hp-page,
body[class*="hp-template--listing-edit"] .hp-page__content {
	max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--dhs-border);
	border-radius: var(--dhs-radius-lg); box-shadow: var(--dhs-shadow-sm); padding: clamp(20px, 4vw, 40px);
}
body[class*="hp-template--listing-submit"] .hp-page__title { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }

/* HivePress forms */
.hp-form__field { margin-bottom: 20px; }
.hp-form__label, .hp-field__label { font-weight: 600 !important; color: var(--dhs-text); font-size: 15px; margin-bottom: 4px; }
.hp-field__label small, .hp-form__label small { font-weight: 400; color: var(--dhs-muted); }
.hp-form__description, .hp-field__description { color: var(--dhs-muted); font-size: 13.5px; margin: 0 0 8px; }
.hp-form input[type=checkbox], .hp-form input[type=radio] {
	width: 18px; height: 18px; accent-color: var(--dhs-green); vertical-align: -3px; margin-right: 8px;
}
.hp-field--checkboxes label, .hp-field--checkbox label, .hp-form__field--checkbox label { display: inline-flex; align-items: center; margin: 0 18px 8px 0; font-weight: 400; }
.hp-form__footer { margin-top: 8px; }
.hp-form .hp-form__button, .hp-form button[type=submit] {
	min-height: 50px; padding: 12px 28px; border: 0; border-radius: var(--dhs-radius);
	background: var(--dhs-green); color: #fff; font: 600 16px/1 var(--dhs-font-head); cursor: pointer;
	transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hp-form .hp-form__button:hover, .hp-form button[type=submit]:hover { background: var(--dhs-teal); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18, 63, 58, .2); }
.hp-form--narrow .hp-form__button { width: 100%; }
.hp-form__action, .hp-form__actions a { color: var(--dhs-green-dark); }
.hp-form__messages:not(:empty) { margin-bottom: 14px; }
.hp-form__messages .hp-form__message, .hp-form__messages > div {
	padding: 12px 14px; border-radius: var(--dhs-radius); background: #FDECEC; color: #8A1F1F;
}
.hp-form__messages .hp-form__message--success { background: var(--dhs-mint); color: var(--dhs-teal); }

/* select2 (services and areas pickers) */
.hp-form .select2-container--default .select2-selection--multiple,
.hp-form .select2-container--default .select2-selection--single {
	min-height: 48px; border: 1px solid var(--dhs-input); border-radius: var(--dhs-radius); padding: 4px 8px;
}
.hp-form .select2-container--focus .select2-selection--multiple { border-color: var(--dhs-green) !important; box-shadow: 0 0 0 3px rgba(25, 135, 84, .18); }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background: var(--dhs-mint); border: 1px solid #CFE5D7; color: var(--dhs-teal); border-radius: 999px; padding: 2px 10px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--dhs-green); }

/* Image upload button */
.hp-form .hp-field--attachment-upload .button, .hp-form label.hp-field__button, .hp-form .hp-field--attachment-upload label {
	background: #fff !important; color: var(--dhs-green-dark) !important; border: 1px solid var(--dhs-green) !important; border-radius: 8px;
}

/* Join note on the sign-in page */
.dhs-join-note {
	max-width: 460px; margin: 0 auto 16px; padding: 14px 16px; border-radius: var(--dhs-radius);
	background: var(--dhs-mint); border: 1px solid #CFE5D7; color: var(--dhs-text); font-size: 15px;
}
.dhs-join-note a { font-weight: 600; color: var(--dhs-green-dark); }

/* Modals (sign in / register / reset password) */
.hp-modal.fancybox-content {
	border-radius: var(--dhs-radius-lg); padding: 34px 30px !important; width: min(420px, 92vw) !important;
	box-shadow: var(--dhs-shadow-lg); border-top: 4px solid var(--dhs-green);
}
.hp-modal__title { font-size: 24px; margin: 0 0 16px; }
.fancybox-bg { background: var(--dhs-teal); }
.fancybox-is-open .fancybox-bg { opacity: .78; }

/* Account area (provider dashboard) */
.hp-menu--user-account, .hp-page__sidebar .hp-menu {
	background: #fff; border: 1px solid var(--dhs-border); border-radius: var(--dhs-radius-lg); padding: 8px;
}
.hp-menu--user-account .hp-menu__item a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--dhs-text); text-decoration: none; }
.hp-menu--user-account .hp-menu__item a:hover, .hp-menu--user-account .hp-menu__item--current a { background: var(--dhs-mint); color: var(--dhs-green-dark); }
.hp-listing--edit-block { background: #fff; border: 1px solid var(--dhs-border); border-radius: 12px; padding: 14px 16px; }

/* Public provider profile page */
body.hp-template--listing-view-page { background: var(--dhs-alt); }
.hp-listing--view-page .hp-listing__title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.hp-listing--view-page .hp-listing__categories a, .hp-listing--view-page .hp-listing__category a {
	display: inline-block; background: var(--dhs-mint); color: var(--dhs-green-dark); border-radius: 999px; padding: 3px 12px;
	font-size: 13px; font-weight: 600; text-decoration: none; margin: 0 6px 6px 0;
}
.hp-listing--view-page .hp-listing__description { color: var(--dhs-text); }
.hp-listing--view-page .hp-listing__attributes { border: 0; }
.hp-listing__attribute { color: var(--dhs-muted); }
.hp-listing__attribute strong { color: var(--dhs-text); }
.hp-page__sidebar .hp-widget, .hp-page__sidebar .hp-block {
	background: #fff; border: 1px solid var(--dhs-border); border-radius: var(--dhs-radius-lg); padding: 20px; box-shadow: var(--dhs-shadow-sm);
}
.hp-page__content .hp-listing--view-page, .hp-page__content > .hp-listing {
	background: #fff; border: 1px solid var(--dhs-border); border-radius: var(--dhs-radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--dhs-shadow-sm);
}
.hp-listing__images img { border-radius: var(--dhs-radius-lg); }
.hp-listing__actions--primary .hp-listing__action, .hp-page__sidebar .button {
	border-radius: var(--dhs-radius); font-family: var(--dhs-font-head); font-weight: 600;
}

/* 404 and search pages */
.error404 .content-container, .search .content-container { padding-top: 56px; padding-bottom: 72px; }
.error404 .page-title, .search .page-title { font-size: clamp(28px, 3.4vw, 40px); }
.error404 .search-form, .search-no-results .search-form { max-width: 520px; }
.search-form input[type=search] {
	min-height: 48px; border: 1px solid var(--dhs-input); border-radius: var(--dhs-radius); padding: 10px 14px;
}

@media (max-width: 600px) {
	body.hp-template--page-narrow .hp-page { padding: 24px 18px; border-radius: 12px; }
}

/* Dropdown menus: invisible bridge over the 6px gap between a menu item and its
   dropdown, so the menu stays open while the mouse moves down into it. */
#site-navigation .primary-menu-container > ul > li.menu-item-has-children::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}

/* Public provider profile: main column as a white card; left-aligned facts in the sidebar. */
.hp-listing--view-page > .hp-page__content {
	background: #fff; border: 1px solid var(--dhs-border); border-radius: var(--dhs-radius-lg);
	padding: clamp(20px, 3vw, 34px); box-shadow: var(--dhs-shadow-sm);
}
.hp-page__sidebar .hp-listing__attribute {
	text-align: left; background: var(--dhs-alt); border-radius: 10px; padding: 12px 14px; color: var(--dhs-muted);
}
.hp-page__sidebar .hp-listing__attribute strong { color: var(--dhs-text); font-weight: 600; }

/* 31. Become a Provider: hero photo (2.2.9) */
body.page-id-32 .dhs-hero {
	background:
		linear-gradient(90deg, #0E3430 0%, #0E3430 34%, rgba(14,52,48,.9) 46%, rgba(14,52,48,.35) 60%, rgba(14,52,48,0) 72%),
		url(dhs-hero-provider.webp) right top / cover no-repeat,
		#0E3430 !important;
	min-height: clamp(520px, 36vw, 680px);
	display: flex; align-items: center;
}
body.page-id-32 .dhs-hero::after { display: none; }
body.page-id-32 .dhs-hero > .wp-block-group__inner-container {
	width: 100%; max-width: calc(var(--global-content-width, 1290px) + 2 * var(--global-content-edge-padding, 1.5rem));
	margin: 0 auto; padding-left: var(--global-content-edge-padding, 1.5rem); padding-right: var(--global-content-edge-padding, 1.5rem); box-sizing: border-box;
}
body.page-id-32 .dhs-hero h1,
body.page-id-32 .dhs-hero p,
body.page-id-32 .dhs-hero .wp-block-buttons { max-width: min(46vw, 640px); margin-left: 0 !important; margin-right: auto !important; }
body.page-id-32 .dhs-hero h1, body.page-id-32 .dhs-hero p { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
@media (max-width: 1200px) {
	body.page-id-32 .dhs-hero {
		background:
			linear-gradient(90deg, #0E3430 0%, rgba(14,52,48,.92) 45%, rgba(14,52,48,.45) 70%, rgba(14,52,48,.1) 100%),
			url(dhs-hero-provider.webp) 85% top / cover no-repeat,
			#0E3430 !important;
	}
	body.page-id-32 .dhs-hero h1, body.page-id-32 .dhs-hero p, body.page-id-32 .dhs-hero .wp-block-buttons { max-width: 58vw; }
}
@media (max-width: 767px) {
	body.page-id-32 .dhs-hero {
		min-height: 0; display: block;
		background:
			linear-gradient(180deg, rgba(14,52,48,.55) 0%, rgba(14,52,48,.88) 45%, #0E3430 100%),
			url(dhs-hero-provider.webp) 82% top / auto 100% no-repeat,
			#0E3430 !important;
	}
	body.page-id-32 .dhs-hero h1, body.page-id-32 .dhs-hero p, body.page-id-32 .dhs-hero .wp-block-buttons { max-width: none; }
}
