/* Palomino PDF Gate — modal + form */

.ppg-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 17, 15, 0.6);
	overflow-y: auto;
}
.ppg-overlay[hidden] { display: none; }

.ppg-dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: auto;
	background: #FBF4E8;
	color: #14110F;
	border-radius: 8px;
	padding: 32px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	font-family: inherit;
}

.ppg-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #6B5F54;
	cursor: pointer;
	border-radius: 4px;
}
.ppg-close:hover { color: #14110F; }

.ppg-title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.2;
}
.ppg-desc {
	margin: 0 0 20px;
	font-size: 14px;
	color: #6B5F54;
}

.ppg-field { margin-bottom: 16px; }
.ppg-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}
.ppg-field label span { color: #6B1A2C; }
.ppg-field label .ppg-optional { color: #6B5F54; font-weight: 400; }
.ppg-field input {
	width: 100%;
	padding: 11px 12px;
	font-size: 16px; /* 16px avoids iOS zoom-on-focus */
	border: 1px solid #D7CCBB;
	border-radius: 4px;
	background: #fff;
	color: #14110F;
	box-sizing: border-box;
}
.ppg-field input:focus-visible {
	outline: 2px solid #6B1A2C;
	outline-offset: 1px;
	border-color: #6B1A2C;
}

/* Honeypot — visually and programmatically removed for real users */
.ppg-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ppg-error {
	margin: 0 0 14px;
	color: #6B1A2C;
	font-size: 13px;
	font-weight: 600;
}
.ppg-error[hidden] { display: none; }

/* Scoped under .ppg-overlay so these outrank the theme's button reset
   (`[type='submit'] { background-color: transparent }`), which has equal
   specificity to a single class and loads after this file. */
.ppg-overlay .ppg-submit {
	width: 100%;
	padding: 13px 20px;
	border: none;
	border-radius: 4px;
	background-color: #6B1A2C;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}
.ppg-overlay .ppg-submit:hover { background-color: #4A0E1C; }
.ppg-overlay .ppg-submit:disabled { opacity: 0.6; cursor: default; }
.ppg-overlay .ppg-submit:focus-visible {
	outline: 2px solid #14110F;
	outline-offset: 2px;
}

.ppg-success[hidden] { display: none; }
.ppg-download-link {
	display: inline-block;
	margin-top: 10px;
	padding: 12px 20px;
	background: #6B1A2C;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}
.ppg-download-link:hover { background: #4A0E1C; }

@media (max-width: 480px) {
	.ppg-dialog { padding: 28px 20px; }
	.ppg-title { font-size: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
	.ppg-dialog { animation: ppg-in 180ms ease-out; }
	@keyframes ppg-in {
		from { opacity: 0; transform: translateY(8px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}
