/* Full quote page — /get-a-quote/ (post-calculator lead).
 * Enqueue: is_page('get-a-quote') only.
 */

/* Hide default page.php H1 — shell provides the only H1 */
.bhm-quote-page-body article > .bhm-title {
	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;
}

.bhm-quote-page-body .bhm-section {
	padding-block: var(--bhm-space-8) var(--bhm-space-12);
}

.bhm-quote-page-body .entry-content > .bhm-quote-page__notice:first-child {
	margin-bottom: var(--bhm-space-5);
}

/* Notices (prepended before shortcode) */
.bhm-quote-page__notice {
	margin: 0 0 var(--bhm-space-5);
	padding: 12px 14px;
	border-radius: var(--bhm-radius-sm);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	line-height: 1.4;
}

.bhm-quote-page__notice--ok {
	color: var(--bhm-accent);
	background: var(--bhm-accent-soft);
}

.bhm-quote-page__notice--err {
	color: var(--bhm-warn);
	background: var(--bhm-warn-soft);
}

/* Page shell */
.bhm-quote-page {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-6);
	max-width: 1120px;
}

.bhm-quote-page__header {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-3);
	max-width: 40rem;
}

.bhm-quote-page__title {
	margin: 0;
	font-family: var(--bhm-font-display);
	font-size: 1.75rem;
	font-weight: var(--bhm-fw-extrabold);
	line-height: 1.2;
	color: var(--bhm-ink-strong);
}

.bhm-quote-page__lead {
	margin: 0;
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-regular);
	line-height: 1.5;
	color: var(--bhm-ink);
}

.bhm-quote-page__layout {
	display: grid;
	gap: var(--bhm-space-6);
	align-items: start;
}

.bhm-quote-page__main {
	min-width: 0;
}

.bhm-quote-page__summary {
	order: -1;
	min-width: 0;
}

/* Full form — strip card chrome from legacy .bhm-quote-form */
.bhm-quote-form--full {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-5);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.bhm-quote-form__section {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-4);
	margin: 0;
	padding: 0;
	border: 0;
}

.bhm-quote-form__section-title {
	margin: 0;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bhm-navy);
}

.bhm-quote-form__optional {
	font-weight: var(--bhm-fw-regular);
	letter-spacing: 0.02em;
	text-transform: lowercase;
	color: var(--bhm-muted);
}

.bhm-quote-form--full .bhm-quote-form__fields {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-4);
	width: 100%;
}

.bhm-quote-form--full .bhm-quote-form__row {
	display: grid;
	gap: var(--bhm-space-4);
	grid-template-columns: 1fr;
}

.bhm-quote-form--full .bhm-quote-form__field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	width: 100%;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

.bhm-quote-form--full .bhm-quote-form__label {
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bhm-ink);
}

.bhm-quote-form--full .bhm-quote-form__req {
	color: var(--bhm-accent);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-quote-form--full input:not([type="file"]):not([type="hidden"]),
.bhm-quote-form--full select,
.bhm-quote-form--full textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--bhm-touch);
	height: var(--bhm-touch);
	padding: 10px 16px;
	margin: 0;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-paper);
	font: inherit;
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-regular);
	line-height: normal;
	color: var(--bhm-ink);
	text-transform: none;
	letter-spacing: normal;
	appearance: none;
}

.bhm-quote-form--full select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 2.25rem;
}

.bhm-quote-form--full textarea {
	height: auto;
	min-height: 110px;
	padding: 14px 16px;
	line-height: var(--bhm-lh-field);
	resize: vertical;
}

.bhm-quote-form--full input:not([type="file"])::placeholder,
.bhm-quote-form--full textarea::placeholder {
	color: var(--bhm-muted);
	opacity: 1;
}

.bhm-quote-form--full input:not([type="file"]):not([type="hidden"]):hover,
.bhm-quote-form--full select:hover,
.bhm-quote-form--full textarea:hover {
	border-color: var(--bhm-border-strong);
}

.bhm-quote-form--full .bhm-quote-form__field:focus-within .bhm-quote-form__label {
	color: var(--bhm-navy);
}

/* Upload — H2 pattern */
.bhm-quote-form--full .bhm-quote-upload {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 100px;
	padding: 16px 12px;
	margin: 0;
	cursor: pointer;
	background: var(--bhm-surface);
	border: 1px dashed var(--bhm-accent);
	border-radius: var(--bhm-radius-sm);
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	font-weight: var(--bhm-fw-regular);
	color: inherit;
}

.bhm-quote-form--full .bhm-quote-upload:hover,
.bhm-quote-form--full .bhm-quote-upload:focus-within {
	background: var(--bhm-surface-accent);
}

.bhm-quote-form--full .bhm-quote-upload__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	border: 0;
	font-size: 0;
}

.bhm-quote-form--full .bhm-quote-upload__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.bhm-quote-form--full .bhm-quote-upload__icon img {
	width: 20px;
	height: 20px;
	display: block;
}

.bhm-quote-form--full .bhm-quote-upload__title {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	line-height: normal;
	color: var(--bhm-accent);
}

.bhm-quote-form--full .bhm-quote-upload__hint {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-regular);
	line-height: normal;
	color: var(--bhm-muted);
	max-width: 28rem;
}

.bhm-quote-more {
	margin: 0;
	border: 0;
}

.bhm-quote-more__summary {
	cursor: pointer;
	list-style: none;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bhm-quote-more__summary::-webkit-details-marker {
	display: none;
}

.bhm-quote-more__summary:hover,
.bhm-quote-more__summary:focus-visible {
	color: var(--bhm-accent-hover);
}

.bhm-quote-more__body {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-4);
	margin-top: var(--bhm-space-4);
}

.bhm-quote-chips {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.bhm-quote-chips__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.bhm-quote-chip {
	min-height: var(--bhm-touch);
	padding: 8px 14px;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-paper);
	color: var(--bhm-ink);
	font: inherit;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	cursor: pointer;
}

.bhm-quote-chip:hover,
.bhm-quote-chip:focus-visible {
	border-color: var(--bhm-accent);
	outline: none;
	box-shadow: var(--bhm-focus-ring);
}

.bhm-quote-chip.is-active {
	border-color: var(--bhm-accent);
	background: var(--bhm-accent-soft);
	color: var(--bhm-accent);
}

.bhm-quote-form__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--bhm-space-3);
}

.bhm-quote-form--full .bhm-quote-form__cta {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: var(--bhm-touch);
	height: auto;
	padding: 12px 16px;
	margin: 0;
	border: 0;
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-accent);
	color: var(--bhm-paper);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
	line-height: normal;
	box-shadow: none;
}

.bhm-quote-form--full .bhm-quote-form__cta:hover,
.bhm-quote-form--full .bhm-quote-form__cta:focus-visible {
	background: var(--bhm-accent-hover);
	color: var(--bhm-paper);
}

.bhm-quote-form--full .bhm-quote-form__cta-icon {
	width: 11px;
	height: 11px;
	display: block;
	flex-shrink: 0;
}

.bhm-quote-form__trust {
	margin: 0;
	text-align: center;
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-regular);
	line-height: 1.4;
	color: var(--bhm-muted);
}

/* Honeypot — must ship with this CSS (bhm-home.css not loaded here) */
.bhm-quote-form--full .bhm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* Estimate summary card */
.bhm-quote-summary {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-4);
	padding: var(--bhm-space-5);
	background: var(--bhm-surface);
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	box-shadow: var(--bhm-shadow-sm);
}

.bhm-quote-summary__kicker {
	margin: 0;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bhm-accent);
}

.bhm-quote-summary__package {
	margin: 0;
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-bold);
	line-height: 1.3;
	color: var(--bhm-navy);
}

.bhm-quote-summary__total {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.bhm-quote-summary__total-label {
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-muted);
}

.bhm-quote-summary__total-value {
	font-size: 1.75rem;
	font-weight: var(--bhm-fw-extrabold);
	line-height: 1.15;
	color: var(--bhm-navy);
	font-variant-numeric: tabular-nums;
}

.bhm-quote-summary__rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid var(--bhm-border);
	padding-top: var(--bhm-space-4);
}

.bhm-quote-summary__rows li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--bhm-space-4);
	font-size: var(--bhm-text-small);
	line-height: 1.35;
}

.bhm-quote-summary__row-label {
	color: var(--bhm-muted);
	font-weight: var(--bhm-fw-regular);
	flex-shrink: 0;
}

.bhm-quote-summary__row-value {
	color: var(--bhm-ink);
	font-weight: var(--bhm-fw-semibold);
	text-align: right;
}

.bhm-quote-summary__money {
	list-style: none;
	margin: 0;
	padding: var(--bhm-space-3) 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid var(--bhm-border);
	font-size: var(--bhm-text-small);
	line-height: 1.35;
}

.bhm-quote-summary__money li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--bhm-space-4);
}

.bhm-quote-summary__money-promo .bhm-quote-summary__row-label,
.bhm-quote-summary__money-promo .bhm-quote-summary__row-value {
	color: var(--bhm-accent);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-quote-summary__guarantee {
	margin: 0;
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	line-height: 1.4;
	color: var(--bhm-slate);
}

.bhm-quote-summary__edit {
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bhm-quote-summary__edit:hover,
.bhm-quote-summary__edit:focus-visible {
	color: var(--bhm-accent-hover);
}

/* ≥640: contact 2-col */
@media (min-width: 640px) {
	.bhm-quote-form--full .bhm-quote-form__row--2 {
		grid-template-columns: 1fr 1fr;
	}

	.bhm-quote-form--full .bhm-quote-form__row--3 {
		grid-template-columns: 1fr 1fr;
	}

	.bhm-quote-form--full .bhm-quote-form__cta {
		width: auto;
		min-width: 220px;
		align-self: flex-start;
	}

	.bhm-quote-form__actions {
		align-items: flex-start;
	}

	.bhm-quote-form__trust {
		text-align: left;
	}
}

/* ≥1024: 2-col page + sticky summary */
@media (min-width: 1024px) {
	.bhm-quote-page-body .bhm-section {
		padding-block: var(--bhm-space-10) var(--bhm-space-16);
	}

	.bhm-quote-page__title {
		font-size: 2.25rem;
	}

	.bhm-quote-page--has-estimate .bhm-quote-page__layout {
		grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
		gap: var(--bhm-space-10);
	}

	.bhm-quote-page__summary {
		order: 0;
		position: sticky;
		top: calc(var(--bhm-header-h, 82px) + var(--bhm-space-4));
	}

	.bhm-quote-form--full .bhm-quote-form__row--3 {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.bhm-quote-summary__total-value {
		font-size: 2rem;
	}

	.bhm-quote-dock {
		display: none !important;
	}
}

/* Mobile sticky dock — estimate + CTA above bottom-nav */
.bhm-quote-dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--bhm-paper);
	border-top: 1px solid var(--bhm-border);
	transform: translateY(110%);
	transition: transform 0.2s ease;
	pointer-events: none;
}

.bhm-has-bottom-nav .bhm-quote-dock {
	bottom: var(--bhm-bottom-nav-h, 64px);
}

.bhm-quote-dock.is-visible {
	transform: translateY(0);
	pointer-events: auto;
}

.bhm-quote-dock__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1120px;
	margin: 0 auto;
}

.bhm-quote-dock__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	min-width: 0;
}

.bhm-quote-dock__price-label {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bhm-quote-dock__price-value {
	font-size: 1.25rem;
	font-weight: var(--bhm-fw-extrabold);
	line-height: 1.15;
	color: var(--bhm-navy);
	font-variant-numeric: tabular-nums;
}

.bhm-quote-dock__cta {
	flex-shrink: 0;
	min-height: var(--bhm-touch);
	padding: 12px 16px;
	border: 0;
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-accent);
	color: var(--bhm-paper);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
}

.bhm-quote-dock__cta:hover,
.bhm-quote-dock__cta:focus-visible {
	background: var(--bhm-accent-hover);
	color: var(--bhm-paper);
}

.bhm-quote-page.has-quote-dock {
	padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
