/* Quick lead popup — mobile-first */

.lead-fab {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px 0 12px;
	border: 0;
	border-radius: 999px;
	background: #f58212;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 10px 28px rgba(245, 130, 18, 0.4);
	cursor: pointer;
}

.lead-fab[hidden] {
	display: none !important;
}

.lead-fab__icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-size: 15px;
	font-weight: 800;
}

.lead-fab__text {
	padding-right: 2px;
}

.lead-pills--soft {
	margin-bottom: 2px;
}

.lead-popup__body {
	min-width: 0;
}


.lead-popup {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}

.lead-popup[hidden] {
	display: none !important;
}

.lead-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 18, 37, 0.55);
	backdrop-filter: blur(2px);
}

.lead-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	max-height: min(92vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -12px 40px rgba(7, 18, 37, 0.22);
	padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
	-webkit-overflow-scrolling: touch;
}

.lead-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #f3f5f9;
	color: #071225;
	cursor: pointer;
}

.lead-popup__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f58212;
}

.lead-popup__title {
	margin: 0 0 6px;
	padding-right: 36px;
	font-size: 1.35rem;
	font-weight: 800;
	color: #071225;
	line-height: 1.25;
}

.lead-popup__lead {
	margin: 0 0 16px;
	font-size: 14px;
	color: #687386;
	line-height: 1.45;
}

.lead-popup__form {
	display: grid;
	gap: 16px;
}

.lead-popup__group {
	display: grid;
	gap: 10px;
}

.lead-popup__label {
	font-size: 13px;
	font-weight: 700;
	color: #283447;
}

.lead-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lead-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	cursor: pointer;
	user-select: none;
}

.lead-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.lead-pill span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid #d8dee8;
	border-radius: 999px;
	background: #fff;
	color: #283447;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lead-pill:hover span {
	border-color: #c5cedb;
}

.lead-pill input:checked + span {
	border-color: #f58212;
	background: #fff7ef;
	color: #071225;
	box-shadow: 0 0 0 3px rgba(245, 130, 18, 0.12);
}

.lead-pill--radio span {
	gap: 8px;
}

.lead-pill--radio span::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #c5cedb;
	box-sizing: border-box;
	background: #fff;
}

.lead-pill--radio input:checked + span::before {
	border-color: #f58212;
	box-shadow: inset 0 0 0 3px #fff;
	background: #f58212;
}

.lead-popup__fields {
	display: grid;
	gap: 12px;
}

.lead-popup .field {
	margin: 0;
}

.lead-popup .field label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #687386;
}

.lead-popup .inp {
	width: 100%;
	height: 44px;
	border: 1px solid #dfe5ee;
	border-radius: 10px;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: #101827;
	background: #fff;
	box-sizing: border-box;
}

.lead-popup .inp:focus {
	outline: 0;
	border-color: rgba(245, 130, 18, 0.65);
	box-shadow: 0 0 0 3px rgba(245, 130, 18, 0.14);
}

.lead-popup__submit {
	width: 100%;
	min-height: 48px;
	font-weight: 800;
}

.lead-popup__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.lead-popup__skip {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #687386;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}

.lead-popup__skip:hover {
	color: #071225;
}

.lead-popup .alert {
	margin: 0 0 4px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
}

.lead-popup .alert-success {
	background: #e8f8ef;
	color: #1b7f4a;
	border: 1px solid #bfe8cf;
}

.lead-popup .alert-error {
	background: #fdeeee;
	color: #b42318;
	border: 1px solid #f3c1bb;
}

.lead-popup__success {
	text-align: center;
	padding: 18px 8px 8px;
}

.lead-popup__success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #e8f8ef;
	color: #1b7f4a;
	display: grid;
	place-items: center;
	font-size: 28px;
	font-weight: 800;
}

.lead-popup__success h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
	color: #071225;
	font-weight: 800;
}

.lead-popup__success p {
	margin: 0 0 18px;
	color: #687386;
}

.lead-popup__success .btn {
	min-width: 180px;
}

body.lead-popup-open {
	overflow: hidden;
}

@media (min-width: 640px) {
	.lead-popup {
		align-items: center;
		padding: 24px;
	}

	.lead-popup__dialog {
		border-radius: 16px;
		padding: 26px 24px 22px;
		max-height: min(88vh, 680px);
	}

	.lead-fab {
		right: max(24px, env(safe-area-inset-right));
		bottom: max(24px, env(safe-area-inset-bottom));
	}
}
