/**
 * Pindiz Talent Hunt: front-end form (single step).
 * Everything is scoped under .pth-wrap so theme / Elementor styles don't clash.
 */

.pth-wrap {
	--pth-ink: #151d21;
	--pth-lime: #b4f53c;
	--pth-orange: #ff4a17;
	--pth-orange-dark: #e43c0b;
	--pth-paper: #ffffff;
	--pth-line: #d9d7cf;
	--pth-line-strong: #b9b6ac;
	--pth-disabled: #eeede7;
	--pth-muted: #6b7378;
	--pth-error: #c9301a;
	--pth-error-bg: #fdecea;
	--pth-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--pth-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	max-width: 640px;
	margin: 0 auto;
	font-family: var(--pth-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--pth-ink);
	text-align: left;
}

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

.pth-wrap [hidden] {
	display: none !important;
}

/* ---------- Card ---------- */
.pth-card {
	/*background: var(--pth-paper);
	border-top: 4px solid var(--pth-orange);
	padding: 30px 30px 22px;
	box-shadow: 0 1px 0 rgba(21, 29, 33, 0.05), 0 24px 48px -28px rgba(21, 29, 33, 0.45);*/
}

.pth-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.pth-wrap .pth-title {
	margin: 0;
	padding: 0;
	font-family: var(--pth-display);
	font-weight: 800;
	font-size: 34px;
	line-height: 0.95;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--pth-ink);
}

.pth-wrap .pth-sub {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--pth-muted);
}

.pth-badge {
	flex: none;
	margin-top: 4px;
	padding: 6px 9px;
	background: #ecebe4;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Messages ---------- */
.pth-message {
	margin: 0 0 22px;
	padding: 11px 14px;
	background: #eef0e8;
	font-size: 13px;
}

.pth-message--error {
	background: var(--pth-error-bg);
	border-left: 3px solid var(--pth-error);
	color: var(--pth-error);
	font-weight: 600;
}

/* ---------- Fields ---------- */
.pth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.pth-field {
	margin: 0 0 20px;
	min-width: 0;
}

.pth-wrap .pth-field > label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pth-ink);
}

.pth-wrap input[type="text"],
.pth-wrap input[type="email"],
.pth-wrap input[type="tel"],
.pth-wrap input[type="date"],
.pth-wrap select {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	background: var(--pth-paper);
	border: 1px solid var(--pth-line);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--pth-body);
	font-size: 14px;
	line-height: 44px;
	color: var(--pth-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.pth-wrap input::placeholder {
	color: #9da1a0;
	opacity: 1;
}

.pth-wrap input:hover:not(:disabled),
.pth-wrap select:hover {
	border-color: var(--pth-line-strong);
}

.pth-wrap input:focus,
.pth-wrap select:focus {
	outline: none;
	border-color: var(--pth-ink);
	box-shadow: 0 0 0 3px rgba(180, 245, 60, 0.6);
}

.pth-wrap input:disabled {
	background: var(--pth-disabled);
	cursor: not-allowed;
}

.pth-select {
	position: relative;
}

.pth-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 1.5px solid #6b7378;
	border-bottom: 1.5px solid #6b7378;
	transform: rotate(45deg);
	pointer-events: none;
}

.pth-wrap .pth-select select {
	padding-right: 40px;
	cursor: pointer;
}

.pth-wrap .pth-hint {
	margin: 6px 0 0;
	font-size: 10.5px;
	color: var(--pth-muted);
}

.pth-wrap .pth-error {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--pth-error);
}

.pth-wrap .pth-error:not(:empty) {
	margin-top: 6px;
}

.pth-field--invalid input,
.pth-field--invalid select {
	border-color: var(--pth-error) !important;
}

/* ---------- Checkbox ---------- */
.pth-field--check {
	margin-top: 4px;
	padding-top: 22px;
	border-top: 1px solid #ebe9e2;
}

.pth-wrap .pth-check {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.45;
	color: #3d464b;
	cursor: pointer;
}

.pth-wrap .pth-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--pth-orange);
	cursor: pointer;
}

.pth-check a {
	color: var(--pth-orange-dark);
	text-decoration: underline;
}

/* ---------- Button ---------- */
.pth-wrap .pth-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 56px;
	margin: 4px 0 0;
	padding: 0 20px;
	background: var(--pth-orange);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: var(--pth-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	color: var(--pth-ink);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.pth-wrap .pth-btn:hover,
.pth-wrap .pth-btn:focus-visible {
	background: var(--pth-orange-dark);
	color: var(--pth-ink);
}

.pth-wrap .pth-btn:focus-visible {
	outline: 3px solid var(--pth-lime);
	outline-offset: 2px;
}

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

.pth-wrap .pth-btn:disabled {
	cursor: progress;
	opacity: 0.8;
}

.pth-btn__icon {
	font-size: 18px;
	line-height: 1;
}

.is-busy .pth-btn__icon {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(21, 29, 33, 0.3);
	border-top-color: var(--pth-ink);
	border-radius: 50%;
	font-size: 0;
	animation: pth-spin 0.7s linear infinite;
}

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

.pth-wrap .pth-foot {
	margin: 14px 0 0;
	font-size: 10.5px;
	color: var(--pth-muted);
	text-align: center;
}

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

/* ---------- Success ---------- */
.pth-success {
	padding: 34px 24px;
	background: var(--pth-ink);
	color: #fff;
	text-align: center;
	outline: none;
}

.pth-success__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	background: var(--pth-lime);
	font-size: 26px;
	font-weight: 700;
	color: var(--pth-ink);
}

.pth-wrap .pth-success__title {
	margin: 0 0 6px;
	font-family: var(--pth-display);
	font-weight: 800;
	font-style: italic;
	font-size: 40px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.pth-wrap .pth-success__text {
	margin: 0 0 18px;
	color: #c9d0d3;
}

.pth-success__id {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 22px;
	border: 1px solid rgba(180, 245, 60, 0.45);
}

.pth-success__id span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #9aa4a8;
}

.pth-success__id strong {
	font-family: var(--pth-display);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--pth-lime);
}

.pth-wrap .pth-success__note {
	margin: 18px 0 0;
	font-size: 12.5px;
	color: #9aa4a8;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.pth-card {
		padding: 24px 18px 20px;
	}

	.pth-wrap .pth-title {
		font-size: 30px;
	}

	.pth-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pth-wrap *,
	.pth-wrap *::before,
	.pth-wrap *::after {
		transition: none !important;
		animation-duration: 0.01ms !important;
	}
}
