/* VF Green Club Popup v2 — czysty, nowoczesny modal zapisu (dropsy). Brand: fiolet #a254a0 + mięta #C1ECD3.
   Zero zaleznosci. Scoped do .vfgc-* zeby nie wyciekac na motyw. Override stylu FluentForms tylko w popupie. */

.vfgc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 10, 24, 0.66);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.22s ease;
	-webkit-overflow-scrolling: touch;
	overflow-y: auto;
}

.vfgc-overlay[hidden] { display: none; }
.vfgc-overlay.vfgc-open { opacity: 1; }

.vfgc-modal {
	position: relative;
	width: 100%;
	max-width: 452px;
	margin: auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(20, 10, 24, 0.42);
	overflow: hidden;
	transform: translateY(16px) scale(0.975);
	transition: transform 0.22s ease;
	box-sizing: border-box;
}

.vfgc-overlay.vfgc-open .vfgc-modal { transform: translateY(0) scale(1); }

/* Pasek nagłówkowy — miętowy akcent Klubu Zielonych przechodzący w fiolet */
.vfgc-modal::before {
	content: "";
	display: block;
	height: 6px;
	background: linear-gradient(90deg, #C1ECD3 0%, #9AE1B8 50%, #a254a0 100%);
}

.vfgc-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	line-height: 32px;
	padding: 0;
	font-size: 24px;
	color: #b3a9b8;
	background: rgba(255, 255, 255, 0.7);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
	z-index: 2;
}

.vfgc-close:hover,
.vfgc-close:focus {
	color: #a254a0;
	background: rgba(162, 84, 160, 0.12);
	outline: none;
}

.vfgc-body {
	padding: 26px 28px 24px;
}

.vfgc-title {
	margin: 0 30px 8px 0;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #241129;
}

.vfgc-subtitle {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #6a6070;
}

/* Lista korzyści (perks) — 3 miętowe ptaszki */
.vfgc-perks {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.vfgc-perks li {
	position: relative;
	padding: 3px 0 3px 28px;
	font-size: 14px;
	line-height: 1.4;
	color: #34283a;
	font-weight: 500;
}

.vfgc-perks li strong {
	font-weight: 800;
	color: #241129;
}

.vfgc-perks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #C1ECD3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23227a4e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* ---- Formularz FluentForms w popupie: reset zielonego tła, czyste pola ---- */
.vfgc-form,
.vfgc-form .frm-fluent-form,
.vfgc-form form,
.vfgc-form .ff-el-group,
.vfgc-form .ff-el-input--content,
.vfgc-form .ff-el-form-check,
.vfgc-form div[class*="ff-"] {
	background: transparent !important;
	box-shadow: none !important;
	border: 0;
}

.vfgc-form .fluentform,
.vfgc-form .frm-fluent-form,
.vfgc-form form {
	margin: 0 !important;
	padding: 0 !important;
}

.vfgc-form .ff-el-group {
	margin: 0 0 12px !important;
}

/* Imię + e-mail na pełną szerokość (FluentForms ustawia inline flex-basis:50%) */
.vfgc-form .ff-column-container {
	display: flex;
	flex-wrap: wrap;
}

.vfgc-form .ff-column-container > .ff-t-cell {
	flex-basis: 100% !important;
	width: 100%;
	max-width: 100%;
}

.vfgc-form .ff-el-input--label label {
	font-size: 13px;
	font-weight: 600;
	color: #34283a;
	margin-bottom: 4px;
}

.vfgc-form input[type="text"],
.vfgc-form input[type="email"],
.vfgc-form input.ff-el-form-control {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 13px 15px !important;
	font-size: 15px !important;
	color: #241129 !important;
	background: #f7f5f8 !important;
	border: 1.5px solid #e6e0ea !important;
	border-radius: 11px !important;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	height: auto !important;
}

.vfgc-form input[type="text"]:focus,
.vfgc-form input[type="email"]:focus,
.vfgc-form input.ff-el-form-control:focus {
	background: #ffffff !important;
	border-color: #a254a0 !important;
	box-shadow: 0 0 0 3px rgba(162, 84, 160, 0.14) !important;
	outline: none !important;
}

.vfgc-form input::placeholder { color: #9b91a2 !important; opacity: 1; }

/* Zgoda RODO — mała, stonowana, przewijalna gdy długa */
.vfgc-form .ff-el-form-check {
	margin: 4px 0 16px !important;
	display: flex !important;
	align-items: flex-start;
	gap: 9px;
}

.vfgc-form .ff-el-form-check-input,
.vfgc-form input[type="checkbox"] {
	margin-top: 2px !important;
	width: 17px !important;
	height: 17px !important;
	min-width: 17px;
	accent-color: #a254a0;
	flex: 0 0 auto;
}

.vfgc-form .ff-el-form-check-label,
.vfgc-form .ff-el-form-check label {
	font-size: 11.5px !important;
	line-height: 1.45 !important;
	color: #8d8494 !important;
	max-height: 150px;
	overflow-y: auto;
	font-weight: 400 !important;
	padding-right: 8px;
}

/* Scrollbar zgody RODO — cienki, zaokrąglony, brandowy fiolet */
.vfgc-form .ff-el-form-check-label::-webkit-scrollbar {
	width: 6px;
}

.vfgc-form .ff-el-form-check-label::-webkit-scrollbar-track {
	background: #f1edf3;
	border-radius: 999px;
}

.vfgc-form .ff-el-form-check-label::-webkit-scrollbar-thumb {
	background: #cfaecd;
	border-radius: 999px;
}

.vfgc-form .ff-el-form-check-label::-webkit-scrollbar-thumb:hover {
	background: #a254a0;
}

/* Firefox (brak ::-webkit-scrollbar) — odpowiednik cienkiego brandowego scrollbara */
@supports not selector(::-webkit-scrollbar) {
	.vfgc-form .ff-el-form-check-label,
	.vfgc-form .ff-el-form-check label {
		scrollbar-width: thin;
		scrollbar-color: #cfaecd #f1edf3;
	}
}

/* Przycisk — pełny fiolet, mocny CTA */
.vfgc-form .ff-btn-submit,
.vfgc-form button[type="submit"] {
	width: 100% !important;
	margin-top: 4px !important;
	padding: 14px 20px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em;
	color: #ffffff !important;
	background: #a254a0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.08s ease;
	box-shadow: 0 8px 20px rgba(162, 84, 160, 0.28) !important;
}

.vfgc-form .ff-btn-submit:hover,
.vfgc-form button[type="submit"]:hover {
	background: #8c4189 !important;
}

.vfgc-form .ff-btn-submit:active,
.vfgc-form button[type="submit"]:active {
	transform: translateY(1px);
}

/* Komunikaty FluentForms */
.vfgc-form .ff-message-success {
	color: #227a4e !important;
	font-weight: 600;
	text-align: center;
	padding: 10px 0;
}

.vfgc-form .error,
.vfgc-form .ff-el-is-error .text-danger {
	font-size: 12px !important;
	color: #c0392b !important;
}

@media (max-width: 480px) {
	.vfgc-body { padding: 22px 20px 20px; }
	.vfgc-title { font-size: 21px; }
	.vfgc-subtitle { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.vfgc-overlay,
	.vfgc-modal { transition: none; }
}
