.popup-leads {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	height: 100dvh;
}

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

.popup-leads__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.popup-leads__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	background: #fff;
	color: #0f172a;
	border-radius: 20px;
	padding: 1.75rem 1.5rem 1.5rem;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
	overflow: hidden;
}

.popup-leads__media {
	margin: -1.75rem -1.5rem 1.1rem;
}

.popup-leads__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

.popup-leads__close {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	padding: 0.25rem 0.5rem;
}

.popup-leads__close:hover {
	color: #0f172a;
}

.popup-leads__form {
	position: relative;
	margin-top: 0.25rem;
}

.popup-leads__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.popup-leads__input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0.7rem 0.85rem;
	font-size: 1rem;
	margin-bottom: 0.9rem;
}

.popup-leads__input:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.popup-leads__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #334155;
	cursor: pointer;
}

.popup-leads__consent input {
	margin-top: 0.15rem;
	flex-shrink: 0;
}

.popup-leads__submit {
	position: relative;
	width: 100%;
	border: 2px solid #ffa400;
	border-radius: 5555px;
	background: #ffa400;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.8rem 1rem;
	cursor: pointer;
}

.popup-leads__submit:hover {
	background: white;
	color: #ffa400;
	border-color: #ffa400;
	border-width: 2px;
}

.popup-leads__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.popup-leads__submit.is-loading .popup-leads__submit-label {
	visibility: hidden;
}

.popup-leads__spinner {
	display: none;
	box-sizing: border-box;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -0.575rem;
	margin-left: -0.575rem;
	animation: popup-leads-spin 0.7s linear infinite;
}

.popup-leads__submit.is-loading .popup-leads__spinner {
	display: block;
}

@keyframes popup-leads-spin {
	to {
		transform: rotate(360deg);
	}
}

.popup-leads__message {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1.25rem;
	background: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}

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

.popup-leads__message.is-success {
	color: #15803d;
}

.popup-leads__message.is-error {
	color: #b91c1c;
}

html.popup-leads-open,
html.popup-leads-open body {
	overflow: hidden;
}
