/* === Popup "Oddzwonimy w 15 minut" ===================================
   Kolory i typografia zgodne z motywem:
   zielony #55B098, grafit #25272B, szary #969696, miedziany #D48F5C,
   ramki #CECECE, tło #F3F3F3, font Poppins, cień 0 10px 60px #00000029.
   ==================================================================== */

.nop-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(37, 39, 43, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.nop-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
html.nop-lock {
	overflow: hidden;
}

.nop-modal {
	font-family: 'Poppins', sans-serif;
	background: #fff;
	box-shadow: 0px 10px 60px #00000029;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	transform: translate3d(0, 24px, 0);
	transition: transform 0.3s ease-in-out;
}
.nop-overlay.is-open .nop-modal {
	transform: translate3d(0, 0, 0);
}

/* --- pasek nagłówka --- */
.nop-head {
	background: #55B098;
	color: #fff;
	padding: 1.75rem 3.25rem 1.75rem 2.25rem;
}
.nop-head h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	margin: 0;
}
.nop-head p {
	margin: 0.5rem 0 0 0;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.5;
	color: #fff;
}

/* --- przycisk zamknięcia --- */
.nop-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(37, 39, 43, 0.18);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.3s ease-in-out;
}
.nop-close:hover,
.nop-close:focus-visible {
	background: #25272B;
}

/* --- treść / formularz --- */
.nop-body {
	padding: 2rem 2.25rem 2.25rem 2.25rem;
}
.nop-body .nop-lead {
	margin: 0 0 1.25rem 0;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
	color: #25272B;
}
.nop-body .nop-lead strong {
	font-weight: 700;
}

/* Pola CF7 wewnątrz popupu */
.nop-body .wpcf7 form > p,
.nop-body .wpcf7-form > p {
	margin: 0 0 0.875rem 0;
}
.nop-body label {
	display: block;
	font-size: 0.875rem;
	font-weight: 400;
	color: #25272B;
	margin-bottom: 0.375rem;
}
.nop-body input[type="text"],
.nop-body input[type="tel"],
.nop-body input[type="email"],
.nop-body select,
.nop-body textarea {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px solid #CECECE;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 1rem;
	font-weight: 300;
	color: #25272B;
	transition: border-color 0.3s ease-in-out;
}
.nop-body input[type="text"]:focus,
.nop-body input[type="tel"]:focus,
.nop-body input[type="email"]:focus,
.nop-body select:focus,
.nop-body textarea:focus {
	border-color: #55B098;
	outline: 0;
	box-shadow: none;
}
.nop-body textarea {
	min-height: 90px;
	resize: vertical;
}
.nop-body select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2325272B' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

/* Zgoda RODO */
.nop-body .nop-consent,
.nop-body .nop-consent .wpcf7-list-item-label {
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.5;
	color: #969696;
}
.nop-body .wpcf7-list-item {
	margin: 0;
}
.nop-body .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
}
.nop-body input[type="checkbox"] {
	margin: 3px 0 0 0;
	flex: 0 0 auto;
}

/* Przycisk wyślij */
.nop-body input[type="submit"],
.nop-body .wpcf7-submit {
	width: 100%;
	margin: 0.5rem 0 0 0;
	padding: 1rem 1.5rem;
	border: 0;
	border-radius: 0;
	background: #25272B;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.3s ease-in-out;
}
.nop-body input[type="submit"]:hover,
.nop-body .wpcf7-submit:hover {
	background: #55B098;
}

/* Komunikaty CF7 */
.nop-body .wpcf7-not-valid-tip {
	color: #D48F5C;
	font-size: 0.75rem;
	margin-top: 0.25rem;
}
.nop-body .wpcf7-response-output {
	margin: 1rem 0 0 0 !important;
	padding: 0.75rem 1rem !important;
	border-width: 1px !important;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.5;
}
.nop-body .wpcf7 form.sent .wpcf7-response-output {
	border-color: #55B098 !important;
	color: #25272B;
}
.nop-body .wpcf7 form.invalid .wpcf7-response-output,
.nop-body .wpcf7 form.failed .wpcf7-response-output {
	border-color: #D48F5C !important;
	color: #25272B;
}
.nop-body .wpcf7-spinner {
	display: block;
	margin: 0.75rem auto 0 auto;
}

/* Stopka z telefonem */
.nop-foot {
	border-top: 1px solid #CECECE;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 300;
	color: #969696;
}
.nop-foot a {
	color: #55B098;
	font-weight: 700;
}

/* === Mini-zakładka w rogu (po zamknięciu) ========================== */
.nop-tab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	display: none;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1.25rem;
	border: 0;
	border-radius: 50px;
	background: #55B098;
	box-shadow: 0px 10px 30px #00000040;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	opacity: 0;
	transform: translate3d(0, 16px, 0);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background 0.3s ease-in-out;
}
.nop-tab.is-visible {
	display: flex;
	opacity: 1;
	transform: translate3d(0, 0, 0);
}
.nop-tab:hover {
	background: #25272B;
}
.nop-tab svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	flex: 0 0 auto;
}
.nop-tab span small {
	display: block;
	font-size: 0.75rem;
	font-weight: 300;
	opacity: 0.9;
}
/* pulsujący sygnalizator */
.nop-tab::after {
	content: "";
	position: absolute;
	top: -3px;
	right: -3px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #D48F5C;
	animation: nop-pulse 2s ease-in-out infinite;
}
@keyframes nop-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.35); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
	.nop-tab::after { animation: none; }
	.nop-overlay, .nop-modal, .nop-tab { transition: none; }
}

/* === Mobile ======================================================== */
@media screen and (max-width: 640px) {
	.nop-overlay {
		padding: 0.75rem;
		align-items: flex-end;
	}
	.nop-modal {
		max-height: 92vh;
	}
	.nop-head {
		padding: 1.25rem 3rem 1.25rem 1.25rem;
	}
	.nop-head h3 {
		font-size: 1.25rem;
	}
	.nop-body {
		padding: 1.25rem;
	}
	.nop-tab {
		right: 16px;
		bottom: 16px;
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}
	.nop-tab span small {
		display: none;
	}
}
