.lead-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lead-modal[hidden] {
	display: none;
}

.lead-modal.is-open {
	display: flex;
}

.lead-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 23, 21, 0.72);
	animation: lead-modal-fade-in 0.25s ease;
}

.lead-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #f5f0eb;
	border-radius: 12px;
	padding: 36px 32px 32px;
	box-shadow: 0 24px 60px rgba(30, 23, 21, 0.35);
	animation: lead-modal-slide-in 0.3s ease;
}

.lead-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: transparent;
	color: #513e37;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
}

.lead-modal__title {
	margin: 0 0 10px;
	color: #513e37;
	font-size: 24px;
	text-align: center;
	text-transform: uppercase;
}

.lead-modal__text {
	margin: 0 0 24px;
	color: #655e5b;
	font-family: Golos, serif;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.lead-modal__form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.lead-modal__form .form__item {
	width: 100%;
	margin-bottom: 14px;
}

.lead-modal__submit {
	width: 100%;
	margin-top: 6px;
	cursor: pointer;
	flex: none;
}

.lead-modal__form .form__input[type=submit] {
	flex: none;
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 14px 25px;
	border-radius: 12px;
	line-height: 1.4;
	font-size: 14px;
	font-weight: 600;
}

.lead-modal__form .form__input[type=submit]:hover {
	box-shadow: 0 8px 22px rgba(66, 53, 41, 0.2), inset 0 0 18px #efbf00;
}

.lead-modal__error {
	color: #c0392b;
	font-family: Golos, serif;
	font-size: 14px;
	margin: 0 0 10px;
	text-align: center;
}

.lead-modal__success {
	color: #2d6a4f;
	font-family: Golos, serif;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px;
	text-align: center;
}

.lead-modal__form .form__input.is-invalid {
	outline: 2px solid #c0392b;
}

.lead-modal__honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

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

.header__cta {
	border: none;
	cursor: pointer;
	text-decoration: none;
	color: #423c3a;
	font-family: Golos, serif;
	font-weight: 600;
	font-size: clamp(10px, 0.95vw, 13px);
	text-transform: uppercase;
	padding: clamp(7px, 0.75vw, 10px) clamp(10px, 1.1vw, 16px);
	border-radius: 4px;
	background: #ffd800;
	box-shadow: 3px 3px 10px rgba(66, 53, 41, 0.2), inset 0 0 12px #efbf00;
	white-space: nowrap;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.header__cta:hover {
	transform: translateY(-1px);
	color: #423c3a;
}

.header__phone {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.2vw, 16px);
	flex-shrink: 0;
	min-width: 0;
}

@keyframes lead-modal-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes lead-modal-slide-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 767px) {
	.lead-modal__dialog {
		padding: 28px 20px 24px;
	}

	.lead-modal__title {
		font-size: 20px;
		padding-right: 24px;
	}
}
