.visually-hidden,
.lead-form .form-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

html.lead-modal-open,
html.lead-modal-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

.lead-modal {
	width: min(540px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 36px;
	border: 0;
	border-radius: 12px;
	background: #f3f4f6;
	color: #282828;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lead-modal::backdrop { background: rgb(0 0 0 / 65%); }
.lead-modal h2 { margin: 0 32px 16px 0; font-size: 28px; font-weight: 600; }
.lead-modal > p { line-height: 1.5; }
.lead-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #282828;
	font-size: 32px;
	cursor: pointer;
}
.lead-modal__form { display: flex; flex-direction: column; gap: 10px; }
.lead-modal__form label { margin-top: 6px; font-size: 14px; }
.lead-modal__form label span { color: #626262; }
.lead-modal__form > input {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #ccc;
	border-radius: 12px;
	background: #fff;
}
.lead-modal__form .button { margin-top: 14px; flex-shrink: 0; }
.lead-modal__notice { margin: 0; font-size: 12px; line-height: 1.5; color: #626262; }
.lead-form .form-status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.lead-form .form-status:empty { display: none; }
.lead-modal .form-status { color: #282828; }
.lead-form .form-status[data-state="error"] { color: #ffb5b9; }
.lead-modal .form-status[data-state="error"] { color: #a10e25; }
.lead-form button:disabled { opacity: .65; cursor: wait; }
.lead-form button { cursor: pointer; }
.lead-form input:focus-visible,
.lead-form button:focus-visible,
[data-lead-open]:focus-visible,
.lead-modal__close:focus-visible { outline: 3px solid #9193ff; outline-offset: 3px; }
.footer-form-input > label { width: 30%; flex-shrink: 0; font-size: 14px; }
.footer-form-input > input { min-width: 0; }
.form-container .lead-form--compact { flex-wrap: wrap; }
.form-container .lead-form--compact > input { padding-right: 250px; }
.form-container .lead-form--compact .form-status { flex-basis: 100%; }

@media (max-width: 700px) {
	.form-container .lead-form--compact { gap: 12px; }
	.form-container .lead-form--compact > input { padding: 0 20px; }
	.form-container .lead-form--compact .button { position: static; width: 100%; }
	.form-container .lead-form--compact .form-status { margin-top: 0; }
}
@media (max-width: 520px) {
	.lead-modal { padding: 28px 20px; }
	.lead-modal h2 { font-size: 24px; }
}
