/* CF7 Career Application Form Styles */

.cf7-career-application-form {
	width: 100%;
}

.cf7-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.cf7-col {
	flex: 1;
	min-width: 200px;
}

.cf7-col-12 {
	flex: 0 0 100%;
}

.cf7-col-6 {
	flex: 0 0 calc(50% - 0.625rem);
}

@media (max-width: 640px) {
	.cf7-col-6 {
		flex: 0 0 100%;
	}

	.cf7-row {
		gap: 1rem;
	}
}

/* Form Group Wrapper */
.cf7-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.cf7-field-wrapper {
	position: relative;
}

/* Input, Textarea, Select Base Styles */
.cf7-input,
.cf7-textarea,
.cf7-select,
.cf7-file-input {
	width: 100%;
	font-size: 0.875rem;
	font-weight: 500;
	color: #000;
	background-color: transparent;
	border: none;
	border-bottom: 1px solid #d1d5db;
	outline: none;
	padding: 0.75rem 0;
	transition: border-color 0.3s ease;
	font-family: "DM Sans", sans-serif;
}

.cf7-input::placeholder,
.cf7-textarea::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.cf7-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	padding-right: 1.5rem;
	cursor: pointer;
}

.cf7-input:focus,
.cf7-textarea:focus,
.cf7-select:focus {
	border-bottom-color: #013b24;
}

.cf7-textarea {
	resize: vertical;
	min-height: 80px;
	font-family: "DM Sans", sans-serif;
}

/* File Upload Custom Styling */
.cf7-upload-wrapper {
	position: relative;
}

.cf7-file-input {
	display: none;
}

.cf7-upload-wrapper span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.5);
	border-bottom: 1px solid #d1d5db;
	padding: 0.75rem 0;
	width: 100%;
	transition: color 0.3s ease;
}

.cf7-upload-wrapper span svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.cf7-file-input:hover ~ span,
.cf7-upload-wrapper span:hover {
	color: #000;
}

.cf7-file-input + span::before {
	content: "📎 ";
	margin-right: 0.25rem;
}

/* Submit Button */
.cf7-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background-color: #a8dd35;
	color: #000 !important;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.75rem 1.75rem;
	border: none !important;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	font-family: "DM Sans", sans-serif;
}

.cf7-submit-btn:hover {
	background-color: #91c91c;
}

.cf7-submit-btn::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background-color: white;
	border-radius: 0.25rem;
	padding: 0.375rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 13L13 3M13 3H6M13 3V10' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px;
}

/* Privacy Notice */
.cf7-privacy-notice {
	padding: 0.5rem;
	background-color: #ebebeb;
	border-radius: 0.5rem;
	display: inline-flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.cf7-privacy-icon {
	position: relative;
	flex-shrink: 0;
}

.cf7-privacy-text {
	flex: 1;
	justify-content: flex-start;
	color: #000;
	font-size: 0.75rem;
	font-weight: 500;
	font-family: "DM Sans", sans-serif;
	line-height: 1rem;
}

/* Form Validation Messages */
.wpcf7 .wpcf7-form-control.wpcf7-validates-as-required.wpcf7-invalid {
	border-bottom-color: #ef4444 !important;
}

.wpcf7-form span.wpcf7-not-valid-tip {
	font-size: 0.75rem;
	color: #ef4444;
	margin-top: 0.25rem;
	display: block;
}

/* Spinner/Loading */
.wpcf7-spinner {
	display: inline-block;
	margin-left: 0.5rem;
}

/* CF7 Form Wrapper in Modal */
.cf7-career-form-wrapper {
	width: 100%;
}

.cf7-career-form-wrapper .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Remove default CF7 paragraph styling */
.cf7-career-form-wrapper p {
	margin: 0;
	padding: 0;
}

.cf7-career-form-wrapper .wpcf7-response-output {
	margin: 1rem 0 0 0 !important;
	padding: 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
}

.cf7-career-form-wrapper .wpcf7-mail-sent-ok {
	background-color: #d1fae5 !important;
	color: #065f46 !important;
	border: 1px solid #a7f3d0 !important;
}

.cf7-career-form-wrapper .wpcf7-validation-errors {
	background-color: #fee2e2 !important;
	color: #991b1b !important;
	border: 1px solid #fecaca !important;
}

/* Hide CF7 default form wrappers but keep structure */
.cf7-career-form-wrapper .wpcf7-form-control-wrap {
	display: contents;
}

.cf7-career-form-wrapper input[type="hidden"] {
	display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.cf7-row {
		gap: 1rem;
	}

	.cf7-col-6 {
		flex: 0 0 100%;
	}

	.cf7-submit-btn {
		width: 100%;
		justify-content: center;
	}

	.cf7-privacy-notice {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}
