/* 09 Kapcsolat (page-templates/kapcsolat.php): fotós kártya, cégadatok, „Írj nekünk” űrlap. */

.tf-contact {
	display: grid;
	gap: 25px;
}

/* ---------- Fotós kártya ---------- */
.tf-contact-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 498px;
	overflow: hidden;
	border-radius: var(--r-xl);
	background: var(--c-navy);
	isolation: isolate;
}

.tf-contact-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tf-contact-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(8, 41, 52, 0.1) 0%, rgba(8, 41, 52, 0.25) 45%, rgba(8, 41, 52, 0.82) 100%);
}

.tf-contact-hero__body {
	display: grid;
	justify-items: start;
	width: 100%;
	padding: 22px;
}

.tf-contact-hero__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.tf-contact-hero__title {
	margin-top: 6px;
	color: #fff;
	font-size: clamp(2.125rem, 1.6rem + 1.9vw, 3.25rem);
	line-height: 1.1;
}

.tf-contact-hero__phone {
	margin-top: 10px;
	color: #fff;
	font-size: clamp(1.625rem, 1.35rem + 1vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
}

.tf-contact-hero__phone:hover {
	color: var(--c-sky-300);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.tf-contact-hero__hours {
	margin-top: 8px;
	color: var(--c-sky-200);
	font-size: 0.875rem;
}

/* ---------- Cégadatok ---------- */
.tf-contact-details {
	margin: 0;
	padding-inline: calc(var(--gutter) - var(--wide-inset));
}

.tf-contact-details__row {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 0 12px;
	align-items: baseline;
	padding-block: 12px;
	border-top: 1px solid var(--c-line);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.tf-contact-details__label {
	color: var(--c-muted);
}

.tf-contact-details__value {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;
	color: var(--c-ink);
	font-weight: 700;
}

.tf-contact-details__value > a:not(.tf-contact-details__map) {
	color: inherit;
	text-decoration: none;
}

.tf-contact-details__value > a:not(.tf-contact-details__map):hover {
	color: var(--c-blue-strong);
	text-decoration: underline;
}

.tf-contact-details__map {
	color: var(--c-blue-strong);
	font-size: var(--fs-2xs);
	font-weight: 600;
	white-space: nowrap;
}

/* Segédszöveg az érték alatt (átvétel rendje, cégbíróság, testvér webáruház). */
.tf-contact-details__help {
	flex-basis: 100%;
	color: var(--c-muted);
	font-size: var(--fs-2xs);
	font-weight: 400;
	line-height: 1.45;
}

.tf-contact-details__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.tf-contact-details__links a {
	color: inherit;
	text-decoration: none;
}

.tf-contact-details__links a:hover {
	color: var(--c-blue-strong);
	text-decoration: underline;
}

/* ---------- Űrlap doboz ---------- */
.tf-contact-form {
	margin-top: 24px;
	padding: 22px 18px 24px;
	border-radius: var(--r-xl);
	background: var(--c-sky-100);
}

.tf-contact-form__title {
	font-size: 1.5rem;
	line-height: 1.25;
}

.tf-contact-form__form {
	margin-top: 14px;
}

.tf-contact-form__grid {
	display: grid;
	gap: 10px;
}

.tf-contact-form .tf-field__box {
	gap: 0;
	justify-content: flex-start;
	min-height: 58px;
	padding: 10px 16px 6px;
	border-radius: var(--r-md);
	background: #fff;
}

.tf-contact-form .tf-field__label {
	color: var(--c-ink);
	font-size: 0.6875rem;
	font-weight: 600;
}

.tf-contact-form .tf-field__box :where(input, textarea) {
	font-size: var(--fs-body);
	line-height: 1.25;
}

.tf-contact-form__field--textarea .tf-field__box {
	justify-content: flex-start;
	min-height: 110px;
	padding-top: 14px;
}

.tf-contact-form__field--textarea textarea {
	min-height: 80px;
	resize: vertical;
}

.tf-contact-form .tf-field__error {
	margin-top: 2px;
	padding-inline: 8px;
	font-size: var(--fs-xs);
}

.tf-contact-form .tf-field__hint {
	margin-top: 2px;
	padding-inline: 8px;
	font-size: var(--fs-2xs);
	line-height: 1.4;
}

.tf-contact-form .tf-req {
	color: var(--c-muted);
}

.tf-contact-form__error {
	margin-bottom: 12px;
}

.tf-contact-form__error:focus-visible {
	outline: none;
}

/* Honeypot: képernyőn kívül, nem display:none (a robotok azt kihagyják). */
.tf-contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tf-contact-form__consent {
	margin-top: 14px;
}

.tf-contact-form__consent .tf-check {
	padding-inline: 4px;
	color: var(--c-text);
	font-size: var(--fs-xs);
}

.tf-contact-form__consent .tf-check input {
	background-color: #fff;
}

.tf-contact-form__consent.is-error .tf-check input {
	border-color: var(--c-error);
}

.tf-contact-form__consent a {
	color: var(--c-blue-strong);
	font-weight: 600;
}

.tf-contact-form__submit {
	width: 100%;
	margin-top: 14px;
	font-size: 1rem;
}

.tf-contact-form__submit[aria-busy="true"] {
	cursor: progress;
	opacity: 0.75;
}

.tf-contact-form__noscript {
	margin-top: 12px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

/* Sikeres küldés */
.tf-contact-form__success {
	display: grid;
	gap: 8px;
	justify-items: start;
	padding: 20px;
	border-radius: var(--r-md);
	background: #fff;
}

.tf-contact-form__success[hidden] {
	display: none;
}

.tf-contact-form__success:focus-visible {
	outline: none;
}

.tf-contact-form__success-icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-success-bg);
	color: var(--c-success);
}

.tf-contact-form__success-title {
	color: var(--c-navy);
	font-family: var(--f-head);
	font-size: 1.25rem;
	font-weight: 700;
}

.tf-contact-form__success-text {
	color: var(--c-text);
}

.tf-contact-form__success .tf-btn {
	margin-top: 6px;
}

/* A design szerint a CTA sáv közelebb van a tartalomhoz, mint a --s-section (mobil 48, desktop 96 px). */
.tf-page-kapcsolat .tf-cta-wrap {
	padding-top: clamp(48px, 1.5rem + 5vw, 96px);
}

/* ---------- 640+ ---------- */
@media (min-width: 640px) {
	.tf-contact-hero__body {
		padding: 36px;
	}

	.tf-contact-form {
		padding: 32px;
	}

	.tf-contact-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 22px;
	}

	.tf-contact-form__field--wide {
		grid-column: 1 / -1;
	}

	.tf-contact-form__submit {
		width: auto;
	}
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
	/* A fotós kártya a jobb oszloppal együtt nő (a hosszabb adatlista és a segédszövegek miatt magasabb). */
	.tf-contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px;
		align-items: stretch;
	}

	.tf-contact-hero {
		min-height: 862px;
	}

	.tf-contact-hero::before {
		background: linear-gradient(180deg, rgba(8, 41, 52, 0.05) 0%, rgba(8, 41, 52, 0.2) 50%, rgba(8, 41, 52, 0.8) 100%);
	}

	.tf-contact-hero__body {
		padding: 0 48px 44px;
	}

	.tf-contact-hero__eyebrow {
		font-size: var(--fs-xs);
	}

	.tf-contact-hero__title {
		margin-top: 8px;
	}

	.tf-contact-hero__phone {
		margin-top: 14px;
	}

	.tf-contact-hero__hours {
		margin-top: 10px;
		font-size: 1rem;
	}

	.tf-contact__aside {
		padding-top: 42px;
	}

	.tf-contact-details {
		padding-inline: 0;
	}

	.tf-contact-details__row {
		grid-template-columns: 160px minmax(0, 1fr);
		gap: 0;
		padding-block: 14px;
		font-size: 1rem;
	}

	.tf-contact-form {
		margin-top: 28px;
		padding: 36px 40px 38px;
	}

	.tf-contact-form__title {
		font-size: 1.75rem;
	}

	.tf-contact-form__form {
		margin-top: 16px;
	}

	.tf-contact-form .tf-field__box {
		min-height: 60px;
		padding: 11px 13px 6px;
	}

	.tf-contact-form .tf-field__label {
		font-size: var(--fs-3xs);
	}

	.tf-contact-form__field--textarea .tf-field__box {
		min-height: 120px;
		padding-top: 13px;
	}

	.tf-contact-form__submit {
		min-height: 44px;
		margin-top: 16px;
		padding-inline: 20px;
	}
}
