/* ==========================================================================
Piacfigyelo urlap – frontend stilus (a visszahivas.css brand-nyelvet koveti)
========================================================================== */
.pf-wrap {
	/* A szinek az oldal globalis brand tokenjeibol (modul/css/brand-tokens.css)
	jonnek; a fallback-ek biztonsagi halok. */
	--pf-radius: var(--radius-md, 12px);
	--pf-input-bg: var(--brand-surface-sunken, #f1f3f2);
	--pf-input-border: var(--color-border, #dfe5e2);
	--pf-input-border-focus: var(--color-primary, #01bf60);
	--pf-text: var(--color-text-primary, #333333);
	--pf-muted: var(--color-text-muted, #8a918e);
	--pf-primary: var(--color-primary, #01bf60);
	--pf-primary-hover: var(--color-primary-hover, #00a350);
	--pf-error: #c0392b;
	--pf-success: var(--brand-primary-deep, #00a350);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	font-family: inherit;
	color: var(--pf-text);
}
.pf-wrap *,
.pf-wrap *::before,
.pf-wrap *::after {
	box-sizing: border-box;
}

/* --- Form: ketoszlopos racs --------------------------------------------- */
.pf-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
}
.pf-form > * {
	grid-column: span 2;
}
.pf-field[data-width="50"] {
	grid-column: span 1;
}

/* --- Mezok --------------------------------------------------------------- */
.pf-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.pf-field label {
	font-size: 16px;
	font-weight: 700;
	color: var(--pf-text);
	letter-spacing: 0.01em;
}

/* --- Input-doboz --------------------------------------------------------- */
.pf-input {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--pf-input-bg);
	border: 2px solid var(--pf-input-border);
	border-radius: var(--pf-radius);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pf-input:focus-within {
	border-color: var(--pf-input-border-focus);
}
.pf-input input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 15px 18px;
	background: transparent;
	border: 0;
	border-radius: inherit;
	font-size: 17px;
	font-family: inherit;
	color: var(--pf-text);
	outline: none;
}
.pf-input input::placeholder {
	color: var(--pf-muted);
	opacity: 1;
}
.pf-input.is-invalid {
	border-color: var(--pf-error);
	background: #fdecea;
}

/* --- Combobox-legordulo --------------------------------------------------- */
.pf-input--combo {
	flex-direction: column;
	align-items: stretch;
}
.pf-combo-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 50;
	max-height: 280px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 2px solid var(--pf-input-border-focus);
	border-radius: var(--pf-radius);
	box-shadow: 0 14px 34px rgba(20, 30, 25, 0.16);
}
.pf-combo-list[hidden] {
	display: none;
}
.pf-combo-list li {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 17px;
	line-height: 1.3;
	color: var(--pf-text);
	cursor: pointer;
}
.pf-combo-list li:hover {
	background: var(--brand-surface-sunken, #eef3f0);
}
.pf-combo-list:empty::after {
	content: "Nincs találat.";
	display: block;
	padding: 10px 14px;
	color: var(--pf-muted);
	font-size: 15px;
}

/* Segedszoveg a combobox alatt */
.pf-combo-hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--pf-muted);
}

/* --- Kivalasztott teruletek (pill-lista) ---------------------------------- */
.pf-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pf-selected[hidden] {
	display: none;
}
.pf-selected .pf-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px 7px 14px;
	background: var(--pf-input-bg);
	border: 1px solid var(--pf-input-border);
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pf-text);
}
.pf-selected .pf-chip__x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	font-size: 15px;
	line-height: 1;
	color: var(--pf-muted);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.pf-selected .pf-chip__x:hover {
	background: var(--pf-error);
	color: #fff;
}

/* --- GDPR checkbox -------------------------------------------------------- */
.pf-choices {
	padding: 14px 16px;
	background: var(--pf-input-bg);
	border: 2px solid var(--pf-input-border);
	border-radius: var(--pf-radius);
}
.pf-choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	min-width: 0;
}
.pf-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
}
.pf-choice input[type="checkbox"] {
	width: 21px;
	height: 21px;
	margin: 0;
	accent-color: var(--pf-primary);
	cursor: pointer;
}
.pf-choice a {
	color: var(--pf-primary);
}

/* --- Honeypot (rejtett) ---------------------------------------------------- */
.pf-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Submit gomb ------------------------------------------------------------ */
.pf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 62px;
	padding: 16px 24px;
	background: var(--pf-primary);
	color: #fff;
	border: 0;
	border-radius: 100px;
	font-size: 18px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	box-shadow: var(--shadow-primary, 0 12px 30px rgba(1, 191, 96, 0.22));
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}
.pf-submit:hover:not(:disabled) {
	background: var(--pf-primary-hover);
}
.pf-submit:active:not(:disabled) {
	transform: translateY(1px);
}
.pf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* --- Uzenetek --------------------------------------------------------------- */
.pf-msg {
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--pf-radius);
	font-size: 15px;
	line-height: 1.45;
}
.pf-msg[hidden] {
	display: none;
}
.pf-msg--ok {
	background: #e8f9f0;
	border: 2px solid var(--pf-success);
	color: var(--pf-success);
}
.pf-msg--err {
	background: #fdecea;
	border: 2px solid var(--pf-error);
	color: var(--pf-error);
}
