/* ==========================================================================
   FHG Bewerbung v1.1.5
   Design: Figma FHG_Website / Bewerbungsformular (Node 1395:4440)
   2-Spalten-Formular mit AGB-Checkbox und Primary Button
   Colors: Dark Forest #0D2102, Dark Forest 40% #9EA69A
   Fonts: SangBleu Kingdom (Titel), Poppins (Felder, Button)
   ========================================================================== */

/* --- Container --- */

.fhg-bewerbung {
	position: relative;
	width: 100%;
	color: #0D2102;
}

/* --- Signet --- */

.fhg-bewerbung__signet {
	width: 50px;
	height: 65px;
	margin-bottom: 20px;
	color: #0D2102;
}

.fhg-bewerbung__signet svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* --- Titel --- */

.fhg-bewerbung__title {
	font-family: 'SangBleu Kingdom', serif;
	font-weight: 500;
	font-size: 60px;
	line-height: 60px;
	letter-spacing: -1.8px;
	color: inherit;
	margin: 0 0 115px !important;
}

/* --- Form --- */

.fhg-bewerbung__form {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

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

.fhg-bewerbung__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fhg-bewerbung__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.fhg-bewerbung__row--single {
	grid-template-columns: 1fr;
	max-width: calc(50% - 10px);
}

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

.fhg-bewerbung__field {
	padding: 0 27px !important;
	border: 1.1px solid #9EA69A !important;
	border-radius: 80px !important;
	background: transparent;
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.18px;
	color: #0D2102;
	outline: none;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.fhg-bewerbung__field:not(.fhg-bewerbung__field--textarea) {
	min-height: 65px !important;
	height: 65px !important;
}

.fhg-bewerbung__field::placeholder {
	color: #0D2102;
	opacity: 0.7;
}

.fhg-bewerbung__field:focus {
	border-color: #0D2102;
}

.fhg-bewerbung__field--textarea {
	min-height: 130px;
	resize: none;
	border-radius: 30px !important;
}

/* --- AGB Checkbox --- */

.fhg-bewerbung__agb {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.fhg-bewerbung__agb input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.fhg-bewerbung__check {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	color: #0D2102;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fhg-bewerbung__check svg {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.fhg-bewerbung__agb input:checked + .fhg-bewerbung__check {
	background: #0D2102;
	color: #fff;
}

.fhg-bewerbung__agb input:checked + .fhg-bewerbung__check svg {
	opacity: 1;
}

.fhg-bewerbung__agb-text {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.18px;
	opacity: 0.7;
}

.fhg-bewerbung__agb-text a {
	color: inherit;
	text-decoration: underline;
}

/* --- Submit Button (Primary Button Pattern) --- */

.fhg-bewerbung__submit {
	display: flex;
	margin-top: 65px !important;
}

.fhg-bewerbung__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: none;
	background-color: transparent !important;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	color: #0D2102;
}

.fhg-bewerbung__btn-text {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 11px 25px 13px;
	border: 1px solid #0D2102;
	border-radius: 80px;
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 30px;
	letter-spacing: -0.72px;
	color: inherit;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.fhg-bewerbung__btn-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid #0D2102;
	border-radius: 100px;
	color: inherit;
	overflow: hidden;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.fhg-bewerbung__btn-arrow svg {
	display: block;
	transform: rotate(-45deg);
}

.fhg-bewerbung__btn:hover .fhg-bewerbung__btn-text {
	background: transparent;
	color: #0D2102;
}

.fhg-bewerbung__btn:hover .fhg-bewerbung__btn-arrow {
	background-color: #F4EE8F;
	color: #0D2102;
}

/* --- Messages --- */

.fhg-bewerbung__message {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: -0.18px;
}

.fhg-bewerbung__message--success {
	color: #0D2102;
}

.fhg-bewerbung__message--error {
	color: #c0392b;
}

/* --- Loading State --- */

.fhg-bewerbung__btn[disabled] {
	opacity: 0.5;
	pointer-events: none;
}

/* --- Mobile --- */

@media (max-width: 767px) {
	.fhg-bewerbung__title {
		font-size: 42px;
		line-height: 42px;
		letter-spacing: -1.2px;
		margin-bottom: 60px !important;
	}

	.fhg-bewerbung__row {
		grid-template-columns: 1fr;
	}

	.fhg-bewerbung__row--single {
		max-width: 100%;
	}

	.fhg-bewerbung__btn-text {
		font-size: 20px;
		line-height: 25px;
		letter-spacing: -0.6px;
	}

	.fhg-bewerbung__btn-arrow {
		width: 48px;
		height: 48px;
	}
}
