/* ═══════════════════════════════════════════════════════
   JOIN THE PEAK CRTVE COLLECTIVE — PARTNER SURVEY
   Brand System v2.4 — monochrome Ink/grey/white, hairline rules.
   ═══════════════════════════════════════════════════════ */

:root {
	--pp-black: #0A0A0A;
	--pp-white: #FAFAF8;
	--pp-cream: #F5F0EB;
	--pp-grey-100: #E8E6E3;
	--pp-grey-300: #B0ADA8;
	--pp-grey-500: #6B6862;
	--pp-grey-700: #3D3A36;
	--pp-grey-900: #1A1917;
	--pp-serif: 'Georgia', 'Times New Roman', serif;
	--pp-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	--pp-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
	--pp-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Honeypot ── */
.pp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.pp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
.pp-modal[hidden] { display: none; }

.pp-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.6);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.4s var(--pp-ease);
}
.pp-modal.is-open .pp-modal__overlay { opacity: 1; }

.pp-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(880px, 100%);
	margin: clamp(16px, 4vh, 56px) 16px;
	background: var(--pp-cream);
	box-shadow: 0 30px 80px rgba(10, 10, 10, 0.4);
	max-height: calc(100vh - clamp(32px, 8vh, 112px));
	display: flex;
	flex-direction: column;
	transform: translateY(24px);
	opacity: 0;
	transition: transform 0.5s var(--pp-ease), opacity 0.5s var(--pp-ease);
}
.pp-modal.is-open .pp-modal__dialog { transform: translateY(0); opacity: 1; }

.pp-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--pp-grey-700);
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}
.pp-modal__close:hover { color: var(--pp-black); transform: rotate(90deg); }

.pp-modal__scroll {
	overflow-y: auto;
	padding: clamp(32px, 5vw, 64px);
}

.pp-modal__head {
	margin-bottom: 36px;
	border-bottom: 1px solid var(--pp-grey-300);
	padding-bottom: 28px;
}
.pp-modal__eyebrow {
	display: block;
	font-family: var(--pp-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pp-grey-500);
	margin-bottom: 14px;
}
.pp-modal__title {
	font-family: var(--pp-serif);
	font-size: clamp(30px, 5vw, 48px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--pp-grey-900);
	margin: 0 0 14px;
}
.pp-modal__lede {
	font-family: var(--pp-sans);
	font-size: 15px;
	line-height: 1.6;
	color: var(--pp-grey-500);
	margin: 0;
	max-width: 56ch;
}

/* ══════════════════════════════════════
   FORM
   ══════════════════════════════════════ */
.pp-inline { max-width: 820px; margin: 0 auto; }

.pp-section { margin-bottom: 40px; }
.pp-section__eyebrow {
	display: block;
	font-family: var(--pp-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pp-grey-700);
	padding-bottom: 12px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--pp-grey-100);
}

.pp-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 620px) {
	.pp-grid--2 { grid-template-columns: 1fr 1fr; }
	.pp-field--wide { grid-column: 1 / -1; }
}

.pp-field { display: flex; flex-direction: column; margin-bottom: 22px; }
.pp-grid .pp-field { margin-bottom: 0; }

.pp-field__label,
.pp-field > .pp-field__label {
	font-family: var(--pp-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--pp-grey-900);
	margin-bottom: 8px;
}
.pp-field__help {
	font-family: var(--pp-sans);
	font-size: 12px;
	color: var(--pp-grey-500);
	margin: -4px 0 10px;
}
.pp-req { color: var(--pp-grey-300); }

.pp-field input,
.pp-field select,
.pp-field textarea {
	font-family: var(--pp-sans);
	font-size: 15px;
	color: var(--pp-grey-900);
	background: var(--pp-white);
	border: 1px solid var(--pp-grey-300);
	border-radius: 0;
	padding: 12px 14px;
	width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.pp-field textarea { resize: vertical; min-height: 96px; }
.pp-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B6862' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}
.pp-field input:focus,
.pp-field select:focus,
.pp-field textarea:focus {
	outline: none;
	border-color: var(--pp-grey-900);
	box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.06);
}
.pp-field.pp-field--error input,
.pp-field.pp-field--error select,
.pp-field.pp-field--error textarea {
	border-color: #9b2c2c;
}
.pp-field__error {
	font-family: var(--pp-sans);
	font-size: 12px;
	color: #9b2c2c;
	margin-top: 6px;
}

/* Checkboxes */
.pp-checks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 4px;
}
@media (min-width: 620px) { .pp-checks { grid-template-columns: 1fr 1fr; } }
.pp-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--pp-sans);
	font-size: 14px;
	line-height: 1.4;
	color: var(--pp-grey-700);
	cursor: pointer;
	padding: 10px 12px;
	border: 1px solid var(--pp-grey-100);
	background: var(--pp-white);
	transition: border-color 0.2s ease;
}
.pp-check:hover { border-color: var(--pp-grey-300); }
.pp-check input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--pp-grey-900); }

/* Actions */
.pp-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding-top: 8px;
}
.pp-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--pp-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pp-white);
	background: var(--pp-grey-900);
	border: 1px solid var(--pp-grey-900);
	padding: 16px 34px;
	cursor: pointer;
	transition: background 0.3s var(--pp-ease), opacity 0.2s ease;
}
.pp-submit:hover { background: var(--pp-black); }
.pp-submit[disabled] { opacity: 0.6; cursor: progress; }
.pp-submit__spinner {
	width: 15px; height: 15px;
	border: 2px solid rgba(250, 250, 248, 0.35);
	border-top-color: var(--pp-white);
	border-radius: 50%;
	display: none;
	animation: pp-spin 0.7s linear infinite;
}
.pp-form.is-submitting .pp-submit__spinner { display: inline-block; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-actions__note {
	font-family: var(--pp-sans);
	font-size: 12.5px;
	color: var(--pp-grey-500);
	margin: 0;
}

.pp-message--error {
	margin-top: 20px;
	font-family: var(--pp-sans);
	font-size: 14px;
	color: #9b2c2c;
	background: rgba(155, 44, 44, 0.06);
	border: 1px solid rgba(155, 44, 44, 0.25);
	padding: 12px 16px;
}

/* Success state */
.pp-success { text-align: center; padding: clamp(24px, 6vw, 56px) 0; }
.pp-success__mark {
	width: 84px; height: 84px;
	margin: 0 auto 28px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--pp-grey-900);
	border: 1px solid var(--pp-grey-300);
}
.pp-success__title {
	font-family: var(--pp-serif);
	font-size: clamp(24px, 3.5vw, 34px);
	font-weight: 400;
	line-height: 1.2;
	color: var(--pp-grey-900);
	margin: 0 0 14px;
}
.pp-success__text {
	font-family: var(--pp-sans);
	font-size: 15px;
	line-height: 1.6;
	color: var(--pp-grey-500);
	max-width: 46ch;
	margin: 0 auto;
}

/* Lock body scroll while modal open */
body.pp-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.pp-modal__overlay,
	.pp-modal__dialog { transition: none; }
	.pp-submit__spinner { animation-duration: 1.4s; }
}
