/* Wireland Forms - front-end styles.
   Colours are driven by CSS variables (overridable in plugin settings). */
:root {
	--wf-accent: #f7c600;
	--wf-accent-text: #1a1a1a;
	--wf-dark: #263247;
	--wf-field-bg: #f2f2f4;
	--wf-field-border: #e3e3e8;
	--wf-text: #2b2f45;
	--wf-muted: #8a8f9c;
	--wf-radius: 14px;
}

.wf-wrap {
	box-sizing: border-box;
}
.wf-wrap *,
.wf-wrap *::before,
.wf-wrap *::after {
	box-sizing: border-box;
}

/* Full dark section (matches the current site band). */
.wf-layout-section {
	background: var(--wf-dark);
	border-radius: 22px;
	padding: 48px;
}
.wf-layout-section .wf-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
}
.wf-layout-card .wf-inner {
	display: block;
}

/* Left intro column. */
.wf-intro {
	color: #fff;
	padding-top: 8px;
}
.wf-eyebrow {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	margin-bottom: 18px;
	color: #fff;
}
.wf-heading {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 22px;
	color: #fff;
}
.wf-subheading {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
	margin: 0;
}

/* White card. */
.wf-card {
	background: #fff;
	border-radius: var(--wf-radius);
	padding: 34px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.wf-layout-card .wf-card {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.wf-field {
	margin-bottom: 16px;
}

/* Field labels. */
.wf-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wf-text);
	margin: 0 0 6px 2px;
	line-height: 1.3;
}
.wf-req {
	color: #c62828;
}
.wf-form input[type="text"],
.wf-form input[type="email"],
.wf-form input[type="tel"],
.wf-form textarea {
	width: 100%;
	border: 1px solid var(--wf-field-border);
	background: var(--wf-field-bg);
	border-radius: 10px;
	padding: 15px 18px;
	font-size: 15px;
	color: var(--wf-text);
	font-family: inherit;
	outline: none;
	transition: border-color .15s ease, background .15s ease;
}
.wf-form input::placeholder,
.wf-form textarea::placeholder {
	color: var(--wf-muted);
}
.wf-form input:focus,
.wf-form textarea:focus {
	border-color: var(--wf-accent);
	background: #fff;
}
.wf-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* intl-tel-input width fix inside the flex field. */
.wf-field-phone .iti {
	width: 100%;
	display: block;
}

/* Consent row. */
.wf-consent {
	margin: 8px 0 20px;
	font-size: 13px;
	line-height: 1.5;
	color: #5c6270;
}
/* Force small, consistent size on the consent text + link (beats theme styles). */
.wf-consent,
.wf-consent label,
.wf-consent span,
.wf-consent a {
	font-size: 13px !important;
	line-height: 1.5 !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
}
.wf-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}
.wf-consent input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--wf-accent);
}
.wf-consent a {
	color: #b8860b;
	text-decoration: underline;
}

/* Submit. */
.wf-submit {
	width: 100%;
	border: 0;
	border-radius: 12px;
	background: var(--wf-accent);
	color: var(--wf-accent-text);
	font-size: 16px;
	font-weight: 700;
	padding: 16px 20px;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
}
.wf-submit:hover {
	filter: brightness(.94);
}
.wf-submit:active {
	transform: translateY(1px);
}
.wf-submit[disabled] {
	opacity: .7;
	cursor: default;
}

/* Feedback message. */
.wf-message {
	margin-top: 14px;
	font-size: 14px;
	display: none;
}
.wf-message.is-visible {
	display: block;
}
.wf-message.is-success {
	color: #1a7f37;
}
.wf-message.is-error {
	color: #c62828;
}

/* Honeypot - visually hidden but not display:none (some bots skip hidden). */
.wf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Floating corner form (launcher + popup)                            */
/* ------------------------------------------------------------------ */
.wf-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 999999;
}
.wf-float-btn {
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: var(--wf-accent);
	color: var(--wf-accent-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	transition: transform .12s ease, filter .12s ease;
}
.wf-float-btn:hover {
	filter: brightness(.95);
	transform: translateY(-2px);
}

/* Speech bubble next to the launcher. */
.wf-float-bubble {
	position: absolute;
	right: 74px;
	bottom: 10px;
	max-width: 220px;
	background: var(--wf-bubble, #1faa54);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	padding: 11px 30px 11px 15px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	white-space: nowrap;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.wf-float-bubble[hidden] {
	display: none;
}
.wf-float-bubble.wf-bubble-show {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}
/* Little tail pointing to the button. */
.wf-float-bubble::after {
	content: "";
	position: absolute;
	right: -7px;
	bottom: 14px;
	border-width: 7px 0 7px 8px;
	border-style: solid;
	border-color: transparent transparent transparent var(--wf-bubble, #1faa54);
}
.wf-bubble-text {
	cursor: pointer;
}
.wf-bubble-x {
	position: absolute;
	top: 4px;
	right: 6px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .85);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 2px;
}
.wf-bubble-x:hover {
	color: #fff;
}

/* "Ask about this product" button. */
.wf-ask-btn {
	display: inline-block;
	border: 0;
	border-radius: 10px;
	background: var(--wf-accent);
	color: var(--wf-accent-text);
	font-size: 15px;
	font-weight: 700;
	padding: 12px 22px;
	cursor: pointer;
	transition: filter .15s ease;
}
.wf-ask-btn:hover {
	filter: brightness(.94);
}

.wf-float-modal {
	position: fixed;
	inset: 0;
	z-index: 999998;
}
.wf-float-modal[hidden] {
	display: none;
}
.wf-float-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .18s ease;
}
.wf-float.wf-open .wf-float-overlay {
	opacity: 1;
}
.wf-float-panel {
	position: absolute;
	right: 22px;
	bottom: 22px;
	width: 400px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 44px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
	transform: translateY(16px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}
.wf-float.wf-open .wf-float-panel {
	transform: translateY(0);
	opacity: 1;
}
.wf-float-head {
	background: var(--wf-dark);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	padding: 18px 46px 18px 22px;
	border-radius: 16px 16px 0 0;
}
.wf-float-x {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
}
.wf-float-x:hover {
	background: rgba(255, 255, 255, .15);
}
/* Inside the popup the form card is flush with the panel. */
.wf-float-panel .wf-card {
	box-shadow: none;
	border-radius: 0 0 16px 16px;
	padding: 16px 18px 18px;
}
.wf-float-panel .wf-wrap {
	margin: 0;
}

/* Compact everything inside the popup so the whole form (incl. Wyślij)
   fits in the viewport without scrolling. */
.wf-float-head {
	padding: 13px 44px 13px 18px;
	font-size: 16px;
}
.wf-float-panel .wf-field {
	margin-bottom: 9px;
}
.wf-float-panel .wf-label {
	font-size: 12px;
	margin-bottom: 3px;
}
.wf-float-panel .wf-form input[type="text"],
.wf-float-panel .wf-form input[type="email"],
.wf-float-panel .wf-form input[type="tel"],
.wf-float-panel .wf-form textarea {
	padding: 9px 12px;
	font-size: 14px;
	border-radius: 8px;
}
.wf-float-panel .wf-form textarea {
	min-height: 58px;
}
.wf-float-panel .wf-consent {
	margin: 4px 0 12px;
}
.wf-float-panel .wf-submit {
	padding: 12px 18px;
	font-size: 15px;
	border-radius: 10px;
}
.wf-float-panel .wf-message {
	margin-top: 8px;
}

@media (max-width: 480px) {
	.wf-float-panel {
		right: 0;
		left: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: 96vh;
		max-height: 96dvh;
		border-radius: 16px 16px 0 0;
	}
	.wf-float-head {
		border-radius: 16px 16px 0 0;
	}
	.wf-float-panel .wf-card {
		border-radius: 0;
	}
	/* Extra tightening for small phones. */
	.wf-float-panel .wf-field {
		margin-bottom: 7px;
	}
	.wf-float-panel .wf-form textarea {
		min-height: 48px;
	}
	.wf-float-panel .wf-consent {
		margin: 3px 0 9px;
		font-size: 12px !important;
	}
}

/* Responsive. */
@media (max-width: 900px) {
	.wf-layout-section {
		padding: 30px 20px;
	}
	.wf-layout-section .wf-inner {
		grid-template-columns: 1fr;
		gap: 26px;
	}
	.wf-heading {
		font-size: 26px;
	}
	.wf-card {
		padding: 24px;
	}
}
