/* ==========================================================================
   Telekfeltöltő – .tef-*  (a modul brand tokenjeire épül: css/brand-tokens.css)
   ========================================================================== */

.tef {
	--tef-primary: var(--color-primary, #01bf60);
	--tef-primary-hover: var(--color-primary-hover, #05ab57);
	--tef-text: var(--brand-text-primary, #333333);
	--tef-dark: var(--brand-dark, #171a18);
	--tef-muted: var(--brand-text-secondary, #5f6663);
	--tef-faint: var(--brand-text-muted, #8a918e);
	--tef-border: var(--brand-border, #dfe5e2);
	--tef-border-strong: var(--brand-border-strong, #c8d0cc);
	--tef-surface: var(--brand-surface, #ffffff);
	--tef-sunken: var(--brand-surface-sunken, #f1f3f2);
	--tef-mint: var(--brand-surface-soft, #ebfff5);
	--tef-error: #b3261e;
	--tef-error-bg: #fdecea;
	--tef-warn-bg: #fff6dc;
	--tef-warn-border: #f0d48a;
	--tef-ring: var(--color-focus-ring, rgba(1, 191, 96, 0.35));

	box-sizing: border-box;
	width: 100%;
	font-family: var(--font-sans, "Schibsted Grotesk", system-ui, sans-serif);
	color: var(--tef-text);
	background: var(--tef-surface);
	border: 1px solid var(--tef-border);
	border-radius: var(--radius-xl, 28px);
	box-shadow: var(--shadow-md, 0 10px 30px rgba(23, 26, 24, 0.07));
	padding: clamp(1.25rem, 4vw, 2.5rem);
	scroll-margin-top: 110px;
}

.tef *,
.tef *::before,
.tef *::after {
	box-sizing: border-box;
}

.tef [hidden] {
	display: none !important;
}

.tef-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Lépésjelző ---------------------------------------------------------- */
.tef-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.tef-steps__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	border-top: 3px solid var(--tef-border);
	font-size: var(--text-sm, 0.9375rem);
	font-weight: 600;
	color: var(--tef-faint);
	transition: border-color var(--dur-base, 240ms) var(--ease-out, ease), color var(--dur-base, 240ms);
}

.tef-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tef-sunken);
	font-family: var(--font-mono, "JetBrains Mono", monospace);
	font-size: 0.8rem;
}

.tef-steps__item.is-current {
	color: var(--tef-dark);
	border-color: var(--tef-primary);
}

.tef-steps__item.is-current .tef-steps__num,
.tef-steps__item.is-done .tef-steps__num {
	background: var(--tef-primary);
	color: #ffffff;
}

.tef-steps__item.is-done {
	color: var(--tef-muted);
	border-color: var(--tef-primary);
}

/* Szakaszok ------------------------------------------------------------ */
.tef-step__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.4vw, 1.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--tef-dark);
	outline: none;
}

.tef-lead {
	margin: 0 0 1.25rem;
	color: var(--tef-muted);
}

.tef-grid {
	display: grid;
	gap: 1.25rem;
	margin-top: 1.25rem;
}

.tef-grid--2 {
	grid-template-columns: 1fr 1fr;
	margin-top: 0;
}

.tef-field {
	min-width: 0;
}

.tef-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: var(--text-body, 1rem);
	color: var(--tef-dark);
}

.tef-req {
	color: var(--tef-primary);
}

.tef-help {
	margin: 6px 0 0;
	font-size: var(--text-caption, 0.8125rem);
	line-height: 1.5;
	color: var(--tef-muted);
}

.tef input[type="text"],
.tef input[type="tel"],
.tef input[type="email"],
.tef input[type="number"],
.tef input[type="date"],
.tef select,
.tef textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px; /* iOS-zoom ellen */
	color: var(--tef-dark);
	background: var(--tef-surface);
	border: 1px solid var(--tef-border-strong);
	border-radius: var(--radius-md, 12px);
	transition: border-color var(--dur-fast, 140ms), box-shadow var(--dur-fast, 140ms);
}

.tef textarea {
	min-height: 110px;
	resize: vertical;
}

.tef input:focus-visible,
.tef select:focus-visible,
.tef textarea:focus-visible,
.tef button:focus-visible,
.tef summary:focus-visible,
.tef a:focus-visible {
	outline: none;
	border-color: var(--tef-primary);
	box-shadow: 0 0 0 3px var(--tef-ring);
}

.tef-field.has-error input,
.tef-field.has-error select,
.tef-field.has-error textarea {
	border-color: var(--tef-error);
}

.tef-error {
	margin: 6px 0 0;
	font-size: var(--text-sm, 0.9375rem);
	color: var(--tef-error);
}

/* Pill-választók ------------------------------------------------------ */
.tef-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tef-pill {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.tef-pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tef-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--tef-border-strong);
	border-radius: var(--radius-pill, 999px);
	background: var(--tef-surface);
	font-size: var(--text-sm, 0.9375rem);
	font-weight: 600;
	color: var(--tef-text);
	transition: background var(--dur-fast, 140ms), border-color var(--dur-fast, 140ms), color var(--dur-fast, 140ms);
}

.tef-pill:hover span {
	border-color: var(--tef-primary);
}

.tef-pill input:checked + span {
	background: var(--tef-mint);
	border-color: var(--tef-primary);
	color: var(--tef-dark);
	box-shadow: inset 0 0 0 1px var(--tef-primary);
}

.tef-pill input:focus-visible + span {
	box-shadow: 0 0 0 3px var(--tef-ring);
}

.tef-pills--sm .tef-pill span {
	min-height: 38px;
	padding: 7px 12px;
	font-size: var(--text-caption, 0.8125rem);
}

.tef-matrix {
	display: grid;
	gap: 10px;
}

.tef-matrix__row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tef-matrix__name {
	float: left;
	flex: 0 0 90px;
	width: 90px;
	margin: 0;
	padding: 0;
	font-weight: 600;
	font-size: var(--text-sm, 0.9375rem);
	color: var(--tef-muted);
}

.tef-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.tef-inline input {
	max-width: 200px;
}

.tef-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
	font-size: var(--text-sm, 0.9375rem);
	line-height: 1.55;
	color: var(--tef-muted);
}

.tef-check input {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--tef-primary);
}

.tef-check a {
	color: var(--tef-primary);
}

/* Településkereső ------------------------------------------------------ */
.tef-combo {
	position: relative;
}

.tef-combo__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 280px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--tef-surface);
	border: 1px solid var(--tef-border);
	border-radius: var(--radius-md, 12px);
	box-shadow: var(--shadow-lg, 0 24px 60px rgba(23, 26, 24, 0.1));
}

.tef-combo__opt {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
}

.tef-combo__opt small {
	color: var(--tef-faint);
}

.tef-combo__opt.is-active,
.tef-combo__opt:hover {
	background: var(--tef-mint);
}

.tef-combo__empty {
	padding: 10px 12px;
	color: var(--tef-muted);
}

/* Feltöltés ------------------------------------------------------------ */
.tef-upload__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 18px;
	border: 1.5px dashed var(--tef-border-strong);
	border-radius: var(--radius-md, 12px);
	background: var(--tef-sunken);
	font-weight: 600;
	color: var(--tef-dark);
	cursor: pointer;
}

.tef-upload__btn:hover,
.tef-upload__btn:focus-within {
	border-color: var(--tef-primary);
	background: var(--tef-mint);
}

.tef-upload__btn input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.tef-upload__list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-sm, 0.9375rem);
}

.tef-upload__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--tef-border);
}

.tef-upload__list li.is-ok {
	color: var(--brand-primary-deep, #00a350);
	font-weight: 600;
}

.tef-upload__list li.is-error {
	color: var(--tef-error);
}

.tef-upload__remove {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: var(--tef-sunken);
	font-size: 1.2rem;
	line-height: 1;
	color: var(--tef-muted);
	cursor: pointer;
}

/* Lehetőség-kártyák ------------------------------------------------------ */
.tef-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 1rem;
}

.tef-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 1.5px solid var(--tef-border);
	border-radius: 20px;
	background: var(--tef-surface);
	transition: border-color var(--dur-fast, 140ms), background var(--dur-fast, 140ms), box-shadow var(--dur-fast, 140ms);
}

.tef-card:hover {
	border-color: var(--tef-border-strong);
}

.tef-card.is-checked {
	border-color: var(--tef-primary);
	background: var(--tef-mint);
	box-shadow: 0 0 0 1px var(--tef-primary);
}

.tef-card__head {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	cursor: pointer;
}

.tef-card__head input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tef-card__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border: 2px solid var(--tef-border-strong);
	border-radius: 8px;
	background: var(--tef-surface);
	color: transparent;
}

.tef-card__box .tef-ico {
	width: 16px;
	height: 16px;
}

.tef-card__head input:checked + .tef-card__box {
	background: var(--tef-primary);
	border-color: var(--tef-primary);
	color: #ffffff;
}

.tef-card__head input:focus-visible + .tef-card__box {
	box-shadow: 0 0 0 3px var(--tef-ring);
}

.tef-card__title {
	flex: 1 1 auto;
	font-size: var(--text-title, 1.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--tef-dark);
}

.tef-card__tag {
	padding: 4px 10px;
	border-radius: var(--radius-pill, 999px);
	background: var(--tef-dark);
	font-family: var(--font-mono, "JetBrains Mono", monospace);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
}

.tef-card__text {
	margin: 0;
	font-size: var(--text-sm, 0.9375rem);
	line-height: 1.55;
	color: var(--tef-muted);
}

.tef-card__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
}

.tef-card__facts div {
	padding: 8px 10px;
	border-radius: var(--radius-sm, 8px);
	background: var(--tef-sunken);
}

.tef-card.is-checked .tef-card__facts div {
	background: rgba(255, 255, 255, 0.7);
}

.tef-card__facts dt {
	font-family: var(--font-mono, "JetBrains Mono", monospace);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tef-faint);
}

.tef-card__facts dd {
	margin: 2px 0 0;
	font-size: var(--text-caption, 0.8125rem);
	font-weight: 600;
	color: var(--tef-dark);
}

.tef-card__more summary {
	cursor: pointer;
	font-size: var(--text-sm, 0.9375rem);
	font-weight: 600;
	color: var(--tef-primary);
}

.tef-card__more p {
	margin: 8px 0 0;
	font-size: var(--text-sm, 0.9375rem);
	line-height: 1.55;
	color: var(--tef-muted);
}

.tef-card__off {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--radius-sm, 8px);
	background: var(--tef-sunken);
	font-size: var(--text-sm, 0.9375rem);
	line-height: 1.5;
	color: var(--tef-text);
}

.tef-card__off .tef-ico {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--tef-muted);
}

.tef-card.is-disabled {
	background: var(--tef-sunken);
	border-style: dashed;
}

.tef-card.is-disabled .tef-card__head {
	cursor: not-allowed;
}

.tef-card.is-disabled .tef-card__title,
.tef-card.is-disabled .tef-card__text,
.tef-card.is-disabled .tef-card__facts,
.tef-card.is-disabled .tef-card__box {
	opacity: 0.55;
}

.tef-card.is-disabled .tef-card__off {
	background: var(--tef-surface);
}

.tef-card__warn {
	margin: 0;
	padding: 10px 12px;
	border-left: 3px solid var(--tef-primary);
	border-radius: var(--radius-sm, 8px);
	background: var(--tef-surface);
	font-size: var(--text-sm, 0.9375rem);
	line-height: 1.5;
}

.tef-card__warn.is-alert {
	border-left-color: #d9a400;
	background: var(--tef-warn-bg);
}

/* Navigáció, gombok ---------------------------------------------------- */
.tef-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 1.75rem;
}

.tef-nav > :only-child {
	margin-left: auto;
}

.tef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-pill, 999px);
	font: inherit;
	font-size: var(--text-body, 1rem);
	font-weight: 700;
	cursor: pointer;
	transition: transform var(--dur-fast, 140ms) var(--ease-out, ease), background var(--dur-fast, 140ms);
}

.tef-btn--primary {
	background: var(--tef-primary);
	color: #ffffff;
	box-shadow: var(--shadow-primary, 0 12px 30px rgba(1, 191, 96, 0.22));
}

.tef-btn--primary:hover {
	background: var(--tef-primary-hover);
	transform: translateY(-1px);
}

.tef-btn--ghost {
	background: transparent;
	border-color: var(--tef-border-strong);
	color: var(--tef-dark);
}

.tef-btn--ghost:hover {
	border-color: var(--tef-primary);
}

.tef-btn:disabled {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

.tef-btn .tef-ico {
	flex: 0 0 20px;
}

.tef-status {
	min-height: 0;
	margin: 0 0 0.5rem;
	font-size: var(--text-sm, 0.9375rem);
	font-weight: 600;
	color: var(--tef-muted);
}

.tef-status:empty {
	margin: 0;
}

.tef-status.is-error {
	padding: 10px 14px;
	border-radius: var(--radius-sm, 8px);
	background: var(--tef-error-bg);
	color: var(--tef-error);
}

.tef-summary {
	margin: 1.5rem 0 0;
	padding: 14px 16px;
	border-radius: var(--radius-md, 12px);
	background: var(--tef-mint);
	font-weight: 600;
	color: var(--tef-dark);
}

.tef-note {
	margin: 12px 0 0;
	text-align: right;
	font-size: var(--text-caption, 0.8125rem);
	color: var(--tef-muted);
}

.tef.is-busy {
	cursor: progress;
}

/* Köszönőoldal ---------------------------------------------------------- */
.tef-thanks {
	max-width: 760px;
	margin: clamp(1rem, 4vw, 3rem) auto;
}

.tef-thanks__ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tef-primary);
	color: #ffffff;
}

.tef-thanks__ok .tef-ico {
	width: 28px;
	height: 28px;
}

.tef-thanks__title {
	margin: 1rem 0 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--tef-dark);
}

.tef-thanks__telek {
	margin: 0 0 1rem;
	color: var(--tef-muted);
	font-weight: 600;
}

.tef-thanks__sub {
	margin: 1.25rem 0 0.5rem;
	font-size: var(--text-title, 1.25rem);
	color: var(--tef-dark);
}

.tef-thanks__list {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.6;
}

.tef-thanks__list li {
	margin-bottom: 8px;
}

.tef-thanks__doc {
	margin-top: 1.5rem;
	padding: 18px;
	border-radius: var(--radius-lg, 18px);
	background: var(--tef-mint);
}

.tef-thanks .tef-note {
	text-align: left;
	margin-top: 1.5rem;
}

/* Mobil --------------------------------------------------------------- */
@media (max-width: 760px) {
	.tef-cards,
	.tef-grid--2 {
		grid-template-columns: 1fr;
	}

	.tef-steps__label {
		display: none;
	}

	.tef-steps__item.is-current .tef-steps__label {
		display: inline;
	}

	.tef-steps {
		grid-template-columns: repeat(4, auto);
	}

	.tef-matrix__row {
		flex-wrap: wrap;
		gap: 6px;
	}

	.tef-matrix__name {
		width: 100%;
		flex-basis: 100%;
	}
}

@media (max-width: 480px) {
	.tef-nav {
		flex-direction: column-reverse;
	}

	.tef-btn {
		width: 100%;
	}

	.tef-note {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tef *,
	.tef *::before,
	.tef *::after {
		transition: none !important;
	}
}

/* Felvásárlásra nem alkalmas telek: díjtalan hirdetés ajánlása */
.tef-buyoff { margin: 0 0 18px; padding: 16px 18px; border: 2px solid #01bf60; border-radius: 16px; background: #ebfff5; }
.tef-buyoff[hidden] { display: none; }
.tef-buyoff strong { display: block; margin-bottom: 6px; color: #171a18; font-size: 1.02rem; }
.tef-buyoff p { margin: 0 0 12px; color: #333; font-size: .95rem; }
.tef-buyoff__row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.tef-buyoff__row a { color: #036b37; font-weight: 700; }

/* „Egyik sem” szerep – azonnali tájékoztatás, link a díjmentes konzultációhoz. */
.tef-notice {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-left: 4px solid #b26a00;
	background: #fff6e8;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
}
.tef-notice[hidden] {
	display: none;
}
.tef-notice a {
	font-weight: 600;
	white-space: nowrap;
}
