/**
 * STG Hiring Form — Dark glassmorphism application form
 *
 * BEM: .stg-hf (hiring form)
 * Theme: dark bg, white text, glass card, monochrome accent.
 */

/* ------------------------------------------------
   Container
   ------------------------------------------------ */

.stg-hf {
	max-width: 720px;
	margin: 0 auto;
	padding: 60px 24px 80px;
	font-family: 'Helvetica', 'Arial', sans-serif;
	color: rgba(255, 255, 255, 0.9);
}

.stg-hf__inner {
	text-align: center;
}

/* ------------------------------------------------
   Header
   ------------------------------------------------ */

.stg-hf__title {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 700;
	font-size: 32px;
	color: #ffffff;
	margin: 0 0 12px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.stg-hf__subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.45);
	margin: 0 0 32px;
	line-height: 1.6;
}

/* ------------------------------------------------
   Open positions badges
   ------------------------------------------------ */

.stg-hf__positions {
	margin-bottom: 40px;
}

.stg-hf__positions-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.3);
	margin-bottom: 12px;
}

.stg-hf__positions-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.stg-hf__position-tag {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 6px 14px;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------
   Form wrapper
   ------------------------------------------------ */

.stg-hf__form-wrap {
	text-align: left;
}

.stg-hf__form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ------------------------------------------------
   Form grid (2-col for short fields)
   ------------------------------------------------ */

.stg-hf__form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

/* ------------------------------------------------
   Fields
   ------------------------------------------------ */

.stg-hf__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}

.stg-hf__form-grid .stg-hf__field {
	margin-bottom: 0;
}

.stg-hf__field label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.4);
}

.stg-hf__field input,
.stg-hf__field select,
.stg-hf__field textarea {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 14px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 12px 14px;
	outline: none;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.stg-hf__field input::placeholder,
.stg-hf__field textarea::placeholder {
	color: rgba(255, 255, 255, 0.2);
}

.stg-hf__field input:focus,
.stg-hf__field select:focus,
.stg-hf__field textarea:focus {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.06);
}

.stg-hf__field select {
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.stg-hf__field select option {
	background: #1a1a1a;
	color: #ffffff;
}

.stg-hf__field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

/* ------------------------------------------------
   Altcha CAPTCHA
   ------------------------------------------------ */

.stg-hf__captcha {
	margin: 8px 0 24px;
}

/* ------------------------------------------------
   Submit button
   ------------------------------------------------ */

.stg-hf__submit {
	display: block;
	width: 100%;
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #050507;
	background: #ffffff;
	border: none;
	padding: 16px 24px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.stg-hf__submit:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.stg-hf__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ------------------------------------------------
   Success state
   ------------------------------------------------ */

.stg-hf__success {
	text-align: center;
	padding: 48px 24px;
}

.stg-hf__success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(26, 138, 74, 0.15);
	border: 1px solid rgba(26, 138, 74, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	animation: stg-hf-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes stg-hf-pop {
	0%   { transform: scale(0); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.stg-hf__success-title {
	font-weight: 700;
	font-size: 24px;
	color: #ffffff;
	margin: 0 0 12px;
}

.stg-hf__success-msg {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.7;
	margin: 0;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */

@media (max-width: 600px) {
	.stg-hf {
		padding: 40px 16px 60px;
	}

	.stg-hf__title {
		font-size: 26px;
	}

	.stg-hf__form-grid {
		grid-template-columns: 1fr;
	}
}
