/* Section backgrounds */
.bg-hero {
    background: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.bg-positions {
    background: #f8f9fa;
}

.bg-work {
    background: #ffffff;
}

.bg-process {
    background: #f1f5f9;
}

/* Hero overlay */
.career-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.career-hero .container {
    position: relative;
    z-index: 2;
}

/* Search and Filter Section */
.search-filter-card {
    background: white;
    border: 1px solid #e0e0e0;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    padding-right: 45px;
}

/* Animations */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Position cards */
.position-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    margin-bottom: 20px;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.position-card .card-body {
    padding: 25px;
}

.position-card .card-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.25rem;
}

.position-card .card-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.position-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.position-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.position-tags .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

.position-meta .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Process steps */
.process-step {
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.process-step h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.process-step p {
    color: #666;
}

/* No results styling */
.no-results-icon {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .position-card .card-body {
        padding: 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .position-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Application Modal Styles */
.application-step {
    min-height: 300px;
}

.question-group {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background: #f8f9fa;
}

.question-group:hover {
    background: #fff;
    border-color: #007bff;
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-bottom: 3px solid #dee2e6;
    color: #6c757d;
}

.step.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: bold;
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-check-input:invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
}

.toast-close {
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #000;
    user-select: none;
}

/* Application Modal Styles */
.application-step {
    min-height: 300px;
    padding: 1rem 0;
}

.question-group {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.question-group:hover {
    background: #fff;
    border-color: #007bff;
}

.agreements-section {
    border-top: 2px solid #e9ecef;
    padding-top: 1.5rem;
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-check-input:invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid~.form-check-label {
    color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Salary agreement styling */
.salary-agreement-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.salary-agreement-section .form-check-label {
    font-weight: 600;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Processing fee styling */
.processing-fee-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* Modal backdrop */
.modal-backdrop {
    opacity: 0.5 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .question-group {
        padding: 1rem;
    }

    .agreements-section {
        padding-top: 1rem;
    }
}