/* Page title bar — only /zapisy (body.nw-zapisy-page / page-id-794) */
body.nw-zapisy-page .page-header,
body.page-id-794 .page-header {
	background-color: #a3cb3b !important;
	background-image: none !important;
	border: none !important;
	padding-top: 1.35rem;
	padding-bottom: 1.35rem;
}

body.nw-zapisy-page .page-header .site-breadcrumbs,
body.page-id-794 .page-header .site-breadcrumbs {
	display: none !important;
}

body.nw-zapisy-page .page-header-title,
body.page-id-794 .page-header-title {
	color: #102008 !important;
	font-weight: 800 !important;
	font-size: clamp(1.35rem, 4.2vw, 2.15rem) !important;
	line-height: 1.25 !important;
	margin: 0 !important;
	max-width: 40rem;
}

.nw-zapisy {
	/* Brand green = menu/Elementor/home (#a3cb3b; logo ≈ #a8d038) — not WP #81d742 */
	--nw-green: #a3cb3b;
	--nw-green-dark: #8fb82e;
	--nw-ink: #1a1a1a;
	--nw-muted: #5a5a5a;
	--nw-line: #cfe0a8;
	--nw-busy: #c8c8c8;
	--nw-busy-text: #6a6a6a;
	--nw-bg: #f7faf2;
	--nw-title: 1.55rem;
	max-width: 42rem;
	margin: 0 auto;
	color: var(--nw-ink);
	font-size: 1.05rem;
	line-height: 1.45;
}

.nw-zapisy__list {
	display: flex;
	flex-direction: column;
	gap: 2.75rem;
}

.nw-zapisy__event {
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--nw-line);
}

.nw-zapisy__event:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.nw-zapisy__status {
	color: var(--nw-muted);
	font-size: 1.05rem;
}

.nw-zapisy__title {
	margin: 0 0 0.45rem;
	font-size: calc(var(--nw-title) * 2);
	font-weight: 800;
	line-height: 1.15;
	color: var(--nw-ink);
}

/* Data + miejsce: ~10% larger than title, brand green */
.nw-zapisy__meta {
	margin: 0 0 0.55rem;
	font-size: calc(var(--nw-title) * 2 * 1.1);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nw-green);
}

/* Opis: ~50% of event title size, normal ink (not green) */
.nw-zapisy__desc {
	margin: 0 0 1.25rem;
	font-size: calc(var(--nw-title) * 2 * 0.5);
	font-weight: 400;
	line-height: 1.45;
	color: var(--nw-ink);
	white-space: pre-wrap;
}

.nw-zapisy__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
	gap: 0.55rem;
	margin-bottom: 1.5rem;
}

.nw-zapisy__slot {
	appearance: none;
	border: 1px solid var(--nw-line);
	background: #fff;
	color: var(--nw-ink);
	border-radius: 4px;
	padding: 0.65rem 0.4rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.nw-zapisy__slot:hover:not(:disabled) {
	border-color: var(--nw-green-dark);
	background: var(--nw-bg);
	transform: translateY(-1px);
}

.nw-zapisy__slot.is-selected {
	border-color: var(--nw-green-dark);
	background: var(--nw-green);
	color: #102008;
}

.nw-zapisy__slot.is-busy,
.nw-zapisy__slot:disabled {
	background: var(--nw-busy);
	border-color: #bdbdbd;
	color: var(--nw-busy-text);
	cursor: not-allowed;
	transform: none;
}

.nw-zapisy__form {
	display: grid;
	gap: 0.85rem;
	padding: 1.1rem 1.15rem;
	background: var(--nw-bg);
	border: 1px solid var(--nw-line);
	border-radius: 6px;
}

.nw-zapisy__form label {
	display: grid;
	gap: 0.3rem;
}

.nw-zapisy__form label span {
	font-size: 0.92rem;
	font-weight: 600;
}

.nw-zapisy__form input[type="text"],
.nw-zapisy__form input[type="email"],
.nw-zapisy__form input[type="tel"] {
	padding: 0.55rem 0.65rem;
	border: 1px solid #b9c9a6;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.nw-zapisy__consent {
	display: grid !important;
	grid-template-columns: auto 1fr;
	gap: 0.55rem 0.65rem;
	align-items: start;
	font-weight: 400 !important;
}

.nw-zapisy__consent input[type="checkbox"] {
	margin-top: 0.2rem;
	width: 1.15rem;
	height: 1.15rem;
}

.nw-zapisy__consent > span {
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	line-height: 1.4;
}

.nw-zapisy__privacy-link {
	color: var(--nw-green-dark);
	font-weight: 700;
	text-decoration: underline;
}

.nw-zapisy__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.nw-zapisy__hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.nw-zapisy__submit,
.nw-zapisy__cancel {
	appearance: none;
	border-radius: 4px;
	font: inherit;
	font-weight: 700;
	padding: 0.65rem 1rem;
	cursor: pointer;
}

.nw-zapisy__submit {
	border: none;
	background: var(--nw-green);
	color: #102008;
}

.nw-zapisy__submit:hover:not(:disabled) {
	background: var(--nw-green-dark);
	color: #fff;
}

.nw-zapisy__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.nw-zapisy__cancel {
	border: 1px solid #b9c9a6;
	background: transparent;
	color: var(--nw-muted);
}

.nw-zapisy__form-error {
	margin: 0;
	color: #a12828;
	font-weight: 600;
}

.nw-zapisy__success {
	padding: 1.25rem 1.15rem;
	background: var(--nw-bg);
	border: 1px solid var(--nw-green);
	border-radius: 6px;
}

.nw-zapisy__success h3 {
	margin: 0 0 0.5rem;
}

.nw-zapisy__mail-note {
	color: var(--nw-muted);
	font-size: 0.95rem;
}

.nw-zapisy__closed {
	padding: 1rem 1.1rem;
	background: #f3f3f3;
	border-radius: 6px;
	color: var(--nw-muted);
	font-size: 1.05rem;
}

/* Desktop: event block ~+30% scale (width / spacing / fonts). Mobile: no layout zoom. */
@media (min-width: 768px) {
	.nw-zapisy {
		--nw-title: 1.55rem;
		max-width: calc(42rem * 1.3);
		font-size: calc(1.05rem * 1.3);
	}

	.nw-zapisy__main {
		padding: 0.35rem 0.25rem 0.85rem;
	}

	.nw-zapisy__grid {
		gap: calc(0.55rem * 1.3);
		margin-bottom: calc(1.5rem * 1.3);
		grid-template-columns: repeat(auto-fill, minmax(calc(7.5rem * 1.3), 1fr));
	}

	.nw-zapisy__slot {
		padding: calc(0.65rem * 1.3) calc(0.4rem * 1.3);
	}

	.nw-zapisy__form {
		gap: calc(0.85rem * 1.3);
		padding: calc(1.1rem * 1.3) calc(1.15rem * 1.3);
	}

	.nw-zapisy__meta {
		margin-bottom: calc(0.55rem * 1.3);
	}

	.nw-zapisy__desc {
		margin-bottom: calc(1.25rem * 1.3);
	}
}

@media (max-width: 767px) {
	.nw-zapisy {
		font-size: 1.08rem;
	}

	.nw-zapisy__title {
		font-size: clamp(1.7rem, 7.5vw, 2.4rem);
	}

	.nw-zapisy__meta {
		font-size: clamp(1.85rem, 8.2vw, 2.65rem);
	}

	.nw-zapisy__desc {
		font-size: clamp(0.95rem, 3.8vw, 1.2rem);
	}
}

/* Approved dark booking UI, scoped to the existing public booking page. */
body.nw-zapisy-page{--nw-book-bg:#111510;--nw-book-card:#242b21;--nw-book-line:#4c5d36;--nw-book-text:#f4f6ee;--nw-book-muted:#c1cbb5;background:var(--nw-book-bg);color:var(--nw-book-text);color-scheme:dark}
body.nw-zapisy-page :is(#wrap,#main,#content-wrap,#footer-widgets){background:var(--nw-book-bg)}
body.nw-zapisy-page :is(.page-header,.entry-header,#right-sidebar,#secondary,#footer-bottom){display:none!important}
body.nw-zapisy-page #site-header{background:#fff;color-scheme:light}
body.nw-zapisy-page #content-wrap{width:100%;max-width:1200px;padding:36px 24px 52px!important;margin:auto}
body.nw-zapisy-page :is(#primary,.content-area,.entry-content){float:none!important;width:100%!important;max-width:none!important;border:0!important;padding:0!important}
body.nw-zapisy-page .nw-privacy-footer a{color:#c5e884!important;text-decoration:underline;text-underline-offset:4px}
body.nw-zapisy-page .wp-call-button{display:none!important}
.nw-booking-intro{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;margin-bottom:30px}
.nw-booking-intro>span{color:#a3cb3b;font-size:12px;font-weight:750;letter-spacing:2px}
body.nw-zapisy-page .nw-booking-intro h1{font:800 clamp(28px,4vw,42px)/1.15 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--nw-book-text);margin:12px 0;text-transform:none;letter-spacing:-.8px}
.nw-booking-intro p{color:var(--nw-book-muted);font-size:16px;margin:0}
.nw-booking-intro p .nw-zapisy__course-note{color:#a3cb3b;font-weight:700}
.nw-booking-intro p .nw-zapisy__course-note a{color:#a3cb3b;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.nw-booking-intro p .nw-zapisy__course-note a:hover,.nw-booking-intro p .nw-zapisy__course-note a:focus{color:#b4db51}
body.nw-zapisy-page .nw-zapisy{max-width:none;margin:0;font:400 16px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--nw-book-text);--nw-green:#a3cb3b;--nw-green-dark:#b4db51;--nw-ink:#f4f6ee;--nw-muted:#c1cbb5;--nw-line:#4c5d36;--nw-bg:#242b21}
.nw-zapisy *{box-sizing:border-box}
.nw-zapisy [hidden]{display:none!important}
.nw-zapisy__list{gap:32px}
.nw-zapisy__event,.nw-zapisy__event:last-child{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start;padding:0 0 32px;border:0;border-bottom:1px solid #39452d}
.nw-zapisy__event:last-child{padding-bottom:0;border-bottom:0}
.nw-zapisy__selection,.nw-zapisy__placeholder,.nw-zapisy__form,.nw-zapisy__success{min-width:0;padding:26px;background:linear-gradient(145deg,#242d1f,#1b2217);border:1px solid var(--nw-book-line);border-radius:20px}
.nw-zapisy__header{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--nw-book-line)}
body.nw-zapisy-page .nw-zapisy__title{font:800 clamp(23px,2.5vw,30px)/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--nw-book-text);margin:0 0 12px;overflow-wrap:anywhere;letter-spacing:-.5px}
body.nw-zapisy-page .nw-zapisy__meta{font-size:16px;font-weight:500;line-height:1.65;margin:0;color:#d0e6ae;overflow-wrap:anywhere}
body.nw-zapisy-page .nw-zapisy__desc{font-size:15px;font-weight:400;line-height:1.6;margin:14px 0 0;color:var(--nw-book-muted)}
body.nw-zapisy-page .nw-zapisy__slots-heading,body.nw-zapisy-page .nw-zapisy__form-heading{font:750 21px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;margin:0 0 18px;color:var(--nw-book-text);text-transform:none;letter-spacing:normal}
.nw-zapisy__grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
body.nw-zapisy-page button.nw-zapisy__slot{font:650 15px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:52px;padding:10px 5px;background:#141b10;border:1px solid #819d46;border-radius:10px;color:#f4f6ee;text-transform:none;letter-spacing:normal;box-shadow:none;white-space:nowrap}
body.nw-zapisy-page button.nw-zapisy__slot:hover:not(:disabled){background:#303e22;border-color:#a3cb3b;transform:none}
body.nw-zapisy-page button.nw-zapisy__slot.is-selected{background:#a3cb3b;border-color:#a3cb3b;color:#142009}
body.nw-zapisy-page button.nw-zapisy__slot.is-selected::after{content:'Wybrano ✓';font-size:11px;font-weight:650}
body.nw-zapisy-page button.nw-zapisy__slot:is(.is-busy,:disabled){background:#363b32;border-color:#48503e;color:#bbc1b4;cursor:not-allowed;opacity:1;transform:none}
body.nw-zapisy-page button.nw-zapisy__slot.is-busy::after{content:'Zajęte';font-size:11px;font-weight:400}
.nw-zapisy__legend{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:12px;color:var(--nw-book-muted);margin:0}
.nw-zapisy__legend span{display:flex;align-items:center;gap:8px}
.nw-zapisy__legend span::before{content:'';display:inline-block;width:14px;height:14px;border:1px solid #8bad46;border-radius:4px}
.nw-zapisy__legend .nw-legend-busy::before{background:#41493a;border-color:#536047}
.nw-zapisy__placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:260px;text-align:center;color:var(--nw-book-muted)}
.nw-zapisy__placeholder svg{width:38px;height:38px;color:#a3cb3b;margin-bottom:18px}
.nw-zapisy__placeholder strong{display:block;color:var(--nw-book-text);font-size:21px;margin-bottom:8px}
.nw-zapisy__placeholder p{font-size:15px;max-width:270px;margin:0}
.nw-zapisy__event.has-selection .nw-zapisy__placeholder,.nw-zapisy__event.has-success .nw-zapisy__placeholder,.nw-zapisy__event.has-success .nw-zapisy__slots-heading,.nw-zapisy__event.has-success .nw-zapisy__legend{display:none}
.nw-zapisy__form{gap:18px;scroll-margin-top:18px}
.nw-zapisy__chosen{font-size:15px;font-weight:650;line-height:1.5;background:#2c391f;border:1px solid #607c38;border-radius:10px;color:#dbefba;padding:13px 15px;margin:0}
.nw-zapisy__form-heading{margin:0!important}
.nw-zapisy__form label{gap:7px}
body.nw-zapisy-page .nw-zapisy__form label>span{font-size:14px;font-weight:600;color:var(--nw-book-text)}
body.nw-zapisy-page .nw-zapisy__form input:not([type=checkbox]):not([type=hidden]){min-height:50px;width:100%;max-width:100%;background:#141b10;color:var(--nw-book-text);border:1px solid #677b50;border-radius:10px;padding:12px 13px;font:400 16px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;box-shadow:none}
.nw-zapisy__form input::placeholder{color:#9faa91;opacity:1}
.nw-zapisy__form .nw-zapisy__consent{gap:12px;grid-template-columns:22px minmax(0,1fr);cursor:pointer}
.nw-zapisy__form .nw-zapisy__consent>span{font-size:13px!important;font-weight:400!important;line-height:1.55;color:#d1d9c6}
.nw-zapisy__consent input[type=checkbox]{width:22px;height:22px;margin-top:2px;accent-color:#a3cb3b}
.nw-zapisy__privacy-link{color:#c9e98c!important;text-underline-offset:3px}
.nw-zapisy__actions{display:grid;grid-template-columns:1fr;gap:8px}
body.nw-zapisy-page button:is(.nw-zapisy__submit,.nw-zapisy__cancel){min-height:50px;padding:12px 18px;border-radius:10px;font:750 16px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif;text-transform:none;letter-spacing:normal;box-shadow:none}
body.nw-zapisy-page button.nw-zapisy__submit{background:#a3cb3b;color:#142009;border:0}
body.nw-zapisy-page button.nw-zapisy__submit:hover:not(:disabled){background:#b6dc55;color:#142009}
body.nw-zapisy-page button.nw-zapisy__submit:disabled{background:#708740;color:#15210d;opacity:1;cursor:not-allowed}
body.nw-zapisy-page button.nw-zapisy__cancel{background:transparent;color:#d1d9c6;border:1px solid transparent;font-weight:500}
body.nw-zapisy-page button.nw-zapisy__cancel:hover{border-color:#62754b;background:#2b3621}
.nw-zapisy :is(button,input,a):focus-visible{outline:3px solid #cee998!important;outline-offset:3px}
.nw-zapisy__form-error{color:#ffe0b9;background:#402e20;border:1px solid #8c673e;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.5}
.nw-zapisy__success{grid-column:2;background:#27371b;border-color:#87ae48}
body.nw-zapisy-page .nw-zapisy__success h3{font-size:23px;color:#e4f5cb;margin:0 0 14px}
.nw-zapisy__success-body{font-size:16px;color:var(--nw-book-text);margin-bottom:14px}
.nw-zapisy__mail-note{font-size:14px;color:var(--nw-book-muted)}
.nw-zapisy__closed,.nw-zapisy__status{font-size:16px;line-height:1.6;color:var(--nw-book-muted)}
.nw-zapisy__closed{background:#222b1c;padding:24px;border:1px solid var(--nw-book-line);border-radius:16px}
@media(max-width:900px){.nw-zapisy__event,.nw-zapisy__event:last-child{grid-template-columns:1fr;gap:16px}.nw-zapisy__placeholder{display:none}.nw-zapisy__success{grid-column:auto}.nw-zapisy__selection,.nw-zapisy__form,.nw-zapisy__success{padding:22px}.nw-zapisy__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){body.nw-zapisy-page #content-wrap{padding:24px 16px 36px!important}.nw-booking-intro{margin-bottom:24px}.nw-booking-intro>span{font-size:10px;letter-spacing:1.3px}.nw-booking-intro p{font-size:14px}.nw-zapisy__selection,.nw-zapisy__form,.nw-zapisy__success{padding:20px 16px;border-radius:16px}.nw-zapisy__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nw-zapisy__header{margin-bottom:20px;padding-bottom:18px}body.nw-zapisy-page button.nw-zapisy__slot{min-height:52px;font-size:15px}body.nw-zapisy-page .nw-zapisy__meta{font-size:15px}.nw-zapisy__list{gap:24px}.nw-zapisy__event{padding-bottom:24px}}
@media(prefers-reduced-motion:reduce){.nw-zapisy__slot{transition:none}}

/* Keep iOS text fields readable without disabling manual pinch zoom. */
@media(max-width:900px){body.nw-zapisy-page .nw-zapisy__form input:not([type=checkbox]):not([type=hidden]){font-size:16px!important}}
