/* FORWEB Zgłoszenia dewastacji — formularz mobilny */

.fdw {
	--fdw-navy: #202040;
	--fdw-cyan: #40C0F0;
	--fdw-cyan-dark: #287795;
	--fdw-muted: #6a6a82;
	--fdw-line: #e4e4ee;
	--fdw-soft: #f6f7fb;
	--fdw-red: #c62828;
	--fdw-green: #1b8a3a;
	max-width: 560px;
	margin: 0 auto;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: var(--fdw-navy);
	text-align: left;
}

.fdw *,
.fdw *::before,
.fdw *::after {
	box-sizing: border-box;
}

.fdw [hidden] {
	display: none !important;
}

.fdw-head {
	margin-bottom: 20px;
}

.fdw .fdw-title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--fdw-navy);
	text-wrap: balance;
}

.fdw .fdw-desc {
	margin: 0;
	color: var(--fdw-muted);
}

.fdw .fdw-tel {
	display: inline-block;
	margin-top: 12px;
	font-weight: 700;
	color: var(--fdw-red);
	text-decoration: underline;
}

/* ---------- Kroki ---------- */

.fdw-step {
	padding: 16px;
	margin-bottom: 12px;
	background: #fff;
	border: 1px solid var(--fdw-line);
	border-radius: 16px;
}

.fdw .fdw-step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--fdw-navy);
}

.fdw-step-nr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	background: var(--fdw-navy);
	color: #fff;
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.fdw-step-note {
	margin-left: auto;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--fdw-muted);
}

.fdw .fdw-hint {
	margin: 10px 0 0;
	font-size: 0.875rem;
	color: var(--fdw-muted);
}

.fdw-step > .fdw-hint:first-of-type {
	margin-top: 0;
}

/* ---------- Przyciski ---------- */

.fdw-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.fdw .fdw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid var(--fdw-navy);
	border-radius: 12px;
	background: #fff;
	color: var(--fdw-navy);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.fdw .fdw-btn--primary {
	background: var(--fdw-navy);
	color: #fff;
}

.fdw .fdw-btn--send {
	min-height: 58px;
	border-color: var(--fdw-cyan);
	background: var(--fdw-cyan);
	color: var(--fdw-navy);
	font-size: 1.1rem;
	font-weight: 800;
}

.fdw .fdw-btn:active {
	transform: translateY(1px);
}

.fdw .fdw-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.fdw .fdw-btn:focus-visible,
.fdw .fdw-input:focus-visible,
.fdw .fdw-thumb-del:focus-visible {
	outline: 3px solid var(--fdw-cyan);
	outline-offset: 2px;
}

/* ---------- Zdjęcia ---------- */

.fdw .fdw-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.fdw .fdw-thumbs:empty {
	display: none;
}

.fdw .fdw-thumb {
	position: relative;
	margin: 0;
	padding: 0;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--fdw-soft);
}

.fdw .fdw-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.fdw .fdw-thumb-del {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0 0 0 12px;
	background: rgba(32, 32, 64, 0.82);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.fdw-counter {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fdw-navy);
}

/* ---------- Mapa ---------- */

.fdw .fdw-map {
	height: min(70vw, 320px);
	margin-top: 12px;
	border: 1px solid var(--fdw-line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--fdw-soft);
	z-index: 0;
}

.fdw .fdw-loc-status {
	margin: 10px 0 0;
	font-size: 0.875rem;
	color: var(--fdw-muted);
}

.fdw .fdw-loc-status--ok {
	color: var(--fdw-green);
	font-weight: 600;
}

.fdw .fdw-loc-status--warn {
	color: var(--fdw-red);
	font-weight: 600;
}

/* ---------- Pola ---------- */

.fdw .fdw-label {
	display: block;
	margin: 12px 0 6px;
	font-size: 0.9rem;
	font-weight: 700;
}

.fdw .fdw-input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--fdw-line);
	border-radius: 12px;
	background: #fff;
	color: var(--fdw-navy);
	font: inherit;
	font-size: 16px; /* poniżej 16px iOS przybliża stronę po dotknięciu pola */
}

.fdw textarea.fdw-input {
	resize: vertical;
}

.fdw .fdw-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 14px;
	font-size: 0.875rem;
	cursor: pointer;
}

.fdw .fdw-check input {
	width: 24px;
	height: 24px;
	flex: none;
	margin: 0;
	accent-color: var(--fdw-navy);
}

.fdw-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Stopka ---------- */

.fdw-foot {
	margin-top: 16px;
}

.fdw .fdw-error {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fdecec;
	color: var(--fdw-red);
	font-weight: 600;
}

.fdw-progress {
	height: 8px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: var(--fdw-line);
	overflow: hidden;
}

.fdw-progress-bar {
	width: 0;
	height: 100%;
	background: var(--fdw-cyan-dark);
	transition: width 0.2s linear;
}

/* ---------- Potwierdzenie ---------- */

.fdw-done {
	padding: 32px 20px;
	border: 1px solid var(--fdw-line);
	border-radius: 16px;
	background: #fff;
	text-align: center;
	outline: none;
}

.fdw-done-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--fdw-green);
	color: #fff;
	font-size: 2rem;
	font-weight: 800;
}

.fdw .fdw-done-nr {
	margin: 12px 0 20px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.fdw-progress-bar {
		transition: none;
	}
}
