/* Compact quote embed — alias `quote-embed` (A5 / S5).
 * Section fill stays transparent so sitewide page-bg shows through.
 * Inner card + fields stay opaque.
 */

.bhm-quote-embed {
	padding: clamp(40px, 6vw, 80px) 0;
	background: transparent;
}

.bhm-quote-embed__inner {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-6, 24px);
	padding: clamp(20px, 4vw, 48px);
	background: var(--bhm-paper);
	border-left: 6px solid var(--bhm-accent);
	border-radius: var(--bhm-radius-sm) var(--bhm-radius) var(--bhm-radius) var(--bhm-radius-sm);
	box-shadow: 0 12px 16px rgba(7, 100, 253, 0.03);
}

.bhm-quote-embed__intro .bhm-title {
	margin: 0 0 12px;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.bhm-quote-embed__intro .bhm-lead {
	margin: 0 0 16px;
}

.bhm-quote-embed__turnaround {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--bhm-accent);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
}

.bhm-quote-embed__form {
	min-width: 0;
}

.bhm-quote-embed__notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: var(--bhm-radius);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-quote-embed__notice--ok {
	background: var(--bhm-success-soft);
	color: var(--bhm-success-ink);
}

.bhm-quote-embed__notice--err {
	background: var(--bhm-danger-soft);
	color: var(--bhm-danger);
}

.bhm-quote-embed .bhm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

.bhm-quote-embed .bhm-quote-form--home {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.bhm-quote-embed .bhm-quote-upload {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--bhm-touch, 44px);
	padding: 12px;
	border: 1px dashed var(--bhm-accent);
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-paper);
	cursor: pointer;
	text-align: center;
	color: var(--bhm-accent);
}

.bhm-quote-embed .bhm-quote-upload:hover,
.bhm-quote-embed .bhm-quote-upload:focus-within {
	border-style: solid;
}

.bhm-quote-embed .bhm-quote-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bhm-quote-embed .bhm-quote-upload__icon img {
	display: block;
	width: 18px;
	height: 18px;
}

.bhm-quote-embed .bhm-quote-upload__title {
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
}

.bhm-quote-embed .bhm-quote-upload__hint {
	font-size: var(--bhm-text-kicker);
	color: var(--bhm-muted);
}

.bhm-quote-embed .bhm-quote-upload__hint--desktop {
	display: none;
}

.bhm-quote-embed .bhm-quote-form__fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bhm-quote-embed .bhm-quote-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.bhm-quote-embed .bhm-quote-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bhm-quote-embed .bhm-quote-form__label {
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-quote-embed .bhm-quote-form__req {
	color: var(--bhm-accent);
}

.bhm-quote-embed .bhm-quote-form--home input:not([type="file"]):not([type="hidden"]),
.bhm-quote-embed .bhm-quote-form--home textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--bhm-touch, 44px);
	padding: 12px;
	margin: 0;
	font: inherit;
	font-size: var(--bhm-text-small);
}

.bhm-quote-embed .bhm-quote-form--home textarea {
	min-height: 110px;
	line-height: var(--bhm-lh-field);
	resize: vertical;
}

.bhm-quote-embed .bhm-quote-form__cta {
	width: 100%;
	justify-content: center;
}

@media (min-width: 768px) {
	.bhm-quote-embed .bhm-quote-form__fields {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.bhm-quote-embed .bhm-quote-form__row {
		grid-column: 1 / -1;
		grid-template-columns: 1fr 1fr;
	}

	.bhm-quote-embed .bhm-quote-form__field:has(textarea) {
		grid-column: 1 / -1;
	}

	.bhm-quote-embed .bhm-quote-upload__hint {
		display: none;
	}

	.bhm-quote-embed .bhm-quote-upload__icon img {
		width: 14px;
		height: 14px;
	}
}

@media (min-width: 1100px) {
	.bhm-quote-embed__inner {
		flex-direction: row;
		align-items: flex-start;
		gap: clamp(24px, 4vw, 48px);
	}

	.bhm-quote-embed__intro {
		flex: 1 1 0;
		min-width: 0;
		padding-top: 8px;
	}

	.bhm-quote-embed__form {
		flex: 0 1 450px;
		width: min(450px, 100%);
	}
}
