/* [tolto_urlap] űrlap — TöltŐ design (EB Garamond / Quicksand / Karla, terracotta akcent). */

.tolto-urlap {
	max-width: 640px;
	margin: 0 auto;
	scroll-margin-top: 96px;
}

.tolto-urlap__cim {
	margin: 0;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 34px;
	line-height: 1.25;
	font-weight: 500;
	color: #34424F;
}

.tolto-urlap__alcim {
	margin: 10px 0 0;
	font-family: "Karla", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #5C6C73;
}

/* Visszajelzés (siker / hiba) — a kártyán belül, a form felett. */
.tolto-urlap__visszajelzes {
	padding: 16px 20px;
	margin: 22px 0 0;
	border-radius: 12px;
	border-left: 3px solid #7F9A6C;
	background: rgba(127, 154, 108, 0.12);
	font-family: "Karla", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #34424F;
}

.tolto-urlap__visszajelzes--siker {
	border-left-color: #7F9A6C;
	background: rgba(127, 154, 108, 0.12);
}

.tolto-urlap__visszajelzes--hiba {
	border-left-color: #C15F74;
	background: rgba(193, 95, 116, 0.08);
}

.tolto-urlap__form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 26px 0 0;
}

/* Mező-rács: 2 oszlop, a --50 / --100 osztály adja a szélességet. */
.tolto-urlap__mezok {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.tolto-urlap__mezo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.tolto-urlap__mezo--50 {
	grid-column: span 1;
}

.tolto-urlap__mezo--100 {
	grid-column: 1 / -1;
}

.tolto-urlap__label,
.tolto-urlap__radio-csoport legend {
	font-family: "Karla", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #5C6C73;
	padding: 0;
}

.tolto-urlap__csillag {
	color: #C15F74;
}

/* Szakasz-címke a rácsban (pl. „Résztvevő adatai"). */
.tolto-urlap__szakasz {
	grid-column: 1 / -1;
	margin-top: 10px;
	font-family: "Quicksand", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #5C6C73;
}

/* Megjegyzés a beküldés gomb előtt. */
.tolto-urlap__megjegyzes {
	margin: 0;
	font-family: "Karla", system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #5C6C73;
}

/* Esemény előválasztás jelzése (kártyaklikk → űrlap). */
.tolto-urlap__kivalasztas {
	font-family: "Quicksand", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #C17F57;
	padding-top: 2px;
}

.tolto-urlap__input.is-kivalasztva {
	animation: tolto-urlap-villanas 1.4s ease-out;
}

@keyframes tolto-urlap-villanas {
	0% {
		box-shadow: 0 0 0 4px rgba(193, 127, 87, 0.4);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(193, 127, 87, 0);
	}
}

/* Input / textarea / select — kettős szelektor a sablon input-szabályainak felülírásához. */
.tolto-urlap .tolto-urlap__input {
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	padding: 0 14px;
	font-family: "Karla", system-ui, sans-serif;
	font-size: 16px;
	color: #34424F;
	background: #FFFFFF;
	border: 1px solid rgba(52, 66, 79, 0.25);
	border-radius: 12px;
	outline: none;
	box-shadow: none;
	transition: border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
	appearance: none;
	-webkit-appearance: none;
}

.tolto-urlap .tolto-urlap__textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 14px;
	resize: vertical;
}

.tolto-urlap .tolto-urlap__input:focus {
	border-color: #C17F57;
	outline: 2px solid #C17F57;
	outline-offset: 0;
	box-shadow: none;
}

.tolto-urlap .tolto-urlap__input::placeholder {
	color: rgba(92, 108, 115, 0.6);
	opacity: 1;
}

select.tolto-urlap__input {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C17F57' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

/* Pipa + rádiógombok (natív kontrol, márkaszín). */
.tolto-urlap__pipa {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-family: "Karla", system-ui, sans-serif;
}

.tolto-urlap__pipa input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin: 3px 0 0;
	accent-color: #C17F57;
	cursor: pointer;
}

.tolto-urlap__pipa-szoveg {
	font-size: 14px;
	line-height: 1.6;
	color: #34424F;
}

.tolto-urlap__pipa-szoveg a {
	color: #C17F57;
	font-weight: 700;
	text-underline-offset: 3px;
}

.tolto-urlap__pipa-szoveg a:hover {
	color: #A86A46;
}

.tolto-urlap__radio-k {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding-top: 2px;
}

.tolto-urlap__radio {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: "Karla", system-ui, sans-serif;
	font-size: 15px;
	color: #34424F;
}

.tolto-urlap__radio input[type="radio"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: #C17F57;
	cursor: pointer;
}

/* Hibás mező. */
.tolto-urlap__mezo--hiba .tolto-urlap__input {
	border-color: #C15F74;
}

.tolto-urlap__mezo--hiba .tolto-urlap__pipa input[type="checkbox"] {
	outline: 2px solid #C15F74;
	outline-offset: 2px;
}

/* Küldés gomb. */
.tolto-urlap__submit-sor {
	margin: 4px 0 0;
}

.tolto-urlap__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 30px;
	font-family: "Quicksand", system-ui, sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	background: #C17F57;
	color: #FFFFFF;
	border: 1.5px solid transparent;
	border-radius: 34px;
	cursor: pointer;
	transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Kettős osztály: erősebb specificitás, hogy a téma button:hover szabályai ne felülírják. */
.tolto-urlap__submit.tolto-urlap__submit:hover {
	background: #A86A46;
	transform: translateY(-2px);
}

/* Honeypot (embernek rejtett). */
.tolto-urlap__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.tolto-urlap__input,
	.tolto-urlap__submit {
		transition: none;
	}

	.tolto-urlap__submit.tolto-urlap__submit:hover {
		transform: none;
	}

	.tolto-urlap__input.is-kivalasztva {
		animation: none;
	}
}

/* Mobil. */
@media (max-width: 767px) {
	.tolto-urlap__mezok {
		grid-template-columns: 1fr;
	}

	.tolto-urlap__mezo--50 {
		grid-column: 1 / -1;
	}

	.tolto-urlap__cim {
		font-size: 28px;
	}
}

/* Karakterszámláló + inaktív beküldés gomb. */
.tolto-urlap__szamlalo {
	font-family: "Karla", system-ui, sans-serif;
	font-size: 12px;
	color: #5C6C73;
	text-align: right;
	margin-top: 6px;
}

.tolto-urlap__submit[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

/* Chip-választó (egyszeres, a rejtett input viszi az értéket). */
.tolto-urlap__chipek {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 2px;
}

/* Kettős osztály: a téma button / button:hover szabályai ellen. */
.tolto-urlap__chip.tolto-urlap__chip {
	padding: 9px 18px;
	border-radius: 34px;
	white-space: nowrap;
	cursor: pointer;
	font-family: "Quicksand", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	background: #FFFFFF;
	color: #34424F;
	border: 1px solid rgba(52, 66, 79, 0.25);
	transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tolto-urlap__chip.tolto-urlap__chip:hover {
	border-color: #C17F57;
	color: #A86A46;
}

.tolto-urlap__chip.tolto-urlap__chip.is-aktiv {
	background: #C17F57;
	border-color: #C17F57;
	color: #FFFFFF;
}
