/* ==========================================================================
   Vistrix Labs — strona Kontakt / Contact (template-kontakt.php)
   Źródło prawdy: design_handoff_vistrixlabs/Kontakt.dc.html + Contact EN.dc.html
   Mobile: Widoki mobilne.dc.html, sekcja "06 · Kontakt"
   (kolejność mobile: nagłówek → formularz → kafle → kroki — grid-template-areas).
   ========================================================================== */

/* --------------------------------------------------------------------------
   CONTENT (Kontakt) — layout 2 kolumny
   -------------------------------------------------------------------------- */
.kontakt {
	padding: 88px 56px 110px;
	flex: 1;
}

.kontakt__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"intro form"
		"aside form";
	grid-template-rows: auto 1fr;
	column-gap: 88px;
	align-items: start;
}

.kontakt__intro {
	grid-area: intro;
}

.kontakt__aside {
	grid-area: aside;
}

.kontakt__form-card {
	grid-area: form;
}

/* --------------------------------------------------------------------------
   LEFT (nagłówek: badge + H1 + lead)
   -------------------------------------------------------------------------- */
.kontakt__title {
	font-family: var(--font-heading);
	font-size: 72px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.0;
	margin: 24px 0 0;
	color: var(--c-heading);
}

.kontakt__lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-body);
	max-width: 480px;
	margin: 22px 0 0;
}

/* --------------------------------------------------------------------------
   KAFLE KONTAKTOWE (E-mail / Telefon / LinkedIn)
   -------------------------------------------------------------------------- */
.kontakt__contacts {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 44px;
	max-width: 440px;
}

.kontakt__tile {
	background: var(--c-white);
	border-radius: 18px;
	padding: 20px 26px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.kontakt__tile-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--c-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	color: var(--c-black);
	flex: none;
}

.kontakt__tile-icon--in {
	font-size: 14px;
	font-weight: 700;
}

.kontakt__tile-label {
	font-size: 12.5px;
	color: var(--c-meta);
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 600;
}

.kontakt__tile-value {
	font-weight: 600;
	font-size: 17px;
	color: var(--c-black);
}

/* --------------------------------------------------------------------------
   CO SIĘ STANIE PO WYSŁANIU (3 kroki)
   -------------------------------------------------------------------------- */
.kontakt__steps {
	margin-top: 48px;
}

.kontakt__steps-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 21px;
	color: var(--c-heading);
}

.kontakt__steps-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
	max-width: 440px;
}

.kontakt__step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.kontakt__step-num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--c-black);
	color: var(--c-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 13px;
	flex: none;
}

.kontakt__step-text {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--c-body);
}

/* --------------------------------------------------------------------------
   RIGHT: FORM — karta formularza
   -------------------------------------------------------------------------- */
.kontakt__form-card {
	background: var(--c-white);
	border-radius: 28px;
	padding: 48px 48px 52px;
	box-shadow: 0 4px 24px rgba(20, 19, 16, .06);
}

.kontakt__form-title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -0.015em;
	color: var(--c-heading);
	margin: 0;
}

.kontakt__form-note {
	font-size: 15px;
	color: var(--c-meta);
	margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   WARIANTY COPY DESKTOP/MOBILE
   Uproszczona makieta mobilna ("06 · Kontakt" / "06 · Contact") skraca lead
   i teksty 3 kroków — fragmenty tylko-desktop / tylko-mobile są w szablonach
   owinięte w te klasy (kontakt-pl.php / kontakt-en.php).
   -------------------------------------------------------------------------- */
.kontakt__copy-mobile {
	display: none;
}

/* Po wysłaniu (ekran sukcesu Fluent Forms) chowamy nagłówek karty — jak w makiecie. */
.kontakt__form-card:has(.ff-message-success) .kontakt__form-title,
.kontakt__form-card:has(.ff-message-success) .kontakt__form-note {
	display: none;
}

/* Fallback bez :has() (Firefox <121, Safari <15.4): klasę --sent dokłada
   assets/js/kontakt.js, gdy w karcie pojawi się .ff-message-success.
   Osobna reguła — w jednej liście selektorów niewspierane :has()
   unieważniłoby całość. */
.kontakt__form-card--sent .kontakt__form-title,
.kontakt__form-card--sent .kontakt__form-note {
	display: none;
}

/* --------------------------------------------------------------------------
   FORM — Fluent Forms pod design (selektory .fluentform)
   -------------------------------------------------------------------------- */
.kontakt .fluentform {
	margin-top: 32px;
}

/* Odstępy między polami (makieta: gap 20px) */
.kontakt .fluentform .ff-el-group {
	margin-bottom: 20px;
}

/* Wiersze 2-kolumnowe (kontenery FF + subpola imię/nazwisko): gap 16px */
.kontakt .fluentform .ff-t-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-left: 0;
	margin-right: 0;
}

.kontakt .fluentform .ff-t-cell {
	flex: 1 1 0;
	min-width: 0;
	padding-left: 0;
	padding-right: 0;
}

.kontakt .fluentform .ff-t-cell .ff-el-group:last-child {
	margin-bottom: 0;
}

/* Etykiety pól */
.kontakt .fluentform .ff-el-input--label {
	margin-bottom: 7px;
}

.kontakt .fluentform .ff-el-input--label label {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	color: var(--c-black);
	margin: 0;
}

/* Gwiazdka wymagane = ✦ w kolorze #141310 (zamiast domyślnej czerwonej *) */
.kontakt .fluentform .ff-el-is-required.asterisk-right .ff-el-input--label label::after,
.kontakt .fluentform .ff-el-is-required.asterisk-right .ff-el-input--label label:after {
	content: " ✦";
	color: var(--c-black);
}

.kontakt .fluentform .ff-el-is-required.asterisk-left .ff-el-input--label label::before,
.kontakt .fluentform .ff-el-is-required.asterisk-left .ff-el-input--label label:before {
	content: "✦ ";
	color: var(--c-black);
}

/* Inputy / textarea */
.kontakt .fluentform .ff-el-form-control {
	width: 100%;
	background: var(--c-bg);
	border: 1.5px solid var(--c-bg);
	border-radius: 12px;
	padding: 14px 16px;
	font-family: var(--font-body);
	font-size: 15.5px;
	line-height: 1.4;
	color: var(--c-black);
	height: auto;
	box-shadow: none;
	transition: border-color var(--transition);
}

.kontakt .fluentform .ff-el-form-control::placeholder {
	color: var(--c-meta);
	opacity: 1;
}

/* Focus: obrys żółty */
.kontakt .fluentform .ff-el-form-control:focus {
	outline: none;
	border-color: var(--c-yellow);
	box-shadow: none;
}

.kontakt .fluentform textarea.ff-el-form-control {
	min-height: 120px;
	resize: vertical;
}

/* Custom checkbox zgody (22px, radius 7px; zaznaczony: żółte tło + ✓) */
.kontakt .fluentform .ff-el-form-check {
	margin: 0;
}

.kontakt .fluentform .ff-el-form-check-label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--c-meta);
}

.kontakt .fluentform .ff-el-form-check-input,
.kontakt .fluentform input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	border: 1.5px solid rgba(20, 19, 16, .3);
	background: var(--c-white);
	color: var(--c-black);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	margin: 1px 0 0;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}

.kontakt .fluentform .ff-el-form-check-input:checked,
.kontakt .fluentform input[type="checkbox"]:checked {
	background: var(--c-yellow);
	border-color: var(--c-black);
}

.kontakt .fluentform .ff-el-form-check-input:checked::after,
.kontakt .fluentform input[type="checkbox"]:checked::after {
	content: "✓";
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: var(--c-black);
}

/* Link "Polityka prywatności" w treści zgody */
.kontakt .fluentform .ff-el-form-check-label a,
.kontakt .fluentform .kontakt-consent-link {
	color: var(--c-black);
	font-weight: 500;
	text-decoration: none;
}

/* Błędy walidacji: czerwona ramka #E14B2A + komunikat 13px */
.kontakt .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: var(--c-error);
}

.kontakt .fluentform .ff-el-is-error .ff-el-form-check-input,
.kontakt .fluentform .ff-el-is-error input[type="checkbox"] {
	border-color: var(--c-error);
}

.kontakt .fluentform .error,
.kontakt .fluentform .error.text-danger,
.kontakt .fluentform .ff-el-is-error .error {
	font-size: 13px;
	color: var(--c-error);
	font-weight: 500;
	margin-top: 7px;
}

/* Submit: pełna szerokość, żółty pill, hover #FF6B4A */
.kontakt .fluentform .ff_submit_btn_wrapper {
	margin: 6px 0 0;
	padding: 0;
}

.kontakt .fluentform .ff-btn-submit {
	display: block;
	width: 100%;
	background: var(--c-yellow) !important;
	color: var(--c-black) !important;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 16.5px;
	padding: 18px 0;
	border: 0;
	border-radius: var(--radius-pill);
	text-align: center;
	cursor: pointer;
	transition: background var(--transition);
}

.kontakt .fluentform .ff-btn-submit:hover {
	background: var(--c-coral) !important;
}

/* --------------------------------------------------------------------------
   EKRAN SUKCESU (confirmation "same page" — HTML z docs/fluent-forms-setup.md)
   -------------------------------------------------------------------------- */
.kontakt .ff-message-success {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.kontakt .kontakt-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 12px;
}

.kontakt .kontakt-success__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--c-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: var(--c-black);
}

.kontakt .kontakt-success__title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 32px;
	letter-spacing: -0.015em;
	color: var(--c-heading);
	margin: 26px 0 0;
}

.kontakt .kontakt-success__text {
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--c-body);
	max-width: 380px;
	margin: 14px 0 0;
}

/* "Wyślij kolejną wiadomość" — czarny outline na jasnym → hover tło #FFD400 */
.kontakt .kontakt-success__again {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--c-black);
	border-radius: var(--radius-pill);
	padding: 13px 26px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--c-black);
	cursor: pointer;
	margin-top: 30px;
	transition: background var(--transition);
}

.kontakt .kontakt-success__again:hover {
	background: var(--c-yellow);
}

/* --------------------------------------------------------------------------
   FALLBACK (Fluent Forms nieaktywny — komunikat + mailto)
   -------------------------------------------------------------------------- */
.kontakt__fallback {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kontakt__fallback-text {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--c-body);
	margin: 0;
}

.kontakt__fallback-btn {
	width: 100%;
	font-size: 16.5px;
	padding: 18px 0;
}

/* --------------------------------------------------------------------------
   MOBILE ≤768px (Widoki mobilne.dc.html — "06 · Kontakt";
   kolejność: nagłówek → formularz → kafle → kroki)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

	.kontakt {
		padding: 44px 24px 44px;
	}

	.kontakt__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"intro"
			"form"
			"aside";
		grid-template-rows: auto;
		column-gap: 0;
	}

	/* Nagłówek */
	.kontakt__title {
		font-size: 40px;
		letter-spacing: -0.02em;
		margin: 14px 0 0;
	}

	.kontakt__lead {
		font-size: 15px;
		line-height: 1.55;
		margin-top: 12px;
	}

	/* Karta formularza */
	.kontakt__form-card {
		margin-top: 24px;
		border-radius: 20px;
		padding: 26px 24px;
		box-shadow: 0 4px 20px rgba(20, 19, 16, .06);
	}

	.kontakt__form-title {
		font-size: 21px;
		letter-spacing: -0.01em;
	}

	/* Makieta mobilna: karta formularza bez notki o polach wymaganych. */
	.kontakt__form-note {
		display: none;
	}

	/* Skrócone copy mobilne (lead + kroki) — patrz sekcja WARIANTY COPY. */
	.kontakt__copy-desktop {
		display: none;
	}

	.kontakt__copy-mobile {
		display: inline;
	}

	/* Kafle kontaktowe */
	.kontakt__aside {
		margin-top: 28px;
	}

	.kontakt__contacts {
		margin-top: 0;
		gap: 12px;
		max-width: none;
	}

	.kontakt__tile {
		border-radius: 14px;
		padding: 16px 20px;
		gap: 12px;
	}

	.kontakt__tile-icon {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.kontakt__tile-icon--in {
		font-size: 12px;
	}

	.kontakt__tile-label {
		font-size: 10.5px;
	}

	.kontakt__tile-value {
		font-size: 14.5px;
	}

	/* Kroki */
	.kontakt__steps {
		margin-top: 28px;
	}

	.kontakt__steps-title {
		font-size: 17px;
	}

	.kontakt__steps-list {
		gap: 10px;
		margin-top: 12px;
		max-width: none;
	}

	.kontakt__step {
		gap: 10px;
	}

	.kontakt__step-num {
		width: 22px;
		height: 22px;
		font-size: 11px;
	}

	.kontakt__step-text {
		font-size: 13.5px;
		line-height: 1.5;
	}

	/* Formularz Fluent Forms */
	.kontakt .fluentform {
		margin-top: 20px;
	}

	.kontakt .fluentform .ff-el-group {
		margin-bottom: 14px;
	}

	.kontakt .fluentform .ff-t-container {
		flex-direction: column;
		gap: 14px;
	}

	.kontakt .fluentform .ff-el-input--label {
		margin-bottom: 6px;
	}

	.kontakt .fluentform .ff-el-input--label label {
		font-size: 13px;
	}

	.kontakt .fluentform .ff-el-form-control {
		border-radius: 10px;
		padding: 13px 14px;
		font-size: 13.5px;
	}

	.kontakt .fluentform textarea.ff-el-form-control {
		min-height: 74px;
	}

	.kontakt .fluentform .ff-el-form-check-label {
		gap: 10px;
		font-size: 12px;
	}

	.kontakt .fluentform .ff-el-form-check-input,
	.kontakt .fluentform input[type="checkbox"] {
		width: 20px;
		height: 20px;
		border-radius: 6px;
	}

	.kontakt .fluentform .ff-btn-submit {
		font-size: 15px;
		padding: 15px 0;
	}

	.kontakt__fallback {
		margin-top: 20px;
	}

	.kontakt__fallback-btn {
		font-size: 15px;
		padding: 15px 0;
	}
}
