/* Krok 2 — dokumenty i konto ERL */
.erl-step2-root {
	max-width: min(88vw, 54rem);
	margin: 1.5rem auto 2.5rem;
	box-sizing: border-box;
	color: var(--erl-text);
	font-family: var(--erl-font);
	line-height: var(--erl-leading);
}

.erl-step2-root *,
.erl-step2-root *::before,
.erl-step2-root *::after {
	box-sizing: inherit;
}
.erl-step2-loading {
	color: var(--erl-text-muted);
}
.erl-step2-error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	padding: 12px 16px;
	margin: 16px 0;
	border-radius: var(--erl-radius-sm);
}
.erl-step2-heading {
	margin-top: 1.5rem;
	font-size: var(--erl-h2);
	font-weight: 700;
	color: var(--erl-navy);
	letter-spacing: -0.02em;
}
.erl-step2-intro,
.erl-step2-hint {
	color: var(--erl-text-muted);
	line-height: var(--erl-leading);
	font-size: var(--erl-text-sm);
}
.erl-field {
	margin: 1rem 0;
}
.erl-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}
.erl-req {
	color: #b32d2e;
}
.erl-textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px;
}
.erl-input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #c9ccd1;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.erl-input:focus {
	outline: none;
	border-color: var(--erl-btn-bg);
	box-shadow: 0 0 0 3px rgba(214, 174, 94, 0.25);
}
.erl-help {
	margin: 0.4rem 0 0;
	font-size: 0.83rem;
	line-height: 1.45;
	color: #6b7177;
}

/* Nowoczesne pole pliku (dropzone) */
.erl-file {
	position: relative;
}
.erl-file__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.erl-file__zone {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1.5px dashed #c2c7cd;
	border-radius: 12px;
	background: #fafbfc;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.erl-file__zone:hover {
	border-color: var(--erl-btn-bg);
	background: #fffdf7;
}
.erl-file__input:focus-visible + .erl-file__zone {
	outline: none;
	border-color: var(--erl-btn-bg);
	box-shadow: 0 0 0 3px rgba(214, 174, 94, 0.28);
}
.erl-file.is-dragover .erl-file__zone {
	border-color: var(--erl-btn-bg);
	border-style: solid;
	background: #fff6e6;
}
.erl-file__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: rgba(214, 174, 94, 0.16);
	color: #b07d1f;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.erl-file.is-filled .erl-file__icon {
	background: rgba(35, 142, 76, 0.14);
	color: #1f8a47;
}
.erl-file__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}
.erl-file__cta {
	font-weight: 600;
	color: var(--erl-text);
}
.erl-file__hint {
	font-size: var(--erl-text-xs);
	color: var(--erl-text-muted);
}
.erl-file__name {
	display: none;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1f8a47;
	word-break: break-all;
}
.erl-file.is-filled .erl-file__name {
	display: block;
}
.erl-file.is-filled .erl-file__cta {
	color: #1f8a47;
}
.erl-file.is-filled .erl-file__hint {
	display: none;
}
.erl-file__clear {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: var(--erl-surface-muted);
	color: var(--erl-text-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.erl-file__clear:hover {
	background: #e0473f;
	color: #fff;
}
@media (max-width: 480px) {
	.erl-file__zone {
		gap: 10px;
		padding: 14px;
	}
	.erl-file__icon {
		width: 40px;
		height: 40px;
	}
}
.erl-fieldset {
	border: 1px solid var(--erl-border);
	padding: 12px 16px;
	margin: 1rem 0;
	border-radius: var(--erl-radius);
}
.erl-legend {
	font-weight: 600;
	padding: 0 8px;
}
.erl-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}
.erl-auth-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 16px;
}
.erl-auth-card {
	border: 1px solid var(--erl-border);
	padding: 16px;
	border-radius: var(--erl-radius);
	background: var(--erl-surface-muted);
}
.erl-auth-card h3 {
	margin-top: 0;
}
.erl-bank-box {
	background: #f0f6fc;
	border: 1px solid #c3d9ed;
	padding: 16px;
	white-space: pre-wrap;
	font-size: 0.95rem;
	line-height: 1.5;
	border-radius: 4px;
}

/* Przycisk „Wyślij zgłoszenie” — jak krok 1 (.erl-step1 .erl-submit) */
.erl-step2-root .erl-submit-wrap--in-results {
	margin-top: 1.35rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.erl-step2-root .erl-submit {
	display: inline-block;
	width: 100%;
	max-width: min(100%, 38rem);
	padding: 15px 35px;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: var(--erl-btn-bg);
	color: var(--erl-btn-color);
	font-family: var(--erl-font);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.erl-step2-root .erl-submit:hover:not(:disabled) {
	background: var(--erl-btn-bg-hover);
	opacity: 1;
}

.erl-step2-root .erl-submit:active:not(:disabled) {
	background: var(--erl-btn-bg-hover);
}

.erl-step2-root .erl-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.erl-step2-root .erl-submit:focus-visible {
	outline: 2px solid var(--erl-btn-color);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.erl-step2-root .erl-submit {
		transition: none;
	}
}

.erl-step2-cta {
	margin-top: 1.25rem;
}
.erl-extra-docs {
	margin: 1.25rem 0;
	border: 1px solid var(--erl-border, #e2e4e7);
	border-radius: 10px;
	padding: 0 1rem 1rem;
}
.erl-extra-docs__summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.85rem 0;
	list-style: none;
}
.erl-extra-docs__summary::-webkit-details-marker {
	display: none;
}
.erl-extra-doc-row {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--erl-border, #e2e4e7);
}
.erl-extra-doc-remove {
	color: #b32d2e;
}

.erl-step2-portal-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--erl-btn-bg, #d6ae5e);
	color: var(--erl-btn-color, #1a1a1a);
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--erl-btn-bg, #d6ae5e);
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.erl-step2-portal-btn:hover,
.erl-step2-portal-btn:focus {
	filter: brightness(0.96);
	box-shadow: 0 4px 14px rgba(214, 174, 94, 0.3);
	color: var(--erl-btn-color, #1a1a1a);
}
