/* Formularz „Kup dla zespołu" - okno i przyciski. Samodzielny arkusz: ma działać
   tak samo w widgecie, w Moim koncie i na stronie docelowej (shortcode). */
.sw-zi-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 10px;
	background: #1b6e2f;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s ease, transform .15s ease;
}
.sw-zi-btn:hover { filter: brightness(1.1); color: #fff; }
.sw-zi-btn:focus-visible { outline: 3px solid #319e4e; outline-offset: 2px; }
.sw-zi-btn[disabled] { opacity: .7; cursor: wait; }
.sw-zi-btn--duzy { padding: 14px 28px; font-size: 16px; border-radius: 12px; box-shadow: 0 6px 18px rgba(27, 110, 47, .3); }
.sw-zi-btn--duzy:hover { transform: translateY(-1px); }

.sw-zi-alt { margin: 10px 0 0; font-size: 12.5px; color: #6b7a86; }
.sw-zi-alt code { font-size: 12.5px; color: #16324a; }

html.sw-zi-otwarte { overflow: hidden; }

.sw-zi-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 20, 15, .62);
	backdrop-filter: blur(2px);
}
.sw-zi-overlay[hidden] { display: none; }
.sw-zi-okno {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 26px 26px 22px;
	border-radius: 18px;
	background: #fff;
	color: #16324a;
	text-align: left;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
	animation: sw-zi-wejscie .22s ease;
}
@keyframes sw-zi-wejscie { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sw-zi-okno h2 { margin: 0 32px 8px 0; font-size: 21px; font-weight: 800; color: #16324a; line-height: 1.25; }
.sw-zi-wstep { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #5a6b78; }
.sw-zi-zamknij {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #6b7a86;
	cursor: pointer;
	padding: 0 6px;
}
.sw-zi-zamknij:hover { color: #16324a; }

.sw-zi-siatka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.sw-zi-pole { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: #3c4f5e; }
.sw-zi-pole--pelne { grid-column: 1 / -1; }
.sw-zi-pole input,
.sw-zi-pole select,
.sw-zi-pole textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #c9d5dd;
	border-radius: 10px;
	background: #fff;
	color: #16324a;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
}
.sw-zi-pole textarea { resize: vertical; min-height: 70px; }
.sw-zi-pole input:focus,
.sw-zi-pole select:focus,
.sw-zi-pole textarea:focus { outline: 2px solid #319e4e; outline-offset: 1px; border-color: #319e4e; }

.sw-zi-zgoda { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: #5a6b78; }
.sw-zi-zgoda input { margin-top: 3px; flex: none; }
.sw-zi-blad { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a3201e; font-size: 13.5px; font-weight: 600; }
.sw-zi-blad[hidden] { display: none; }
.sw-zi-wyslij { width: 100%; margin-top: 16px; padding: 13px 20px; font-size: 15px; }

.sw-zi-pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sw-zi-widok-sukces { text-align: center; padding: 10px 0 4px; }
.sw-zi-widok-sukces[hidden],
.sw-zi-widok-formularz[hidden] { display: none; }
.sw-zi-sukces-ikona {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #e6f4ea;
	color: #1b6e2f;
	font-size: 34px;
	font-weight: 800;
}
.sw-zi-widok-sukces h2 { margin: 0 0 8px; }
.sw-zi-widok-sukces p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: #5a6b78; }

@media (max-width: 520px) {
	.sw-zi-okno { padding: 22px 18px 18px; }
	.sw-zi-siatka { grid-template-columns: 1fr; }
}
