/* SOLARON Careers — application form */
.sc-wrap {
	--sc-text: #000;
	--sc-input-bg: #ededed;
	--sc-input-border: #777771;
	--sc-focus: #026cba;
	--sc-error: #d6334f;
	--sc-required: #e04562;
	--sc-file-bg: #026cba;
	--sc-file-bg-hover: #01579a;
	--sc-submit-bg: #fdc20e;
	--sc-submit-bg-hover: #e8ad00;
	--sc-success-bg: #eef8f0;
	--sc-success-border: #2e9c4a;
	font-family: "Open Sans", sans-serif;
	color: var(--sc-text);
	text-align: left;
}

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

.sc-form {
	margin: 0;
}

.sc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 24px;
}

.sc-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sc-label {
	display: block;
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sc-text);
}

.sc-req {
	color: var(--sc-required);
}

.sc-wrap .sc-input {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 9px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--sc-text);
	background: var(--sc-input-bg);
	border: 1px solid var(--sc-input-border);
	border-radius: 0;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sc-wrap .sc-input:focus {
	outline: none;
	border-color: var(--sc-focus);
	box-shadow: 0 0 0 2px rgba(2, 108, 186, 0.25);
}

/* File picker */
.sc-file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 42px;
	flex-wrap: wrap;
}

.sc-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
}

.sc-file-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 26px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	background: var(--sc-file-bg);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s;
	user-select: none;
}

.sc-file-btn:hover {
	background: var(--sc-file-bg-hover);
}

.sc-file-input:focus-visible + .sc-file-btn {
	outline: 2px solid var(--sc-focus);
	outline-offset: 2px;
}

.sc-file-name {
	flex: 1 1 140px;
	min-width: 0;
	font-size: 15px;
	color: #555;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sc-file.has-file .sc-file-name {
	color: var(--sc-text);
	font-weight: 600;
}

.sc-file-clear {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: #555;
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 50%;
	cursor: pointer;
}

.sc-file-clear:hover,
.sc-file-clear:focus-visible {
	color: var(--sc-error);
	border-color: var(--sc-error);
}

.sc-file-clear[hidden] {
	display: none;
}

.sc-hint {
	margin-top: 6px;
	font-size: 13px;
	color: #666;
}

/* Errors */
.sc-error {
	display: none;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--sc-error);
}

.sc-field.has-error .sc-error {
	display: block;
}

.sc-field.has-error .sc-input {
	border-color: var(--sc-error);
}

.sc-field.has-error .sc-file-btn {
	box-shadow: 0 0 0 2px var(--sc-error);
}

/* Captcha */
.sc-field--captcha {
	margin-top: 28px;
}

.sc-captcha {
	min-height: 78px;
}

/* Submit */
.sc-actions {
	margin-top: 28px;
}

.sc-wrap .sc-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 13px 28px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	color: #000;
	background: var(--sc-submit-bg);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.sc-wrap .sc-submit:hover,
.sc-wrap .sc-submit:focus-visible {
	color: #000;
	background: var(--sc-submit-bg-hover);
}

.sc-wrap .sc-submit:focus-visible {
	outline: 2px solid var(--sc-focus);
	outline-offset: 2px;
}

.sc-wrap .sc-submit[disabled] {
	opacity: 0.75;
	cursor: wait;
}

.sc-form.is-busy .sc-submit::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sc-spin 0.7s linear infinite;
}

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

/* Messages */
.sc-message:empty {
	display: none;
}

.sc-message {
	margin-top: 18px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--sc-error);
	background: #fdf0f2;
	border-left: 4px solid var(--sc-error);
}

.sc-success {
	padding: 20px 24px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--sc-text);
	background: var(--sc-success-bg);
	border-left: 4px solid var(--sc-success-border);
}

.sc-success:focus {
	outline: none;
}

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

@media (max-width: 640px) {
	.sc-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.sc-label {
		font-size: 16px;
	}

	.sc-wrap .sc-submit {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-form.is-busy .sc-submit::before {
		animation-duration: 2s;
	}
}
