/* ── AVP Lead Capture Modal ── */

/* Overlay */
.avp-lead-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.avp-lead-modal[aria-hidden="false"] {
	display: flex;
}

.avp-lead-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

/* Dialog */
.avp-lead-modal__dialog {
	position: relative;
	background: #fff;
	width: 90vw;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 48px 40px;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.avp-lead-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #657282;
	padding: 4px 8px;
}

.avp-lead-modal__close:hover {
	color: #1D1C21;
}

.avp-lead-modal__title {
	font-family: 'Karlsbader Grotesk 600', sans-serif;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 8px;
	color: #1D1C21;
}

.avp-lead-modal__subtitle {
	font-family: 'Karlsbader Grotesk 400', sans-serif;
	font-size: 16px;
	color: #657282;
	margin: 0 0 32px;
	line-height: 1.5;
}

/* Form layout */
.avp-lead-modal .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.avp-lead-modal .wpcf7-form p {
	margin: 0;
}

.avp-lead-modal .wpcf7-form label {
	display: none;
}

.avp-lead-modal .avp-form-row {
	display: flex;
	gap: 16px;
}

.avp-lead-modal .avp-form-row .wpcf7-form-control-wrap {
	flex: 1;
}

/* Inputs */
.avp-lead-modal .wpcf7-form-control-wrap {
	display: block;
}

.avp-lead-modal input[type="text"],
.avp-lead-modal input[type="email"] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #B4C5CD;
	border-radius: 2px;
	font-family: 'Karlsbader Grotesk 400', sans-serif;
	font-size: 16px;
	color: #1D1C21;
	background: #fff;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s;
}

.avp-lead-modal input[type="text"]:focus,
.avp-lead-modal input[type="email"]:focus {
	border-color: #1D1C21;
}

.avp-lead-modal input[type="text"]::placeholder,
.avp-lead-modal input[type="email"]::placeholder {
	color: #9AABB5;
}

/* Validation errors */
.avp-lead-modal .wpcf7-not-valid {
	border-color: #E4002B;
}

.avp-lead-modal .wpcf7-not-valid-tip {
	font-size: 13px;
	color: #E4002B;
	margin-top: 4px;
	font-family: 'Karlsbader Grotesk 400', sans-serif;
}

/* Submit button */
.avp-lead-modal input[type="submit"] {
	width: 100%;
	padding: 16px 32px;
	background: #1D1C21;
	color: #fff;
	border: none;
	border-radius: 2px;
	font-family: 'Karlsbader Grotesk 600', sans-serif;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	margin-top: 8px;
	transition: background 0.2s;
}

.avp-lead-modal input[type="submit"]:hover {
	background: #000;
}

/* CF7 response messages */
.avp-lead-modal .wpcf7-response-output {
	font-family: 'Karlsbader Grotesk 400', sans-serif;
	font-size: 14px;
	margin: 8px 0 0;
	padding: 12px 16px;
	border-radius: 2px;
}

/* Honeypot — hidden from humans */
.avp-hp-wrap {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
	opacity: 0;
}

/* CF7 spinner */
.avp-lead-modal .wpcf7-spinner {
	margin: 8px auto 0;
	display: block;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.avp-lead-modal__dialog {
		width: calc(100vw - 32px);
		padding: 32px 24px;
	}

	.avp-lead-modal .avp-form-row {
		flex-direction: column;
	}

	.avp-lead-modal__title {
		font-size: 24px;
	}
}
