/* Vacantes Page Styles */

/* Nav override for vacantes */
.navbar.vacantes-nav {
    background-color: #FF0000;
    position: relative;
    z-index: 100;
}

/* Jobs Section */
.jobs-section {
    padding: 80px 0;
    background-color: #fff;
    min-height: calc(100vh - 90px);
}

.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 28px;
    background-color: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.filter-tab:hover { background-color: #e8e8e8; }

.filter-tab.active {
    background-color: #91E100;
    color: #000;
    border-color: #91E100;
    font-weight: 600;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Job Card */
.job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #91E100;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.job-department {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.qp-flex-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 15px;
}

.job-detail-icon { font-size: 18px; }

.job-section { margin-bottom: 20px; }

.job-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.job-section-content {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.job-apply-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: #91E100;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: 'Outfit', sans-serif;
}

.job-apply-btn:hover {
    background-color: #7bc200;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 100px 40px;
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active { display: flex; }

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.modal-close {
    float: right;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 0.8;
}

.modal-close:hover { color: #333; }

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    color: #666;
}

/* Form Styles */
.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section-title:first-of-type { margin-top: 0; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required { color: #FF0000; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #91E100;
    background-color: #fafafa;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover { background-color: #f5f5f5; }

.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option.selected {
    border-color: #91E100;
    background-color: #f7fee7;
}

/* QP Flex Questions */
.qp-flex-questions {
    background-color: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border: 2px solid #fbbf24;
}

.qp-flex-title {
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-submit,
.btn-cancel {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-submit {
    background-color: #91E100;
    color: #000;
    flex: 1;
}

.btn-submit:hover {
    background-color: #7bc200;
    transform: translateY(-2px);
}

.btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.btn-cancel:hover { background-color: #d0d0d0; }

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #91E100;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.success-text {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title { font-size: 36px; }
    .section-subtitle { font-size: 18px; }
    .jobs-container { padding: 0 20px; }
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tab { text-align: center; }
    .modal-content { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; }
}
