/*! QualDrop Upload 2.2.0 */
.qdu {
	--qdu-accent: #0f8b8d;
	--qdu-accent-soft: rgba(15, 139, 141, 0.08);
	--qdu-text: #14232b;
	--qdu-muted: #5d6f78;
	--qdu-line: #d6e1e5;
	--qdu-bg: #ffffff;
	--qdu-field: #f6f9fa;
	--qdu-error: #c62f3c;
	--qdu-ok: #1a8a4a;
	--qdu-btn-text: #ffffff;
	--qdu-accent-hover: rgba(15, 139, 141, 0.14);
	--qdu-error-soft: rgba(198, 47, 60, 0.07);
	--qdu-radius: 14px;
	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto 2em;
	padding: clamp(18px, 4vw, 32px);
	color: var(--qdu-text);
	background: var(--qdu-bg);
	border: 1px solid var(--qdu-line);
	border-radius: calc(var(--qdu-radius) + 6px);
	box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.25);
	font-size: 16px;
	line-height: 1.5;
}
.qdu *,
.qdu *::before,
.qdu *::after {
	box-sizing: inherit;
}
.qdu [hidden] {
	display: none !important;
}

.qdu-title {
	margin: 0 0 4px;
	font-size: clamp(1.3rem, 2.6vw, 1.6rem);
	line-height: 1.25;
	color: inherit;
}
.qdu-subtitle {
	margin: 0 0 18px;
	color: var(--qdu-muted);
}
.qdu-title + .qdu-drop {
	margin-top: 16px;
}

/* Strefa upuszczania */
.qdu-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 34px 20px;
	text-align: center;
	background: var(--qdu-accent-soft);
	border: 2px dashed var(--qdu-accent);
	border-radius: var(--qdu-radius);
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
	outline: none;
}
.qdu-drop:hover,
.qdu-drop.is-over {
	background: var(--qdu-accent-hover);
	border-style: solid;
}
.qdu-drop.is-over {
	transform: scale(1.01);
}
.qdu-drop:focus-visible {
	box-shadow: 0 0 0 3px var(--qdu-bg), 0 0 0 5px var(--qdu-accent);
}
.qdu-drop-icon {
	width: 46px;
	height: 46px;
	color: var(--qdu-accent);
	margin-bottom: 6px;
	transition: transform 0.25s;
}
.qdu-drop:hover .qdu-drop-icon,
.qdu-drop.is-over .qdu-drop-icon {
	transform: translateY(-3px);
}
.qdu-drop-title {
	font-weight: 600;
	font-size: 1.05rem;
}
.qdu-drop-or {
	color: var(--qdu-muted);
}
.qdu-drop-link {
	color: var(--qdu-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.qdu-drop-hint {
	margin-top: 6px;
	font-size: 0.82rem;
	color: var(--qdu-muted);
}
.qdu.has-files .qdu-drop {
	padding: 20px;
}
.qdu.has-files .qdu-drop-icon {
	width: 32px;
	height: 32px;
}
.qdu-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

/* Lista plików */
.qdu-files {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.qdu-files:empty {
	display: none;
}
.qdu-file {
	display: grid;
	grid-template-columns: 56px 1fr auto auto;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px;
	background: var(--qdu-field);
	border: 1px solid var(--qdu-line);
	border-radius: 12px;
	animation: qdu-in 0.25s ease-out;
}
@keyframes qdu-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}
.qdu-thumb {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 9px;
	overflow: hidden;
	background: var(--qdu-line);
}
.qdu-thumb img,
.qdu-thumb video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.qdu-thumb.no-preview::after,
.qdu-thumb[data-kind='video']::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	background: var(--qdu-muted);
	-webkit-mask: var(--qdu-icon) center / 24px no-repeat;
	mask: var(--qdu-icon) center / 24px no-repeat;
}
.qdu-thumb[data-kind='image'] {
	--qdu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v14H4z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m4 17 5-5 4 4 3-3 4 4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
.qdu-thumb[data-kind='video'] {
	--qdu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}
.qdu-thumb[data-kind='video']::before {
	z-index: 1;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	-webkit-mask: none;
	mask: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.qdu-thumb[data-kind='video']::after {
	content: '';
	position: absolute;
	z-index: 2;
	inset: 0;
	margin: auto;
	width: 12px;
	height: 12px;
	background: #14232b; /* trójkąt zawsze ciemny — leży na białym kółku */
	-webkit-mask: var(--qdu-icon) center / contain no-repeat;
	mask: var(--qdu-icon) center / contain no-repeat;
	transform: translateX(1px);
}
.qdu-info {
	min-width: 0;
}
.qdu-name {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.qdu-meta {
	display: flex;
	gap: 10px;
	font-size: 0.8rem;
	color: var(--qdu-muted);
}
.qdu-size {
	flex: none;
	white-space: nowrap;
}
.qdu-state {
	font-variant-numeric: tabular-nums;
}
.qdu-bar {
	height: 5px;
	margin-top: 6px;
	border-radius: 99px;
	background: var(--qdu-line);
	overflow: hidden;
}
.qdu-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--qdu-accent);
	border-radius: inherit;
	transition: width 0.25s ease;
}
.qdu-file.is-verifying .qdu-bar span {
	background: linear-gradient(90deg, var(--qdu-accent) 0 40%, var(--qdu-accent-hover) 50%, var(--qdu-accent) 60% 100%);
	background-size: 200% 100%;
	animation: qdu-shimmer 1.1s linear infinite;
}
@keyframes qdu-shimmer {
	to {
		background-position: -200% 0;
	}
}
.qdu-file.is-done .qdu-bar span {
	background: var(--qdu-ok);
}
.qdu-file.is-done .qdu-state {
	color: var(--qdu-ok);
	font-weight: 600;
}
.qdu-file.is-done .qdu-state::before {
	content: '✓ ';
}
.qdu-file.is-error {
	border-color: var(--qdu-error);
	background: var(--qdu-error-soft);
}
.qdu-file.is-error .qdu-state {
	color: var(--qdu-error);
	white-space: normal;
}
.qdu-file.is-error .qdu-bar {
	display: none;
}
.qdu-remove,
.qdu-retry {
	appearance: none;
	border: 0;
	margin: 0;
	cursor: pointer;
	font: inherit;
}
.qdu-remove {
	width: 34px;
	height: 34px;
	padding: 7px;
	color: var(--qdu-muted);
	background: transparent;
	border-radius: 50%;
	transition: background-color 0.15s, color 0.15s;
}
.qdu-remove:hover,
.qdu-remove:focus-visible {
	background: var(--qdu-error-soft);
	color: var(--qdu-error);
}
.qdu-remove svg {
	display: block;
	width: 100%;
	height: 100%;
}
.qdu-retry {
	padding: 6px 12px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--qdu-accent);
	background: var(--qdu-accent-soft);
	border-radius: 99px;
}
.qdu-retry[hidden] {
	display: none;
}

/* Pola */
.qdu-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
	margin-top: 20px;
}
.qdu-field {
	margin-bottom: 14px;
}
.qdu-grid .qdu-field {
	margin-bottom: 0;
}
.qdu-grid + .qdu-field {
	margin-top: 14px;
}
.qdu-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}
.qdu-optional {
	font-weight: 400;
	color: var(--qdu-muted);
}
.qdu-field input,
.qdu-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	font: inherit;
	color: var(--qdu-text);
	background: var(--qdu-field);
	border: 1px solid var(--qdu-line);
	border-radius: 10px;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.qdu-field textarea {
	resize: vertical;
	min-height: 100px;
}
.qdu-field input:focus,
.qdu-field textarea:focus {
	outline: none;
	background: var(--qdu-bg);
	border-color: var(--qdu-accent);
	box-shadow: 0 0 0 3px var(--qdu-accent-soft);
}
.qdu [aria-invalid='true'] {
	border-color: var(--qdu-error) !important;
}
.qdu-field-error {
	margin: 4px 0 0;
	min-height: 0;
	font-size: 0.82rem;
	color: var(--qdu-error);
}
.qdu-field-error:empty {
	display: none;
}

/* Zgoda */
.qdu-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 6px;
	padding: 14px;
	background: var(--qdu-field);
	border: 1px solid var(--qdu-line);
	border-radius: 12px;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--qdu-muted);
}
.qdu-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--qdu-accent);
	cursor: pointer;
}
.qdu-consent label {
	cursor: pointer;
}
.qdu-consent a {
	color: var(--qdu-accent);
	font-weight: 600;
}

/* Honeypot */
.qdu-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Wysyłka */
.qdu-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
}
.qdu-submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 28px;
	font: inherit;
	font-weight: 700;
	color: var(--qdu-btn-text);
	background: var(--qdu-accent);
	border: 0;
	border-radius: 99px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
	box-shadow: 0 8px 20px -10px var(--qdu-accent);
}
.qdu-submit:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}
.qdu-submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--qdu-bg), 0 0 0 5px var(--qdu-accent);
}
.qdu-submit:disabled {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}
.qdu.is-sending .qdu-submit::before {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: qdu-spin 0.8s linear infinite;
}
@keyframes qdu-spin {
	to {
		transform: rotate(360deg);
	}
}
.qdu-status {
	margin: 0;
	font-size: 0.9rem;
	color: var(--qdu-muted);
}
.qdu-status.is-error {
	color: var(--qdu-error);
	font-weight: 600;
}

/* Sukces */
.qdu-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 30px 10px;
	text-align: center;
	outline: none;
	animation: qdu-in 0.35s ease-out;
}
.qdu-success svg {
	width: 64px;
	height: 64px;
	color: var(--qdu-ok);
}
.qdu-success-text {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}
.qdu-again {
	appearance: none;
	margin-top: 8px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 600;
	color: var(--qdu-accent);
	background: var(--qdu-accent-soft);
	border: 0;
	border-radius: 99px;
	cursor: pointer;
}
.qdu-noscript {
	margin: 12px 0 0;
	color: var(--qdu-error);
}

@media (max-width: 560px) {
	.qdu-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.qdu-file {
		grid-template-columns: 48px 1fr auto;
	}
	.qdu-thumb {
		width: 48px;
		height: 48px;
	}
	.qdu-retry {
		grid-column: 2;
		justify-self: start;
	}
	.qdu-submit {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qdu *,
	.qdu *::before,
	.qdu *::after {
		animation: none !important;
		transition: none !important;
	}
}

.qdu-debug {
	margin: 16px 0 0;
	padding: 12px;
	max-height: 320px;
	overflow: auto;
	font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: pre-wrap;
	color: #e6f4f1;
	background: #14232b;
	border-radius: 10px;
}

/* 2.0 — formularz kontaktowy */
.qdu-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}
.qdu-req {
	color: var(--qdu-error);
}
.qdu-form > .qdu-grid {
	margin-top: 4px;
}
.qdu-title + .qdu-grid,
.qdu-subtitle + .qdu-grid {
	margin-top: 16px;
}
.qdu .qdu-drop {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 10px;
	padding: 18px 16px;
}
.qdu .qdu-drop-icon {
	width: 28px;
	height: 28px;
	margin: 0;
}
.qdu .qdu-drop-title {
	font-size: 0.95rem;
}
.qdu .qdu-drop-or {
	font-weight: 400;
}
.qdu .qdu-drop-hint {
	flex-basis: 100%;
	margin-top: 0;
}
.qdu-total {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--qdu-muted);
	text-align: right;
}
.qdu-total:empty {
	display: none;
}

/* Tryb bez ramki — formularz wtapia się w tło strony */
.qdu.qdu--plain {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}
/* Pola i teksty zawsze w kolorach formularza (motyw strony ich nie nadpisze) */
.qdu .qdu-title,
.qdu label,
.qdu .qdu-label {
	color: var(--qdu-text);
}
.qdu .qdu-field input::placeholder,
.qdu .qdu-field textarea::placeholder {
	color: var(--qdu-muted);
	opacity: 1;
}
.qdu .qdu-consent label {
	color: var(--qdu-muted);
}

/* Teksty z edytora (tytuł, opis, komunikat po wysłaniu) */
.qdu .qdu-title {
	font-weight: 700;
}
.qdu-rich > :first-child {
	margin-top: 0;
}
.qdu-rich > :last-child {
	margin-bottom: 0;
}
.qdu-rich p,
.qdu-rich ul,
.qdu-rich ol,
.qdu-rich blockquote {
	margin: 0 0 0.6em;
}
.qdu-rich h1,
.qdu-rich h2,
.qdu-rich h3,
.qdu-rich h4,
.qdu-rich h5,
.qdu-rich h6 {
	margin: 0 0 0.4em;
	color: inherit;
	line-height: 1.25;
}
.qdu-rich ul,
.qdu-rich ol {
	padding-left: 1.4em;
}
.qdu-rich a {
	color: var(--qdu-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.qdu-rich blockquote {
	padding: 0.2em 0 0.2em 1em;
	border-left: 3px solid var(--qdu-accent);
	font-style: italic;
}
.qdu-rich img {
	max-width: 100%;
	height: auto;
}
.qdu-rich .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.qdu-rich .alignleft {
	float: left;
	margin: 0 1em 0.5em 0;
}
.qdu-rich .alignright {
	float: right;
	margin: 0 0 0.5em 1em;
}
.qdu-rich::after {
	content: '';
	display: table;
	clear: both;
}
.qdu .qdu-subtitle {
	margin-bottom: 18px;
}
.qdu-success-text.qdu-rich {
	font-weight: 400;
}
.qdu-success-text.qdu-rich > p:only-child {
	font-weight: 600;
}
