/* TarlaPaylaş — 3 adımlı ilan formu */

.tpf-hidden-field { display: none !important; }

.tpf-step { display: none; }
.tpf-step--active { display: block; }

/* İlerleme çubuğu */
.tpf-progress {
	display: flex;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	gap: .5rem;
	counter-reset: none;
}

.tpf-progress__item {
	flex: 1;
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .6rem .75rem;
	border-radius: 6px;
	background: #f4f5f4;
	color: #8a8f8a;
	font-size: .85rem;
	line-height: 1.2;
	transition: background .15s ease, color .15s ease;
}

.tpf-progress__item.is-active {
	background: #e8f3e6;
	color: #2f6b2a;
	font-weight: 600;
}

.tpf-progress__item.is-done {
	color: #4a7a45;
	cursor: pointer;
}

.tpf-progress__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	flex: 0 0 1.6rem;
	border-radius: 50%;
	background: #d8dbd8;
	color: #fff;
	font-weight: 700;
	font-size: .8rem;
}

.tpf-progress__item.is-active .tpf-progress__num { background: #4c9a3f; }
.tpf-progress__item.is-done .tpf-progress__num { background: #7fb877; }
.tpf-progress__item.is-done .tpf-progress__num::after { content: ''; }

/* Gezinme */
.tpf-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.25rem 0 .5rem;
}

.tpf-nav__counter {
	font-size: .8rem;
	color: #8a8f8a;
}

.tpf-btn {
	appearance: none;
	border: 0;
	border-radius: 4px;
	padding: .7rem 1.4rem;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	background: #4c9a3f;
	color: #fff;
}

.tpf-btn:hover { background: #3f8434; }

.tpf-btn--back {
	background: transparent;
	color: #6b706b;
	border: 1px solid #d8dbd8;
}

.tpf-btn--back:hover { background: #f4f5f4; }

/* Hata */
.tpf-error {
	color: #b3261e;
	font-size: .9rem;
	margin-top: .75rem;
	min-height: 1.2em;
}

.hp-form__field.tpf-invalid .hp-field,
.hp-form__field.tpf-invalid .select2-selection {
	border-color: #b3261e !important;
}

/* Tamamlanan adimda onay isareti */
.tpf-progress__item.is-done .tpf-progress__num {
	font-size: 0;
}

.tpf-progress__item.is-done .tpf-progress__num::before {
	content: '✓';
	font-size: .95rem;
	line-height: 1;
}

@media (max-width: 640px) {
	/* Dikey yigin yerine kompakt yatay noktalar: ~120px yer kazanir */
	.tpf-progress {
		flex-direction: row;
		gap: .35rem;
		margin-bottom: 1rem;
	}

	.tpf-progress__item {
		justify-content: center;
		padding: .5rem .25rem;
	}

	.tpf-progress__title { display: none; }

	/* Adim basligi sayacta gosteriliyor */
	.tpf-nav {
		flex-wrap: wrap;
		gap: .5rem;
	}

	.tpf-nav__counter {
		order: -1;
		width: 100%;
		text-align: center;
		font-weight: 600;
		color: #2f6b2a;
	}

	.tpf-btn {
		flex: 1 1 100%;
		min-height: 48px;
	}

	.tpf-btn--next { order: 1; }
	.tpf-btn--back { order: 2; }

	/* HivePress gonder butonu da tam genislik + dokunulabilir */
	.hp-form--listing-submit .hp-form__footer button,
	.hp-form--listing-update .hp-form__footer button {
		width: 100%;
		min-height: 48px;
	}

	.tpf-contact__btn { padding: 1rem; }
}

/* İlan sayfası iletişim butonları */
.tpf-contact {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-bottom: .75rem;
}

.tpf-contact__btn {
	display: block;
	text-align: center;
	padding: .8rem 1rem;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	font-size: .95rem;
}

.tpf-contact__btn--call {
	background: #4c9a3f;
	color: #fff;
}

.tpf-contact__btn--call:hover { background: #3f8434; color: #fff; }

.tpf-contact__btn--sms {
	background: #fff;
	color: #2f6b2a;
	border: 1px solid #4c9a3f;
}

.tpf-contact__btn--sms:hover { background: #f1f7f0; }

/* Zorunlu iletişim tercihi */
.tpf-locked { opacity: .85; cursor: default; }
.tpf-locked-note { color: #6b706b; font-size: .8rem; }
