/* Polca Newsletter form - frontend
   Brand: red #DC2626 CTA (matching polishonline.ie urgency box).
*/

.polca-newsletter-form {
	box-sizing: border-box;
	max-width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: inherit;
}

.polca-newsletter-form *,
.polca-newsletter-form *::before,
.polca-newsletter-form *::after {
	box-sizing: border-box;
}

.polca-form-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

.polca-form-subtitle {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: inherit;
	opacity: 1;
}

.polca-form-benefits {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	color: inherit;
}

.polca-form-benefits li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 26px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: inherit;
}

.polca-form-benefits li::before {
	content: "\2022";
	position: absolute;
	left: 4px;
	top: -2px;
	color: #FDAB00;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.polca-form-benefits strong {
	font-weight: 700;
	color: inherit;
}

.polca-form-tagline {
	margin: 14px 0 18px;
	padding: 12px 14px;
	border-left: 3px solid #FDAB00;
	background: rgba(253, 171, 0, 0.08);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: inherit;
	opacity: 1;
	font-style: normal;
}

.polca-form-tagline strong {
	color: #FDAB00;
	font-weight: 700;
}

.polca-form-credit {
	margin: 12px 0 6px;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.55;
	color: inherit;
	opacity: 0.92;
	font-style: normal;
	text-align: center !important;
}

.polca-form-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.polca-form-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.polca-form-label {
	font-size: 13px;
	font-weight: 500;
	color: inherit;
	opacity: 0.85;
}

.polca-form-optional {
	font-weight: 400;
	opacity: 0.7;
}

.polca-form-required {
	color: #DC2626;
	font-weight: 700;
}

.polca-newsletter-form input[type="text"],
.polca-newsletter-form input[type="email"] {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	line-height: 1.4;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	background: #ffffff;
	color: #1a1a1a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.polca-newsletter-form input[type="text"]:focus,
.polca-newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: #DC2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.polca-newsletter-form input[type="text"][aria-invalid="true"],
.polca-newsletter-form input[type="email"][aria-invalid="true"] {
	border-color: #DC2626;
	background: #fef2f2;
}

.polca-form-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}

.polca-form-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
	color: inherit;
	opacity: 0.92;
}

.polca-form-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	cursor: pointer;
}

.polca-form-consent span {
	flex: 1;
}

.polca-form-consent a {
	color: inherit;
	text-decoration: underline;
}

.polca-form-submit {
	display: inline-block;
	width: 100%;
	padding: 13px 24px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #2c3e50;
	background: #FDAB00;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 6px rgba(253, 171, 0, 0.30);
	font-family: inherit;
	letter-spacing: 0.01em;
}

.polca-form-submit:hover:not(:disabled) {
	background: #E09700;
	box-shadow: 0 3px 10px rgba(253, 171, 0, 0.40);
}

.polca-form-submit:active:not(:disabled) {
	transform: translateY(1px);
}

.polca-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.polca-form-message {
	min-height: 1.4em;
	font-size: 14px;
	line-height: 1.5;
}

.polca-form-message.error {
	color: #B91C1C;
	font-weight: 500;
}

.polca-form-message.success {
	color: #15803D;
	font-weight: 500;
}

.polca-form-help {
	margin: -2px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: inherit;
	opacity: 0.92;
	font-weight: 400;
	text-align: center;
}

.polca-form-success {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: rgba(22, 163, 74, 0.08);
	border: 1px solid rgba(22, 163, 74, 0.25);
	border-radius: 8px;
	color: inherit;
	text-align: center;
}

.polca-form-success-icon {
	font-size: 36px;
	line-height: 1;
}

.polca-form-success h4 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #15803D;
}

.polca-form-success p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

/* Footer variant - tighter spacing, smaller text, dark-bg friendly.
   Footer template ma dark background, więc explicit jasny tekst (color:inherit
   dziedziczyłby ciemny tekst z theme defaults). */

.polca-newsletter-form--footer,
.polca-newsletter-form--footer .polca-form-title,
.polca-newsletter-form--footer .polca-form-subtitle,
.polca-newsletter-form--footer .polca-form-benefits,
.polca-newsletter-form--footer .polca-form-tagline,
.polca-newsletter-form--footer .polca-form-credit,
.polca-newsletter-form--footer .polca-form-label,
.polca-newsletter-form--footer .polca-form-optional,
.polca-newsletter-form--footer .polca-form-consent,
.polca-newsletter-form--footer .polca-form-help,
.polca-newsletter-form--footer .polca-form-success,
.polca-newsletter-form--footer .polca-form-success p {
	color: rgba(255, 255, 255, 0.92);
}

.polca-newsletter-form--footer .polca-form-title {
	color: #ffffff;
	font-size: 18px;
	margin-bottom: 6px;
	font-weight: 700;
}

.polca-newsletter-form--footer .polca-form-subtitle {
	font-size: 14.5px;
	font-weight: 500;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, 0.95);
}

.polca-newsletter-form--footer .polca-form-benefits {
	margin: 0 0 14px;
	padding: 0;
}

.polca-newsletter-form--footer .polca-form-benefits li {
	font-size: 14.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	padding-left: 26px;
}

.polca-newsletter-form--footer .polca-form-benefits strong {
	color: #ffffff;
}

.polca-newsletter-form--footer .polca-form-tagline {
	font-size: 13.5px;
	font-weight: 500;
	margin: 12px 0 16px;
	color: rgba(255, 255, 255, 0.95);
	background: rgba(253, 171, 0, 0.10);
	border-left-color: #FDAB00;
}

.polca-newsletter-form--footer .polca-form-credit,
.polca-newsletter-form--footer .polca-form-help {
	font-size: 13.5px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: rgba(255, 255, 255, 0.88) !important;
	text-align: center !important;
	font-style: normal !important;
	margin-top: 10px;
}

.polca-newsletter-form--footer .polca-form-label {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

.polca-newsletter-form--footer .polca-form-optional {
	color: rgba(255, 255, 255, 0.55);
}

.polca-newsletter-form--footer .polca-form-help {
	color: rgba(255, 255, 255, 0.88);
	font-size: 13.5px;
	margin-top: -4px;
	line-height: 1.55;
	font-weight: 400;
}

.polca-newsletter-form--footer .polca-form-consent {
	color: rgba(255, 255, 255, 0.85);
}

.polca-newsletter-form--footer .polca-form-consent a {
	color: #ffffff;
	text-decoration: underline;
}

/* 50/50 grid layout: name + email side-by-side, reszta full width */
.polca-newsletter-form--footer .polca-form-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
}

.polca-newsletter-form--footer .polca-form-field {
	min-width: 0;
}

.polca-newsletter-form--footer .polca-form-honeypot,
.polca-newsletter-form--footer .polca-form-consent,
.polca-newsletter-form--footer .polca-form-submit,
.polca-newsletter-form--footer .polca-form-message,
.polca-newsletter-form--footer .polca-form-credit,
.polca-newsletter-form--footer .polca-form-help {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.polca-newsletter-form--footer .polca-form-fields {
		grid-template-columns: 1fr;
	}
}

.polca-newsletter-form--footer input[type="text"],
.polca-newsletter-form--footer input[type="email"] {
	padding: 10px 12px;
	font-size: 14px;
	border-color: rgba(255, 255, 255, 0.25);
	background: #ffffff;
	color: #1a1a1a;
}

.polca-newsletter-form--footer input[type="text"]:focus,
.polca-newsletter-form--footer input[type="email"]:focus {
	border-color: #DC2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}

/* Submit button: forsujemy brand orange (#FDAB00) tło + navy (#2c3e50) tekst w footer variant - inaczej theme/Elementor styles biorą górę */
.polca-newsletter-form--footer .polca-form-submit,
.polca-newsletter-form .polca-form-submit {
	padding: 13px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50 !important;
	background: #FDAB00 !important;
	background-color: #FDAB00 !important;
	border: none !important;
	border-radius: 6px !important;
	box-shadow: 0 2px 6px rgba(253, 171, 0, 0.30);
	cursor: pointer;
}

.polca-newsletter-form--footer .polca-form-submit {
	padding: 12px 20px;
	font-size: 14px;
}

.polca-newsletter-form--footer .polca-form-submit:hover:not(:disabled),
.polca-newsletter-form .polca-form-submit:hover:not(:disabled) {
	background: #E09700 !important;
	background-color: #E09700 !important;
}

/* iOS Safari auto-zoom prevention: inputs need font-size >= 16px on focus,
   otherwise the browser zooms the viewport. Mobile/tablet only - desktop keeps
   the smaller design. Applies to all input types + textarea + select. */
@media (max-width: 767px) {
	.polca-newsletter-form input[type="text"],
	.polca-newsletter-form input[type="email"],
	.polca-newsletter-form input[type="number"],
	.polca-newsletter-form input[type="tel"],
	.polca-newsletter-form input[type="search"],
	.polca-newsletter-form input[type="url"],
	.polca-newsletter-form input[type="password"],
	.polca-newsletter-form textarea,
	.polca-newsletter-form select,
	.polca-newsletter-form--footer input[type="text"],
	.polca-newsletter-form--footer input[type="email"] {
		font-size: 16px;
	}
}
