/* Overlay + modal */
.pdfoptin-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

body.pdfoptin-lock-scroll {
	overflow: hidden;
}

.pdfoptin-overlay .pdfoptin-inner {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pdfoptin-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	z-index: 2;
}

.pdfoptin-close:hover {
	color: #000;
}

.pdfoptin-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px 10px 0 0;
	max-height: 260px;
	object-fit: cover;
}

.pdfoptin-content {
	padding: 24px 28px 28px;
}

.pdfoptin-headline {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
}

.pdfoptin-text {
	margin: 0 0 18px;
	font-size: 15px;
	color: #444;
	line-height: 1.5;
}

/* Inline (shortcode) variant */
.pdfoptin-inline .pdfoptin-inner {
	max-width: 420px;
}

.pdfoptin-inline .pdfoptin-content {
	padding: 0;
}

/* Form elements (shared) */
.pdfoptin-form {
	font-family: inherit;
}

.pdfoptin-field {
	margin-bottom: 12px;
}

.pdfoptin-field input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.pdfoptin-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pdfoptin-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 14px;
	cursor: pointer;
}

.pdfoptin-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.pdfoptin-submit {
	width: 100%;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	background: #2271b1;
	color: #fff;
	transition: opacity 0.2s ease;
}

.pdfoptin-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.pdfoptin-message {
	margin-top: 10px;
	font-size: 14px;
}

.pdfoptin-message.pdfoptin-success {
	color: #2a7a2a;
}

.pdfoptin-message.pdfoptin-error {
	color: #c62828;
}

/* Responsive */
@media (max-width: 480px) {
	.pdfoptin-overlay .pdfoptin-inner {
		max-height: 95vh;
	}

	.pdfoptin-image img {
		max-height: 160px;
	}

	.pdfoptin-content {
		padding: 18px 18px 20px;
	}

	.pdfoptin-headline {
		font-size: 19px;
	}
}
