/* RaviElson Contact Page — układ wg Figmy (node 1173:1065)
   Tokeny z pliku: LIMONKA #c0eb00, TURKUS #175864, BEŻ #c8b29a,
   BACKGROUND #f4f1ed, BACKGROUND 2 #fffdfa, BLACK #090909 */

.rcp {
	--rcp-limonka: #c0eb00;
	--rcp-turkus: #175864;
	--rcp-bez: #c8b29a;
	--rcp-bg: #f4f1ed;
	--rcp-bg2: #fffdfa;
	--rcp-black: #090909;
	--rcp-logo: #6ec6d8;

	font-family: "Alexandria", sans-serif;
	color: var(--rcp-black);
	width: 100%;
	/* Bez max-width na całości — inaczej tła pasów „Zadzwoń" i „Odwiedź nas"
	   kończyły się na 1338px i po bokach prześwitywał kolor strony
	   (uwaga z 28.09). Szerokość treści ograniczają teraz same sekcje.
	   Beż na całym module, żeby formularz i „Odwiedź nas" miały jeden kolor. */
	margin: 0 auto;
	background: var(--rcp-bg);
	box-sizing: border-box;
}

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

/* ─────────────── Nagłówek ─────────────── */

.rcp__headingWrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
}

/* Nagłówek jest teraz turkusowy, nie czarny (zmiana z node 1392:3536). */
.rcp__heading {
	margin: 0;
	width: 884px;
	max-width: 100%;
	font-family: "Alexandria", sans-serif;
	font-weight: 700;
	font-size: clamp(30px, 5vw, 60px);
	line-height: 1.2;
	color: var(--rcp-turkus);
	text-align: center;
}

/* ─────────────── Formularz ─────────────── */

.rcp__formSection {
	width: 884px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 24px 40px;
}

/* Podtytuł to H3 (Alexandria Medium 24), nie H2 — zmiana z nowej wersji pliku. */
.rcp__formHeading {
	margin: 0 0 24px;
	font-family: "Alexandria", sans-serif;
	font-weight: 500;
	font-size: clamp(18px, 2vw, 24px);
	line-height: 1.3;
	color: var(--rcp-turkus);
	text-align: center;
}

/* Formularz ma w designie stałe 430px i jest wyśrodkowany w kolumnie 884px. */
.rcp__form {
	width: 430px;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rcp__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Motyw (Astra) i Elementor stylują pola przez selektory typu
   `input[type="text"]`, które biją zwykłą klasę. Stąd zagnieżdżony selektor
   i !important na właściwościach wizualnych — inaczej pola wracają
   do wyglądu motywu. */
.rcp input.rcp__input,
.rcp select.rcp__input,
.rcp textarea.rcp__input {
	width: 100% !important;
	height: 52px !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 11px 24px !important;
	background-color: var(--rcp-bg) !important;
	background-image: none;
	border: 1px solid var(--rcp-bez) !important;
	border-radius: 8px !important;
	font-family: "Inter", sans-serif !important;
	font-weight: 400 !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
	color: var(--rcp-black) !important;
	box-shadow: none !important;
	outline: none;
	appearance: none !important;
	-webkit-appearance: none !important;
}

/* Wariant "home" — pola z białym tłem.
   Na Kontakcie pole ma tło w kolorze strony i czyta się jak sama ramka;
   w projekcie strony głównej formularz siedzi na beżu i pola muszą być białe,
   żeby się od niego odcinały. Ta sama specyficzność co reguła bazowa
   plus !important, bo motyw nadpisuje tło inputów. */
.rcp--home input.rcp__input,
.rcp--home select.rcp__input,
.rcp--home textarea.rcp__input {
	background-color: var(--rcp-bg2) !important;
}

/* Pole Wiadomość — jedyne, które rośnie w pionie (mini formularz na home). */
.rcp textarea.rcp__input--textarea {
	height: auto !important;
	min-height: 273px !important;
	padding: 16px 24px !important;
	resize: vertical;
	line-height: 1.6 !important;
}

.rcp textarea.rcp__input--textarea::placeholder {
	color: var(--rcp-black) !important;
	opacity: 0.4 !important;
}

.rcp input.rcp__input::placeholder {
	color: var(--rcp-black) !important;
	opacity: 0.4 !important;
}

.rcp input.rcp__input:focus,
.rcp select.rcp__input:focus,
.rcp textarea.rcp__input:focus {
	border-color: var(--rcp-turkus) !important;
	box-shadow: 0 0 0 2px rgba(23, 88, 100, 0.15) !important;
}

/* Select: własny chevron, bo natywnego nie da się ostylować spójnie. */
.rcp select.rcp__input--select {
	padding-right: 48px !important;
	color: rgba(9, 9, 9, 0.4) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23090909' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 24px center !important;
	cursor: pointer;
}

/* Po wyborze opcji tekst przestaje być placeholderem — pełna czerń. */
.rcp select.rcp__input--select:has(option:checked:not([value=""])) {
	color: var(--rcp-black) !important;
}

/* ─────────────── Zgody ─────────────── */

.rcp__consents {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rcp__consent {
	display: flex;
	align-items: flex-start;
	gap: 13px;
}

/* Checkbox też jest przejmowany przez motyw (własny ptaszek przez ::before),
   więc wymuszamy własny wygląd i czyścimy cudzą pseudo-zawartość. */
.rcp input[type="checkbox"].rcp__checkbox {
	flex: 0 0 16px !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid rgba(0, 0, 0, 0.5) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer;
	position: relative;
}

.rcp input[type="checkbox"].rcp__checkbox::before {
	content: none !important;
}

/* Stan zaznaczony wg wariantu "fill": limonkowe tło, czarna ramka i ptaszek. */
.rcp input[type="checkbox"].rcp__checkbox:checked {
	background: var(--rcp-limonka) !important;
	border-color: var(--rcp-black) !important;
}

.rcp input[type="checkbox"].rcp__checkbox:checked::after {
	content: "" !important;
	display: block !important;
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	background: none !important;
	border: solid var(--rcp-black) !important;
	border-width: 0 2px 2px 0 !important;
	border-radius: 0 !important;
	transform: rotate(45deg);
}

.rcp input[type="checkbox"].rcp__checkbox:focus-visible {
	outline: 2px solid var(--rcp-turkus);
	outline-offset: 2px;
}

.rcp__consentLabel {
	flex: 1 1 auto;
	font-family: "Alexandria", sans-serif;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.35;
	color: #000;
	cursor: pointer;
}

.rcp__consentLabel a {
	color: inherit;
	text-decoration: underline;
}

/* ─────────────── Przycisk ─────────────── */

.rcp button.rcp__submit {
	width: 100% !important;
	height: 50px !important;
	padding: 10px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: var(--rcp-limonka) !important;
	color: var(--rcp-black) !important;
	border: none !important;
	border-radius: 8px !important;
	font-family: "Alexandria", sans-serif !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: normal !important;
	text-align: center;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	transition: filter 0.25s ease;
}

.rcp button.rcp__submit:hover,
.rcp button.rcp__submit:focus {
	background: var(--rcp-limonka) !important;
	color: var(--rcp-black) !important;
	filter: brightness(0.94);
}

/* Honeypot — ukryty przed ludźmi, widoczny dla botów. */
.rcp__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ─────────────── Komunikaty ─────────────── */

.rcp__notice {
	width: 430px;
	max-width: 100%;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.rcp__notice--ok {
	background: rgba(192, 235, 0, 0.25);
	border: 1px solid var(--rcp-limonka);
	color: #2f3d00;
}

.rcp__notice--err {
	background: rgba(180, 40, 40, 0.08);
	border: 1px solid rgba(180, 40, 40, 0.5);
	color: #7d1d1d;
}

/* ─────────────── Pas "Zadzwoń" ─────────────── */

/* Turkusowy pas idzie na całą szerokość, treść zostaje na 1338px. */
.rcp__call {
	background: var(--rcp-turkus);
	padding: 40px max(56px, calc((100% - 1338px) / 2));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.rcp__callHeading {
	margin: 0;
	width: 100%;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.2;
	color: var(--rcp-bg);
	text-align: center;
}

.rcp__people {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 24px;
}

/* Stała szerokość 316px sprawia, że karty osób są równe niezależnie od
   długości nazwiska — dlatego cała trójka trzyma równy rytm. */
.rcp__person {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 316px;
	max-width: 100%;
}

/* Motyw wymusza na obrazkach `height:auto` i zeruje `border-radius`, przez co
   zdjęcie zostawało prostokątem w proporcji pliku. Stąd wymuszony kwadrat
   94×94, przycięcie przez object-fit i pełne zaokrąglenie. */
.rcp .rcp__personPhoto {
	flex: 0 0 94px !important;
	width: 94px !important;
	height: 94px !important;
	min-width: 94px !important;
	max-width: 94px !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center !important;
	overflow: hidden !important;
	display: block;
}

/* Zastępnik, gdy osoba nie ma zdjęcia — kółko z pierwszą literą imienia. */
.rcp .rcp__personPhoto--initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rcp-limonka);
	color: var(--rcp-turkus);
	font-family: "Alexandria", sans-serif;
	font-weight: 500;
	font-size: 38px;
	line-height: 1;
	text-transform: uppercase;
	user-select: none;
}

.rcp__personInfo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.rcp__personName,
.rcp__personPhone {
	font-family: "Alexandria", sans-serif;
	font-weight: 500;
	font-size: 19px;
	line-height: normal;
	color: var(--rcp-bg);
	white-space: nowrap;
}

.rcp__personPhone {
	text-decoration: none;
}

.rcp__personPhone:hover {
	text-decoration: underline;
	color: var(--rcp-bg);
}

/* Plakietka jest teraz konturowa, nie wypełniona. */
.rcp__personBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 8px 17px;
	background: transparent;
	border: 1px solid var(--rcp-limonka);
	border-radius: 999px;
	font-family: "Alexandria", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: normal;
	color: var(--rcp-limonka);
	white-space: nowrap;
}

/* ─────────────── "Odwiedź nas" + mapa ─────────────── */

/* Tło tego pasa to BEŻ light, nie WHITE 2 (zmiana z node 1392:3584). */
/* Ten sam beż co reszta modułu — sekcja nie odcina się już kolorem od
   formularza. Treść trzyma się 1338px przez padding, a tło idzie na całą
   szerokość. align-items: stretch, żeby kolumna z mapą dorównała lewej. */
.rcp__visit {
	background: transparent;
	padding: 64px max(56px, calc((100% - 1338px) / 2));
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 56px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.rcp__visitInfo {
	flex: 0 0 430px;
	width: 430px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.rcp__visitTitles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(23, 88, 100, 0.2);
}

.rcp .rcp__visitIntro {
	margin: 0;
	font-family: "Alexandria", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rcp-black);
}

/* ── Wiersze informacyjne ── */

.rcp ul.rcp__info {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.rcp li.rcp__infoRow {
	list-style: none;
	margin: 0;
	padding: 16px 0;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 1px solid rgba(23, 88, 100, 0.2);
}

.rcp li.rcp__infoRow:last-child {
	border-bottom: none;
}

.rcp__infoIcon {
	flex: 0 0 57px;
	width: 57px;
	height: 57px;
	border-radius: 50%;
	background: var(--rcp-turkus);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.rcp .rcp__infoIcon img {
	width: 28px !important;
	height: 28px !important;
	object-fit: contain !important;
	display: block;
}

.rcp__infoBody {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: "Alexandria", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rcp-black);
}

.rcp__infoLabel {
	font-weight: 700;
}

.rcp__infoLine {
	font-weight: 300;
}

/* Wiersz dwukolumnowy — używany przez godziny otwarcia. */
.rcp__infoPair {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.rcp__infoPairKey {
	flex: 0 0 auto;
	min-width: 168px;
	font-weight: 300;
}

.rcp__infoPairVal {
	font-weight: 700;
}

/* ── Przyciski pod danymi ── */

.rcp__visitActions {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.rcp a.rcp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 202px;
	height: 50px;
	padding: 10px 24px;
	border-radius: 8px;
	font-family: "Alexandria", sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: filter 0.25s ease, background 0.25s ease;
}

.rcp a.rcp__btn--fill {
	background: var(--rcp-logo);
	color: var(--rcp-black);
	border: 1px solid var(--rcp-logo);
}

.rcp a.rcp__btn--fill:hover {
	filter: brightness(0.94);
	color: var(--rcp-black);
}

.rcp a.rcp__btn--ghost {
	background: transparent;
	color: var(--rcp-black);
	border: 1px solid rgba(9, 9, 9, 0.25);
}

.rcp a.rcp__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.6);
	color: var(--rcp-black);
}

.rcp__visitHeading {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3vw, 36px);
	line-height: normal;
	color: var(--rcp-black);
}

.rcp__visitSubheading {
	margin: 0;
	font-family: "Alexandria", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: normal;
	color: var(--rcp-black);
}

.rcp__block {
	margin: 0;
	font-family: "Alexandria", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.35;
	color: var(--rcp-black);
}

.rcp__blockLabel {
	display: block;
	font-weight: 700;
}

.rcp__map {
	flex: 1 1 770px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
}

/* Mapa dociąga się wysokością do lewej kolumny, żeby dolna belka kończyła się
   równo z przyciskami (uwaga z 28.09). Proporcje służą już tylko jako
   minimum — gdy lewa kolumna jest krótka, mapa nie skurczy się do paska. */
.rcp__mapFrame {
	width: 100%;
	flex: 1 1 auto;
	min-height: 420px;
}

.rcp__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Turkusowy pasek pod mapą — nowy element z node 1392:3591. */
.rcp__mapCaption {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	background: var(--rcp-turkus);
	padding: 14px 24px;
}

.rcp__mapCaptionText {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	font-family: "Alexandria", sans-serif;
	color: var(--rcp-limonka);
}

.rcp__mapCaptionText strong {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
}

.rcp__mapCaptionText span {
	font-weight: 300;
	font-size: 12px;
	line-height: 1.6;
}

.rcp .rcp__mapCaptionIcon {
	width: 28px !important;
	height: 28px !important;
	object-fit: contain !important;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.rcp__submit {
		transition: none;
	}
}

/* ─────────────── Responsywność ─────────────── */

/* Mapa i tekst przestają się mieścić obok siebie znacznie wcześniej niż
   formularz, więc ten pas łamiemy jako pierwszy. */
@media (max-width: 1200px) {
	.rcp__visit {
		flex-direction: column;
		align-items: stretch;
		padding: 56px 32px;
		gap: 32px;
	}

	.rcp__visitInfo {
		flex: 1 1 auto;
		width: 100%;
	}

	.rcp__map {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 1100px) {
	.rcp__call {
		padding: 40px 32px;
	}
}

@media (max-width: 768px) {
	.rcp__headingWrap {
		padding: 32px 20px;
	}

	.rcp__formSection {
		padding: 0 20px 32px;
	}

	/* Na telefonie formularz rozciąga się na całą szerokość — sztywne 430px
	   z designu zostaje tylko jako maksimum. */
	.rcp__form,
	.rcp__notice {
		width: 100%;
		max-width: 430px;
	}

	.rcp__call {
		padding: 32px 20px;
		gap: 20px;
	}

	.rcp__people {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.rcp__person {
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}

	.rcp__visit {
		padding: 40px 20px;
		gap: 28px;
	}

	.rcp__mapFrame {
		flex: 0 0 auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.rcp__visitActions {
		gap: 16px;
	}

	.rcp a.rcp__btn {
		flex: 1 1 auto;
		min-width: 0;
	}

	.rcp__infoPairKey {
		min-width: 140px;
	}
}

@media (max-width: 480px) {
	.rcp .rcp__personPhoto {
		flex-basis: 76px !important;
		width: 76px !important;
		height: 76px !important;
		min-width: 76px !important;
		max-width: 76px !important;
	}

	.rcp .rcp__personPhoto--initial {
		font-size: 30px;
	}

	.rcp__personName,
	.rcp__personPhone {
		font-size: 17px;
	}

	.rcp__personBadge {
		font-size: 14px;
		height: 28px;
		padding: 6px 14px;
	}

	.rcp__mapFrame {
		flex: 0 0 auto;
		min-height: 0;
		aspect-ratio: 1 / 1;
	}

	/* Godziny przestają się mieścić w dwóch kolumnach — łamiemy je na wiersze. */
	.rcp__infoPair {
		flex-direction: column;
		gap: 0;
	}

	.rcp__infoPairKey {
		min-width: 0;
	}

	.rcp__infoIcon {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}
}
