/* ==========================================================================
   ParkShare – formuláře A (waitlist) a B (poptávka provozovatelů)
   Vzhled navazuje na paletu webu (--ps-gradient, --c-primary z global.css).
   ========================================================================== */

.ps-form-wrap {
	max-width: 620px;
}

.ps-form-wrap--b {
	max-width: 720px;
}

.ps-form-title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 700;
	text-transform: uppercase;
	color: #222;
	margin: 0 0 .75rem;
}

.ps-form-lede {
	font-size: 1.1rem;
	line-height: 1.5;
	color: rgba(0, 0, 0, .7);
	margin: 0 0 1.5rem;
}

/* na tmavém podkladu (hero) si vynutíme světlé texty */
.ps-on-dark .ps-form-lede,
.ps-on-dark .ps-label,
.ps-on-dark .ps-help,
.ps-on-dark .ps-consent,
.ps-on-dark .ps-form-title { color: #fff; }

.ps-on-dark .ps-help { color: rgba(255, 255, 255, .8); }

.ps-on-dark .ps-consent a,
.ps-on-dark .ps-gdpr a { color: #fff; }

/* ---------- Pole ---------- */
.ps-field { margin-bottom: 1.35rem; border: 0; padding: 0; }

.ps-label {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	margin-bottom: .45rem;
}

.ps-input {
	width: 100%;
	padding: .9rem 1.15rem;
	font-size: 1.05rem;
	font-family: inherit;
	color: #222;
	background: #fff;
	border: 1px solid #dcdce3;
	border-radius: .65rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ps-input::placeholder { color: rgba(0, 0, 0, .42); }

.ps-input:focus {
	outline: none;
	border-color: var(--c-primary, #8a2be2);
	box-shadow: 0 0 0 3px rgba(138, 43, 226, .18);
}

.ps-textarea { resize: vertical; min-height: 120px; }

select.ps-input { appearance: none; background-image: none; cursor: pointer; }

.ps-help {
	font-size: .95rem;
	line-height: 1.45;
	color: rgba(0, 0, 0, .55);
	margin: .5rem 0 0;
}

/* ---------- Chyby (hláška POD polem, pole zvýrazněné) ---------- */
.ps-error {
	display: none;
	font-size: .95rem;
	font-weight: 500;
	color: #d12d2d;
	margin: .45rem 0 0;
}

.has-error .ps-error,
.ps-error--form:not(:empty) { display: block; }

.has-error .ps-input {
	border-color: #d12d2d;
	background: #fff6f6;
}

.has-error .ps-input:focus { box-shadow: 0 0 0 3px rgba(209, 45, 45, .18); }

.ps-error--form { margin-top: 1rem; }

.ps-on-dark .ps-error { color: #ffb4b4; }

/* ---------- Chips (výběr jedné hodnoty, jeden klik bez psaní) ---------- */
.ps-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
}

.ps-chip-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.ps-chip {
	display: inline-flex;
	align-items: center;
	padding: .6rem 1.2rem;
	border-radius: 999px;
	border: 1px solid #dcdce3;
	background: #fff;
	color: #333;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.ps-chip:hover { border-color: #b9b9c6; }

.ps-chip-input:checked + .ps-chip {
	background: var(--ps-gradient, linear-gradient(-84.74deg, #4cafcd, #8a2be2));
	border-color: transparent;
	color: #fff;
	font-weight: 600;
}

/* fokus z klávesnice musí být vidět (šipkami se mezi rádii přepíná nativně) */
.ps-chip-input:focus-visible + .ps-chip {
	outline: 2px solid var(--c-primary, #8a2be2);
	outline-offset: 2px;
}

.ps-on-dark .ps-chip {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .35);
	color: #fff;
}

.ps-on-dark .ps-chip:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Souhlas ---------- */
.ps-consent {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(0, 0, 0, .75);
	cursor: pointer;
}

.ps-checkbox {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: .15rem;
	accent-color: var(--c-primary, #8a2be2);
	cursor: pointer;
}

.ps-consent a,
.ps-gdpr a { color: var(--c-primary, #8a2be2); }

.has-error .ps-checkbox { outline: 2px solid #d12d2d; outline-offset: 2px; }

/* ---------- Odeslání ---------- */
.ps-submit {
	margin-top: .5rem;
	width: 100%;
	border: 0;
	font-family: inherit;
}

.ps-submit[disabled] { opacity: .65; cursor: progress; }

@media (min-width: 640px) {
	.ps-submit { width: auto; }
}

.ps-under-cta,
.ps-gdpr {
	font-size: .95rem;
	line-height: 1.5;
	color: rgba(0, 0, 0, .6);
	margin: 1rem 0 0;
}

.ps-gdpr { font-size: .88rem; color: rgba(0, 0, 0, .5); }

/* ---------- Potvrzovací stav (nahradí formulář) ---------- */
.ps-form-success {
	background: #fff;
	border-radius: 1rem;
	padding: 2rem 2.25rem;
	box-shadow: 0 12px 30px rgba(20, 10, 40, .1);
	outline: none;
}

.ps-form-success-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #222;
	margin: 0;
}

.ps-form-success-text {
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(0, 0, 0, .7);
	margin: .75rem 0 0;
}

.ps-form-success-text a { color: var(--c-primary, #8a2be2); font-weight: 600; }

.ps-on-dark .ps-form-success {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(6px);
}

.ps-on-dark .ps-form-success-title,
.ps-on-dark .ps-form-success-text { color: #fff; }

.ps-on-dark .ps-form-success-text a { color: #fff; }

/* ---------- Honeypot – musí zůstat neviditelný i pro čtečky ---------- */
.ps-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
