:root {
	--bp-overlay: rgba(15, 23, 32, 0.55);
	--bp-surface: #ffffff;
	--bp-bg: #f4f6f8;
	--bp-text: #1a2332;
	--bp-muted: #5b6775;
	--bp-accent: #0b3d2e;
	--bp-accent-hover: #082c21;
	--bp-line: #e4e8ee;
	--bp-header-bg: #f8f9fb;
	--bp-radius: 6px;
	--bp-shadow: 0 16px 48px rgba(15, 23, 32, 0.18);
	--bp-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bp-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.bp-root[hidden] {
	display: none !important;
}

.bp-overlay {
	position: absolute;
	inset: 0;
	background: var(--bp-overlay);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.bp-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(480px, 100%);
	max-height: min(86vh, 640px);
	overflow: hidden;
	background: var(--bp-surface);
	color: var(--bp-text);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-radius);
	box-shadow: var(--bp-shadow);
	font-family: var(--bp-font);
	transform: translateY(12px);
	opacity: 0;
	transition: transform 0.28s ease, opacity 0.25s ease;
}

.bp-dialog::before {
	content: "";
	display: block;
	height: 3px;
	flex: 0 0 3px;
	background: var(--bp-accent);
}

.bp-root.is-open .bp-overlay {
	opacity: 1;
}

.bp-root.is-open .bp-dialog {
	transform: translateY(0);
	opacity: 1;
}

.bp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	min-height: 56px;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid var(--bp-line);
	background: var(--bp-header-bg);
	box-sizing: border-box;
}

.bp-title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--bp-font);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--bp-text);
}

.bp-title--spacer {
	display: block;
	min-height: 1em;
}

.bp-close {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--bp-line);
	border-radius: 4px;
	background: var(--bp-surface);
	color: var(--bp-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bp-close-icon {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
}

.bp-close:hover,
.bp-close:focus-visible {
	background: var(--bp-bg);
	border-color: #cfd6df;
	color: var(--bp-text);
	outline: none;
}

.bp-body {
	flex: 1 1 auto;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
	box-sizing: border-box;
	background: var(--bp-surface);
}

.bp-content {
	font-size: 14px;
	line-height: 1.6;
	color: var(--bp-muted);
}

.bp-content > *:first-child {
	margin-top: 0;
}

.bp-content > *:last-child {
	margin-bottom: 0;
}

.bp-content p {
	margin: 0 0 12px;
}

.bp-content img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--bp-line);
	border-radius: 4px;
	margin: 12px 0;
}

.bp-content a {
	color: var(--bp-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bp-content a:hover {
	color: var(--bp-accent-hover);
}

.bp-content form,
.bp-content .wpcf7,
.bp-content .fluentform,
.bp-content .wpforms-container {
	margin-top: 14px;
}

.bp-content label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-text);
}

.bp-content input[type="text"],
.bp-content input[type="email"],
.bp-content input[type="tel"],
.bp-content input[type="number"],
.bp-content input[type="url"],
.bp-content textarea,
.bp-content select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--bp-line);
	border-radius: 4px;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	color: var(--bp-text);
	margin-bottom: 10px;
}

.bp-content input[type="text"]:focus,
.bp-content input[type="email"]:focus,
.bp-content input[type="tel"]:focus,
.bp-content input[type="number"]:focus,
.bp-content input[type="url"]:focus,
.bp-content textarea:focus,
.bp-content select:focus {
	outline: none;
	border-color: var(--bp-accent);
	box-shadow: 0 0 0 2px rgba(11, 61, 46, 0.12);
}

.bp-content input[type="submit"],
.bp-content button[type="submit"],
.bp-content .wpcf7-submit,
.bp-content .wpforms-submit {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	border: 0;
	border-radius: 4px;
	background: var(--bp-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.bp-content input[type="submit"]:hover,
.bp-content button[type="submit"]:hover,
.bp-content .wpcf7-submit:hover,
.bp-content .wpforms-submit:hover {
	background: var(--bp-accent-hover);
}

body.bp-lock {
	overflow: hidden;
}

@media (max-width: 560px) {
	.bp-root {
		padding: 12px;
		align-items: center;
	}

	.bp-dialog {
		width: 100%;
		max-height: min(88vh, 100%);
		border-radius: 6px;
	}

	.bp-header {
		min-height: 52px;
		padding: 12px 12px 12px 16px;
		gap: 10px;
	}

	.bp-title {
		font-size: 15px;
		padding-right: 0;
	}

	.bp-close {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
	}

	.bp-body {
		padding: 16px;
	}
}
