/* [pb_regisztracio] form + [pb_regisztracio_uzenet] visszajelzés — A Elegáns design system. */

.pb-reg {
	max-width: 480px;
	margin: 0 auto;
}

.pb-reg__fields {
	margin-top: 36px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pb-reg__two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pb-reg__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pb-reg__label {
	font-size: 13px;
	font-weight: 600;
	color: #6B5A5E;
}

.pb-reg__required {
	color: #8D4F7D;
}

/* Kettős osztály-szelektor: felülírja a GeneratePress input[type="…"] szabályát. */
.pb-reg .pb-reg__input {
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	padding: 0 14px;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 16px;
	color: #383135;
	background: #FFFFFF;
	border: 1px solid #D2B4C1;
	border-radius: 8px;
	outline: none;
	box-shadow: none;
	transition: border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-reg .pb-reg__input:focus {
	border-color: #8D4F7D;
	outline: 2px solid #8D4F7D;
	outline-offset: 0;
	box-shadow: none;
}

.pb-reg__pw-wrap {
	position: relative;
}

.pb-reg .pb-reg__pw {
	padding: 0 96px 0 14px;
	font-size: 15px;
}

.pb-reg__reveal {
	position: absolute;
	right: 8px;
	top: 8px;
	height: 32px;
	padding: 0 12px;
	background: #F3E6EE;
	border: none;
	border-radius: 999px;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #8D4F7D;
	cursor: pointer;
}

.pb-reg__bars {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}

.pb-reg__bar {
	flex: 1 1 0;
	height: 4px;
	border-radius: 999px;
	background: #F3E6EE;
	transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-reg__bars[data-fill="1"] .pb-reg__bar:nth-child(1) { background: #B4564F; }
.pb-reg__bars[data-fill="2"] .pb-reg__bar:nth-child(-n+2) { background: #C79A62; }
.pb-reg__bars[data-fill="3"] .pb-reg__bar:nth-child(-n+3) { background: #8D4F7D; }
.pb-reg__bars[data-fill="4"] .pb-reg__bar:nth-child(-n+4) { background: #5D2C56; }

.pb-reg__strength {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-top: 6px;
}

.pb-reg__strength-label {
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #6B5A5E;
}

.pb-reg__strength-label.lvl-1 { color: #B4564F; }
.pb-reg__strength-label.lvl-2 { color: #C79A62; }
.pb-reg__strength-label.lvl-3 { color: #8D4F7D; }
.pb-reg__strength-label.lvl-4 { color: #5D2C56; }

.pb-reg__strength-hint {
	font-size: 12px;
	line-height: 1.5;
	color: #6B5A5E;
	text-align: right;
}

.pb-reg__divider {
	height: 1px;
	background: #EED7DE;
	margin: 4px 0;
}

.pb-reg__interest {
	border: 0;
	padding: 0;
	margin: 0;
}

.pb-reg__interest-title {
	font-family: "Playfair Display", "Times New Roman", serif;
	font-size: 19px;
	font-weight: 600;
	color: #5D2C56;
	padding: 0;
	margin: 0;
}

.pb-reg__interest-text {
	font-size: 14px;
	line-height: 1.6;
	color: #6B5A5E;
	margin: 6px 0 0;
}

.pb-reg__chips {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pb-reg__chip {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 999px;
	cursor: pointer;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	background: #FFFFFF;
	color: #4E4547;
	border: 1px solid #EED7DE;
	transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-reg__chip.is-on {
	background: #8D4F7D;
	color: #FFFFFF;
	border-color: #8D4F7D;
}

.pb-reg__chip-native {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pb-reg__chip-native:focus-visible + .pb-reg__chip,
.pb-reg__chip:has(.pb-reg__chip-native:focus-visible) {
	outline: 3px solid #8D4F7D;
	outline-offset: 3px;
}

/* A chip: label > rejtett checkbox + szöveg-span; a :has nélküli böngészőkben
   a fókusz-jelzés a checkboxra vett outline-szal marad elérhető. */

.pb-reg__consents {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px;
	background: #F8EBE9;
	border-radius: 16px;
}

.pb-reg__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-family: "Nunito Sans", system-ui, sans-serif;
}

.pb-reg__check-native {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pb-reg__check-native:focus-visible + .pb-reg__checkbox {
	outline: 3px solid #8D4F7D;
	outline-offset: 3px;
}

.pb-reg__checkbox {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	margin-top: 2px;
	border-radius: 6px;
	border: 1.5px solid #D2B4C1;
	background: #FFFFFF;
	display: grid;
	place-items: center;
	transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-reg__checkbox svg { display: none; }

.pb-reg__check-native:checked + .pb-reg__checkbox {
	background: #8D4F7D;
	border-color: #8D4F7D;
}

.pb-reg__check-native:checked + .pb-reg__checkbox svg { display: block; }

.pb-reg__consent-text {
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
	color: #4E4547;
}

.pb-reg__consent-text a {
	color: #8D4F7D;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pb-reg__consent-text a:hover {
	color: #7A3B6D;
}

.pb-reg__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 28px;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-weight: 650;
	font-size: 15px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	background: #8D4F7D;
	color: #FFFFFF;
	border: 1.5px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-reg__submit:hover:enabled {
	background: #7A3B6D;
}

.pb-reg__submit:disabled {
	background: #F3E6EE;
	color: #6B5A5E;
	opacity: 0.4;
	cursor: not-allowed;
}

.pb-reg__login {
	text-align: center;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 14px;
	color: #6B5A5E;
}

.pb-reg__login a {
	color: #8D4F7D;
	font-weight: 700;
	text-underline-offset: 3px;
}

.pb-reg__login a:hover {
	color: #7A3B6D;
}

.pb-reg__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pb-reg-uzenet {
	padding: 16px 20px;
	margin: 0 auto 20px;
	max-width: 480px;
	box-sizing: border-box;
	border-radius: 16px;
	border-left: 3px solid #8D4F7D;
	background: #F3E6EE;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #383135;
}

.pb-reg-uzenet--error {
	border-left-color: #B4564F;
	background: #F8EBE9;
}

.pb-reg-uzenet--info {
	border-left-color: #C79A62;
	background: #FDF8F7;
}

@media (prefers-reduced-motion: reduce) {
	.pb-reg__bar,
	.pb-reg__chip,
	.pb-reg__checkbox,
	.pb-reg__submit {
		transition: none;
	}
}
