/* DIE Worker Form — стили под оригинальную форму /jobs/ (JotForm) */

.die-wf-wrap {
	--die-wf-text: #2c3345;
	--die-wf-muted: #6f7689;
	--die-wf-label: #2c3345;
	--die-wf-field-bg: #ffffff;
	--die-wf-field-border: #b8bdc9;
	--die-wf-field-border-hover: #8a90a3;
	--die-wf-field-placeholder: #aaa;
	--die-wf-field-radius: 8px;
	--die-wf-field-height: 36px;
	--die-wf-accent: #1fba96;
	--die-wf-accent-hover: #19a585;
	--die-wf-accent-soft: rgba(31, 186, 150, 0.22);
	--die-wf-cta: #e88d51;
	--die-wf-cta-hover: #1fba96;
	--die-wf-required: #d63637;
	--die-wf-error: #d63637;
	--die-wf-error-soft: rgba(214, 54, 55, 0.15);
	--die-wf-divider: #e3e5ec;

	box-sizing: border-box;
	position: relative;
	width: 100%;
	padding: 40px 16px 60px;
	background: #ffffff;
	color: var(--die-wf-text);
	font-family:
		"Titillium Web",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Inter,
		sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.die-wf-wrap.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.die-wf-wrap *,
.die-wf-wrap *::before,
.die-wf-wrap *::after {
	box-sizing: border-box;
}

.die-wf-inner {
	max-width: 720px;
	margin: 0 auto;
	background: #ffffff;
}

.die-wf-title {
	margin: 0 0 8px;
	color: var(--die-wf-text);
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.die-wf-subtitle {
	margin: 0 0 32px;
	color: var(--die-wf-muted);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.die-wf-section {
	padding: 0;
	margin-bottom: 8px;
}

.die-wf-section-title {
	margin: 24px 0 16px;
	color: var(--die-wf-text);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--die-wf-divider);
}

.die-wf-section:first-of-type .die-wf-section-title {
	margin-top: 0;
}

.die-wf-row {
	display: grid;
	grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
	gap: 10px 24px;
	align-items: start;
	padding: 10px 0;
}

.die-wf-row[hidden] {
	display: none;
}

.die-wf-row-label {
	padding-top: 8px;
	color: var(--die-wf-label);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.die-wf-required-mark {
	color: var(--die-wf-required);
	margin-left: 2px;
}

.die-wf-row-field {
	min-width: 0;
}

input.die-wf-input,
.die-wf-select,
.die-wf-textarea {
	display: block;
	width: 100%;
	height: var(--die-wf-field-height);
	padding: 0 10px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--die-wf-text);
	background: var(--die-wf-field-bg);
	border: 1px solid var(--die-wf-field-border);
	border-radius: var(--die-wf-field-radius);
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

input.die-wf-input:hover,
.die-wf-select:hover,
.die-wf-textarea:hover {
	border-color: var(--die-wf-field-border-hover);
}

input.die-wf-input::placeholder,
.die-wf-textarea::placeholder {
	color: var(--die-wf-field-placeholder);
	opacity: 1;
}

input.die-wf-input:focus,
.die-wf-select:focus,
.die-wf-textarea:focus {
	outline: none;
	border-color: var(--die-wf-accent);
	box-shadow: 0 0 0 3px var(--die-wf-accent-soft);
}

input.die-wf-input.is-invalid,
.die-wf-select.is-invalid,
.die-wf-textarea.is-invalid {
	border-color: #ff6567;
	box-shadow: 0 0 0 3px rgba(255, 101, 103, 0.22);
}

.die-wf-textarea {
	height: auto;
	min-height: 100px;
	padding: 10px;
	resize: vertical;
}

/* Свой шеврон вместо убогой нативной стрелки; отодвинут от правого края. */
.die-wf-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23555555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px 16px;
}

/* Пока выбран пустой плейсхолдер (:invalid), текст контрола приглушён — как placeholder у input. */
.die-wf-select:invalid {
	color: var(--die-wf-field-placeholder);
}

/* Пункты раскрытого списка — всегда обычного цвета (иначе наследуют приглушённый от :invalid). */
.die-wf-select option {
	color: var(--die-wf-text);
}

.die-wf-hint {
	margin-top: 4px;
	color: var(--die-wf-muted);
	font-size: 12px;
	line-height: 1.4;
}

.die-wf-error {
	display: none;
	margin-top: 6px;
	padding: 4px 8px 4px 26px;
	border-radius: 6px;
	background: #ff6567;
	color: #ffffff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='8' r='7' fill='%23ffffff'/><rect x='7' y='3.5' width='2' height='5.5' rx='1' fill='%23ff6567'/><circle cx='8' cy='11.5' r='1.1' fill='%23ff6567'/></svg>");
	background-repeat: no-repeat;
	background-position: 7px 50%;
	background-size: 13px 13px;
}

.die-wf-error.is-visible {
	display: inline-block;
}

.die-wf-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	padding-top: 6px;
}

.die-wf-options--stacked {
	flex-direction: column;
	gap: 10px;
}

.die-wf-radio {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding-left: 28px;
	color: var(--die-wf-text);
	font-size: 15px;
	line-height: 1.35;
	cursor: pointer;
	user-select: none;
}

.die-wf-radio input {
	position: absolute;
	top: 0;
	left: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	opacity: 0;
	z-index: -1;
	pointer-events: none;
}

.die-wf-radio::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border: 1px solid var(--die-wf-field-border);
	border-radius: 50%;
	box-sizing: border-box;
	transform: translateY(-50%);
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.die-wf-radio:has(input:focus-visible)::before {
	box-shadow: 0 0 0 3px var(--die-wf-accent-soft);
}

.die-wf-radio:has(input:checked)::before {
	border-color: var(--die-wf-accent);
	border-width: 7px;
}

.die-wf-check {
	position: relative;
	display: block;
	padding: 2px 0 2px 34px;
	margin: 0 0 8px;
	min-height: 24px;
	color: rgba(0, 0, 0, 0.85);
	font-size: 16px;
	line-height: 1.35;
	cursor: pointer;
	user-select: none;
}

.die-wf-check::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	box-sizing: border-box;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.die-wf-check::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	pointer-events: none;
}

.die-wf-check input[type="checkbox"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	opacity: 0;
	z-index: -1;
	pointer-events: none;
}

.die-wf-check:has(input[type="checkbox"]:focus-visible)::before {
	box-shadow: 0 0 0px 3px var(--die-wf-accent-soft);
}

.die-wf-check:has(input[type="checkbox"]:checked)::before {
	border-color: var(--die-wf-accent);
	border-width: 2px;
}

.die-wf-check:has(input[type="checkbox"]:checked)::after {
	top: -5px;
	left: -1px;
	border-left: 4px solid var(--die-wf-accent);
	border-bottom: 4px solid var(--die-wf-accent);
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg) scale(0.5);
	transform-origin: 14px 14px;
}

.die-wf-address {
	position: relative;
}

.die-wf-address-list {
	position: absolute;
	top: calc(var(--die-wf-field-height) + 2px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	max-height: 260px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid var(--die-wf-field-border);
	border-radius: var(--die-wf-field-radius);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.die-wf-address-item {
	padding: 8px 12px;
	font-size: 14px;
	line-height: 1.35;
	color: var(--die-wf-text);
	cursor: pointer;
}

.die-wf-address-item:hover,
.die-wf-address-item.is-active {
	background: var(--die-wf-accent-soft);
	color: var(--die-wf-text);
}

.die-wf-address-item--empty {
	color: var(--die-wf-muted);
	cursor: default;
	font-style: italic;
}

.die-wf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.die-wf-divider {
	margin: 24px 0 20px;
	border: 0;
	border-top: 1px solid var(--die-wf-divider);
}

.die-wf-footer {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.die-wf-disclaimer {
	margin: 0;
	color: var(--die-wf-muted);
	font-size: 12px;
	line-height: 1.55;
	text-align: center;
	max-width: 540px;
}

.die-wf-submit {
	min-width: 260px;
	min-height: 44px;
	padding: 0 28px;
	color: #ffffff;
	background: var(--die-wf-cta);
	border: 0;
	border-radius: var(--die-wf-field-radius);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		transform 0.05s ease;
}

.die-wf-submit:hover:not(:disabled) {
	background: var(--die-wf-cta-hover);
}

.die-wf-submit:active:not(:disabled) {
	transform: translateY(1px);
}

.die-wf-submit:disabled {
	opacity: 0.7;
	cursor: progress;
}

.die-wf-submit.is-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.die-wf-submit.is-loading::before {
	content: "";
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: die-wf-spin 0.6s linear infinite;
}

@keyframes die-wf-spin {
	to {
		transform: rotate(360deg);
	}
}

.die-wf-status {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.die-wf-status.is-success {
	color: #1a7f37;
}

.die-wf-status.is-error {
	color: var(--die-wf-error);
}

@media (max-width: 640px) {
	.die-wf-wrap {
		padding: 28px 14px 48px;
	}

	.die-wf-title {
		font-size: 22px;
	}

	.die-wf-row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 8px 0;
	}

	.die-wf-row-label {
		padding-top: 0;
	}

	.die-wf-submit {
		width: 100%;
		min-width: 0;
	}
}