/**
 * Careers Contact Section Styles
 *
 * @package UnitedNPL
 * @since 1.0.0
 */

/* =========================
   SECTION BASE STYLES
   ========================= */

.careers-contact-section {
	padding: 60px 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.careers-contact-section-container {
	position: relative;
}

.careers-contact-section-col-left {
	/* Empty column as per requirements - intentionally left empty */
	min-height: 1px;
}

.careers-contact-section-col-right {
	padding-left: 0;
}

.careers-contact-section-form-wrapper {
	width: 100%;
    display: flex;
    justify-content: end;
}

/* =========================
   FORM CONTAINER
   ========================= */

.careers-contact-form-container {
	background-color: #fff;
	border-radius: 15px;
	padding: 40px 20px;
    max-width: 529px;
}

/* =========================
   FORM TITLE AND SUBTITLE
   ========================= */

.careers-contact-form-title {
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 20px;
	line-height: 150%;
	letter-spacing: 0%;
	color: #0f0647;
	margin: 0 0 10px 0;
}

/* Job Application Form Title - Specific Styles */
.job-application-form-title {
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 20px;
	line-height: 150%;
	letter-spacing: 0%;
	color: #333;
	margin: 0 0 10px 0;
}

.careers-contact-form-subtitle {
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 157%;
	letter-spacing: 0%;
	color: rgba(0, 0, 0, 0.8);
	margin: 0 0 0 0;
	max-width: 361px;
}

/* Job Application Form Description - Specific Styles */
.job-application-form-description {
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 157%;
	letter-spacing: 0%;
	color: #333;
	max-width: 474px;
	margin: 0 0 20px 0;
}

.careers-contact-form-spacing {
	height: 40px;
}

/* =========================
   CONTACT FORM 7 OVERRIDES
   ========================= */

.careers-contact-form-form .wpcf7-form {
	margin: 0;
	padding: 0;
}

.careers-contact-form-form .wpcf7-form fieldset.hidden-fields-container {
	margin: 0;
	padding: 0;
	border: none;
}

.careers-contact-form-form .wpcf7-form p {
	margin: 0;
	padding: 0;
	margin-bottom: 15px;
}

.careers-contact-form-form .wpcf7-form .row {
	margin-left: -5px;
	margin-right: -5px;
	margin-bottom: 0;
}

.careers-contact-form-form .wpcf7-form .row > [class*="col-"] {
	padding-left: 5px;
	padding-right: 5px;
}

.careers-contact-form-form .wpcf7-form .row:last-child {
	margin-bottom: 0;
}

.careers-contact-form-form .wpcf7-form .row:last-child > [class*="col-"]:last-child p {
	margin-bottom: 0;
}

/* =========================
   FORM FIELD STYLING
   ========================= */

.careers-contact-form-form .wpcf7-form label {
	display: none;
}

.careers-contact-form-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.careers-contact-form-form .wpcf7-form-control {
	width: 100%;
	border: 1px solid #e9e9e9;
	border-radius: 10px;
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	line-height: 150%;
	letter-spacing: 0%;
	color: #000;
	padding: 12px 15px;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.careers-contact-form-form .wpcf7-form-control:focus {
	outline: none;
	border-color: #35763a;
}

.careers-contact-form-form .wpcf7-form-control::placeholder {
	font-family: "Hanken Grotesk", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	line-height: 150%;
	letter-spacing: 0%;
	color: rgba(0, 0, 0, 0.3);
}

.careers-contact-form-form .wpcf7-form-control::-webkit-input-placeholder {
	text-align: left;
}

.careers-contact-form-form .wpcf7-form-control::-moz-placeholder {
	text-align: left;
}

.careers-contact-form-form .wpcf7-form-control:-ms-input-placeholder {
	text-align: left;
}

.careers-contact-form-form .wpcf7-form-control:-moz-placeholder {
	text-align: left;
}

.careers-contact-form-form .wpcf7-textarea {
	min-height: 120px;
	resize: vertical;
}

/* =========================
   FILE UPLOAD FIELD STYLING
   ========================= */

.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] {
	position: relative;
}

/* Hide the default Contact Form 7 file input visually but keep it functional */
.careers-contact-form-form input[type="file"][name="resume-upload"] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	cursor: pointer;
	z-index: 2;
	margin: 0;
	padding: 0;
	font-size: 0;
}

/* Custom upload button/field */
.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .careers-custom-upload-button {
	display: flex;
	align-items: center;
	width: 100%;
	border: 1px solid #e9e9e9;
	border-radius: 10px;
	padding: 12px 15px;
	cursor: pointer;
	background-color: #fff;
	transition: border-color 0.3s ease;
	min-height: 48px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .careers-custom-upload-button:hover {
	border-color: #35763a;
}

.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .careers-custom-upload-button:focus {
	outline: none;
	border-color: #35763a;
}

/* Upload icon */
.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .careers-custom-upload-icon {
	width: 18px;
	height: 18px;
	background-image: url('../../assets/images/upload.png');
	background-size: 18px 18px;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
	margin-right: 15px;
}

/* Upload text */
.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .careers-custom-upload-text {
	color: #B2B2B2;
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	line-height: 150%;
	letter-spacing: -2.2%;
	flex: 1;
	text-align: left;
}

/* When file is selected, change text color */
.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"].has-file .careers-custom-upload-text {
	color: #000;
}

/* Hide validation tip */
.careers-contact-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .wpcf7-not-valid-tip {
	display: none;
}

/* =========================
   JOB APPLICATION FORM UPLOAD FIELD STYLING
   ========================= */

.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] {
	position: relative;
}

/* Hide the default Contact Form 7 file input visually but keep it functional */
.job-application-form-form input[type="file"][name="resume-upload"] {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	cursor: pointer;
	z-index: 2;
	margin: 0;
	padding: 0;
	font-size: 0;
}

/* Custom upload button/field - Drop Area Style */
.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .job-application-custom-upload-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 2px dashed #e9e9e9;
	border-radius: 10px;
	padding: 40px 20px;
	cursor: pointer;
	background-color: #fff;
	transition: border-color 0.3s ease, background-color 0.3s ease;
	min-height: 120px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	text-align: center;
}

.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .job-application-custom-upload-button:hover {
	border-color: #35763a;
	background-color: #f9f9f9;
}

.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .job-application-custom-upload-button:focus {
	outline: none;
	border-color: #35763a;
}

.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .job-application-custom-upload-button.drag-over {
	border-color: #35763a;
	background-color: #f0f7f0;
}

/* Upload icon - Centered */
.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .job-application-custom-upload-icon {
	width: 24px;
	height: 24px;
	background-image: url('../../assets/images/icon-park-outline_upload-one.png');
	background-size: 24px 24px;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
	margin: 0 0 12px 0;
}

/* Upload text - Centered */
.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .job-application-custom-upload-text {
	color: #B2B2B2;
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 15px;
	line-height: 150%;
	letter-spacing: -2.2%;
	text-align: center;
	width: 100%;
	margin: 0;
}

/* When file is selected, change text color */
.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"].has-file .job-application-custom-upload-text {
	color: #000;
}

/* Hide validation tip */
.job-application-form-form .wpcf7-form-control-wrap[data-name="resume-upload"] .wpcf7-not-valid-tip {
	display: none;
}

/* =========================
   JOB TITLE FIELD STYLING (READONLY)
   ========================= */

.job-application-form-form input[name="job-title"],
.job-application-form-form input[name="job_title"],
.job-application-form-form input.job-title-readonly {
	background-color: #f5f5f5 !important;
	color: #333 !important;
	cursor: not-allowed !important;
	border-color: #e0e0e0 !important;
}

.job-application-form-form input[name="job-title"]:focus,
.job-application-form-form input[name="job_title"]:focus,
.job-application-form-form input.job-title-readonly:focus {
	outline: none !important;
	border-color: #e0e0e0 !important;
	box-shadow: none !important;
}

/* =========================
   SUBMIT BUTTON
   ========================= */

.careers-contact-form-form .wpcf7-submit.btn-primary-submit,
.careers-contact-form-form input[type="submit"].btn-primary-submit {
	display: inline-block;
	background-color: #35763a;
	color: #ffffff;
	border-radius: 42px;
	padding: 16px 50px;
	text-decoration: none;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	transition: opacity 0.3s ease, transform 0.2s ease;
	width: fit-content;
	border: none;
	cursor: pointer;
}

.careers-contact-form-form p:has(.wpcf7-submit) {
	margin-bottom: 0;
    margin-top: 30px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

/* =========================
   FORM RESPONSE OUTPUT
   ========================= */

.careers-contact-form-form .wpcf7-response-output {
	margin: 15px 0 0 0;
	padding: 10px;
	border-radius: 10px;
}

/* =========================
   FORM SPINNER
   ========================= */

.careers-contact-form-form .wpcf7-spinner {
	margin-left: 10px;
	display: none;
}

.careers-contact-form-form .wpcf7-form[data-status="submitting"] .wpcf7-spinner {
	display: inline-block;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 1199.98px) {
	.careers-contact-section-col-right {
		padding-left: 15px;
	}
}

@media (max-width: 991.98px) {
	.careers-contact-section {
		padding: 80px 0;
	}

	.careers-contact-section-col-left {
		display: none;
	}

	.careers-contact-section-col-right {
		padding-left: calc(var(--bs-gutter-x) * 0.5);
		padding-right: calc(var(--bs-gutter-x) * 0.5);
	}
    .careers-contact-section-form-wrapper {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
	.careers-contact-section {
		padding: 60px 0;
	}

	.careers-contact-form-container {
		padding: 30px 15px;
	}

	.careers-contact-form-title {
		font-size: 18px;
	}

	.careers-contact-form-subtitle {
		font-size: 14px;
		line-height: 157%;
		max-width: 100%;
	}

	.careers-contact-form-spacing {
		height: 30px;
	}
}

@media (max-width: 575.98px) {
	.careers-contact-section {
		padding: 40px 0;
	}
}

