/* Dialog Obronny — sekcja zgłoszenia, formularz i stopka. */

.do-reg { align-items: start; }

.do-reg__intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.do-steps {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--do-line);
	font-size: 14px;
	color: var(--do-body);
}
.do-steps__row {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--do-line);
}
.do-steps__n { color: var(--do-lbl); }
.do-steps__t { color: var(--do-body); }
.do-steps__row.is-active .do-steps__n {
	font-weight: 600;
	background: var(--do-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.do-steps__row.is-active .do-steps__t { color: var(--do-tx); }
.do-steps__row.is-done .do-steps__t { color: var(--do-body); }

/* --------------------------------------------------------------- KARTA */

.do-card-frame {
	padding: 1px;
	background: var(--do-line);
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.do-card-frame[hidden] { display: none; }

.do-formcard {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 3vw, 44px);
	background: var(--do-p1);
	clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 0 100%);
}
.do-formcard__bar {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	height: 3px;
	background: var(--do-grad);
}
.do-formcard--closed { gap: 18px; }
.do-formcard--ok { gap: 22px; overflow: hidden; }

.do-formcard__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
}
.do-formcard__head .do-label { font-variant-numeric: tabular-nums; }

.do-progress {
	position: relative;
	height: 2px;
	background: var(--do-line);
	margin-bottom: 28px;
}
.do-progress span {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: var(--do-grad);
	transition: width .5s var(--do-ease);
}

.do-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px 28px;
}

/* ---------------------------------------------------------------- POLA */

.do-f {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	min-width: 0;
}
.do-f__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--do-lbl);
	transition: color .25s;
}
.do-f__hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: none;
	color: var(--do-mute);
	white-space: nowrap;
}
.do-f__wrap {
	position: relative;
	display: block;
}
.do-f__input {
	width: 100%;
	background: transparent;
	border: 0;
	color: var(--do-tx);
	padding: 12px 0;
	font-size: 16px;
	font-weight: 400;
	border-radius: 0;
	outline: none;
}
.do-f__input::placeholder { color: var(--do-mute); }
.do-f__input:-webkit-autofill {
	-webkit-text-fill-color: var(--do-tx);
	-webkit-box-shadow: 0 0 0 60px var(--do-p1) inset;
}
select.do-f__input {
	padding-right: 28px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	color: var(--do-mute);
	background-image:
		linear-gradient(45deg, transparent 50%, #8a9095 50%),
		linear-gradient(135deg, #8a9095 50%, transparent 50%);
	background-position: calc(100% - 8px) 55%, calc(100% - 3px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
select.do-f__input option { background: #fff; color: #000; }
.do-f.has-value select.do-f__input { color: var(--do-tx); }

.do-f__line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--do-line2);
}
.do-f__fill {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 100%;
	background: var(--do-grad);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .35s var(--do-ease), background .25s;
}
.do-f__err {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 16px;
	font-weight: 400;
	font-size: 12px;
	color: var(--do-or);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .25s, transform .25s;
}

.do-f.is-focus .do-f__top,
.do-f.has-value .do-f__top { color: var(--do-tx); }
.do-f.is-focus .do-f__fill,
.do-f.is-valid .do-f__fill { transform: scaleX(1); }
.do-f.is-valid .do-f__hint { color: var(--do-or); }
.do-f.is-error .do-f__top { color: var(--do-or); }
.do-f.is-error .do-f__fill {
	background: var(--do-rd);
	transform: scaleX(1);
}
.do-f.is-error .do-f__err {
	opacity: 1;
	transform: translateY(0);
}

/* -------------------------------------------------------------- ZGODA */

.do-consent {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	cursor: pointer;
	margin-top: 10px;
	padding: 16px 18px;
	border: 1px solid var(--do-line);
	background: transparent;
	transition: border-color .25s, background .25s;
	-webkit-user-select: none;
	user-select: none;
}
.do-consent.is-checked {
	border-color: var(--do-line3);
	background: var(--do-p2);
}
.do-consent.is-error { border-color: var(--do-rd); }

.do-consent__box {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid var(--do-mute);
	background: transparent;
	display: grid;
	place-items: center;
	transition: background .25s, border-color .25s;
}
.do-consent.is-checked .do-consent__box {
	background: var(--do-grad);
	border-color: transparent;
}
.do-consent__check {
	display: block;
	width: 9px;
	height: 5px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translate(1px, -1px) scale(0);
	transition: transform .25s cubic-bezier(.2, .9, .3, 1.4);
}
.do-consent.is-checked .do-consent__check {
	transform: rotate(-45deg) translate(1px, -1px) scale(1);
}
.do-consent__text {
	font-weight: 300;
	font-size: 13px;
	line-height: 1.55;
	color: var(--do-body);
}
.do-consent__err {
	color: var(--do-or);
	font-weight: 400;
}
.do-consent__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

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

.do-formcard__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
}
.do-secure {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.do-lock {
	display: inline-block;
	width: 10px;
	height: 12px;
	flex: none;
	border: 1.5px solid currentColor;
	border-radius: 2px 2px 0 0;
}
.do-formcard__error {
	margin-top: 18px;
	padding: 12px 14px;
	border-left: 2px solid var(--do-rd);
	background: rgba(238, 41, 35, .08);
	font-size: 13px;
	line-height: 1.5;
	color: var(--do-tx);
}
.do-formcard__error[hidden] { display: none; }

/* ------------------------------------------------------ POTWIERDZENIE */

.do-ok__mark {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--do-grad-135);
	animation: do-pop .6s cubic-bezier(.2, .9, .3, 1.3) both;
}
.do-ok__mark::after {
	content: "";
	display: block;
	width: 16px;
	height: 9px;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg) translate(2px, -3px);
}
.do-ok__title {
	font-weight: 600;
	font-size: clamp(24px, 2.2vw, 32px);
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--do-tx);
}
.do-formcard--ok .do-body { max-width: 460px; }
.do-ok__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	border-top: 1px solid var(--do-line);
	padding-top: 18px;
	font-size: 13px;
	color: var(--do-body);
}
.do-ok__grid .do-label { margin-bottom: 4px; }
.do-ok__status { color: var(--do-or); }
.do-ok__reset { align-self: flex-start; margin-top: 4px; }
.do-ok__reset .do-btn__in { height: 40px; }

/* ------------------------------------------------------------- STOPKA */

.do-foot {
	position: relative;
	background: #000;
}
.do-foot__cta {
	border-top: 1px solid var(--do-line);
	border-bottom: 1px solid var(--do-line);
}
.do-foot__ctain {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 28px 48px;
	padding-top: clamp(48px, 5vw, 72px);
	padding-bottom: clamp(48px, 5vw, 72px);
}
.do-foot__ctatext {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.do-foot__h2 {
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.05;
	font-size: clamp(28px, 3.4vw, 52px);
	color: var(--do-tx);
	text-wrap: balance;
}

.do-foot__wrap { padding-bottom: 0; }
.do-foot__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--do-line);
	border-left: 1px solid var(--do-line);
	border-right: 1px solid var(--do-line);
}
.do-foot__cell {
	background: #000;
	padding: 36px 28px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-height: 240px;
}
.do-foot__cell--brand {
	padding-left: 0;
	justify-content: space-between;
	gap: 28px;
}
.do-foot__cell--partners {
	padding-right: 0;
	padding-left: 28px;
}
.do-foot__logo {
	display: block;
	height: 32px;
	width: auto;
	align-self: flex-start;
}
.do-foot__brandtext {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.do-foot__tagline {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;
	color: var(--do-tx);
}
.do-foot__brandtext p {
	font-weight: 300;
	font-size: 14px;
	line-height: 1.6;
	color: var(--do-lbl);
	max-width: 300px;
}
.do-foot__links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
}
.do-foot__links a {
	font-size: 14px;
	color: var(--do-body);
	transition: color .2s;
}
.do-foot__links a:hover { color: var(--do-tx); }
.do-foot__rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.do-foot__row {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
}
.do-foot__row > span:first-child { color: var(--do-mute); }
.do-foot__row > span:last-child { color: var(--do-tx); }
.do-foot__row span span { color: var(--do-body); }
.do-foot__partners {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.do-foot__partner {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.do-foot__partner img {
	display: block;
	width: auto;
	max-width: 100%;
	align-self: flex-start;
}

.do-foot__bar {
	border-top: 1px solid var(--do-line);
	padding: 20px 0 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	font-size: 12px;
	color: var(--do-mute);
}
.do-foot__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}
.do-foot__legal a { transition: color .2s; }
.do-foot__legal a:hover { color: var(--do-tx); }
.do-foot__top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.do-foot__top span {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-left: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: 3px;
}
.do-rule--static { transform: none !important; }
