/*
 * Nad Przystanią · formularz wyceny urodzin · WERSJA 4.0.0
 * Tokeny zgodne ze Skills/Style.md. Reset przez :where(), żeby motyw nie wygrywał specyficznością.
 */

.np-rez-btn {
	--navy: #0B3954;
	--sea: #17739F;
	--sky: #BFE4F5;
	--mist: #EAF5FB;
	--buoy: #FFC63B;
	--coral: #CF4A28;
	--paper: #F4FAFD;
	--ink: #14303F;
	--line: rgba(11, 57, 84, .14);
}

:where(.np-rez-maska) {
	--navy: #0B3954;
	--sea: #17739F;
	--sky: #BFE4F5;
	--mist: #EAF5FB;
	--buoy: #FFC63B;
	--coral: #CF4A28;
	--paper: #F4FAFD;
	--ink: #14303F;
	--line: rgba(11, 57, 84, .14);
	--r: 18px;
	--r-lg: 26px;
}

:where(.np-rez-maska) *,
:where(.np-rez-maska) *::before,
:where(.np-rez-maska) *::after {
	box-sizing: border-box;
}

/* ---------- przycisk otwierający ---------- */

.np-rez-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	font: 700 17px/1.2 inherit;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.np-rez-btn--primary {
	background: var(--buoy, #FFC63B);
	color: #14303F;
	box-shadow: 0 6px 18px rgba(255, 198, 59, .35);
}

.np-rez-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(255, 198, 59, .45);
}

.np-rez-btn--ghost {
	background: transparent;
	color: var(--navy, #0B3954);
	border: 2px solid var(--line, rgba(11, 57, 84, .14));
}

.np-rez-btn--ghost:hover {
	background: var(--mist, #EAF5FB);
}

.np-rez-btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}

/* Klasa ustawia display, wiec bez tej reguly atrybut hidden nie chowa przycisku. */
.np-rez-btn[hidden] {
	display: none;
}

/* ---------- okno ---------- */

body.np-rez-blok {
	overflow: hidden;
}

.np-rez-maska {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(11, 57, 84, .55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ink);
}

.np-rez-maska[hidden] {
	display: none;
}

.np-rez-okno {
	width: 100%;
	max-width: 620px;
	max-height: 92vh;
	background: #fff;
	border-radius: var(--r-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(11, 57, 84, .35);
}

.np-rez-gora {
	background: var(--navy);
	color: #fff;
	padding: 18px 22px 14px;
	flex: 0 0 auto;
}

.np-rez-gora-rzad {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.np-rez-gora h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
	color: #fff;
}

.np-rez-gora small {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: rgba(255, 255, 255, .78);
}

.np-rez-zamknij {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, .8);
	font-size: 30px;
	line-height: 1;
	width: 44px;
	height: 44px;
	cursor: pointer;
	border-radius: 50%;
	flex: 0 0 auto;
}

.np-rez-zamknij:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

.np-rez-kroki {
	display: flex;
	gap: 6px;
	margin-top: 14px;
}

.np-rez-kroki i {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
}

.np-rez-kroki i.on {
	background: var(--buoy);
}

.np-rez-srodek {
	padding: 22px;
	overflow-y: auto;
	flex: 1 1 auto;
	-webkit-overflow-scrolling: touch;
}

.np-rez-dol {
	flex: 0 0 auto;
	border-top: 1px solid var(--line);
	padding: 14px 22px;
	background: var(--paper);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.np-rez-suma {
	display: flex;
	flex-direction: column;
}

.np-rez-suma[hidden] {
	display: none;
}

.np-rez-suma-l {
	font-size: 12px;
	color: #54707F;
}

.np-rez-suma strong {
	font-size: 24px;
	color: var(--navy);
	line-height: 1.2;
}

.np-rez-przyciski {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.np-rez-przyciski .np-rez-btn {
	min-height: 48px;
	padding: 12px 22px;
	font-size: 16px;
}

/* ---------- Messenger, od 3.0.0 ----------
   Wyjście pomocnicze, więc wygląda jak link, nie jak trzeci przycisk: nie może
   odbierać kliknięć „Dalej" ani „Wyślij zapytanie". Własny wiersz na całą szerokość
   stopki, bo na telefonie obok dwóch przycisków nie ma na niego miejsca.
   ⚠️ Przedrostek .np-rez-maska: motyw stylizuje `button` i reguła z jedną klasą
   by przegrała. Właściwości tekstu ustawione wprost, bo te niezadeklarowane zostają
   po motywie (WIELKIE LITERY, rozstrzelenie). */
.np-rez-maska .np-rez-msg {
	flex: 1 0 100%;
	order: 3;
	min-height: 44px;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--sea);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-align: center;
	cursor: pointer;
}

.np-rez-maska .np-rez-msg:hover,
.np-rez-maska .np-rez-msg:focus-visible {
	color: var(--navy);
}

.np-rez-maska .np-rez-msg[hidden],
.np-rez-maska .np-rez-msg-info[hidden] {
	display: none;
}

.np-rez-maska .np-rez-msg-info {
	flex: 1 0 100%;
	order: 4;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
	text-align: center;
}

.np-rez-maska .np-rez-msg-info a {
	color: var(--sea);
	font-weight: 700;
}

.np-rez-maska .np-rez-msg-tekst {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	text-align: left;
	background: #fff;
	color: var(--ink);
}

/* ---------- pola ---------- */

.np-rez-info {
	background: var(--mist);
	border-left: 4px solid var(--sky);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
	margin-bottom: 18px;
}

.np-rez-pole {
	margin-bottom: 18px;
}

.np-rez-pole > label {
	display: block;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 7px;
	font-size: 15px;
}

.np-rez-opc {
	font-weight: 400;
	color: #7B93A1;
	font-size: 13px;
}

.np-rez-pole small {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #54707F;
	line-height: 1.45;
}

.np-rez-pole input[type="text"],
.np-rez-pole input[type="tel"],
.np-rez-pole input[type="email"],
.np-rez-pole input[type="number"],
.np-rez-pole select,
.np-rez-pole textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: #fff;
	appearance: none;
}

.np-rez-pole textarea {
	resize: vertical;
	min-height: 92px;
}

.np-rez-pole input:focus,
.np-rez-pole select:focus,
.np-rez-pole textarea:focus {
	outline: 3px solid rgba(23, 115, 159, .35);
	outline-offset: 1px;
	border-color: var(--sea);
}

.np-rez-dwa {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 420px) {
	.np-rez-dwa {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ---------- licznik ---------- */

.np-rez-licznik {
	display: flex;
	align-items: center;
	gap: 10px;
}

.np-rez-licznik input {
	max-width: 96px;
	text-align: center;
	font-weight: 700;
	font-size: 18px;
}

.np-rez-krok {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	color: var(--navy);
	cursor: pointer;
}

.np-rez-krok:hover {
	background: var(--mist);
	border-color: var(--sea);
}

/* ---------- wybory ---------- */

.np-rez-wybory {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

@media (max-width: 420px) {
	.np-rez-wybory {
		grid-template-columns: 1fr;
	}
}

.np-rez-wybor {
	border: 2px solid var(--line);
	border-radius: 14px;
	background: #fff;
	padding: 12px 10px;
	cursor: pointer;
	text-align: center;
	min-height: 66px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
}

.np-rez-wybor span {
	font-weight: 700;
	color: var(--navy);
	font-size: 15px;
}

.np-rez-wybor em {
	font-style: normal;
	font-size: 13px;
	color: #54707F;
}

.np-rez-wybor.on {
	border-color: var(--sea);
	background: var(--mist);
}

/* ---------- dodatki ---------- */

.np-rez-lista {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.np-rez-dodatek {
	border: 2px solid var(--line);
	border-radius: 14px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-right: 10px;
}

.np-rez-dodatek.on {
	border-color: var(--sea);
	background: var(--mist);
}

.np-rez-dodatek-glowna {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 11px;
	background: transparent;
	border: 0;
	padding: 13px 14px;
	cursor: pointer;
	text-align: left;
	min-height: 56px;
	font: inherit;
}

.np-rez-ptak {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	border: 2px solid var(--line);
	border-radius: 7px;
	background: #fff;
	position: relative;
}

.np-rez-dodatek.on .np-rez-ptak {
	background: var(--sea);
	border-color: var(--sea);
}

.np-rez-dodatek.on .np-rez-ptak::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.np-rez-nazwa {
	flex: 1;
	font-size: 15px;
	color: var(--ink);
}

.np-rez-cena {
	font-size: 14px;
	font-weight: 700;
	color: var(--sea);
	white-space: nowrap;
}

.np-rez-ilosc {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.np-rez-ilosc[hidden] {
	display: none;
}

.np-rez-ilosc .np-rez-krok {
	width: 36px;
	height: 36px;
	font-size: 18px;
	border-radius: 10px;
}

.np-rez-ilosc span {
	min-width: 22px;
	text-align: center;
	font-weight: 700;
	color: var(--navy);
}

/* ---------- zgoda, podsumowanie, błąd ---------- */

.np-rez-zgoda {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	background: var(--paper);
	border-radius: 14px;
	padding: 13px 15px;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	margin-bottom: 16px;
}

.np-rez-zgoda input {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	margin-top: 1px;
	accent-color: var(--sea);
}

.np-rez-podsum {
	background: var(--mist);
	border-radius: 14px;
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 18px;
}

.np-rez-podsum > strong {
	color: var(--navy);
	display: block;
	margin-bottom: 2px;
	font-size: 15px;
}

.np-rez-podsum-kto {
	margin: 0 0 10px;
	color: #54707F;
	font-size: 13.5px;
}

.np-rez-podsum-nota {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: #54707F;
}

.np-rez-tab {
	width: 100%;
	border-collapse: collapse;
}

.np-rez-tab td {
	padding: 7px 0;
	border-bottom: 1px solid rgba(11, 57, 84, .1);
	vertical-align: top;
	line-height: 1.4;
}

.np-rez-tab td:last-child {
	text-align: right;
	white-space: nowrap;
	padding-left: 12px;
	font-variant-numeric: tabular-nums;
}

.np-rez-tab-suma td {
	border-bottom: 0;
	padding-top: 11px;
	font-weight: 700;
	color: var(--navy);
	font-size: 16px;
}

.np-rez-wlasny {
	margin-top: 8px;
}

.np-rez-wlasny[hidden] {
	display: none;
}

.np-rez-blad {
	background: #FBE6E1;
	border-left: 4px solid var(--coral);
	color: #7A2513;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
	margin-bottom: 16px;
}

.np-rez-blad[hidden] {
	display: none;
}

/* ---------- co jest w cenie, krok 1 ---------- */

.np-rez-info-tyt {
	display: block;
	font-size: 15.5px;
	color: var(--navy);
	margin-bottom: 8px;
}

/* Motyw nadaje listom własne wcięcia i punktory, więc ustawiamy je wprost.
   Zapis przez :where() celowo — patrz Style.md 12.14. */
.np-rez-wcenie {
	margin: 0;
	padding: 0;
	list-style: none;
}

.np-rez-wcenie :where(li) {
	position: relative;
	padding-left: 22px;
	margin-bottom: 5px;
	font-size: 14.5px;
	line-height: 1.45;
}

.np-rez-wcenie :where(li)::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sea);
}

.np-rez-info-dop {
	margin: 10px 0 0;
	font-size: 14.5px;
	line-height: 1.45;
}

/* Dodatek niedostępny przy tej liczbie dzieci. Zostaje widoczny, żeby rodzic
   wiedział, że istnieje, ale nie da się go kliknąć ani doliczyć. */
.np-rez-dodatek.off {
	border-color: var(--line);
	background: #F6F8FA;
	opacity: .62;
}

.np-rez-dodatek.off .np-rez-dodatek-glowna {
	cursor: not-allowed;
}

.np-rez-dodatek.off .np-rez-cena {
	color: #7A8C97;
}

.np-rez-drobne {
	margin: 2px 0 6px;
	font-size: 12.5px;
	color: #54707F;
	line-height: 1.45;
}

.np-rez-nota {
	font-size: 13px;
	color: #54707F;
	line-height: 1.5;
	margin: 4px 0 0;
}

.np-rez-honey {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- potwierdzenie ---------- */

.np-rez-ok {
	text-align: center;
	padding: 18px 6px 8px;
}

.np-rez-ok-ikona {
	width: 68px;
	height: 68px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #E4F3EA;
	color: #14654E;
	font-size: 34px;
	line-height: 68px;
	font-weight: 700;
}

.np-rez-ok h4 {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--navy);
}

.np-rez-ok p {
	margin: 0 0 12px;
	font-size: 16px;
}

.np-rez-ok a {
	color: var(--sea);
	font-weight: 700;
}

/* ---------- telefon ---------- */

@media (max-width: 680px) {
	.np-rez-maska {
		padding: 0;
		align-items: flex-end;
	}

	.np-rez-okno {
		max-width: none;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
	}

	.np-rez-srodek {
		padding: 18px 16px;
	}

	.np-rez-dol {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	}

	.np-rez-przyciski {
		width: 100%;
	}

	.np-rez-przyciski .np-rez-btn {
		flex: 1;
	}

	.np-rez-suma {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
		width: 100%;
	}

	.np-rez-suma strong {
		font-size: 20px;
	}
}

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