.recruitment-form {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 2rem 0;
}

.form-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
	padding: 3rem;
	margin: 2rem 0;
	border: none;
}

.form-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 0.5rem;
	text-align: center;
}

.form-subtitle {
	color: #718096;
	text-align: center;
	margin-bottom: 3rem;
	font-size: 1.1rem;
}

.form-section {
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 12px;
	border-left: 4px solid #667eea;
}

.section-title {
	font-size: 1.3rem;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
}

.section-icon {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	color: #667eea;
}

.custom-form-group {
	margin-bottom: 1.5rem;
}

.custom-form-label {
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
	display: block;
	font-size: 0.95rem;
}

.custom-form-control {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: white;
}

.custom-form-control:focus {
	border-color: #667eea;
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	transform: translateY(-1px);
}

.custom-form-control:hover {
	border-color: #cbd5e0;
}

.custom-textarea {
	resize: vertical;
	min-height: 120px;
}

.custom-checkbox-wrapper {
	display: flex;
	align-items: center;
	padding: 1rem;
	background: white;
	border-radius: 10px;
	border: 2px solid #e2e8f0;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
}

.custom-checkbox-wrapper:hover {
	border-color: #667eea;
	background: #f8fafc;
}

.custom-checkbox {
	width: 20px;
	height: 20px;
	margin-right: 12px;
	accent-color: #667eea;
}

.submit-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	padding: 1rem 3rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: white;
	border-radius: 50px;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
	transform: translateY(0);
}

.success-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
	padding: 4rem 3rem;
	text-align: center;
	margin: 2rem 0;
}

.success-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 2rem;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 2rem;
}

.success-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #065f46;
	margin-bottom: 1rem;
}

.success-message {
	font-size: 1.1rem;
	color: #6b7280;
	margin-bottom: 2rem;
}

.edit-link {
	background: #f3f4f6;
	padding: 1rem;
	border-radius: 10px;
	border: 2px dashed #d1d5db;
	word-break: break-all;
	font-family: monospace;
	font-size: 0.9rem;
}

.edit-link a {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
}

.edit-link a:hover {
	text-decoration: underline;
}

.required-field::after {
	content: " *";
	color: #ef4444;
	font-weight: bold;
}

/* Custom Multi-Select Styles */
.custom-multiselect {
	position: relative;
	width: 100%;
}

.multiselect-container {
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: white;
	min-height: 50px;
	padding: 8px;
	cursor: text;
	transition: all 0.3s ease;
}

.multiselect-container:hover {
	border-color: #cbd5e0;
}

.multiselect-container.focused {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.selected-items {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.selected-item {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 4px 8px;
	border-radius: 20px;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 6px;
	animation: slideIn 0.3s ease;
}

.selected-item .remove-btn {
	background: rgba(255, 255, 255, 0.3);
	border: none;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	transition: background 0.2s ease;
}

.selected-item .remove-btn:hover {
	background: rgba(255, 255, 255, 0.5);
}

.multiselect-input {
	border: none;
	outline: none;
	padding: 4px;
	font-size: 1rem;
	background: transparent;
	width: 200px;
	min-width: 100px;
}

.multiselect-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 2px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 10px 10px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
}

.multiselect-dropdown.show {
	display: block;
	animation: slideDown 0.3s ease;
}

.dropdown-item {
	padding: 10px 12px;
	cursor: pointer;
	transition: background 0.2s ease;
	border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:hover {
	background: #f8fafc;
}

.dropdown-item.selected {
	background: #667eea;
	color: white;
}

.dropdown-item.hidden {
	display: none;
}

.no-results {
	padding: 10px 12px;
	color: #718096;
	font-style: italic;
	text-align: center;
}

.multiselect-placeholder {
	color: #a0aec0;
	font-size: 1rem;
	padding: 4px;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.form-card {
		padding: 2rem 1.5rem;
		margin: 1rem;
		border-radius: 15px;
	}

	.form-title {
		font-size: 2rem;
	}

	.form-section {
		padding: 1rem;
		margin-bottom: 2rem;
	}

	.section-title {
		font-size: 1.1rem;
	}

	.success-card {
		padding: 2rem 1.5rem;
		margin: 1rem;
	}

	.success-title {
		font-size: 2rem;
	}
}


/* Add these validation styles to your existing website_candidate.css */

/* Form validation styles */
.custom-form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.custom-form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Multiselect validation styles */
.multiselect-container.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.multiselect-container.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.custom-multiselect.is-invalid .multiselect-container {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.custom-multiselect.is-valid .multiselect-container {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Checkbox validation styles */
.custom-checkbox-wrapper.is-invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.custom-checkbox-wrapper.is-valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

/* Error message styles */
.invalid-feedback {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    display: block;
    font-weight: 500;
    animation: slideInError 0.3s ease-out;
}

.invalid-feedback.d-block {
    display: block !important;
}

/* Valid feedback (optional) */
.valid-feedback {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #10b981;
    display: block;
    font-weight: 500;
}

/* Required field indicator enhancement */
.required-field::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1em;
}

/* Alert styles for general errors */
.alert-danger {
    color: #7f1d1d;
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    font-weight: 500;
    animation: slideInAlert 0.5s ease-out;
}

.alert-danger strong {
    font-weight: 700;
    color: #991b1b;
}

/* Focus states with validation */
.custom-form-control:focus.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

.custom-form-control:focus.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.multiselect-container.focused.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.multiselect-container.focused.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Improve form section validation state */
.form-section.has-errors {
    border-left-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.02);
    border-left-width: 5px;
}

.form-section.has-success {
    border-left-color: #10b981;
    background-color: rgba(16, 185, 129, 0.02);
    border-left-width: 5px;
}

/* Validation feedback positioning improvements */
.custom-form-group {
    position: relative;
    margin-bottom: 2rem; /* Increased to accommodate error messages */
}

.custom-form-group .invalid-feedback,
.custom-form-group .valid-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    margin-top: 0.25rem;
}

/* Loading state enhancements */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

/* Textarea validation */
.custom-textarea.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.custom-textarea.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Animations */
@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateY(-20px);
        scale: 0.95;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        scale: 1;
    }
}

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

/* Responsive validation styling */
@media (max-width: 768px) {
    .invalid-feedback,
    .valid-feedback {
        font-size: 0.8rem;
        margin-top: 0.375rem;
    }
    
    .custom-form-group {
        margin-bottom: 1.75rem;
    }
    
    .alert-danger {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .submit-btn.loading::after {
        width: 16px;
        height: 16px;
        margin-left: -8px;
        margin-top: -8px;
    }
}

/* Improve validation for number inputs */
input[type="number"].is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input[type="number"].is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* URL input validation styling */
input[type="url"].is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input[type="url"].is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Email input validation styling */
input[type="email"].is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input[type="email"].is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Validation state transitions */
.custom-form-control,
.multiselect-container,
.custom-checkbox-wrapper {
    transition: all 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* General error message styling */
.general-error {
    border-left: 5px solid #ef4444;
    animation: pulse 2s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}